|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.content.pm.PackageItemInfo
android.content.pm.PermissionInfo
public class PermissionInfo
Information you can retrieve about a particular security permission known to the system. This corresponds to information collected from the AndroidManifest.xml's <permission> 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<PermissionInfo> |
CREATOR
|
int |
descriptionRes
A string resource identifier (in the package's resources) of this permission's description. |
String |
group
The group this permission is a part of, as per R.attr.permissionGroup. |
CharSequence |
nonLocalizedDescription
The description string provided in the AndroidManifest file, if any. |
static int |
PROTECTION_DANGEROUS
Dangerous value for protectionLevel, corresponding
to the dangerous value of
R.attr.protectionLevel. |
static int |
PROTECTION_NORMAL
A normal application value for protectionLevel, corresponding
to the normal value of
R.attr.protectionLevel. |
static int |
PROTECTION_SIGNATURE
System-level value for protectionLevel, corresponding
to the signature value of
R.attr.protectionLevel. |
static int |
PROTECTION_SIGNATURE_OR_SYSTEM
System-level value for protectionLevel, corresponding
to the signatureOrSystem value of
R.attr.protectionLevel. |
int |
protectionLevel
The level of access this permission is protecting, as per R.attr.protectionLevel. |
| 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 | |
|---|---|
PermissionInfo()
|
|
PermissionInfo(PermissionInfo 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 |
|---|
public static final int PROTECTION_NORMAL
protectionLevel, corresponding
to the normal value of
R.attr.protectionLevel.
public static final int PROTECTION_DANGEROUS
protectionLevel, corresponding
to the dangerous value of
R.attr.protectionLevel.
public static final int PROTECTION_SIGNATURE
protectionLevel, corresponding
to the signature value of
R.attr.protectionLevel.
public static final int PROTECTION_SIGNATURE_OR_SYSTEM
protectionLevel, corresponding
to the signatureOrSystem value of
R.attr.protectionLevel.
public String group
R.attr.permissionGroup.
public int descriptionRes
public CharSequence nonLocalizedDescription
loadDescription(android.content.pm.PackageManager) instead.
public int protectionLevel
R.attr.protectionLevel. Values may be
PROTECTION_NORMAL, PROTECTION_DANGEROUS, or
PROTECTION_SIGNATURE.
public static final Parcelable.Creator<PermissionInfo> CREATOR
| Constructor Detail |
|---|
public PermissionInfo()
public PermissionInfo(PermissionInfo orig)
| Method Detail |
|---|
public CharSequence loadDescription(PackageManager pm)
pm - A PackageManager from which the label can be loaded; usually
the PackageManager from which you originally retrieved this item.
public String toString()
Object
toString in class Objectpublic int describeContents()
Parcelable
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int parcelableFlags)
Parcelable
writeToParcel in interface ParcelablewriteToParcel in class PackageItemInfodest - 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) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||