Searched refs:isManagedProfile (Results 1 – 11 of 11) sorted by relevance
163 assertFalse(isManagedProfile()); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()188 assertTrue(isManagedProfile()); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()215 assertFalse(isManagedProfile()); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()240 assertTrue(isManagedProfile()); in testManagedProfileDuplicatedPhoneEmailContact_insertedAndfound()262 assertFalse(isManagedProfile()); in testPrimaryProfileEnterprisePhoneLookup_canAccessEnterpriseContact()274 assertFalse(isManagedProfile()); in testPrimaryProfileEnterpriseSipLookup_canAccessEnterpriseContact()285 assertFalse(isManagedProfile()); in testPrimaryProfileEnterpriseEmailLookup_canAccessEnterpriseContact()297 assertFalse(isManagedProfile()); in testPrimaryProfileEnterprisePhoneLookupDuplicated_canAccessPrimaryContact()308 assertFalse(isManagedProfile()); in testPrimaryProfileEnterpriseEmailLookupDuplicated_canAccessPrimaryContact()318 assertTrue(isManagedProfile()); in testManagedProfileEnterprisePhoneLookupDuplicated_canAccessEnterpriseContact()[all …]
46 && isManagedProfile()) { in onStart()66 private boolean isManagedProfile() { in isManagedProfile() method in DummyCrossProfileViewEventActivity
58 assertTrue(mDevicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in setUp()
65 assertTrue(mDpm.isManagedProfile(ADMIN_COMPONENT)); in assertProfileOwner()
465 assertThat(isManagedProfile()).isTrue(); in requireRunningOnManagedProfile()470 assertThat(isManagedProfile()).isFalse(); in requireRunningOnPrimaryProfile()521 private boolean isManagedProfile() { in isManagedProfile() method in CrossProfileCalendarTest
93 assertTrue(mDpm.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in testIsManagedProfile()
170 row[i] = isManagedProfile() ? MANAGED_THUMBNAIL_URI.toString() in query()173 row[i] = isManagedProfile() ? MANAGED_PHOTO_URI.toString() in query()232 resId = isManagedProfile() ? 0 : R.raw.primary_thumbnail; in openAssetFile()235 resId = isManagedProfile() ? 0 : R.raw.primary_photo; in openAssetFile()238 resId = isManagedProfile() ? R.raw.managed_thumbnail : 0; in openAssetFile()241 resId = isManagedProfile() ? R.raw.managed_photo : 0; in openAssetFile()255 private boolean isManagedProfile() { in isManagedProfile() method in DirectoryProvider
43 assertTrue(mDevicePolicyManager.isManagedProfile( in testIsManagedProfile()52 assertFalse(mDevicePolicyManager.isManagedProfile( in testIsDeviceOwner()
58 assertFalse(mDevicePolicyManager.isManagedProfile(getWho())); in assertDeviceOwner()
66 mUserManager, UserManager::isManagedProfile); in setUp()
809 boolean isManagedProfile = (mPrimaryUserId != mUserId); in testDelegatedCertInstaller()