/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 | 1645 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo() 1649 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo() 1683 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1688 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1701 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1705 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 1793 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asPo() 1814 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() 1822 DpmTestUtils.newRestrictions( in testSetUserRestriction_asPo() 1837 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() 877 public static boolean restrictionsChanged(Bundle oldRestrictions, Bundle newRestrictions, in restrictionsChanged() argument 880 return areEqual(oldRestrictions, newRestrictions); in restrictionsChanged() 884 newRestrictions.getBoolean(restriction, false)) { in restrictionsChanged()
|
D | UserManagerService.java | 1732 final Bundle newRestrictions = UserRestrictionsUtils.clone( in setUserRestriction() local 1734 newRestrictions.putBoolean(key, value); in setUserRestriction() 1736 updateUserRestrictionsInternalLR(newRestrictions, userId); in setUserRestriction() 1797 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument 1802 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR() 1806 final Bundle newRestrictionsFinal = new Bundle(newRestrictions); in propagateUserRestrictionsLR()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BluetoothManagerService.java | 247 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, 250 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, 253 newRestrictions.getBoolean(UserManager.DISALLOW_BLUETOOTH_SHARING)); 259 newRestrictions, UserManager.DISALLOW_BLUETOOTH)) { 260 if (userId == UserHandle.USER_SYSTEM && newRestrictions.getBoolean( 266 updateOppLauncherComponentState(userId, newRestrictions.getBoolean(
|
/frameworks/base/services/core/java/com/android/server/infra/ |
D | AbstractMasterSystemService.java | 267 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService() argument 269 newRestrictions.getBoolean(disallowProperty, false); in AbstractMasterSystemService()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 1145 final Bundle newRestrictions = new Bundle(); in runUserRestrictionsChange() local 1146 newRestrictions.putBoolean(UserManager.DISALLOW_CONFIG_TETHERING, nextDisallow); in runUserRestrictionsChange() 1149 when(mUserManager.getUserRestrictions()).thenReturn(newRestrictions); in runUserRestrictionsChange()
|
/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() 1058 private static Set<String> getRestrictionDiff(Bundle prevRestrictions, Bundle newRestrictions) { in getRestrictionDiff() argument 1061 restrictionNames.addAll(newRestrictions.keySet()); in getRestrictionDiff() 1064 if (prevRestrictions.getBoolean(restrictionName) != newRestrictions.getBoolean( in getRestrictionDiff()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 5849 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 5856 newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged() 5869 newRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) in onUserRestrictionsChanged() 5870 || newRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); in onUserRestrictionsChanged()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 875 public void onUserRestrictionsChanged(int userId, Bundle newRestrictions, in onUserRestrictionsChanged() argument 878 newRestrictions.getBoolean(UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE); in onUserRestrictionsChanged()
|