Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DBaseDeviceAdminTest.java64 protected boolean isDeviceOwner() { in isDeviceOwner() method in BaseDeviceAdminTest
69 assertTrue("Not device owner", isDeviceOwner()); in assertDeviceOwner()
73 assertFalse("Must not be device owner", isDeviceOwner()); in assertNotDeviceOwner()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseAffiliatedProfileOwnerTest.java52 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(mContext.getPackageName()); in assertDeviceOrAffiliatedProfileOwner()
56 assertTrue(isDeviceOwner || isAffiliatedProfileOwner); in assertDeviceOrAffiliatedProfileOwner()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DBaseDeviceAdminTest.java157 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME); in setUp()
162 + ", isDeviceOwner=" + isDeviceOwner + ", isDeviceOwnerTest=" + isDeviceOwnerTest); in setUp()
168 .that(isProfileOwner || isDeviceOwner).isTrue(); in setUp()
212 protected boolean isDeviceOwner() { in isDeviceOwner() method in BaseDeviceAdminTest
DKeyManagementTest.java466 if (isDeviceOwner()) { in assertAllVariantsOfDeviceIdAttestation()
550 if (isDeviceOwner()) { in testProfileOwnerCannotAttestDeviceUniqueIds()
581 if (!isDeviceOwner() || !hasStrongBox() || !isUniqueDeviceAttestationSupported()) { in testUniqueDeviceAttestationUsingDifferentAttestationCert()
637 if (!isDeviceOwner() || !hasStrongBox()) { in testUniqueDeviceAttestationFailsWhenUnsupported()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPermissionLockdownTestActivity.java213 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(adminPackage); in isProfileOrDeviceOwner()
218 + ", isDeviceOwner=" + isDeviceOwner in isProfileOrDeviceOwner()
222 if (!isDeviceOwner) { in isProfileOrDeviceOwner()
DCommandReceiverActivity.java477 if (!isDeviceOwner()) return; in onCreate()
483 if (!isDeviceOwner()) return; in onCreate()
488 if (!isDeviceOwner()) return; in onCreate()
495 if (!isDeviceOwner()) return; in onCreate()
576 private boolean isDeviceOwner() { in isDeviceOwner() method in CommandReceiverActivity
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DSystemUpdatePolicyTest.java454 if (!isDeviceOwner()) { in waitForPolicyChangedBroadcast()