Home
last modified time | relevance | path

Searched refs:RESULT_OK (Results 1 – 25 of 156) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java54 apr.send(this, RESULT_OK, res); in onCreate()
98 setResult(RESULT_OK, res); in onResume()
115 setResult(RESULT_OK); in onActivityResult()
128 if (resultCode != RESULT_OK) { in onActivityResult()
DTestedActivity.java60 setResult(RESULT_OK);
71 setResult(RESULT_OK); in queueIdle()
DTestedScreen.java51 setResult(RESULT_OK, (new Intent()).setAction( in onCreate()
104 setResult(RESULT_OK);
121 setResult(RESULT_OK); in queueIdle()
DClearTop.java43 setResult(RESULT_OK); in onNewIntent()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAvatarPhotoControllerTest.java123 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); in takePhotoIsFollowedByCrop()
150 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); in takePhotoIsFollowedByCropWhenTakePhotoUriReturned()
164 REQUEST_CODE_CHOOSE_PHOTO, Activity.RESULT_OK, intent); in choosePhotoIsFollowedByCrop()
191 REQUEST_CODE_CHOOSE_PHOTO, Activity.RESULT_OK, intent); in choosePhotoIsFollowedByCropWhenTakePhotoUriReturned()
201 mController.onActivityResult(REQUEST_CODE_CROP_PHOTO, Activity.RESULT_OK, intent); in cropPhotoResultIsReturnedIfResultOkAndContent()
217 mController.onActivityResult(REQUEST_CODE_CROP_PHOTO, Activity.RESULT_OK, intent); in cropPhotoResultIsNotReturnedIfResultNotContent()
229 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); in cropDoesNotUseTakePhotoUri()
247 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); in internalCropUsedIfNoSystemCropperFound()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccCardController.java331 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getAllProfiles()
381 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getProfile()
466 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getEnabledProfile()
517 callback.onComplete(EuiccCardManager.RESULT_OK); in disableProfile()
571 callback.onComplete(EuiccCardManager.RESULT_OK, profile); in switchToProfile()
635 callback.onComplete(EuiccCardManager.RESULT_OK); in setNickname()
688 callback.onComplete(EuiccCardManager.RESULT_OK); in deleteProfile()
741 callback.onComplete(EuiccCardManager.RESULT_OK); in resetMemory()
791 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getDefaultSmdpAddress()
841 callback.onComplete(EuiccCardManager.RESULT_OK, result); in getSmdsAddress()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
DAppClipsTrampolineActivityTest.java175 assertThat(actualResult.getResultCode()).isEqualTo(Activity.RESULT_OK); in queryService_returnedFailed_shouldFinishWithFailed()
189 assertThat(actualResult.getResultCode()).isEqualTo(Activity.RESULT_OK); in queryService_returnedWindowModeUnsupported_shouldFinishWithWindowModeUnsupported()
203 assertThat(actualResult.getResultCode()).isEqualTo(Activity.RESULT_OK); in queryService_returnedScreenshotBlocked_shouldFinishWithBlockedByAdmin()
220 activity.getResultReceiverForTest().send(Activity.RESULT_OK, bundle); in startAppClipsActivity_userCanceled_shouldReturnUserCanceled()
224 assertThat(actualResult.getResultCode()).isEqualTo(Activity.RESULT_OK); in startAppClipsActivity_userCanceled_shouldReturnUserCanceled()
241 activity.getResultReceiverForTest().send(Activity.RESULT_OK, bundle); in startAppClipsActivity_shouldReturnSuccess()
245 assertThat(actualResult.getResultCode()).isEqualTo(Activity.RESULT_OK); in startAppClipsActivity_shouldReturnSuccess()
DAppClipsActivityTest.java19 import static android.app.Activity.RESULT_OK;
145 assertThat(resultCode).isEqualTo(RESULT_OK); in screenshotDisplayed_userConsented_screenshotExportedSuccessfully()
164 assertThat(resultCode).isEqualTo(RESULT_OK); in screenshotDisplayed_userDeclined()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java466 EuiccService.RESULT_OK, SUBSCRIPTION_WITH_METADATA); in testGetDownloadableSubscriptionMetadata_success()
515 EuiccService.RESULT_OK, in testGetDefaultDownloadableSubscriptionList_success()
584 EuiccService.RESULT_OK, 0 /* resolvableError */, "whatever" /* callingPackage */); in testDownloadSubscription_success()
595 EuiccService.RESULT_OK, 0 /* resolvableError */, "whatever" /* callingPackage */); in testDownloadSubscription_noSwitch_success()
714 EuiccService.RESULT_OK, SUBSCRIPTION_WITH_METADATA); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges()
719 EuiccService.RESULT_OK, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges()
733 EuiccService.RESULT_OK, SUBSCRIPTION_WITH_METADATA); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_multiSim()
738 EuiccService.RESULT_OK, 0 /* resolvableError */, PACKAGE_NAME /* callingPackage */); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_multiSim()
752 EuiccService.RESULT_OK, SUBSCRIPTION_WITH_METADATA); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_needsConsent()
774 EuiccService.RESULT_OK, SUBSCRIPTION_WITH_METADATA); in testDownloadSubscription_noPrivileges_hasCarrierPrivileges_needsConsent_multiSim()
[all …]
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceTest.java85 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testGraphicBufferMetrics()
91 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testPerformanceMetricsWithoutExtraLoad()
110 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testPerformanceMetricsWithExtraLoad()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java113 Activity.RESULT_OK, null, null);
116 Activity.RESULT_OK, null, null);
119 Activity.RESULT_OK, null, null);
127 Activity.RESULT_OK, null, null);
130 Activity.RESULT_OK, null, null);
133 Activity.RESULT_OK, null, null);
148 Activity.RESULT_OK, null, null);
151 Activity.RESULT_OK, null, null);
155 Activity.RESULT_OK, null, null);
290 null, Activity.RESULT_OK, null, null); in onCreateOptionsMenu()
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DBaseCompatActivityTest.java140 verify(spyBaseCompatActivity).nextAction(Activity.RESULT_OK); in testSecondaryToolbarButtonListenerIsDefault()
155 verify(spyBaseCompatActivity).nextAction(Activity.RESULT_OK); in testPrimaryToolbarButtonListenerIsDefault()
367 spyBaseCompatActivity.finishAction(BaseCompatActivity.RESULT_OK); in testFinishActionWithResultCode()
369 verify(spyBaseCompatActivity).nextAction(BaseCompatActivity.RESULT_OK, null); in testFinishActionWithResultCode()
615 spyBaseCompatActivity.nextAction(Activity.RESULT_OK); in testNextActionTwice_onlyTriggersOneStartActivity()
616 spyBaseCompatActivity.nextAction(Activity.RESULT_OK); in testNextActionTwice_onlyTriggersOneStartActivity()
624 spyBaseCompatActivity.nextAction(Activity.RESULT_OK); in testNextActionCanBeTriggeredAgain_onResume()
627 spyBaseCompatActivity.nextAction(Activity.RESULT_OK); in testNextActionCanBeTriggeredAgain_onResume()
/frameworks/base/telephony/java/android/service/carrier/
DCarrierService.java229 public static final int RESULT_OK = 0; field in CarrierService.ICarrierServiceWrapper
241 result.send(RESULT_OK, data); in getCarrierConfig()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionTest.java92 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testSurfaceCompositionPerformance()
115 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testSurfaceAllocationPerformance()
/frameworks/base/services/tests/mockingservicestests/src/android/service/games/
DGameSessionTrampolineActivityTest.java98 new GameSessionActivityResult(Activity.RESULT_OK, TestActivity.RESULT_INTENT); in launch_targetActivityFinishesSuccessfully_futureCompletedWithSameResults()
117 new GameSessionActivityResult(Activity.RESULT_OK, TestActivity.RESULT_INTENT); in launch_trampolineActivityProcessDeath_futureCompletedWithSameResults()
216 setResult(Activity.RESULT_OK, RESULT_INTENT); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordDialogDelegate.java19 import static android.app.Activity.RESULT_OK;
165 userContext, Activity.RESULT_OK, in requestScreenCapture()
183 if (resultCode == RESULT_OK) { in onReceiveResult()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewProcessTextTest.java69 triggerOnActivityResult(Activity.RESULT_OK, "Text is replaced."); in testProcessTextActivityResultNonEditable()
103 mTextView.onActivityResult(TextView.PROCESS_TEXT_REQUEST_CODE, Activity.RESULT_OK, null); in testProcessTextActivityNoData()
/frameworks/base/tests/SystemMemoryTest/device/src/com/android/tests/sysmem/device/
DCujs.java51 finish(Activity.RESULT_OK, null); in onStart()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cat/
DCATServiceTest.java250 setBroadcastReceiverPendingResult(mCatService.mSmsBroadcastReceiver, Activity.RESULT_OK); in testSendTerminalResponseForSendSuccess()
254 Activity.RESULT_OK, null, null); in testSendTerminalResponseForSendSuccess()
306 Activity.RESULT_OK); in testSendTerminalResponseForDeliverySuccess()
309 Activity.RESULT_OK, null, null); in testSendTerminalResponseForDeliverySuccess()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountAuthenticatorDummyActivity.java39 setResult(RESULT_OK, result); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/shortcut/
DCreateNoteTaskShortcutActivity.kt51 setResult(Activity.RESULT_OK, shortcutIntent) in onCreate()
/frameworks/base/core/tests/coretests/BinderDeathRecipientHelperApp/src/com/android/frameworks/coretests/bdr_helper_app/
DTestCommsReceiver.java44 setResult(Activity.RESULT_OK, null, resultExtras); in onReceive()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsDownloadReceiver.java73 public static final int RESULT_OK = 0; field in MbmsDownloadReceiver
255 setResultCode(RESULT_OK); in moveDownloadedFile()
286 setResultCode(RESULT_OK); in moveDownloadedFile()
325 setResultCode(RESULT_OK); in generateTempFiles()
338 setResultCode(RESULT_OK); in generateTempFiles()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfTest.java39 getInstrumentation().sendStatus(Activity.RESULT_OK, testResult); in testFrameworkPerf()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java109 setResult(RESULT_OK); in onCreate()
181 setResult(RESULT_OK); in onClick()

1234567