/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions; 55 assertFalse(UserRestrictionsUtils.isEmpty(newRestrictions("a"))); in testIsEmpty() 70 Bundle a = newRestrictions("a", "d"); in testMerge() 71 Bundle b = newRestrictions("b", "d", "e"); in testMerge() 75 assertRestrictions(newRestrictions("a", "b", "d", "e"), a); in testMerge() 79 assertRestrictions(newRestrictions("a", "b", "d", "e"), a); in testMerge() 131 UserRestrictionsUtils.sortToGlobalAndLocal(newRestrictions( in testSortToGlobalAndLocal() 142 assertRestrictions(newRestrictions( in testSortToGlobalAndLocal() 155 assertRestrictions(newRestrictions( in testSortToGlobalAndLocal() 165 UserRestrictionsUtils.sortToGlobalAndLocal(newRestrictions( in testSortToGlobalAndLocal() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 85 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 90 eq(10))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 99 eq(11))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 152 DpmTestUtils.newRestrictions( in testMigration() 158 DpmTestUtils.newRestrictions( in testMigration() 168 DpmTestUtils.newRestrictions( in testMigration() 179 DpmTestUtils.newRestrictions( in testMigration() 186 DpmTestUtils.newRestrictions( in testMigration() 192 DpmTestUtils.newRestrictions( in testMigration() 214 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 | MockUtils.java | 102 final Bundle expected = DpmTestUtils.newRestrictions(Preconditions.checkNotNull(keys)); in checkUserRestrictions()
|
D | DevicePolicyManagerTest.java | 1429 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo() 1433 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo() 1467 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1472 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1485 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1489 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1566 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asPo() 1587 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() 1595 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() 1610 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() [all …]
|
/frameworks/base/services/core/java/com/android/server/oemlock/ |
D | OemLockService.java | 93 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, 96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, 99 !newRestrictions.getBoolean(UserManager.DISALLOW_FACTORY_RESET);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 400 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument 402 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions() 575 public static boolean restrictionsChanged(Bundle oldRestrictions, Bundle newRestrictions, in restrictionsChanged() argument 578 return areEqual(oldRestrictions, newRestrictions); in restrictionsChanged() 582 newRestrictions.getBoolean(restriction, false)) { in restrictionsChanged()
|
D | UserManagerService.java | 1409 final Bundle newRestrictions = UserRestrictionsUtils.clone( in setUserRestriction() local 1411 newRestrictions.putBoolean(key, value); in setUserRestriction() 1413 updateUserRestrictionsInternalLR(newRestrictions, userId); in setUserRestriction() 1474 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument 1479 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR() 1483 final Bundle newRestrictionsFinal = new Bundle(newRestrictions); in propagateUserRestrictionsLR()
|
/frameworks/base/core/java/android/os/ |
D | UserManagerInternal.java | 38 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerService.java | 168 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AutofillManagerService() argument 170 newRestrictions.getBoolean(UserManager.DISALLOW_AUTOFILL, false); in AutofillManagerService() 177 + bundleToString(newRestrictions)); in AutofillManagerService()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BluetoothManagerService.java | 230 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, 233 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, 235 updateOppLauncherComponentState(userId, newRestrictions.getBoolean( 242 prevRestrictions, newRestrictions, UserManager.DISALLOW_BLUETOOTH)) { 243 if (userId == UserHandle.USER_SYSTEM && newRestrictions.getBoolean( 248 updateOppLauncherComponentState(userId, newRestrictions.getBoolean(
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 798 userManager.addUserRestrictionsListener((int userId, Bundle newRestrictions, in startWatchingUserRestrictionChanges() argument 804 if (newRestrictions.getBoolean(UserManager.DISALLOW_SHARE_LOCATION) in startWatchingUserRestrictionChanges() 819 if (newRestrictions.getBoolean(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES) in startWatchingUserRestrictionChanges() 833 if (newRestrictions.getBoolean(UserManager.DISALLOW_DEBUGGING_FEATURES) in startWatchingUserRestrictionChanges() 847 if (newRestrictions.getBoolean(UserManager.ENSURE_VERIFY_APPS) in startWatchingUserRestrictionChanges() 867 if (newRestrictions.getBoolean(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS) in startWatchingUserRestrictionChanges()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 5847 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 5854 newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged() 5866 newRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) in onUserRestrictionsChanged() 5867 || newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); in onUserRestrictionsChanged()
|