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.java172 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME); in setUp()
177 + ", isDeviceOwner=" + isDeviceOwner + ", isDeviceOwnerTest=" + mIsDeviceOwnerTest); in setUp()
183 .that(isProfileOwner || isDeviceOwner).isTrue(); in setUp()
227 protected boolean isDeviceOwner() { in isDeviceOwner() method in BaseDeviceAdminTest
DKeyManagementTest.java458 if (isDeviceOwner()) { in assertAllVariantsOfDeviceIdAttestation()
546 if (isDeviceOwner()) { in testProfileOwnerCannotAttestDeviceUniqueIds()
577 if (!isDeviceOwner() || !hasStrongBox() || !isUniqueDeviceAttestationSupported()) { in testUniqueDeviceAttestationUsingDifferentAttestationCert()
633 if (!isDeviceOwner() || !hasStrongBox()) { in testUniqueDeviceAttestationFailsWhenUnsupported()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPermissionLockdownTestActivity.java209 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(adminPackage); in isProfileOrDeviceOwner()
214 + ", isDeviceOwner=" + isDeviceOwner in isProfileOrDeviceOwner()
218 if (!isDeviceOwner) { in isProfileOrDeviceOwner()
DCommandReceiverActivity.java512 if (!isDeviceOwner()) return; in onCreate()
518 if (!isDeviceOwner()) return; in onCreate()
523 if (!isDeviceOwner()) return; in onCreate()
530 if (!isDeviceOwner()) return; in onCreate()
644 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()