/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 52 assertFalse(UserRestrictionsUtils.isEmpty(DpmTestUtils.newRestrictions("a"))); in testIsEmpty() 67 Bundle a = DpmTestUtils.newRestrictions("a", "d"); in testMerge() 68 Bundle b = DpmTestUtils.newRestrictions("b", "d", "e"); in testMerge() 72 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions("a", "b", "d", "e"), a); in testMerge() 76 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions("a", "b", "d", "e"), a); in testMerge() 125 UserRestrictionsUtils.sortToGlobalAndLocal(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 135 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 145 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 175 DpmTestUtils.newRestrictions("a"))); in testAreEqual() 178 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 | 1177 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1181 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1204 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1209 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1223 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1227 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1240 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1244 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1317 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asPo() 1340 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 | 305 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument 307 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions()
|
D | UserManagerService.java | 1277 final Bundle newRestrictions = UserRestrictionsUtils.clone( in setUserRestriction() local 1279 newRestrictions.putBoolean(key, value); in setUserRestriction() 1281 updateUserRestrictionsInternalLR(newRestrictions, userId); in setUserRestriction() 1295 @Nullable Bundle newRestrictions, int userId) { in updateUserRestrictionsInternalLR() 1301 if (newRestrictions != null) { in updateUserRestrictionsInternalLR() 1305 Preconditions.checkState(prevBaseRestrictions != newRestrictions); in updateUserRestrictionsInternalLR() 1307 != newRestrictions); in updateUserRestrictionsInternalLR() 1309 if (!UserRestrictionsUtils.areEqual(prevBaseRestrictions, newRestrictions)) { in updateUserRestrictionsInternalLR() 1310 mBaseUserRestrictions.put(userId, newRestrictions); in updateUserRestrictionsInternalLR() 1344 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 657 userManager.addUserRestrictionsListener((int userId, Bundle newRestrictions, in startWatchingUserRestrictionChanges() argument 663 if (newRestrictions.containsKey(UserManager.DISALLOW_SHARE_LOCATION) in startWatchingUserRestrictionChanges() 677 if (newRestrictions.containsKey(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES) in startWatchingUserRestrictionChanges() 690 if (newRestrictions.containsKey(UserManager.DISALLOW_DEBUGGING_FEATURES) in startWatchingUserRestrictionChanges() 703 if (newRestrictions.containsKey(UserManager.ENSURE_VERIFY_APPS) in startWatchingUserRestrictionChanges() 721 if (newRestrictions.containsKey(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS) in startWatchingUserRestrictionChanges()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 5370 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 5377 newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged() 5389 newRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) in onUserRestrictionsChanged() 5390 || newRestrictions.getBoolean(UserManager.DISALLLOW_UNMUTE_DEVICE); in onUserRestrictionsChanged()
|