android.app.admin
Class DeviceAdminInfo

java.lang.Object
  extended by android.app.admin.DeviceAdminInfo
All Implemented Interfaces:
Parcelable

public final class DeviceAdminInfo
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
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
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
DeviceAdminInfo(Context context, ResolveInfo receiver)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USES_POLICY_LIMIT_PASSWORD

public static final int USES_POLICY_LIMIT_PASSWORD
See Also:
Constant Field Values

USES_POLICY_WATCH_LOGIN

public static final int USES_POLICY_WATCH_LOGIN
See Also:
Constant Field Values

USES_POLICY_RESET_PASSWORD

public static final int USES_POLICY_RESET_PASSWORD
See Also:
Constant Field Values

USES_POLICY_FORCE_LOCK

public static final int USES_POLICY_FORCE_LOCK
See Also:
Constant Field Values

USES_POLICY_WIPE_DATA

public static final int USES_POLICY_WIPE_DATA
See Also:
Constant Field Values

USES_POLICY_EXPIRE_PASSWORD

public static final int USES_POLICY_EXPIRE_PASSWORD
See Also:
Constant Field Values

USES_ENCRYPTED_STORAGE

public static final int USES_ENCRYPTED_STORAGE
See Also:
Constant Field Values

USES_POLICY_DISABLE_CAMERA

public static final int USES_POLICY_DISABLE_CAMERA
See Also:
Constant Field Values

CREATOR

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

DeviceAdminInfo

public DeviceAdminInfo(Context context,
                       ResolveInfo receiver)
                throws org.xmlpull.v1.XmlPullParserException,
                       IOException
Throws:
org.xmlpull.v1.XmlPullParserException
IOException
Method Detail

getPackageName

public String getPackageName()

getReceiverName

public String getReceiverName()

getActivityInfo

public ActivityInfo getActivityInfo()

getComponent

public ComponentName getComponent()

loadLabel

public CharSequence loadLabel(PackageManager pm)

loadDescription

public CharSequence loadDescription(PackageManager pm)
                             throws Resources.NotFoundException
Throws:
Resources.NotFoundException

loadIcon

public Drawable loadIcon(PackageManager pm)

isVisible

public boolean isVisible()

usesPolicy

public boolean usesPolicy(int policyIdent)

getTagForPolicy

public String getTagForPolicy(int policyIdent)

dump

public void dump(Printer pw,
                 String prefix)

toString

public String toString()
Overrides:
toString in class Object

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable


Copyright © 2008-2012. All Rights Reserved.