Home
last modified time | relevance | path

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

12345678

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java147 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_noRunningActivity()
168 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity()
176 verify(mContext, never()).startActivityAsUser(any(Intent.class), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity()
203 verify(mContext).startActivityAsUser(eq(anotherIntent), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_runNewActivity()
231 verify(mContext).startActivityAsUser(eq(intentWithExtras), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_WithNewExtras()
262 verify(mContext).startActivityAsUser(eq(intentWithModifiedExtras), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_WithModifiedExtras()
294 verify(mContext).startActivityAsUser(eq(intentWithAdditionalExtras), any(Bundle.class), in testStartFixedActivityModeForDisplayAndUser_WithTwoExtras()
322 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
335 verify(mContext).startActivityAsUser(eq(intent), any(Bundle.class), in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
343 verify(mContext, never()).startActivityAsUser(any(Intent.class), any(Bundle.class), in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DVpnSettingsTest.java211 doNothing().when(mContext).startActivityAsUser(captor.capture(), any()); in clickVpn_VpnConnected_doesNotStartVpnLaunchIntent()
216 verify(mContext, never()).startActivityAsUser(any(), any()); in clickVpn_VpnConnected_doesNotStartVpnLaunchIntent()
230 doNothing().when(mContext).startActivityAsUser(captor.capture(), any()); in clickVpn_VpnDisconnected_startsVpnLaunchIntent()
235 verify(mContext).startActivityAsUser(captor.capture(), any()); in clickVpn_VpnDisconnected_startsVpnLaunchIntent()
254 doNothing().when(mContext).startActivityAsUser(captor.capture(), any()); in clickAdvancedVpn_VpnConnectedDisconnectDialogDisabled_startsAppLaunchIntent()
259 verify(mContext).startActivityAsUser(captor.capture(), any()); in clickAdvancedVpn_VpnConnectedDisconnectDialogDisabled_startsAppLaunchIntent()
278 doNothing().when(mContext).startActivityAsUser(captor.capture(), any()); in clickAdvancedVpn_VpnConnectedDisconnectDialogEnabled_doesNotStartAppLaunchIntent()
283 verify(mContext, never()).startActivityAsUser(any(), any()); in clickAdvancedVpn_VpnConnectedDisconnectDialogEnabled_doesNotStartAppLaunchIntent()
/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/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/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java180 verify(mContext).startActivityAsUser(argumentCaptor.capture(), nullable(UserHandle.class)); in launchPublicStorageIntent_nonNullBrowseIntent_settingsIntent()
195 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchImagesIntent_resolveActionViewNull_settingsIntent()
212 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchAudioIntent_resolveActionViewNull_settingsIntent()
245 verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(), in launchAppsIntent_forPersonal_settingsIntent()
265 verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(), in launchAppsIntent_forWork_settingsIntent()
294 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchDocumentsIntent_resolveActionViewNull_settingsIntent()
311 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchOtherIntent_resolveActionViewNull_settingsIntent()
325 verify(mFragment.getActivity()).startActivityAsUser(argumentCaptor.capture(), in launchGamesIntent_settingsIntent()
346 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchVideosIntent_resolveActionViewNull_settingsIntent()
/packages/apps/Car/Launcher/libs/hidden-apis-compat/hidden-apis-enabled/src/com/android/car/hidden/apis/
DHiddenApiAccess.java81 public static void startActivityAsUser(Context context, Intent intent, UserHandle userHandle) { in startActivityAsUser() method in HiddenApiAccess
82 context.startActivityAsUser(intent, userHandle); in startActivityAsUser()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/
DContextHelper.java55 public static void startActivityAsUser(@NonNull Context context, @NonNull Intent intent, in startActivityAsUser() method in ContextHelper
61 context.startActivityAsUser(intent, options, user); in startActivityAsUser()
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/shortcuts/
DAppInfoShortcutItem.kt25 import com.android.car.hidden.apis.HiddenApiAccess.startActivityAsUser
51 startActivityAsUser(context, intent, userHandle) in onClick()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallIntentProcessorTest.java119 verify(mContext, never()).startActivityAsUser(any(Intent.class), any(UserHandle.class)); in testNonPrivateSpaceCall_noConsentDialogShown()
139 verify(mContext, never()).startActivityAsUser(any(Intent.class), in testPrivateSpaceCall_isSelfManaged_noDialogShown()
165 verify(mContext, never()).startActivityAsUser(any(Intent.class), in testPrivateSpaceCall_isEmergency_noDialogShown()
184 verify(mContext).startActivityAsUser(any(Intent.class), eq(PRIVATE_SPACE_USERHANDLE)); in testPrivateSpaceCall_showConsentDialog()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultPrivateAutofillPreferenceController.kt63 mContext.startActivityAsUser(intent, UserHandle.CURRENT) in <lambda>()
64 } else mContext.startActivityAsUser(intent, userHandle) in <lambda>()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DContextCompat.java53 public void startActivityAsUser( in startActivityAsUser() method in ContextCompat
55 mContext.startActivityAsUser(intent, 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/TvSystemUI/src/com/android/systemui/tv/notifications/
DTvNotificationPanel.java97 mContext.startActivityAsUser(intent, UserHandle.SYSTEM); in openInternalNotificationPanel()
119 mContext.startActivityAsUser(intent, UserHandle.CURRENT); in startNotificationHandlerActivity()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppPermissionPreferenceTest.kt53 doNothing().whenever(mock).startActivityAsUser(any(), any()) in <lambda>()
71 verify(context).startActivityAsUser(capture(), eq(APP.userHandle)) in whenClick_startActivity()
DAppLocalePreferenceTest.kt110 doNothing().`when`(context).startActivityAsUser(any(), any()) in whenCanDisplayLocalUi_click_startActivity()
117 verify(context).startActivityAsUser(intentCaptor.capture(), eq(APP.userHandle)) in whenCanDisplayLocalUi_click_startActivity()
/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/apps/Settings/src/com/android/settings/language/
DOnDeviceRecognitionPreferenceController.java90 mContext.startActivityAsUser(preference.getIntent(), userHandles.get(0)); in show()
101 mContext.startActivityAsUser(intent, userHandles.get(position)); in createProfileDialogClickCallback()
/packages/services/Telecomm/src/com/android/server/telecom/
DUserUtil.java75 context.startActivityAsUser(intent, UserHandle.CURRENT); in showErrorDialogForRestrictedOutgoingCall()
117 context.startActivityAsUser(adminSupportIntent, userHandle); in hasOutgoingCallsUserRestriction()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DResolverWrapperActivity.java133 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in startActivityAsUser() method in ResolverWrapperActivity
134 super.startActivityAsUser(intent, options, user); 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/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/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java704 doNothing().when(mContext).startActivityAsUser(any(), any()); in callKey_shortPress_withoutEventHandler_launchesDialer()
709 verify(mContext).startActivityAsUser( in callKey_shortPress_withoutEventHandler_launchesDialer()
723 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_shortPress_withoutEventHandler_whenCallRinging_answersCall()
738 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_shortPress_withEventHandler_triggersEventHandler()
781 doNothing().when(mContext).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_redialsLastCall()
786 verify(mContext).startActivityAsUser( in callKey_longPress_withoutEventHandler_redialsLastCall()
795 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_redialsLastCall()
805 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_withNoLastCall_doesNothing()
820 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withoutEventHandler_whenCallRinging_answersCall()
833 verify(mContext, never()).startActivityAsUser(any(), any()); in callKey_longPress_withEventHandler_triggersEventHandler()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewTest.java129 verify(mContext).startActivityAsUser(mIntentCaptor.capture(), any()); in onClickManageButton_actionNotificationSettings()
141 verify(mContext).startActivityAsUser(mIntentCaptor.capture(), any()); in onClickManageButton_categoryDefault()
153 verify(mContext).startActivityAsUser(mIntentCaptor.capture(), any()); in onClickManageButton_flagsNewTaskAndMultipleTask()

12345678