Searched refs:mCrossProfileApps (Results 1 – 6 of 6) sorted by relevance
69 private CrossProfileApps mCrossProfileApps; field in CrossProfileAppsStartActivityTest78 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 …]
56 private CrossProfileApps mCrossProfileApps; field in CrossProfileAppsTargetUserTest65 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 …]
67 private final CrossProfileApps mCrossProfileApps = field in CrossProfileAppsPermissionToInteractTest79 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 …]
42 private CrossProfileApps mCrossProfileApps; field in CrossProfileAppsNonTargetUserTest49 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()
35 private CrossProfileApps mCrossProfileApps; field in TestActivity47 mCrossProfileApps = getSystemService(CrossProfileApps.class); in onCreate()52 startActivity(mCrossProfileApps.createRequestInteractAcrossProfilesIntent()); in onCreate()
33 private final CrossProfileApps mCrossProfileApps = field in CrossProfileAppsWithNoPermission38 assertThat(mCrossProfileApps.canRequestInteractAcrossProfiles()).isFalse(); in testCanRequestInteractAcrossProfiles_permissionNotRequested_returnsFalse()