Home
last modified time | relevance | path

Searched refs:setResult (Results 1 – 25 of 234) sorted by relevance

12345678910

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java275 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
276 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
303 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
304 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
333 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testSaveDocument_SetsCorrectResultAndFinishes()
334 final Intent result = mActivity.setResult.getLastValue().second; in testSaveDocument_SetsCorrectResultAndFinishes()
383 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent()
384 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent()
410 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection()
411 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection()
[all …]
DTestActivity.java30 public TestEventListener<Pair<Integer, Intent>> setResult; field in TestActivity
43 setResult = new TestEventListener<>(); in init()
48 public void setResult(int resultCode, Intent intent, int notUsed) { in setResult() method in TestActivity
49 setResult.accept(Pair.create(resultCode, intent)); in setResult()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DRequestPermissionActivity.java75 setResult(Activity.RESULT_CANCELED); in onCreate()
280 setResult(returnCode); in proceedAndFinish()
285 setResult(Activity.RESULT_CANCELED); in cancelAndFinish()
316 setResult(RESULT_CANCELED); in parseIntent()
334 setResult(RESULT_CANCELED); in parseIntent()
342 setResult(RESULT_CANCELED); in parseIntent()
360 setResult(RESULT_CANCELED); in onBackPressed()
DRequestPermissionHelperActivity.java62 setResult(RESULT_CANCELED); in onCreate()
133 setResult(Activity.RESULT_OK); in onClick()
139 setResult(Activity.RESULT_OK); in onClick()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java79 setResult(Activity.RESULT_CANCELED); in onCreate()
284 setResult(returnCode); in proceedAndFinish()
289 setResult(Activity.RESULT_CANCELED); in cancelAndFinish()
320 setResult(RESULT_CANCELED); in parseIntent()
338 setResult(RESULT_CANCELED); in parseIntent()
346 setResult(RESULT_CANCELED); in parseIntent()
364 setResult(RESULT_CANCELED); in onBackPressed()
DRequestPermissionHelperActivity.java62 setResult(RESULT_CANCELED); in onCreate()
133 setResult(Activity.RESULT_OK); in onClick()
139 setResult(Activity.RESULT_OK); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DRequestToggleWiFiActivity.java75 setResult(Activity.RESULT_CANCELED); in onCreate()
151 setResult(RESULT_OK); in onStart()
165 setResult(RESULT_OK); in onStart()
181 setResult(RESULT_OK); in onStart()
199 setResult(RESULT_OK); in onStart()
312 RequestToggleWiFiActivity.this.setResult(Activity.RESULT_OK); in onReceive()
DWifiDialogActivity.java124 setResult(RESULT_FORGET); in onForget()
160 setResult(RESULT_CONNECTED, resultData); in onSubmit()
186 setResult(RESULT_CONNECTED, data); in onActivityResult()
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java75 setResult(Activity.RESULT_CANCELED); in onCreate()
151 setResult(RESULT_OK); in onStart()
165 setResult(RESULT_OK); in onStart()
181 setResult(RESULT_OK); in onStart()
199 setResult(RESULT_OK); in onStart()
312 RequestToggleWiFiActivity.this.setResult(Activity.RESULT_OK); in onReceive()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java77 setResult(Activity.RESULT_CANCELED); in onCreate()
120 setResult(RESULT_OK); in onClick()
145 setResult(RESULT_OK); in onStart()
161 setResult(RESULT_OK); in onStart()
264 activity.setResult(Activity.RESULT_OK); in onReceive()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/
DBiometricEnrollIntroduction.java175 setResult(RESULT_FINISHED); in onNextButtonClick()
227 setResult(resultCode, data); in onActivityResult()
239 setResult(resultCode, data); in onActivityResult()
247 setResult(resultCode, data); in onActivityResult()
261 setResult(RESULT_SKIP); in onSkipButtonClick()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollIntroduction.java189 setResult(RESULT_FINISHED); in onNextButtonClick()
242 setResult(resultCode, data); in onActivityResult()
254 setResult(resultCode, data); in onActivityResult()
262 setResult(resultCode, data); in onActivityResult()
276 setResult(RESULT_SKIP); in onSkipButtonClick()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmLockPassword.java298 mCredentialCheckResultTracker.setResult(true, new Intent(), 0, mEffectiveUserId); in authenticationSucceeded()
347 mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId); in handleNext()
373 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword()
402 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword()
421 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
428 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
501 getActivity().setResult(RESULT_CANCELED); in onClick()
DConfirmLockPattern.java156 getActivity().setResult(Activity.RESULT_OK); in onCreateView()
346 mCredentialCheckResultTracker.setResult(true, new Intent(), 0, mEffectiveUserId); in authenticationSucceeded()
364 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
371 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
415 mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId);
442 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
478 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DConfirmLockPassword.java298 mCredentialCheckResultTracker.setResult(true, new Intent(), 0, mEffectiveUserId); in authenticationSucceeded()
347 mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId); in handleNext()
373 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword()
402 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword()
421 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
428 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
501 getActivity().setResult(RESULT_CANCELED); in onClick()
DConfirmLockPattern.java156 getActivity().setResult(Activity.RESULT_OK); in onCreateView()
346 mCredentialCheckResultTracker.setResult(true, new Intent(), 0, mEffectiveUserId); in authenticationSucceeded()
364 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
371 activity.setResult(RESULT_OK, intent); in startDisappearAnimation()
415 mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId);
442 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
478 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeExitDialog.java240 setResult(RESULT_CANCELED); in onCreateDialog()
257 setResult(RESULT_CANCELED); in onCreateDialog()
301 EmergencyCallbackModeExitDialog.this.setResult(RESULT_CANCELED); in onCancel()
319 EmergencyCallbackModeExitDialog.this.setResult(RESULT_OK);
351 EmergencyCallbackModeExitDialog.this.setResult(RESULT_CANCELED);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivity.java166 setResult(resultCode); in onActivityResult()
175 setResult(resultCode); in onActivityResult()
189 setResult(resultCode); in onActivityResult()
235 setResult(Activity.RESULT_CANCELED); in onNegativeButtonClick()
266 setResult(Activity.RESULT_CANCELED); in onPositiveButtonClick()
275 setResult(Activity.RESULT_CANCELED); in onProvisioningAborted()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStorageSizesControllerTest.java66 mController.setResult(null); in requestingUpdateAfterFailureHasErrorText()
83 mController.setResult(result); in properlyPopulatedAfterValidEntry()
100 mController.setResult(result); in fakeCacheFlagSetsCacheToZero()
118 mController.setResult(result); in fakeDataFlagSetsDataAndCacheToZero()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintEnrollFindSensor.java133 setResult(RESULT_SKIP); in onSkipButtonClick()
167 setResult(RESULT_FINISHED); in onActivityResult()
170 setResult(RESULT_SKIP); in onActivityResult()
173 setResult(RESULT_TIMEOUT); in onActivityResult()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollFindSensor.java133 setResult(RESULT_SKIP); in onSkipButtonClick()
167 setResult(RESULT_FINISHED); in onActivityResult()
170 setResult(RESULT_SKIP); in onActivityResult()
173 setResult(RESULT_TIMEOUT); in onActivityResult()
/packages/apps/Messaging/src/com/android/messaging/ui/
DRemoteInputEntrypointActivity.java35 setResult(RESULT_CANCELED); in onCreate()
50 setResult(RESULT_OK); in onCreate()
53 setResult(RESULT_CANCELED); in onCreate()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleShortcuts.java49 setResult(RESULT_OK); in onCreate()
58 setResult(RESULT_OK); in onCreate()
65 setResult(RESULT_CANCELED); in onCreate()
/packages/apps/TV/src/com/android/tv/
DLauncherActivity.java77 setResult(Activity.RESULT_OK); in onCreate()
83 setResult(Activity.RESULT_CANCELED, intent); in onCreate()
90 setResult(resultCode, data); in onActivityResult()
/packages/apps/Email/src/com/android/email/activity/setup/
DOAuthAuthenticationActivity.java81 setResult(RESULT_OAUTH_USER_CANCELED, intent); in shouldOverrideUrlLoading()
130 setResult(RESULT_OAUTH_USER_CANCELED, null); in onCreate()
187 setResult(RESULT_OAUTH_FAILURE, null); in onLoadFinished()
195 setResult(RESULT_OAUTH_SUCCESS, intent); in onLoadFinished()

12345678910