Home
last modified time | relevance | path

Searched refs:prevRestrictions (Results 1 – 11 of 11) sorted by relevance

/aosp12/frameworks/base/core/java/android/os/
H A DIUserRestrictionsListener.aidl25 … void onUserRestrictionsChanged(int userId, in Bundle newRestrictions, in Bundle prevRestrictions); in onUserRestrictionsChanged() argument
/aosp12/frameworks/base/services/core/java/com/android/server/oemlock/
H A DOemLockService.java94 Bundle prevRestrictions) {
96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerInternal.java56 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
H A DUserRestrictionsUtils.java502 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument
505 final boolean prevValue = prevRestrictions.getBoolean(key); in applyUserRestrictions()
H A DUserManagerService.java2260 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument
2265 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR()
2270 final Bundle prevRestrictionsFinal = new Bundle(prevRestrictions); in propagateUserRestrictionsLR()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DSensorPrivacyService.java357 Bundle prevRestrictions) { in onUserRestrictionsChanged() argument
359 if (!prevRestrictions.getBoolean(UserManager.DISALLOW_CAMERA_TOGGLE) in onUserRestrictionsChanged()
363 if (!prevRestrictions.getBoolean(UserManager.DISALLOW_MICROPHONE_TOGGLE) in onUserRestrictionsChanged()
H A DBluetoothManagerService.java272 Bundle prevRestrictions) {
274 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
282 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/aosp12/frameworks/base/services/core/java/com/android/server/infra/
H A DAbstractMasterSystemService.java273 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService()
/aosp12/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsProvider.java1017 Bundle newRestrictions, Bundle prevRestrictions) { in startWatchingUserRestrictionChanges()
1019 getRestrictionDiff(prevRestrictions, newRestrictions); in startWatchingUserRestrictionChanges()
1105 private static Set<String> getRestrictionDiff(Bundle prevRestrictions, Bundle newRestrictions) { in getRestrictionDiff() argument
1107 restrictionNames.addAll(prevRestrictions.keySet()); in getRestrictionDiff()
1111 if (prevRestrictions.getBoolean(restrictionName) != newRestrictions.getBoolean( in getRestrictionDiff()
/aosp12/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java7989 Bundle prevRestrictions) { in onUserRestrictionsChanged() argument
7993 prevRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged()
8005 prevRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) in onUserRestrictionsChanged()
8006 || prevRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); in onUserRestrictionsChanged()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java1011 Bundle prevRestrictions) { in onUserRestrictionsChanged() argument
1012 resetCrossProfileIntentFiltersIfNeeded(userId, newRestrictions, prevRestrictions); in onUserRestrictionsChanged()
1013 resetUserVpnIfNeeded(userId, newRestrictions, prevRestrictions); in onUserRestrictionsChanged()
1017 int userId, Bundle newRestrictions, Bundle prevRestrictions) { in resetUserVpnIfNeeded() argument
1019 !prevRestrictions.getBoolean(UserManager.DISALLOW_CONFIG_VPN) in resetUserVpnIfNeeded()
1027 int userId, Bundle newRestrictions, Bundle prevRestrictions) { in resetCrossProfileIntentFiltersIfNeeded() argument
1028 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, in resetCrossProfileIntentFiltersIfNeeded()