Home
last modified time | relevance | path

Searched refs:getDeviceOwnerUserId (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java60 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); in testUpgrade01()
77 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); in testUpgrade01()
114 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade02()
134 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade02()
170 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); in testUpgrade03()
198 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); in testUpgrade03()
250 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade04()
282 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade04()
358 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); in testUpgrade05()
377 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId()); in testUpgrade05()
[all …]
DDevicePolicyManagerTest.java623 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
631 assertEquals(UserHandle.USER_NULL, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
642 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
650 assertEquals(UserHandle.USER_NULL, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
662 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
666 assertEquals(UserHandle.USER_NULL, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
679 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
687 assertEquals(UserHandle.USER_NULL, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
713 dpm.getDeviceOwnerUserId(); in checkGetDeviceOwnerInfoApi()
740 dpm.getDeviceOwnerUserId(); in checkGetDeviceOwnerInfoApi()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java153 if (hasDeviceOwner() && hasProfileOwner(getDeviceOwnerUserId())) { in load()
155 getDeviceOwnerUserId())); in load()
177 int getDeviceOwnerUserId() { in getDeviceOwnerUserId() method in Owners
DDevicePolicyManagerService.java467 && userHandle == mOwners.getDeviceOwnerUserId()
1725 mOwners.getDeviceOwnerUserId()); in findOwnerComponentIfNecessaryLocked()
1732 mOwners.getDeviceOwnerUserId(), in findOwnerComponentIfNecessaryLocked()
2609 userId = mOwners.getDeviceOwnerUserId(); in ensureDeviceOwnerUserStarted()
2733 } else if (getDeviceOwnerUserId() == userHandle.getIdentifier()) { in manageNotification()
5333 && mOwners.getDeviceOwnerUserId() != UserHandle.USER_SYSTEM); in isDeviceOwnerManagedSingleUserDevice()
5395 mContext.sendBroadcastAsUser(intent, UserHandle.of(mOwners.getDeviceOwnerUserId())); in sendDeviceOwnerCommand()
5510 mContext.sendBroadcastAsUser(intent, UserHandle.of(mOwners.getDeviceOwnerUserId())); in shareBugreportWithDeviceOwnerIfExists()
5755 && mOwners.getDeviceOwnerUserId() == userId in isDeviceOwner()
5778 mOwners.getDeviceOwnerUserId()) { in getDeviceOwnerComponent()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java528 if (dpm.getDeviceOwnerUserId() == userId) { in getProfileOrDeviceOwner()
545 return new EnforcedAdmin(adminComponent, dpm.getDeviceOwnerUserId()); in getDeviceOwner()
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl130 int getDeviceOwnerUserId(); in getDeviceOwnerUserId() method
DDevicePolicyManager.java3653 public int getDeviceOwnerUserId() { in getDeviceOwnerUserId() method in DevicePolicyManager
3656 return mService.getDeviceOwnerUserId(); in getDeviceOwnerUserId()