Home
last modified time | relevance | path

Searched refs:startActivityAsUser (Results 1 – 25 of 118) sorted by relevance

12345

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java144 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_noRunningActivity()
165 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity()
173 verify(mContext, never()).startActivityAsUser(any(Intent.class), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity()
200 verify(mContext).startActivityAsUser(eq(anotherIntent), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_runNewActivity()
228 verify(mContext).startActivityAsUser(eq(intentWithExtras), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_WithNewExtras()
259 verify(mContext).startActivityAsUser(eq(intentWithModifiedExtras), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_WithModifiedExtras()
291 verify(mContext).startActivityAsUser(eq(intentWithAdditionalExtras), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_WithTwoExtras()
319 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
332 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
340 verify(mContext, never()).startActivityAsUser(any(Intent.class), any(Bundle.class), in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DProvisioningIntentProviderTest.java117 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched()
131 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched()
146 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched()
163 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched()
181 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched()
193 verify(mContext, never()).startActivityAsUser(any(), any()); in maybeLaunchDpc_cannotResolveIntent()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestActivity.java75 public TestEventListener<Pair<Intent, UserHandle>> startActivityAsUser; field in TestActivity
99 startActivityAsUser = new TestEventListener<>(); in init()
132 public final void startActivityAsUser(Intent intent, UserHandle userHandle) { in startActivityAsUser() method in TestActivity
136 startActivityAsUser.accept(new Pair<>(intent, userHandle)); in startActivityAsUser()
145 Pair<Intent, UserHandle> intentUserHandle = startActivityAsUser.getLastValue(); in assertActivityAsUserStarted()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java164 verify(mContext).startActivityAsUser(argumentCaptor.capture(), nullable(UserHandle.class)); in launchPublicStorageIntent_nonNullBrowseIntent_settingsIntent()
179 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchImagesIntent_resolveActionViewNull_settingsIntent()
196 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchAudioIntent_resolveActionViewNull_settingsIntent()
227 verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(), in launchAppsIntent_forPersonal_settingsIntent()
247 verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(), in launchAppsIntent_forWork_settingsIntent()
276 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchDocumentsAndOtherIntent_resolveActionViewNull_settingsIntent()
290 verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(), in launchGamesIntent_settingsIntent()
311 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchVideosIntent_resolveActionViewNull_settingsIntent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java477 doNothing().when(mContext).startActivityAsUser(any(), any()); in callKey_shortPress_withoutEventHandler_launchesDialer()
482 verify(mContext).startActivityAsUser( in callKey_shortPress_withoutEventHandler_launchesDialer()
496 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_shortPress_withoutEventHandler_whenCallRinging_answersCall()
511 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_shortPress_withEventHandler_triggersEventHandler()
554 doNothing().when(mContext).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_redialsLastCall()
559 verify(mContext).startActivityAsUser( in callKey_longPress_withoutEventHandler_redialsLastCall()
568 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_redialsLastCall()
578 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_withNoLastCall_doesNothing()
593 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_whenCallRinging_answersCall()
606 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withEventHandler_triggersEventHandler()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageFileCategoryPreferenceControllerTest.java120 verify(mContext, never()).startActivityAsUser(mMockIntent, mUserHandle); in handlePreferenceClicked_currentUserAndNoActivityToHandleIntent_doesNotThrow()
129 doNothing().when(mContext).startActivityAsUser(mMockIntent, mUserHandle); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
134 verify(mContext).startActivityAsUser(mMockIntent, mUserHandle); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/
DContextHelper.java54 public static void startActivityAsUser(@NonNull Context context, @NonNull Intent intent, in startActivityAsUser() method in ContextHelper
60 context.startActivityAsUser(intent, options, user); in startActivityAsUser()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledLearnMoreButtonLauncherImpl.java76 context.startActivityAsUser(intent, mPreferredUser); in launchShowAdminPolicies()
82 context.startActivityAsUser(intent, adminUser); in launchShowAdminPolicies()
/packages/apps/Settings/src/com/android/settings/privacy/
DEnableContentCaptureWithServiceSettingsPreferenceController.java104 mContext.startActivityAsUser(intent, userHandles.get(0)); in show()
109 mContext.startActivityAsUser(intent, userHandles.get(position)); in show()
/packages/apps/Settings/tests/unit/src/com/android/settings/enterprise/
DActionDisabledLearnMoreButtonLauncherImplTest.java108 verify(mActivity).startActivityAsUser(mIntentCaptor.capture(), eq(ENFORCED_ADMIN_USER)); in launchShowAdminPolicies_works()
116 verify(mActivity).startActivityAsUser(mIntentCaptor.capture(), eq(CONTEXT_USER)); in showHelpPage_works()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/fastpair/halfsheet/
DFastPairHalfSheetManagerTest.java103 .startActivityAsUser(intentArgumentCaptor.capture(), eq(UserHandle.CURRENT)); in verifyFastPairHalfSheetManagerBehavior()
134 .startActivityAsUser(intentArgumentCaptor.capture(), eq(UserHandle.CURRENT)); in verifyFastPairHalfSheetManagerHalfSheetApkNotValidBehavior()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DResolverWrapperActivity.java155 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in startActivityAsUser() method in ResolverWrapperActivity
156 super.startActivityAsUser(intent, options, user); in startActivityAsUser()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewTest.java127 verify(mContext).startActivityAsUser(mIntentCaptor.capture(), any()); in onClickManageButton_actionNotificationSettings()
138 verify(mContext).startActivityAsUser(mIntentCaptor.capture(), any()); in onClickManageButton_categoryDefault()
149 verify(mContext).startActivityAsUser(mIntentCaptor.capture(), any()); in onClickManageButton_flagsNewTaskAndMultipleTask()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DUserId.java192 public void startActivityAsUser(Context context, Intent intent) { in startActivityAsUser() method in UserId
193 context.startActivityAsUser(intent, mUserHandle); in startActivityAsUser()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DTransitionHelper.java148 activity.startActivityAsUser(intent, userHandle); in startActivityAsUserWithTransition()
152 mHandler.post(() -> activity.startActivityAsUser(intent, options, userHandle)); in startActivityAsUserWithTransition()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomBroadcastIntentProcessor.java261 mContext.startActivityAsUser(callIntent, userHandle); in sendSmsIntent()
272 mContext.startActivityAsUser(callIntent, userHandle); in sendCallBackIntent()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDialogManager.java184 mContext.startActivityAsUser(mIntent, in launchDialog()
193 mContext.startActivityAsUser(mIntent, UserHandle.CURRENT); in launchDialog()
225 mContext.startActivityAsUser(dismissIntent, UserHandle.CURRENT); in dismissDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java244 .startActivityAsUser(any(Intent.class), any(UserHandle.class)); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
262 .startActivityAsUser(any(Intent.class), any(UserHandle.class)); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog()
633 .startActivityAsUser(any(Intent.class), argument.capture()); in openTileIntent_profileSelectionDialog_validUserHandleShouldNotShow()
652 .startActivityAsUser(any(Intent.class), any(UserHandle.class)); in openTileIntent_profileSelectionDialog_invalidUserHandleShouldShow()
675 .startActivityAsUser(any(Intent.class), argument.capture()); in openTileIntent_profileSelectionDialog_unresolvableWorkProfileIntentShouldNotShow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DCustomActivity.java25 public void startActivityAsUser(Intent intent, UserHandle user) {} in startActivityAsUser() method in CustomActivity
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DCustomActivity.java25 public void startActivityAsUser(Intent intent, UserHandle user) {} in startActivityAsUser() method in CustomActivity
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java460 mContext.startActivityAsUser(intent, new UserHandle(mUserId)); in launchPublicStorageIntent()
466 mContext.startActivityAsUser(intent, new UserHandle(mUserId)); in launchActivityWithUri()
519 mContext.startActivityAsUser(intent, new UserHandle(mUserId)); in launchTrashIntent()
/packages/apps/Settings/src/com/android/settings/
DBrightnessPreference.java34 getContext().startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG), in onClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowActivity.java31 protected void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser() method in ShadowActivity
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java157 root.userId.startActivityAsUser(mActivity, intent); in openSettings()
292 doc.userId.startActivityAsUser(mActivity, intent); in viewInOwner()
549 doc.userId.startActivityAsUser(mActivity, intent); in showChooserForDoc()
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java457 activity.startActivityAsUser(intent, tile.userHandle.get(0));
464 activity.startActivityAsUser(intent, userHandle);
473 activity.startActivityAsUser(intent, resolvableUsers.get(0));

12345