Build 1.0_r1(from source)

android.content.pm
Class PermissionGroupInfo

java.lang.Object
  extended by android.content.pm.PackageItemInfo
      extended by android.content.pm.PermissionGroupInfo
All Implemented Interfaces:
Parcelable

public class PermissionGroupInfo
extends PackageItemInfo
implements Parcelable

Information you can retrieve about a particular security permission group known to the system. This corresponds to information collected from the AndroidManifest.xml's <permission-group> tags.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.content.pm.PackageItemInfo
PackageItemInfo.DisplayNameComparator
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<PermissionGroupInfo> CREATOR
           
 int descriptionRes
          A string resource identifier (in the package's resources) of this permission's description.
 CharSequence nonLocalizedDescription
          The description string provided in the AndroidManifest file, if any.
 
Fields inherited from class android.content.pm.PackageItemInfo
icon, labelRes, metaData, name, nonLocalizedLabel, packageName
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
PermissionGroupInfo()
           
PermissionGroupInfo(PermissionGroupInfo orig)
           
 
Method Summary
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 CharSequence loadDescription(PackageManager pm)
          Retrieve the textual description of this permission.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 void writeToParcel(Parcel dest, int parcelableFlags)
          Flatten this object in to a Parcel.
 
Methods inherited from class android.content.pm.PackageItemInfo
dumpBack, dumpFront, loadIcon, loadLabel, loadXmlMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

descriptionRes

public int descriptionRes
A string resource identifier (in the package's resources) of this permission's description. From the "description" attribute or, if not set, 0.


nonLocalizedDescription

public CharSequence nonLocalizedDescription
The description string provided in the AndroidManifest file, if any. You probably don't want to use this, since it will be null if the description is in a resource. You probably want PermissionInfo.loadDescription(android.content.pm.PackageManager) instead.


CREATOR

public static final Parcelable.Creator<PermissionGroupInfo> CREATOR
Constructor Detail

PermissionGroupInfo

public PermissionGroupInfo()

PermissionGroupInfo

public PermissionGroupInfo(PermissionGroupInfo orig)
Method Detail

loadDescription

public CharSequence loadDescription(PackageManager pm)
Retrieve the textual description of this permission. This will call back on the given PackageManager to load the description from the application.

Parameters:
pm - A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item.
Returns:
Returns a CharSequence containing the permission's description. If there is no description, null is returned.

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

describeContents

public int describeContents()
Description copied from interface: Parcelable
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel dest,
                          int parcelableFlags)
Description copied from interface: Parcelable
Flatten this object in to a Parcel.

Specified by:
writeToParcel in interface Parcelable
Overrides:
writeToParcel in class PackageItemInfo
Parameters:
dest - The Parcel in which the object should be written.
parcelableFlags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature