diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2015-03-20 11:24:04 -0700 |
|---|---|---|
| committer | Jeff Sharkey <jsharkey@android.com> | 2015-06-15 21:50:47 -0700 |
| commit | 2cc03e5606ad7cd473283898400506d5ac2237ba (patch) | |
| tree | b5be9d66c5da3c857ab0d0950571f7aac1a33fe9 /core/java/android | |
| parent | a65a1582f5a04b15b53ebdec337ac611ccb78a07 (diff) | |
| download | frameworks_base-2cc03e5606ad7cd473283898400506d5ac2237ba.zip frameworks_base-2cc03e5606ad7cd473283898400506d5ac2237ba.tar.gz frameworks_base-2cc03e5606ad7cd473283898400506d5ac2237ba.tar.bz2 | |
Yet another user restriction.
Change-Id: Ia2952da19cb974a6a9ba0271a298a10df58b8d18
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/os/UserManager.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index ef7e747..00350ec 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -362,6 +362,18 @@ public class UserManager { public static final String DISALLOW_SMS = "no_sms"; /** + * Specifies if the user is not allowed to have fun. In some cases, the + * device owner may wish to prevent the user from experiencing amusement or + * joy while using the device. The default value is <code>false</code>. + * + * <p/>Key for user restrictions. + * <p/>Type: Boolean + * @see #setUserRestrictions(Bundle) + * @see #getUserRestrictions() + */ + public static final String DISALLOW_FUN = "no_fun"; + + /** * Specifies that windows besides app windows should not be * created. This will block the creation of the following types of windows. * <li>{@link LayoutParams#TYPE_TOAST}</li> |
