/aosp14/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
|
/aosp14/frameworks/base/services/core/java/com/android/server/oemlock/ |
H A D | OemLockService.java | 100 Bundle prevRestrictions) { 102 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerInternal.java | 113 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
|
H A D | UserRestrictionsUtils.java | 548 Bundle newRestrictions, Bundle prevRestrictions) { in applyUserRestrictions() argument 551 final boolean prevValue = prevRestrictions.getBoolean(key); in applyUserRestrictions()
|
H A D | UserManagerService.java | 2964 Bundle newRestrictions, Bundle prevRestrictions) { in propagateUserRestrictionsLR() argument 2969 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR() 2974 final Bundle prevRestrictionsFinal = new Bundle(prevRestrictions); in propagateUserRestrictionsLR()
|
/aosp14/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyService.java | 333 Bundle prevRestrictions) { in onUserRestrictionsChanged() argument 335 if (!prevRestrictions.getBoolean(UserManager.DISALLOW_CAMERA_TOGGLE) in onUserRestrictionsChanged() 339 if (!prevRestrictions.getBoolean(UserManager.DISALLOW_MICROPHONE_TOGGLE) in onUserRestrictionsChanged()
|
/aosp14/frameworks/base/services/core/java/com/android/server/infra/ |
H A D | AbstractMasterSystemService.java | 273 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService()
|
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsProvider.java | 1090 Bundle newRestrictions, Bundle prevRestrictions) { in startWatchingUserRestrictionChanges() 1092 getRestrictionDiff(prevRestrictions, newRestrictions); in startWatchingUserRestrictionChanges() 1178 private static Set<String> getRestrictionDiff(Bundle prevRestrictions, Bundle newRestrictions) { in getRestrictionDiff() argument 1180 restrictionNames.addAll(prevRestrictions.keySet()); in getRestrictionDiff() 1184 if (prevRestrictions.getBoolean(restrictionName) != newRestrictions.getBoolean( in getRestrictionDiff()
|
/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioService.java | 9695 Bundle prevRestrictions) { in onUserRestrictionsChanged() argument 9699 prevRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_MICROPHONE); in onUserRestrictionsChanged() 9711 prevRestrictions.getBoolean(UserManager.DISALLOW_ADJUST_VOLUME) in onUserRestrictionsChanged() 9712 || prevRestrictions.getBoolean(UserManager.DISALLOW_UNMUTE_DEVICE); in onUserRestrictionsChanged()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 1302 Bundle prevRestrictions) { in onUserRestrictionsChanged() argument 1303 resetCrossProfileIntentFiltersIfNeeded(userId, newRestrictions, prevRestrictions); in onUserRestrictionsChanged() 1304 resetUserVpnIfNeeded(userId, newRestrictions, prevRestrictions); in onUserRestrictionsChanged() 1308 int userId, Bundle newRestrictions, Bundle prevRestrictions) { in resetUserVpnIfNeeded() argument 1310 !prevRestrictions.getBoolean(UserManager.DISALLOW_CONFIG_VPN) in resetUserVpnIfNeeded() 1318 int userId, Bundle newRestrictions, Bundle prevRestrictions) { in resetCrossProfileIntentFiltersIfNeeded() argument 1319 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, in resetCrossProfileIntentFiltersIfNeeded()
|