diff options
| author | Emily Bernier <ember@google.com> | 2014-05-08 19:51:49 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-08 19:51:50 +0000 |
| commit | 86e80290792b3a259dc6db7958a2f7ace7f9c6e4 (patch) | |
| tree | 133a459862c92c4a66937886a41ff50bc2eedfe4 /core/java | |
| parent | 7486ae202f02d3d58063d39e6163e0bc9609db11 (diff) | |
| parent | 394a6cdd987fed79bd040f39e2d3e47d4484bab4 (diff) | |
| download | frameworks_base-86e80290792b3a259dc6db7958a2f7ace7f9c6e4.zip frameworks_base-86e80290792b3a259dc6db7958a2f7ace7f9c6e4.tar.gz frameworks_base-86e80290792b3a259dc6db7958a2f7ace7f9c6e4.tar.bz2 | |
Merge "New user restrictions for EDU"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 84639eb..e379621 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -234,6 +234,38 @@ public class UserManager { */ public static final String DISALLOW_CONFIG_APPS = "no_config_apps"; + /** + * Key for user restrictions. Specifies if a user is disallowed from mounting + * physical external media. The default value is <code>false</code>. + * <p/> + * Type: Boolean + * @see #setUserRestrictions(Bundle) + * @see #getUserRestrictions() + */ + public static final String DISALLOW_MOUNT_PHYSICAL_MEDIA = "no_physical_media"; + + /** + * Key for user restrictions. Specifies if a user is disallowed from adjusting microphone + * volume. + * The default value is <code>false</code>. + * <p/> + * Type: Boolean + * @see #setUserRestrictions(Bundle) + * @see #getUserRestrictions() + */ + public static final String DISALLOW_UNMUTE_MICROPHONE = "no_unmute_microphone"; + + /** + * Key for user restrictions. Specifies if a user is disallowed from adjusting the master + * volume. + * The default value is <code>false</code>. + * <p/> + * Type: Boolean + * @see #setUserRestrictions(Bundle) + * @see #getUserRestrictions() + */ + public static final String DISALLOW_ADJUST_VOLUME = "no_adjust_volume"; + /** @hide */ public static final int PIN_VERIFICATION_FAILED_INCORRECT = -3; /** @hide */ @@ -661,7 +693,7 @@ public class UserManager { /** * Returns information for all users on this device. Requires * {@link android.Manifest.permission#MANAGE_USERS} permission. - * + * * @param excludeDying specify if the list should exclude users being * removed. * @return the list of users that were created. |
