/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() 136 UserRestrictionsUtils.sortToGlobalAndLocal(newRestrictions( in testSortToGlobalAndLocal() 147 assertRestrictions(newRestrictions( in testSortToGlobalAndLocal() 160 assertRestrictions(newRestrictions( in testSortToGlobalAndLocal() 170 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 | 61 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() method in DpmTestUtils 155 final Bundle a = newRestrictions(); in testAssertRestrictions() 156 final Bundle b = newRestrictions("a"); in testAssertRestrictions() 157 final Bundle c = newRestrictions("a"); in testAssertRestrictions() 158 final Bundle d = newRestrictions("b", "c"); in testAssertRestrictions() 159 final Bundle e = newRestrictions("b", "c"); in testAssertRestrictions()
|
D | MockUtils.java | 110 final Bundle expected = DpmTestUtils.newRestrictions(Preconditions.checkNotNull(keys)); in checkUserRestrictions()
|
D | DevicePolicyManagerTest.java | 1618 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo() 1622 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo() 1656 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1661 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1674 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1678 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1766 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asPo() 1787 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() 1795 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() 1810 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/core/java/android/os/ |
D | UserManagerInternal.java | 39 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 490 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument 492 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions() 873 public static boolean restrictionsChanged(Bundle oldRestrictions, Bundle newRestrictions, in restrictionsChanged() argument 876 return areEqual(oldRestrictions, newRestrictions); in restrictionsChanged() 880 newRestrictions.getBoolean(restriction, false)) { in restrictionsChanged()
|
D | UserManagerService.java | 1673 final Bundle newRestrictions = UserRestrictionsUtils.clone( in setUserRestriction() local 1675 newRestrictions.putBoolean(key, value); in setUserRestriction() 1677 updateUserRestrictionsInternalLR(newRestrictions, userId); in setUserRestriction() 1738 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument 1743 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR() 1747 final Bundle newRestrictionsFinal = new Bundle(newRestrictions); in propagateUserRestrictionsLR()
|
/frameworks/base/services/core/java/com/android/server/infra/ |
D | AbstractMasterSystemService.java | 236 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService() argument 238 newRestrictions.getBoolean(disallowProperty, false); in AbstractMasterSystemService()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BluetoothManagerService.java | 234 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, 237 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, 240 newRestrictions.getBoolean(UserManager.DISALLOW_BLUETOOTH_SHARING)); 246 newRestrictions, UserManager.DISALLOW_BLUETOOTH)) { 247 if (userId == UserHandle.USER_SYSTEM && newRestrictions.getBoolean( 253 updateOppLauncherComponentState(userId, newRestrictions.getBoolean(
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 845 final Bundle newRestrictions = new Bundle(); in userRestrictionsListenerBehaviour() local 851 newRestrictions.putBoolean(UserManager.DISALLOW_CONFIG_TETHERING, nextDisallow); in userRestrictionsListenerBehaviour() 854 turl.onUserRestrictionsChanged(userId, newRestrictions, currRestrictions); in userRestrictionsListenerBehaviour()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 963 userManager.addUserRestrictionsListener((int userId, Bundle newRestrictions, in startWatchingUserRestrictionChanges() argument 965 Set<String> changedRestrictions = getRestrictionDiff(prevRestrictions, newRestrictions); in startWatchingUserRestrictionChanges() 1053 private static Set<String> getRestrictionDiff(Bundle prevRestrictions, Bundle newRestrictions) { in getRestrictionDiff() argument 1056 restrictionNames.addAll(newRestrictions.keySet()); in getRestrictionDiff() 1059 if (prevRestrictions.getBoolean(restrictionName) != newRestrictions.getBoolean( in getRestrictionDiff()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Tethering.java | 794 Bundle newRestrictions, in onUserRestrictionsChanged() argument 797 newRestrictions.getBoolean(UserManager.DISALLOW_CONFIG_TETHERING); in onUserRestrictionsChanged()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 5729 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 5736 newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged() 5748 newRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) in onUserRestrictionsChanged() 5749 || newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); in onUserRestrictionsChanged()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 871 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 874 newRestrictions.getBoolean(UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE); in onUserRestrictionsChanged()
|