diff options
author | Jim Miller <jaggies@google.com> | 2012-11-02 16:20:51 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-02 16:20:52 -0700 |
commit | 81e77360b2fe6695e9baa4f1818fed14055189f9 (patch) | |
tree | a3a19dd79f3e6e6a395b730694f84bb230ff7d4f /core/java | |
parent | f74d0c39b62ff542542df69e641477eb1e09b157 (diff) | |
parent | 3520774a91aee6fd59200aef4238efbdb580202a (diff) | |
download | frameworks_base-81e77360b2fe6695e9baa4f1818fed14055189f9.zip frameworks_base-81e77360b2fe6695e9baa4f1818fed14055189f9.tar.gz frameworks_base-81e77360b2fe6695e9baa4f1818fed14055189f9.tar.bz2 |
Merge "Update DevicePolicyManager documentation with new keyguard flags" into jb-mr1-lockscreen-dev
Diffstat (limited to 'core/java')
-rwxr-xr-x | core/java/android/app/admin/DevicePolicyManager.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 6966793..4c0eba0 100755 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -1228,7 +1228,7 @@ public class DevicePolicyManager { public static final int KEYGUARD_DISABLE_SECURE_CAMERA = 1 << 1; /** - * Disable all current and future keyguard customizations + * Disable all current and future keyguard customizations. */ public static final int KEYGUARD_DISABLE_FEATURES_ALL = 0x7fffffff; @@ -1381,8 +1381,9 @@ public class DevicePolicyManager { * this method; if it has not, a security exception will be thrown. * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. - * @param which {@link DevicePolicyManager#KEYGUARD_DISABLE_WIDGETS_ALL} or - * {@link DevicePolicyManager#KEYGUARD_DISABLE_FEATURES_NONE} (the default). + * @param which {@link #KEYGUARD_DISABLE_FEATURES_NONE} (default), + * {@link #KEYGUARD_DISABLE_WIDGETS_ALL}, {@link #KEYGUARD_DISABLE_SECURE_CAMERA}, + * {@link #KEYGUARD_DISABLE_FEATURES_ALL} */ public void setKeyguardDisabledFeatures(ComponentName admin, int which) { if (mService != null) { @@ -1399,6 +1400,8 @@ public class DevicePolicyManager { * admin, if specified, or all admins. * @param admin The name of the admin component to check, or null to check if any admins * have disabled features in keyguard. + * @return bitfield of flags. See {@link #setKeyguardDisabledFeatures(ComponentName, int)} + * for a list. */ public int getKeyguardDisabledFeatures(ComponentName admin) { return getKeyguardDisabledFeatures(admin, UserHandle.myUserId()); |