/aosp12/frameworks/base/core/java/android/os/ |
H A D | IUserRestrictionsListener.aidl | 25 … 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 D | OemLockService.java | 94 Bundle prevRestrictions) { 96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerInternal.java | 56 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
|
H A D | UserRestrictionsUtils.java | 502 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument 505 final boolean prevValue = prevRestrictions.getBoolean(key); in applyUserRestrictions()
|
H A D | UserManagerService.java | 2260 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 D | SensorPrivacyService.java | 357 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 D | BluetoothManagerService.java | 272 Bundle prevRestrictions) { 274 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, 282 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
|
/aosp12/frameworks/base/services/core/java/com/android/server/infra/ |
H A D | AbstractMasterSystemService.java | 273 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService()
|
/aosp12/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsProvider.java | 1017 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 D | AudioService.java | 7989 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 D | DevicePolicyManagerService.java | 1011 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()
|