Home | History | Annotate | Download | only in pm

Lines Matching defs:restrictions

97     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) {
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 = mUserRestrictions.get(userInfo.id);
671 if (restrictions != null) {
673 writeBoolean(serializer, restrictions, UserManager.DISALLOW_CONFIG_WIFI);
674 writeBoolean(serializer, restrictions, UserManager.DISALLOW_MODIFY_ACCOUNTS);
675 writeBoolean(serializer, restrictions, UserManager.DISALLOW_INSTALL_APPS);
676 writeBoolean(serializer, restrictions, UserManager.DISALLOW_UNINSTALL_APPS);
677 writeBoolean(serializer, restrictions, UserManager.DISALLOW_SHARE_LOCATION);
678 writeBoolean(serializer, restrictions,
680 writeBoolean(serializer, restrictions, UserManager.DISALLOW_CONFIG_BLUETOOTH);
681 writeBoolean(serializer, restrictions, UserManager.DISALLOW_USB_FILE_TRANSFER);
682 writeBoolean(serializer, restrictions, UserManager.DISALLOW_CONFIG_CREDENTIALS);
683 writeBoolean(serializer, restrictions, UserManager.DISALLOW_REMOVE_USER);
750 Bundle restrictions = new Bundle();
803 readBoolean(parser, restrictions, UserManager.DISALLOW_CONFIG_WIFI);
804 readBoolean(parser, restrictions, UserManager.DISALLOW_MODIFY_ACCOUNTS);
805 readBoolean(parser, restrictions, UserManager.DISALLOW_INSTALL_APPS);
806 readBoolean(parser, restrictions, UserManager.DISALLOW_UNINSTALL_APPS);
807 readBoolean(parser, restrictions, UserManager.DISALLOW_SHARE_LOCATION);
808 readBoolean(parser, restrictions,
810 readBoolean(parser, restrictions, UserManager.DISALLOW_CONFIG_BLUETOOTH);
811 readBoolean(parser, restrictions, UserManager.DISALLOW_USB_FILE_TRANSFER);
812 readBoolean(parser, restrictions, UserManager.DISALLOW_CONFIG_CREDENTIALS);
813 readBoolean(parser, restrictions, UserManager.DISALLOW_REMOVE_USER);
823 mUserRestrictions.append(id, restrictions);
850 private void readBoolean(XmlPullParser parser, Bundle restrictions,
854 restrictions.putBoolean(restrictionKey, Boolean.parseBoolean(value));
858 private void writeBoolean(XmlSerializer xml, Bundle restrictions, String restrictionKey)
860 if (restrictions.containsKey(restrictionKey)) {
862 Boolean.toString(restrictions.getBoolean(restrictionKey)));
897 * Removes all the restrictions files (res_<packagename>) for a given user, if all is true,
925 * Removes the app restrictions file for a specific package and user id, if it exists.
962 Bundle restrictions = new Bundle();
963 mUserRestrictions.append(userId, restrictions);
1104 checkManageUsersPermission("Only system can get restrictions for other users/apps");
1107 // Read the restrictions from XML
1113 public void setApplicationRestrictions(String packageName, Bundle restrictions,
1117 checkManageUsersPermission("Only system can set restrictions for other users/apps");
1120 // Write the restrictions to XML
1121 writeApplicationRestrictionsLocked(packageName, restrictions, userId);
1127 checkManageUsersPermission("Only system can modify the restrictions pin");
1154 checkManageUsersPermission("Only system can verify the restrictions pin");
1213 checkManageUsersPermission("Only system can remove restrictions");
1220 // Remove all user restrictions
1222 // Remove restrictions pin
1224 // Remove any app restrictions
1304 final Bundle restrictions = new Bundle();
1322 Slog.e(LOG_TAG, "Unable to read restrictions file "
1324 return restrictions;
1343 restrictions.putStringArray(key, valueStrings);
1345 restrictions.putBoolean(key, Boolean.parseBoolean(
1349 restrictions.putString(key, value);
1364 return restrictions;
1368 Bundle restrictions, int userId) {
1385 for (String key : restrictions.keySet()) {
1386 Object value = restrictions.get(key);
1415 Slog.e(LOG_TAG, "Error writing application restrictions list");
1474 // If this is not a restricted profile and there is no restrictions pin, clean up
1475 // all restrictions files that might have been left behind, else clean up just the