Home
last modified time | relevance | path

Searched refs:isManagedProfile (Results 1 – 23 of 23) sorted by relevance

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java182 assertFalse(isManagedProfile()); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
207 assertTrue(isManagedProfile()); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
234 assertFalse(isManagedProfile()); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
259 assertTrue(isManagedProfile()); in testManagedProfileDuplicatedPhoneEmailContact_insertedAndfound()
280 assertFalse(isManagedProfile()); in testPrimaryProfileContactList_canListOnlyPrimaryContacts()
289 assertFalse(isManagedProfile()); in testPrimaryProfilePhoneList_canListOnlyPrimaryContacts()
298 assertFalse(isManagedProfile()); in testPrimaryProfileEnterpriseContactList_canListAllContacts()
309 assertFalse(isManagedProfile()); in testPrimaryProfileEnterprisePhoneList_canListAllContacts()
320 assertFalse(isManagedProfile()); in testPrimaryProfileEnterpriseContactList_canListOnlyPrimaryContacts()
329 assertFalse(isManagedProfile()); in testPrimaryProfileEnterprisePhoneList_canListOnlyPrimaryContacts()
[all …]
DCrossProfileCalendarTest.java69 assertThat(isManagedProfile()).isTrue(); in requireRunningOnManagedProfile()
72 private boolean isManagedProfile() { in isManagedProfile() method in CrossProfileCalendarTest
DTestCrossProfileViewEventActivity.java46 && isManagedProfile()) { in onStart()
66 private boolean isManagedProfile() { in isManagedProfile() method in TestCrossProfileViewEventActivity
DProfileTimeoutTestHelper.java65 assertTrue(mDpm.isManagedProfile(ADMIN_COMPONENT)); in assertProfileOwner()
DBaseManagedProfileTest.java58 assertTrue(mDevicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in setUp()
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java170 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
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DManagementTest.java43 assertTrue(mDevicePolicyManager.isManagedProfile( in testIsManagedProfile()
52 assertFalse(mDevicePolicyManager.isManagedProfile( in testIsDeviceOwner()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserInfo.kt84 fun isManagedProfile(): Boolean = proxy.isManagedProfile() method in com.android.bedstead.nene.users.UserInfo
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DManagedProfileTest.java103 assertThat(sDeviceState.dpc().userManager().isManagedProfile()).isTrue(); in isManagedProfile_runOnWorkProfile_returnsTrue()
110 assertThat(sUserManager.isManagedProfile(TestApis.users().instrumented().id())) in isManagedProfile_runOnUser_returnsFalse()
DCrossProfileAppsTest.java264 sCrossProfileApps.isManagedProfile(sDeviceState.otherUser().userHandle()); in isManagedProfile_targetIsInvalid_throwsSecurityException()
279 assertThat(sCrossProfileApps.isManagedProfile(sDeviceState.otherUser().userHandle())) in isManagedProfile_managedProfile_returnsTrue()
296 assertThat(sCrossProfileApps.isManagedProfile(sDeviceState.otherUser().userHandle())) in isManagedProfile_notManagedProfile_returnsFalse()
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/ManagedProfileOwnerApp/src/com/android/cts/managedprofile/owner/app/
DManagedProfileOwnerAppTest.java58 assertThat(mDevicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)).isTrue(); in setUp()
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java66 mUserManager, UserManager::isManagedProfile); in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java114 .that(mDevicePolicyManager.isManagedProfile(admin)).isFalse(); in assertDeviceOwner()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DOrgOwnedProfileOwnerParentTest.java64 assertTrue(devicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in setUp()
/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DEnterpriseContactsMultiUserTest.java107 if (userInfo.isManagedProfile()) { in setUpEnterpriseProfile()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserManagerTest.java583 assertThat(umOfProfile.isManagedProfile()).isTrue(); in testManagedProfile()
584 assertThat(umOfProfile.isManagedProfile(userHandle.getIdentifier())).isTrue(); in testManagedProfile()
724 assertThat(umOfSys.isManagedProfile()).isFalse(); in testSystemUser()
725 assertThat(umOfSys.isManagedProfile(UserHandle.USER_SYSTEM)).isFalse(); in testSystemUser()
/cts/common/device-side/bedstead/testapisreflection/java/apis/
Dallowlisted-test-methods.txt48 android.content.pm.UserInfo,public boolean isManagedProfile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java254 && mDevicePolicyManager.isManagedProfile(mAdminReceiverComponent)) { in onCreate()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java66 doAnswer(answer).when(spy).isManagedProfile(any()); in getWrapper()
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountRegistrarTest.java949 if (userManager.isManagedProfile(userHandle.getIdentifier())) { in hasWorkProfile()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dtest-current.txt1178 method public boolean isManagedProfile();
Dsystem-current.txt11267 …Manifest.permission.INTERACT_ACROSS_USERS}, conditional=true) public boolean isManagedProfile(int);
Dcurrent.txt8120 method public boolean isManagedProfile(@NonNull android.content.ComponentName);
12397 …ndroid.app.admin.flags.allow_querying_profile_type") public boolean isManagedProfile(@NonNull andr…
34020 method public boolean isManagedProfile();