Home
last modified time | relevance | path

Searched refs:userRestrictions (Results 1 – 8 of 8) sorted by relevance

/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A DWifiRestrictionsCacheTest.java120 Bundle userRestrictions = mock(Bundle.class); in getRestriction_firstTime_getFromSystem() local
121 WifiRestrictionsCache wifiRestrictionsCache = mockInstance(USER_1, userRestrictions); in getRestriction_firstTime_getFromSystem()
125 verify(userRestrictions).getBoolean(DISALLOW_CONFIG_WIFI); in getRestriction_firstTime_getFromSystem()
130 Bundle userRestrictions = mock(Bundle.class); in getRestriction_secondTime_notGetFromSystem() local
134 reset(userRestrictions); in getRestriction_secondTime_notGetFromSystem()
139 verify(userRestrictions, never()).getBoolean(DISALLOW_CONFIG_WIFI); in getRestriction_secondTime_notGetFromSystem()
144 Bundle userRestrictions = mock(Bundle.class); in clearRestrictions_shouldGetRestrictionFromSystemAgain() local
148 reset(userRestrictions); in clearRestrictions_shouldGetRestrictionFromSystemAgain()
154 verify(userRestrictions).getBoolean(DISALLOW_CONFIG_WIFI); in clearRestrictions_shouldGetRestrictionFromSystemAgain()
167 private WifiRestrictionsCache mockInstance(int userId, Bundle userRestrictions) { in mockInstance() argument
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
H A DRestrictionUtils.java53 Bundle userRestrictions = um.getUserRestrictions(user); in getRestrictions() local
58 !userRestrictions.getBoolean(sRestrictionKeys[i], false)); in getRestrictions()
/aosp12/packages/apps/Settings/src/com/android/settings/users/
H A DRestrictionUtils.java62 Bundle userRestrictions = um.getUserRestrictions(user); in getRestrictions() local
67 !userRestrictions.getBoolean(sRestrictionKeys[i], false)); in getRestrictions()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
H A DRestrictedPreferenceAdapter.java64 List<String> userRestrictions) { in RestrictedPreferenceAdapter() argument
67 this.mUserRestrictions = userRestrictions; in RestrictedPreferenceAdapter()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DActiveAdmin.java250 Bundle userRestrictions; field in ActiveAdmin
487 out, userRestrictions, TAG_USER_RESTRICTIONS); in writeToXml()
730 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
925 return userRestrictions != null && userRestrictions.size() > 0; in hasUserRestrictions()
929 if (userRestrictions == null) { in ensureUserRestrictions()
930 userRestrictions = new Bundle(); in ensureUserRestrictions()
932 return userRestrictions; in ensureUserRestrictions()
1119 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
H A DDevicePolicyManagerService.java2198 if (doAdmin.userRestrictions == null) { in moveDoUserRestrictionsToCopeParent()
2201 for (final String restriction : doAdmin.userRestrictions.keySet()) { in moveDoUserRestrictionsToCopeParent()
2204 restriction, doAdmin.userRestrictions.getBoolean(restriction)); in moveDoUserRestrictionsToCopeParent()
8756 admin.userRestrictions = null;
8916 admin.userRestrictions = null;
11410 return activeAdmin.userRestrictions;
/aosp12/frameworks/base/services/core/java/com/android/server/appop/
H A DAppOpsService.java7101 boolean[] userRestrictions = perUserRestrictions.get(thisUserId);
7102 if (userRestrictions == null && restricted) {
7103 userRestrictions = new boolean[AppOpsManager._NUM_OP];
7104 perUserRestrictions.put(thisUserId, userRestrictions);
7106 if (userRestrictions != null && userRestrictions[code] != restricted) {
7107 userRestrictions[code] = restricted;
7108 if (!restricted && isDefault(userRestrictions)) {
7110 userRestrictions = null;
7115 if (userRestrictions != null) {
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java332 final Map<UserHandle, Bundle> userRestrictions = new HashMap<>(); in setUpUserManager() local
338 Bundle userBundle = userRestrictions.getOrDefault(user, new Bundle()); in setUpUserManager()
341 userRestrictions.put(user, userBundle); in setUpUserManager()
349 Bundle userBundle = userRestrictions.getOrDefault(user, new Bundle()); in setUpUserManager()