/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/ |
D | FixedActivityServiceTest.java | 144 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/ |
D | ProvisioningIntentProviderTest.java | 117 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/ |
D | TestActivity.java | 75 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/ |
D | StorageItemPreferenceControllerTest.java | 164 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/ |
D | CarInputServiceTest.java | 477 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/ |
D | StorageFileCategoryPreferenceControllerTest.java | 120 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/ |
D | ContextHelper.java | 54 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/ |
D | ActionDisabledLearnMoreButtonLauncherImpl.java | 76 context.startActivityAsUser(intent, mPreferredUser); in launchShowAdminPolicies() 82 context.startActivityAsUser(intent, adminUser); in launchShowAdminPolicies()
|
/packages/apps/Settings/src/com/android/settings/privacy/ |
D | EnableContentCaptureWithServiceSettingsPreferenceController.java | 104 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/ |
D | ActionDisabledLearnMoreButtonLauncherImplTest.java | 108 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/ |
D | FastPairHalfSheetManagerTest.java | 103 .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/ |
D | ResolverWrapperActivity.java | 155 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/ |
D | CarNotificationViewTest.java | 127 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/ |
D | UserId.java | 192 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/ |
D | TransitionHelper.java | 148 activity.startActivityAsUser(intent, userHandle); in startActivityAsUserWithTransition() 152 mHandler.post(() -> activity.startActivityAsUser(intent, options, userHandle)); in startActivityAsUserWithTransition()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomBroadcastIntentProcessor.java | 261 mContext.startActivityAsUser(callIntent, userHandle); in sendSmsIntent() 272 mContext.startActivityAsUser(callIntent, userHandle); in sendCallBackIntent()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiDialogManager.java | 184 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/ |
D | DashboardFeatureProviderImplTest.java | 244 .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/ |
D | CustomActivity.java | 25 public void startActivityAsUser(Intent intent, UserHandle user) {} in startActivityAsUser() method in CustomActivity
|
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/ |
D | CustomActivity.java | 25 public void startActivityAsUser(Intent intent, UserHandle user) {} in startActivityAsUser() method in CustomActivity
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceController.java | 460 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/ |
D | BrightnessPreference.java | 34 getContext().startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG), in onClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowActivity.java | 31 protected void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser() method in ShadowActivity
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 157 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/ |
D | DashboardFeatureProviderImpl.java | 457 activity.startActivityAsUser(intent, tile.userHandle.get(0)); 464 activity.startActivityAsUser(intent, userHandle); 473 activity.startActivityAsUser(intent, resolvableUsers.get(0));
|