/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 51 assertFalse(UserRestrictionsUtils.isEmpty(DpmTestUtils.newRestrictions("a"))); in testIsEmpty() 66 Bundle a = DpmTestUtils.newRestrictions("a", "d"); in testMerge() 67 Bundle b = DpmTestUtils.newRestrictions("b", "d", "e"); in testMerge() 71 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions("a", "b", "d", "e"), a); in testMerge() 75 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions("a", "b", "d", "e"), a); in testMerge() 124 UserRestrictionsUtils.sortToGlobalAndLocal(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 134 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 144 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 174 DpmTestUtils.newRestrictions("a"))); in testAreEqual() 177 DpmTestUtils.newRestrictions("a"), in testAreEqual() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 88 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 93 eq(10))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 102 eq(11))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 158 DpmTestUtils.newRestrictions( in testMigration() 164 DpmTestUtils.newRestrictions( in testMigration() 174 DpmTestUtils.newRestrictions( in testMigration() 185 DpmTestUtils.newRestrictions( in testMigration() 191 DpmTestUtils.newRestrictions( in testMigration() 197 DpmTestUtils.newRestrictions( in testMigration() 219 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration2_profileOwnerOnUser0() [all …]
|
D | DpmTestUtils.java | 60 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() method in DpmTestUtils 149 final Bundle a = newRestrictions(); in testAssertRestrictions() 150 final Bundle b = newRestrictions("a"); in testAssertRestrictions() 151 final Bundle c = newRestrictions("a"); in testAssertRestrictions() 152 final Bundle d = newRestrictions("b", "c"); in testAssertRestrictions() 153 final Bundle e = newRestrictions("b", "c"); in testAssertRestrictions()
|
D | DevicePolicyManagerTest.java | 1194 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1198 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1221 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1226 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1240 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1244 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1257 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1261 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1334 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asPo() 1357 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() [all …]
|
D | MockUtils.java | 86 final Bundle expected = DpmTestUtils.newRestrictions(Preconditions.checkNotNull(keys)); in checkUserRestrictions()
|
/frameworks/base/core/java/android/os/ |
D | UserManagerInternal.java | 35 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 303 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument 305 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions()
|
D | UserManagerService.java | 1257 final Bundle newRestrictions = UserRestrictionsUtils.clone( in setUserRestriction() local 1259 newRestrictions.putBoolean(key, value); in setUserRestriction() 1261 updateUserRestrictionsInternalLR(newRestrictions, userId); in setUserRestriction() 1275 @Nullable Bundle newRestrictions, int userId) { in updateUserRestrictionsInternalLR() 1281 if (newRestrictions != null) { in updateUserRestrictionsInternalLR() 1285 Preconditions.checkState(prevBaseRestrictions != newRestrictions); in updateUserRestrictionsInternalLR() 1287 != newRestrictions); in updateUserRestrictionsInternalLR() 1289 if (!UserRestrictionsUtils.areEqual(prevBaseRestrictions, newRestrictions)) { in updateUserRestrictionsInternalLR() 1290 mBaseUserRestrictions.put(userId, newRestrictions); in updateUserRestrictionsInternalLR() 1324 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 645 userManager.addUserRestrictionsListener((int userId, Bundle newRestrictions, in startWatchingUserRestrictionChanges() argument 651 if (newRestrictions.containsKey(UserManager.DISALLOW_SHARE_LOCATION) in startWatchingUserRestrictionChanges() 665 if (newRestrictions.containsKey(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES) in startWatchingUserRestrictionChanges() 678 if (newRestrictions.containsKey(UserManager.DISALLOW_DEBUGGING_FEATURES) in startWatchingUserRestrictionChanges() 691 if (newRestrictions.containsKey(UserManager.ENSURE_VERIFY_APPS) in startWatchingUserRestrictionChanges() 709 if (newRestrictions.containsKey(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS) in startWatchingUserRestrictionChanges()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 5367 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 5374 newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged() 5385 newRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME); in onUserRestrictionsChanged()
|