Searched refs:isDeviceOwner (Results 1 – 7 of 7) sorted by relevance
64 protected boolean isDeviceOwner() { in isDeviceOwner() method in BaseDeviceAdminTest69 assertTrue("Not device owner", isDeviceOwner()); in assertDeviceOwner()73 assertFalse("Must not be device owner", isDeviceOwner()); in assertNotDeviceOwner()
52 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(mContext.getPackageName()); in assertDeviceOrAffiliatedProfileOwner()56 assertTrue(isDeviceOwner || isAffiliatedProfileOwner); in assertDeviceOrAffiliatedProfileOwner()
161 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
215 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()
562 if (isDeviceOwner()) { in assertAllVariantsOfDeviceIdAttestation()645 if (isDeviceOwner()) { in testProfileOwnerCannotAttestDeviceUniqueIds()675 if (!isDeviceOwner() || !hasStrongBox() || !isUniqueDeviceAttestationSupported()) { in testUniqueDeviceAttestationUsingDifferentAttestationCert()730 if (!isDeviceOwner() || !hasStrongBox()) { in testUniqueDeviceAttestationFailsWhenUnsupported()
213 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(adminPackage); in isProfileOrDeviceOwner()218 + ", isDeviceOwner=" + isDeviceOwner in isProfileOrDeviceOwner()222 if (!isDeviceOwner) { in isProfileOrDeviceOwner()
454 if (!isDeviceOwner()) { in waitForPolicyChangedBroadcast()