Home
last modified time | relevance | path

Searched refs:newRestrictions (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java20 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/
DDevicePolicyManagerServiceMigrationTest.java85 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 …]
DDpmTestUtils.java60 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()
DMockUtils.java102 final Bundle expected = DpmTestUtils.newRestrictions(Preconditions.checkNotNull(keys)); in checkUserRestrictions()
DDevicePolicyManagerTest.java1429 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/
DOemLockService.java93 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/
DUserRestrictionsUtils.java400 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()
DUserManagerService.java1409 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/
DUserManagerInternal.java38 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java168 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/
DBluetoothManagerService.java230 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/
DSettingsProvider.java798 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/
DAudioService.java5847 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()