Home
last modified time | relevance | path

Searched refs:canDeviceOwnerChange (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserRestrictionsUtilsTest.java73 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_RECORD_AUDIO)); in testCanDeviceOwnerChange()
74 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_WALLPAPER)); in testCanDeviceOwnerChange()
75 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()
76 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_USER_SWITCH)); in testCanDeviceOwnerChange()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserRestrictionsUtils.java453 public static boolean canDeviceOwnerChange(String restriction) { in canDeviceOwnerChange() method in UserRestrictionsUtils
489 && canDeviceOwnerChange(restriction); in canFinancedDeviceOwnerChange()
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java13465 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {