public final class DeviceAdminInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<DeviceAdminInfo> |
CREATOR |
static int |
USES_ENCRYPTED_STORAGE |
static int |
USES_POLICY_DISABLE_CAMERA |
static int |
USES_POLICY_EXPIRE_PASSWORD |
static int |
USES_POLICY_FORCE_LOCK |
static int |
USES_POLICY_LIMIT_PASSWORD |
static int |
USES_POLICY_RESET_PASSWORD |
static int |
USES_POLICY_WATCH_LOGIN |
static int |
USES_POLICY_WIPE_DATA |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
DeviceAdminInfo(Context context,
ResolveInfo receiver) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
void |
dump(Printer pw,
String prefix) |
ActivityInfo |
getActivityInfo() |
ComponentName |
getComponent() |
String |
getPackageName() |
String |
getReceiverName() |
String |
getTagForPolicy(int policyIdent) |
boolean |
isVisible() |
CharSequence |
loadDescription(PackageManager pm) |
Drawable |
loadIcon(PackageManager pm) |
CharSequence |
loadLabel(PackageManager pm) |
String |
toString() |
boolean |
usesPolicy(int policyIdent) |
void |
writeToParcel(Parcel dest,
int flags) |
public static final int USES_POLICY_LIMIT_PASSWORD
public static final int USES_POLICY_WATCH_LOGIN
public static final int USES_POLICY_RESET_PASSWORD
public static final int USES_POLICY_FORCE_LOCK
public static final int USES_POLICY_WIPE_DATA
public static final int USES_POLICY_EXPIRE_PASSWORD
public static final int USES_ENCRYPTED_STORAGE
public static final int USES_POLICY_DISABLE_CAMERA
public static final Parcelable.Creator<DeviceAdminInfo> CREATOR
public DeviceAdminInfo(Context context, ResolveInfo receiver) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic String getPackageName()
public String getReceiverName()
public ActivityInfo getActivityInfo()
public ComponentName getComponent()
public CharSequence loadLabel(PackageManager pm)
public CharSequence loadDescription(PackageManager pm) throws Resources.NotFoundException
Resources.NotFoundExceptionpublic Drawable loadIcon(PackageManager pm)
public boolean isVisible()
public boolean usesPolicy(int policyIdent)
public String getTagForPolicy(int policyIdent)
public void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic int describeContents()
describeContents in interface ParcelableCopyright © 2008-2013. All Rights Reserved.