Home
last modified time | relevance | path

Searched refs:hasDeviceOwner (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java59 assertFalse(owners.hasDeviceOwner()); in testUpgrade01()
76 assertFalse(owners.hasDeviceOwner()); in testUpgrade01()
111 assertTrue(owners.hasDeviceOwner()); in testUpgrade02()
131 assertTrue(owners.hasDeviceOwner()); in testUpgrade02()
169 assertFalse(owners.hasDeviceOwner()); in testUpgrade03()
197 assertFalse(owners.hasDeviceOwner()); in testUpgrade03()
247 assertTrue(owners.hasDeviceOwner()); in testUpgrade04()
279 assertTrue(owners.hasDeviceOwner()); in testUpgrade04()
357 assertFalse(owners.hasDeviceOwner()); in testUpgrade05()
376 assertFalse(owners.hasDeviceOwner()); in testUpgrade05()
[all …]
DDevicePolicyManagerServiceMigrationTest.java142 assertTrue(dpms.mOwners.hasDeviceOwner()); in testMigration()
256 assertFalse(dpms.mOwners.hasDeviceOwner()); in testMigration2_profileOwnerOnUser0()
DDevicePolicyManagerTest.java605 private void checkGetDeviceOwnerInfoApi(DevicePolicyManager dpm, boolean hasDeviceOwner) { in checkGetDeviceOwnerInfoApi() argument
616 if (hasDeviceOwner) { in checkGetDeviceOwnerInfoApi()
635 if (hasDeviceOwner) { in checkGetDeviceOwnerInfoApi()
659 if (hasDeviceOwner) { in checkGetDeviceOwnerInfoApi()
672 if (hasDeviceOwner) { in checkGetDeviceOwnerInfoApi()
692 if (hasDeviceOwner) { in checkGetDeviceOwnerInfoApi()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java149 mUserManagerInternal.setDeviceManaged(hasDeviceOwner()); in load()
153 if (hasDeviceOwner() && hasProfileOwner(getDeviceOwnerUserId())) { in load()
318 boolean hasDeviceOwner() { in hasDeviceOwner() method in Owners
DDevicePolicyManagerService.java1699 if (mOwners.hasDeviceOwner()) { in setDeviceOwnerSystemPropertyLocked()
1714 if (!mOwners.hasDeviceOwner()) { in findOwnerComponentIfNecessaryLocked()
2606 if (!mOwners.hasDeviceOwner()) { in ensureDeviceOwnerUserStarted()
5323 if (!mOwners.hasDeviceOwner()) { in isDeviceOwnerManagedSingleUserDevice()
5754 return mOwners.hasDeviceOwner() in isDeviceOwner()
5774 if (!mOwners.hasDeviceOwner()) { in getDeviceOwnerComponent()
5792 return mOwners.hasDeviceOwner() ? mOwners.getDeviceOwnerUserId() : UserHandle.USER_NULL; in getDeviceOwnerUserId()
5807 if (!mOwners.hasDeviceOwner()) { in getDeviceOwnerName()
5853 if (!mOwners.hasDeviceOwner() in clearDeviceOwner()
6229 if (mOwners.hasDeviceOwner() && mOwners.getDeviceOwnerUserId() == userHandle) { in enforceCanSetProfileOwnerLocked()
[all …]