Home
last modified time | relevance | path

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

1234567891011

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DExerciseRouteRequestTest.kt91 ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) { in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked()
114 ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) { in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission()
137 ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) { in requestRoute_showsDialog_clickDeny_returnsNull_permissionRemainsRevoked()
157 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_ownSession_writeRouteGranted_readRoutesDenied_returnsRoute()
178 ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) { in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_notUserFixed_showsDialog()
205 ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_userFixed_returnsNull()
227 ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_ownSession_writeRouteDenied_readRoutesGranted_returnsRoute()
247 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_readRoutesGranted_doesNotShowDialog_returnsRoute()
265 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_sessionWithoutRoute_returnsNull()
279 val result = ROUTE_READER_WRITER_APP.startActivityForResult(requestIntent) in requestRoute_nonExistingSession_returnsNull()
[all …]
/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/services/Car/tests/CarFrameworkPackageStubsTest/src/com/android/car/frameworkpackagestubs/test/
DStubsTest.java135 int result = startActivityForResult(intent); in checkIfHandleByStub()
142 private int startActivityForResult(Intent intent) { in startActivityForResult() method in StubsTest
146 getResultActivity.startActivityForResult(intent, 0); in startActivityForResult()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstallerMain.java151 startActivityForResult(intent, REQUEST_CONFIRM_CREDENTIALS); in confirmDeviceCredential()
197 startActivityForResult(installIntent, REQUEST_INSTALL); in startInstallActivity()
243 startActivityForResult(intent, REQUEST_INSTALL); in startWifiInstallActivity()
256 startActivityForResult(openIntent, REQUEST_OPEN_DOCUMENT); in startOpenDocumentActivity()
/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/SettingsIntelligence/src/com/android/settings/intelligence/search/
DIntentSearchViewHolder.java66 fragment.startActivityForResult(intent, REQUEST_CODE_NO_OP); in onBind()
74 fragment.startActivityForResult(intent, REQUEST_CODE_NO_OP); in onBind()
/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/Car/Settings/tests/unit/src/com/android/car/settings/common/
DSettingsFragmentTestCase.java203 assertThrows(() -> mFragment.startActivityForResult(new Intent(), 0xffff, in startActivityForResult_largeRequestCode_throwsError()
213 mFragment.startActivityForResult(new Intent(), i, in startActivityForResult_tooManyRequests_throwsError()
255 mFragment.startActivityForResult(intent, reqCode, callback); in onActivityResult_hasValidRequestCode_triggersOnActivityResult()
270 mFragment.startActivityForResult(intent, reqCode, callback); in onActivityResult_wrongRequestCode_doesntTriggerOnActivityResult()
/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/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkFragmentTest.java71 doNothing().when(mFragment).startActivityForResult(any(), anyInt()); in setUp()
79 verify(mFragment).startActivityForResult(captor.capture(), eq(REQUEST_CODE)); in onResetButtonPressed_launchesCheckLockActivity()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DTestAppProxy.java172 public Instrumentation.ActivityResult startActivityForResult(Intent intent) throws Exception { in startActivityForResult() method in TestAppProxy
173 return startActivityForResult(intent, null); in startActivityForResult()
191 public Instrumentation.ActivityResult startActivityForResult(Intent intent, Runnable runnable) in startActivityForResult() method in TestAppProxy
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSubTest.java162 doNothing().when(mFragment).startActivityForResult(any(Intent.class), anyInt()); in setUp()
330 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment()
346 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity()
375 verify(mFragment, never()).startActivityForResult(any(Intent.class), anyInt()); in onSwitchChanged_disableSetting_shouldNotLaunchWfcDisclaimerFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAddAccountWithTypeActivity.java75 startActivityForResult(new Intent(addAccountIntent), REQUEST_ADD_ACCOUNT);
135 startActivityForResult(i, REQUEST_CHOOSE_ACCOUNT_TYPE); in startAccountTypePicker()
/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/biometrics/activeunlock/
DActiveUnlockRequireBiometricSetup.java127 startActivityForResult(intent, BIOMETRIC_ENROLL_REQUEST); in onNextButtonClick()
140 startActivityForResult(activeUnlockIntent, ACTIVE_UNLOCK_REQUEST); in onActivityResult()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java113 startActivityForResult(intent, REQUEST_PICK_CONTACT); in onCreate()
217 startActivityForResult(intent, REQUEST_CROP_PHOTO); in onActivityResult()
376 startActivityForResult(intent, REQUEST_PICK_DEFAULT_ACCOUNT_FOR_NEW_CONTACT); in selectAccountAndCreateContact()
/packages/apps/Provision/src/com/android/provision/
DDefaultActivity.java143 startActivityForResult(intent, REQUEST_CODE_STEP1); in provisionDeviceOwner()
182 startActivityForResult(intent, requestCodeStep2); in onProvisioningStep1Result()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DDeviceAdminAddFragmentTest.java403 doNothing().when(mSpiedFragment).startActivityForResult(any(Intent.class), anyInt()); in testUninstallOnClickListener_activeAdmin()
409 verify(mSpiedFragment).startActivityForResult(intentArgumentCaptor.capture(), in testUninstallOnClickListener_activeAdmin()
425 doNothing().when(mSpiedFragment).startActivityForResult(any(Intent.class), anyInt()); in testUninstallOnClickListener_inactiveAdmin()
431 verify(mSpiedFragment).startActivityForResult(intentArgumentCaptor.capture(), in testUninstallOnClickListener_inactiveAdmin()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/help/
DSupportFeatureProviderImpl.java34 activity.startActivityForResult(intent, 0); in startSupport()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/help/
DSupportFeatureProviderImpl.java34 activity.startActivityForResult(intent, 0); in startSupport()
/packages/apps/Camera2/src/com/android/camera/
DProxyLauncher.java32 startActivityForResult(intent, 0); in onCreate()
/packages/apps/Contacts/src/com/android/contacts/compat/telecom/
DTelecomManagerCompat.java46 activity.startActivityForResult(intent, 0); in placeCall()

1234567891011