Searched refs:restrictions (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/java/android/os/
H A DIUserManager.aidl44 void setUserRestrictions(in Bundle restrictions, int userHandle);
45 void setApplicationRestrictions(in String packageName, in Bundle restrictions,
H A DUserManager.java40 * Key for user restrictions. Specifies if a user is disallowed from adding and removing
51 * Key for user restrictions. Specifies if a user is disallowed from changing Wi-Fi
62 * Key for user restrictions. Specifies if a user is disallowed from installing applications.
72 * Key for user restrictions. Specifies if a user is disallowed from uninstalling applications.
82 * Key for user restrictions. Specifies if a user is disallowed from toggling location sharing.
93 * Key for user restrictions. Specifies if a user is disallowed from enabling the
104 * Key for user restrictions. Specifies if a user is disallowed from configuring bluetooth.
114 * Key for user restrictions. Specifies if a user is disallowed from transferring files over
124 * Key for user restrictions. Specifies if a user is disallowed from configuring user
134 * Key for user restrictions
299 setUserRestrictions(Bundle restrictions) argument
309 setUserRestrictions(Bundle restrictions, UserHandle userHandle) argument
633 setApplicationRestrictions(String packageName, Bundle restrictions, UserHandle user) argument
[all...]
/frameworks/base/services/java/com/android/server/pm/
H A DUserManagerService.java97 private static final String TAG_RESTRICTIONS = "restrictions";
409 Bundle restrictions = mUserRestrictions.get(userId);
410 return restrictions != null ? restrictions : Bundle.EMPTY;
415 public void setUserRestrictions(Bundle restrictions, int userId) { argument
417 if (restrictions == null) return;
421 mUserRestrictions.get(userId).putAll(restrictions);
608 Bundle restrictions = new Bundle();
609 mUserRestrictions.append(UserHandle.USER_OWNER, restrictions);
670 Bundle restrictions
850 readBoolean(XmlPullParser parser, Bundle restrictions, String restrictionKey) argument
858 writeBoolean(XmlSerializer xml, Bundle restrictions, String restrictionKey) argument
1113 setApplicationRestrictions(String packageName, Bundle restrictions, int userId) argument
1367 writeApplicationRestrictionsLocked(String packageName, Bundle restrictions, int userId) argument
[all...]
H A DPackageManagerService.java525 // Stores a list of users whose package restrictions file needs to be updated
6685 Bundle restrictions = sUserManager.getUserRestrictions(userId);
6686 if (restrictions.getBoolean(restrictionKey, false)) {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserManagerTest.java68 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle());
70 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI));
149 Bundle restrictions = new Bundle();
150 restrictions.putBoolean(UserManager.DISALLOW_INSTALL_APPS, true);
151 restrictions.putBoolean(UserManager.DISALLOW_CONFIG_WIFI, false);
152 mUserManager.setUserRestrictions(restrictions, new UserHandle(users.get(1).id));
/frameworks/base/core/java/android/accounts/
H A DChooseTypeAndAccountActivity.java149 Bundle restrictions = UserManager.get(this)
152 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false);

Completed in 310 milliseconds