Home
last modified time | relevance | path

Searched refs:mCrossProfileApps (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsStartActivityTest.java69 private CrossProfileApps mCrossProfileApps; field in CrossProfileAppsStartActivityTest
78 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in setupCrossProfileApps()
110 mCrossProfileApps.startActivity(intent, mTargetUser, /* callingActivity= */ null); in testCannotStartActivityByIntentWithNoPermissions()
120 mCrossProfileApps, in testCanStartActivityByIntentWithInteractAcrossProfilesPermission()
140 mCrossProfileApps, in testCanStartActivityByIntentWithInteractAcrossUsersPermission()
160 mCrossProfileApps, in testCanStartActivityByIntentWithInteractAcrossUsersFullPermission()
180 mCrossProfileApps, in testCannotStartActivityWithImplicitIntent()
192 mCrossProfileApps, in testCanStartMainActivityByIntent()
193 crossProfileApps -> mCrossProfileApps.startActivity( in testCanStartMainActivityByIntent()
214 mCrossProfileApps, in testCanStartMainActivityByIntent_withOptionsBundle()
[all …]
DCrossProfileAppsTargetUserTest.java56 private CrossProfileApps mCrossProfileApps; field in CrossProfileAppsTargetUserTest
65 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in setupCrossProfileApps()
93 List<UserHandle> targetProfiles = mCrossProfileApps.getTargetUserProfiles(); in testTargetUserIsIngetTargetUserProfiles()
102 mCrossProfileApps.startMainActivity( in testCanStartMainActivity()
118 mCrossProfileApps.startMainActivity( in testCannotStartNotExportedActivity()
124 mCrossProfileApps.startMainActivity( in testCannotStartNonMainActivity()
130 mCrossProfileApps.startMainActivity(new ComponentName( in testCannotStartActivityInOtherPackage()
139 assertNotNull(mCrossProfileApps.getProfileSwitchingLabel(mTargetUser)); in testGetProfileSwitchingLabel()
144 assertNotNull(mCrossProfileApps.getProfileSwitchingIconDrawable(mTargetUser)); in testGetProfileSwitchingIconDrawable()
150 mCrossProfileApps.startMainActivity( in testStartMainActivity_noAsserts()
[all …]
DCrossProfileAppsPermissionToInteractTest.java67 private final CrossProfileApps mCrossProfileApps = field in CrossProfileAppsPermissionToInteractTest
79 assertThat(mCrossProfileApps.canRequestInteractAcrossProfiles()).isFalse(); in testCanRequestInteractAcrossProfiles_returnsFalse()
84 assertThat(mCrossProfileApps.canRequestInteractAcrossProfiles()).isTrue(); in testCanRequestInteractAcrossProfiles_returnsTrue()
91 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isTrue(); in testCanInteractAcrossProfiles_withAppOpEnabled_returnsTrue()
103 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isTrue(); in testCanInteractAcrossProfiles_withCrossProfilesPermission_returnsTrue()
116 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isTrue(); in testCanInteractAcrossProfiles_withCrossUsersPermission_returnsTrue()
129 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isTrue(); in testCanInteractAcrossProfiles_withCrossUsersFullPermission_returnsTrue()
138 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isFalse(); in testCanInteractAcrossProfiles_withAppOpDisabledOnCallingProfile_returnsFalse()
146 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isFalse(); in testCanInteractAcrossProfiles_withAppOpDisabledOnOtherProfiles_returnsFalse()
153 assertThat(mCrossProfileApps.canInteractAcrossProfiles()).isFalse(); in testCanInteractAcrossProfiles_withNoOtherProfile_returnsFalse()
[all …]
DCrossProfileAppsNonTargetUserTest.java42 private CrossProfileApps mCrossProfileApps; field in CrossProfileAppsNonTargetUserTest
49 mCrossProfileApps = mContext.getSystemService(CrossProfileApps.class); in setupCrossProfileApps()
63 List<UserHandle> targetProfiles = mCrossProfileApps.getTargetUserProfiles(); in testTargetUserIsNotInGetTargetProfiles()
69 mCrossProfileApps.startMainActivity( in testCannotStartActivity()
75 mCrossProfileApps.getProfileSwitchingLabel(mTargetUser); in testCannotGetProfileSwitchingLabel()
80 mCrossProfileApps.getProfileSwitchingIconDrawable(mTargetUser); in testCannotGetProfileSwitchingIconDrawable()
/cts/apps/CrossProfileTestApp/src/com/android/cts/crossprofilepermissioncontrol/
DTestActivity.java35 private CrossProfileApps mCrossProfileApps; field in TestActivity
47 mCrossProfileApps = getSystemService(CrossProfileApps.class); in onCreate()
52 startActivity(mCrossProfileApps.createRequestInteractAcrossProfilesIntent()); in onCreate()
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsWithNoPermissionTest/src/com/android/cts/crossprofilenopermissionappstest/
DCrossProfileAppsWithNoPermission.java33 private final CrossProfileApps mCrossProfileApps = field in CrossProfileAppsWithNoPermission
38 assertThat(mCrossProfileApps.canRequestInteractAcrossProfiles()).isFalse(); in testCanRequestInteractAcrossProfiles_permissionNotRequested_returnsFalse()