Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
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
131 WifiRestrictionsCache wifiRestrictionsCache = mockInstance(USER_2, userRestrictions); in getRestriction_secondTime_notGetFromSystem()
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
145 WifiRestrictionsCache wifiRestrictionsCache = mockInstance(USER_3, userRestrictions); in clearRestrictions_shouldGetRestrictionFromSystemAgain()
148 reset(userRestrictions); in clearRestrictions_shouldGetRestrictionFromSystemAgain()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileConfig.kt73 data class Restricted(val userRestrictions: List<String>) : QSTilePolicy constant in com.android.systemui.qs.tiles.viewmodel.QSTilePolicy.Restricted
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DActiveAdmin.java299 Bundle userRestrictions; field in ActiveAdmin
571 out, userRestrictions, TAG_USER_RESTRICTIONS); in writeToXml()
872 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
1147 return userRestrictions != null && userRestrictions.size() > 0; in hasUserRestrictions()
1151 if (userRestrictions == null) { in ensureUserRestrictions()
1152 userRestrictions = new Bundle(); in ensureUserRestrictions()
1154 return userRestrictions; in ensureUserRestrictions()
1315 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
DDevicePolicyManagerService.java2296 admin.userRestrictions = null; in removeUserData()
2299 parentAdmin.userRestrictions = null; in removeUserData()
2590 if (doAdmin.userRestrictions == null) { in moveDoUserRestrictionsToCopeParent()
2593 for (final String restriction : doAdmin.userRestrictions.keySet()) { in moveDoUserRestrictionsToCopeParent()
2597 restriction, doAdmin.userRestrictions.getBoolean(restriction)); in moveDoUserRestrictionsToCopeParent()
10138 admin.userRestrictions = null;
10309 admin.userRestrictions = null;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/
DQSTileViewModelImpl.kt214 policy.userRestrictions.none { in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java375 final Map<UserHandle, Bundle> userRestrictions = new HashMap<>(); in setUpUserManager() local
381 Bundle userBundle = userRestrictions.getOrDefault(user, new Bundle()); in setUpUserManager()
384 userRestrictions.put(user, userBundle); in setUpUserManager()
392 Bundle userBundle = userRestrictions.getOrDefault(user, new Bundle()); in setUpUserManager()