Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserRestrictionsUtilsTest.java80 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()
82 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()
84 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()
86 assertTrue(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()
88 assertTrue(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()
93 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_notMainUser()
95 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_notMainUser()
97 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_notMainUser()
99 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_notMainUser()
101 assertTrue(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_notMainUser()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserRestrictionsUtils.java462 public static boolean canProfileOwnerChange(String restriction, boolean isMainUser) { in canProfileOwnerChange() method in UserRestrictionsUtils
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java13481 && UserRestrictionsUtils.canProfileOwnerChange(