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()
172 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
458 if (isDeviceOwner()) { in assertAllVariantsOfDeviceIdAttestation()546 if (isDeviceOwner()) { in testProfileOwnerCannotAttestDeviceUniqueIds()577 if (!isDeviceOwner() || !hasStrongBox() || !isUniqueDeviceAttestationSupported()) { in testUniqueDeviceAttestationUsingDifferentAttestationCert()633 if (!isDeviceOwner() || !hasStrongBox()) { in testUniqueDeviceAttestationFailsWhenUnsupported()
209 boolean isDeviceOwner = mDevicePolicyManager.isDeviceOwnerApp(adminPackage); in isProfileOrDeviceOwner()214 + ", isDeviceOwner=" + isDeviceOwner in isProfileOrDeviceOwner()218 if (!isDeviceOwner) { in isProfileOrDeviceOwner()
512 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
454 if (!isDeviceOwner()) { in waitForPolicyChangedBroadcast()