Home
last modified time | relevance | path

Searched refs:RESULT_CANCELED (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java85 setResult(RESULT_CANCELED, (new Intent()).setAction("Interrupted!")); in onResume()
121 if (resultCode != RESULT_CANCELED) { in onActivityResult()
122 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
129 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
132 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
135 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
138 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
144 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
DActivityTestsBase.java109 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(error)); in finishBad()
150 if (res == Activity.RESULT_CANCELED) { in waitForResultOrThrow()
188 mResultCode = Activity.RESULT_CANCELED; in waitForResult()
209 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(msg)); in onTimeout()
DIntentSenderTest.java59 is.send(Activity.RESULT_CANCELED, finish, null); in testRegisteredReceivePermissionDenied()
89 is.send(Activity.RESULT_CANCELED, finish, null); in ignore_testLocalReceivePermissionDenied()
DBroadcastTest.java400 null, finish, null, Activity.RESULT_CANCELED, null, null); in testRegisteredReceivePermissionDenied()
427 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testRegisteredBroadcastPermissionDenied()
449 null, finish, null, Activity.RESULT_CANCELED, in ignore_testLocalReceivePermissionDenied()
473 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testLocalBroadcastPermissionDenied()
495 null, finish, null, Activity.RESULT_CANCELED, in ignore_testRemoteReceivePermissionDenied()
519 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testRemoteBroadcastPermissionDenied()
DClearTop.java45 setResult(RESULT_CANCELED, new Intent().setAction( in onNewIntent()
DLaunchpadActivity.java143 private int mResultCode = RESULT_CANCELED;
351 finishWithResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
357 finishWithResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
450 finishWithResult(RESULT_CANCELED, (new Intent()).setAction(error)); in finishBad()
/frameworks/base/core/java/android/accounts/
DGrantCredentialsPermissionActivity.java65 setResult(Activity.RESULT_CANCELED); in onCreate()
79 setResult(Activity.RESULT_CANCELED); in onCreate()
87 setResult(Activity.RESULT_CANCELED); in onCreate()
97 setResult(Activity.RESULT_CANCELED); in onCreate()
186 setResult(RESULT_CANCELED); in onClick()
DChooseTypeAndAccountActivity.java317 if (resultCode == RESULT_CANCELED) { in onActivityResult()
321 setResult(Activity.RESULT_CANCELED); in onActivityResult()
376 setResult(Activity.RESULT_CANCELED); in onActivityResult()
409 setResult(Activity.RESULT_CANCELED); in run()
450 setResult(Activity.RESULT_CANCELED); in setResultAndFinish()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DBaseActivity.java73 private int mResultCode = RESULT_CANCELED;
262 if (resultCode == RESULT_CANCELED) { in nextAction()
284 finishAction(RESULT_CANCELED); in finishAction()
299 if (resultCode != RESULT_CANCELED) { in finishAction()
DBaseSetupWizardActivity.java76 private int mResultCode = RESULT_CANCELED;
327 finishAction(RESULT_CANCELED); in finishAction()
342 if (resultCode != RESULT_CANCELED) { in finishAction()
521 if (resultCode == RESULT_CANCELED) { in launchNextAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceActivity.kt40 setResult(RESULT_CANCELED) in onCreate()
71 setResult(RESULT_CANCELED) in finishActivity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/permission/
DMediaProjectionPermissionActivity.java133 setResult(RESULT_CANCELED); in onCreate()
146 setResult(RESULT_CANCELED); in onCreate()
177 setResult(RESULT_CANCELED); in onCreate()
184 setResult(RESULT_CANCELED); in onCreate()
310 setResult(RESULT_CANCELED); in onClick()
379 setResult(RESULT_CANCELED); in grantMediaProjectionPermission()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAvatarPhotoControllerTest.java137 REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_CANCELED, intent); in takePhotoIsNotFollowedByCropWhenResultCodeNotOk()
178 REQUEST_CODE_CHOOSE_PHOTO, Activity.RESULT_CANCELED, intent); in choosePhotoIsNotFollowedByCropWhenResultCodeNotOk()
209 mController.onActivityResult(REQUEST_CODE_CROP_PHOTO, Activity.RESULT_CANCELED, intent); in cropPhotoResultIsNotReturnedIfResultCancel()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/shortcut/
DCreateBubbleShortcutActivity.kt49 setResult(RESULT_CANCELED) in createShortcut()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderDeathRecipientTest.java83 final AtomicInteger resultCode = new AtomicInteger(Activity.RESULT_CANCELED); in getNewRemoteBinder()
95 }, mHandler, Activity.RESULT_CANCELED, null, null); in getNewRemoteBinder()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/ui/
DInstallLaunch.kt138 else -> setResult(Activity.RESULT_CANCELED, null, true) in <lambda>()
217 setResult(Activity.RESULT_CANCELED, null, shouldFinish) in <lambda>()
280 setResult(Activity.RESULT_CANCELED, null, true) in <lambda>()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DUninstallStages.kt60 val activityResultCode: Int = Activity.RESULT_CANCELED,
DInstallStages.kt124 val activityResultCode: Int = Activity.RESULT_CANCELED,
/frameworks/base/services/credentials/java/com/android/server/credentials/
DPendingIntentResultHandler.java45 return pendingIntentResponse.getResultCode() == Activity.RESULT_CANCELED; in isCancelledResponse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DWidgetConfigurationController.kt73 setConfigurationResult(Activity.RESULT_CANCELED) in configureWidget()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/
DWidgetConfigurationControllerTest.kt88 underTest.setConfigurationResult(Activity.RESULT_CANCELED) in configurationFails()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DCompanionDeviceDataTransferActivity.java124 ? RESULT_OK : RESULT_CANCELED); in setResultAndFinish()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewProcessTextTest.java88 triggerOnActivityResult(Activity.RESULT_CANCELED, newText); in testProcessTextActivityResultCancel()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java100 private int mActivityResultCode = Activity.RESULT_CANCELED;
512 setActivityResult(RESULT_CANCELED); in bindUi()
517 setActivityResult(RESULT_CANCELED); in bindUi()
693 setActivityResult(RESULT_CANCELED); in onBackPressed()
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/client/impl/
DCredentialManagerClientImpl.kt95 if (resultCode == Activity.RESULT_CANCELED) { in <lambda>()

123