Home
last modified time | relevance | path

Searched refs:startActivityForResult (Results 1 – 25 of 254) sorted by relevance

1234567891011

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DTestActivity.java31 public TestEventListener<Pair<Intent, Integer>> startActivityForResult; field in TestActivity
44 startActivityForResult = new TestEventListener<>(); in init()
53 public final void startActivityForResult(@RequiresPermission Intent intent, int requestCode) { in startActivityForResult() method in TestActivity
54 startActivityForResult.accept(Pair.create(intent, requestCode)); in startActivityForResult()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/
DRingtonePreferenceControllerTest.java103 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_listenerTriggered()
112 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkDefaultUri()
122 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkDialogTitle()
133 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkRingtoneType()
144 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkShowSilent()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java79 startActivityForResult(intent, REQUEST_WIDGET_TYPE); in onCreate()
160 startActivityForResult(request, REQUEST_CROP_IMAGE); in setChoosenPhoto()
192 startActivityForResult(intent, REQUEST_CHOOSE_ALBUM); in setWidgetType()
206 startActivityForResult(request, REQUEST_GET_PHOTO); in setWidgetType()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivity.java285 startActivityForResult(encryptIntent, ENCRYPT_DEVICE_REQUEST_CODE); in requestEncryption()
292 startActivityForResult(intent, WIFI_REQUEST_CODE); in requestWifiPick()
309 startActivityForResult(changeLauncherIntent, CHANGE_LAUNCHER_REQUEST_CODE); in requestLauncherPick()
333 startActivityForResult(intentGetMode, GET_PROVISIONING_MODE_REQUEST_CODE); in maybeShowAdminGetProvisioningModeScreen()
365 startActivityForResult(intent, ADMIN_INTEGRATED_FLOW_PREPARE_REQUEST_CODE); in prepareAdminIntegratedFlow()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DSettingsFragmentTest.java160 assertThrows(() -> mFragment.startActivityForResult(new Intent(), 0xffff, in startActivityForResult_largeRequestCode_throwsError()
169 mFragment.startActivityForResult(new Intent(), i, in startActivityForResult_tooManyRequests_throwsError()
207 mFragment.startActivityForResult(new Intent(), reqCode, callback); in onActivityResult_hasValidRequestCode_triggersOnActivityResult()
220 mFragment.startActivityForResult(new Intent(), reqCode, in onActivityResult_wrongRequestCode_doesntTriggerOnActivityResult()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstallerMain.java154 startActivityForResult(intent, REQUEST_CONFIRM_CREDENTIALS); in confirmDeviceCredential()
203 startActivityForResult(installIntent, REQUEST_INSTALL); in startInstallActivity()
251 startActivityForResult(intent, REQUEST_INSTALL); in startWifiInstallActivity()
264 startActivityForResult(openIntent, REQUEST_OPEN_DOCUMENT); in startOpenDocumentActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSubTest.java149 doNothing().when(mFragment).startActivityForResult(any(Intent.class), anyInt()); in setUp()
295 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment()
311 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity()
340 verify(mFragment, never()).startActivityForResult(any(Intent.class), anyInt()); in onSwitchChanged_disableSetting_shouldNotLaunchWfcDisclaimerFragment()
/packages/apps/Gallery/src/com/android/camera/
DWallpaper.java43 startActivityForResult(intent, CROP_DONE); in onCreate()
49 startActivityForResult(intent, PHOTO_PICKED); in onCreate()
/packages/apps/TV/src/com/android/tv/
DLauncherActivity.java51 baseActivity.startActivityForResult( in startActivitySafe()
74 startActivityForResult(intent, REQUEST_START_ACTIVITY); in onCreate()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DIntentUtils.java53 activity.startActivityForResult(startIntent, requestCode); in startExternalActivityForResult()
65 fragment.startActivityForResult(startIntent, requestCode); in startExternalActivityForResult()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAddAccountWithTypeActivity.java55 startActivityForResult(addAccountIntent, REQUEST_ADD_ACCOUNT);
94 startActivityForResult(i, REQUEST_CHOOSE_ACCOUNT_TYPE); in startAccountTypePicker()
/packages/apps/Messaging/src/com/android/messaging/util/
DChangeDefaultSmsAppHelper.java119 mFragment.startActivityForResult(intent, REQUEST_SET_DEFAULT_SMS_APP); in run()
121 mActivity.startActivityForResult(intent, REQUEST_SET_DEFAULT_SMS_APP); in run()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java113 startActivityForResult(intent, REQUEST_PICK_CONTACT); in onCreate()
215 startActivityForResult(intent, REQUEST_CROP_PHOTO); in onActivityResult()
373 startActivityForResult(intent, REQUEST_PICK_DEFAULT_ACCOUNT_FOR_NEW_CONTACT); in selectAccountAndCreateContact()
/packages/apps/Settings/src/com/android/settings/users/
DRestrictedProfileSettings.java93 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() method in RestrictedProfileSettings
95 super.startActivityForResult(intent, requestCode); in startActivityForResult()
DEditUserPhotoController.java219 mFragment.startActivityForResult(intent, REQUEST_CODE_TAKE_PHOTO); in takePhoto()
226 mFragment.startActivityForResult(intent, REQUEST_CODE_CHOOSE_PHOTO); in choosePhoto()
260 mFragment.startActivityForResult(intent, REQUEST_CODE_CROP_PHOTO); in cropPhoto()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DRestrictedProfileSettings.java93 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() method in RestrictedProfileSettings
95 super.startActivityForResult(intent, requestCode); in startActivityForResult()
DEditUserPhotoController.java219 mFragment.startActivityForResult(intent, REQUEST_CODE_TAKE_PHOTO); in takePhoto()
226 mFragment.startActivityForResult(intent, REQUEST_CODE_CHOOSE_PHOTO); in choosePhoto()
260 mFragment.startActivityForResult(intent, REQUEST_CODE_CROP_PHOTO); in cropPhoto()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAppsPickerEntryBasePreferenceControllerTest.java151 doNothing().when(mContext).startActivityForResult( in performButtonClick_launchesIntent()
157 verify(mContext).startActivityForResult( in performButtonClick_launchesIntent()
/packages/apps/Settings/src/com/android/settings/wifi/
DAddNetworkFragment.java107 startActivityForResult(WifiDppUtils.getEnrolleeQrCodeScannerIntent(ssid), in onClick()
111 startActivityForResult(WifiDppUtils.getEnrolleeQrCodeScannerIntent(ssid), in onClick()
/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntentsImpl.java243 fragment.startActivityForResult(intent, REQUEST_PICK_MEDIA_FROM_DOCUMENT_PICKER); in launchDocumentImagePicker()
252 fragment.startActivityForResult(intent, REQUEST_PICK_CONTACT_CARD); in launchContactCardPicker()
264 activity.startActivityForResult(intent, 0); in launchPeopleAndOptionsActivity()
315 activity.startActivityForResult(intent, requestCode); in launchAttachmentChooserActivity()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java669 mActivity.startActivityForResult(intent, REQUEST_EDIT); in launchTinyPlanet()
695 ((Activity) mActivity).startActivityForResult(Intent.createChooser(intent, null), in launchPhotoEditor()
717 ((Activity) mActivity).startActivityForResult(Intent.createChooser(intent, null), in launchSimpleEditor()
1051 activity.startActivityForResult(intent, PicasaSource.isPicasaImage(current) in onItemSelected()
1061 mActivity.startActivityForResult(intent, REQUEST_TRIM); in onItemSelected()
1229 activity.startActivityForResult(intent, REQUEST_PLAY_VIDEO); in playVideo()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEditUserPhotoController.java219 mFragment.startActivityForResult(intent, REQUEST_CODE_TAKE_PHOTO); in takePhoto()
226 mFragment.startActivityForResult(intent, REQUEST_CODE_CHOOSE_PHOTO); in choosePhoto()
257 mFragment.startActivityForResult(intent, REQUEST_CODE_CROP_PHOTO); in cropPhoto()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/
DBiometricEnrollIntroduction.java192 startActivityForResult(intent, CHOOSE_LOCK_GENERIC_REQUEST); in launchChooseLock()
203 startActivityForResult(intent, BIOMETRIC_FIND_SENSOR_REQUEST); in launchNextEnrollingActivity()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollIntroduction.java211 startActivityForResult(intent, CHOOSE_LOCK_GENERIC_REQUEST); in launchChooseLock()
223 startActivityForResult(intent, BIOMETRIC_FIND_SENSOR_REQUEST); in launchNextEnrollingActivity()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/ui/
DTrustedDeviceActivity.java319 startActivityForResult(confirmIntent, ACTIVATE_TOKEN_REQUEST_CODE); in validateCredentials()
361 startActivityForResult(intent, CREATE_LOCK_REQUEST_CODE); in createScreenLock()
374 startActivityForResult(intent, RETRIEVE_ASSOCIATED_DEVICE_REQUEST_CODE); in retrieveAssociatedDevice()

1234567891011