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.java161 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME); in setUp()
166 + ", isDeviceOwner=" + isDeviceOwner + ", isDeviceOwnerTest=" + isDeviceOwnerTest); in setUp()
172 .that(isProfileOwner || isDeviceOwner).isTrue(); in setUp()
216 protected boolean isDeviceOwner() { in isDeviceOwner() method in BaseDeviceAdminTest
DDelegationTest.java215 final boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp( in testDeviceOwnerOrManagedPoOnlyDelegations()
220 if (isDeviceOwner || isManagedProfileOwner) { in testDeviceOwnerOrManagedPoOnlyDelegations()
239 final boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp( in testDeviceOwnerOrOrgOwnedManagedPoOnlyDelegations()
245 if (isDeviceOwner || isOrgOwnedManagedProfileOwner) { in testDeviceOwnerOrOrgOwnedManagedPoOnlyDelegations()
DKeyManagementTest.java562 if (isDeviceOwner()) { in assertAllVariantsOfDeviceIdAttestation()
645 if (isDeviceOwner()) { in testProfileOwnerCannotAttestDeviceUniqueIds()
675 if (!isDeviceOwner() || !hasStrongBox() || !isUniqueDeviceAttestationSupported()) { in testUniqueDeviceAttestationUsingDifferentAttestationCert()
730 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()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DSystemUpdatePolicyTest.java454 if (!isDeviceOwner()) { in waitForPolicyChangedBroadcast()