Home
last modified time | relevance | path

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

12

/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.java55 is.send(Activity.RESULT_CANCELED, finish, null); in testRegisteredReceivePermissionDenied()
82 is.send(Activity.RESULT_CANCELED, finish, null); in testLocalReceivePermissionDenied()
DBroadcastTest.java393 null, finish, null, Activity.RESULT_CANCELED, null, null); in testRegisteredReceivePermissionDenied()
420 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testRegisteredBroadcastPermissionDenied()
442 null, finish, null, Activity.RESULT_CANCELED, in testLocalReceivePermissionDenied()
466 PERMISSION_DENIED, finish, null, Activity.RESULT_CANCELED, in testLocalBroadcastPermissionDenied()
488 null, finish, null, Activity.RESULT_CANCELED, in testRemoteReceivePermissionDenied()
512 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()
449 finishWithResult(RESULT_CANCELED, (new Intent()).setAction(error)); in finishBad()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentReceiveResultTest.java75 startActivityForResult(20, Activity.RESULT_CANCELED, "content 20"); in testStartActivityForResultCanceled()
79 assertEquals(Activity.RESULT_CANCELED, mFragment.mResultCode); in testStartActivityForResultCanceled()
97 startIntentSenderForResult(40, Activity.RESULT_CANCELED, "content 40"); in testStartIntentSenderForResultCanceled()
101 assertEquals(Activity.RESULT_CANCELED, mFragment.mResultCode); in testStartIntentSenderForResultCanceled()
/frameworks/base/core/java/android/accounts/
DGrantCredentialsPermissionActivity.java58 setResult(Activity.RESULT_CANCELED); in onCreate()
72 setResult(Activity.RESULT_CANCELED); in onCreate()
82 setResult(Activity.RESULT_CANCELED); in onCreate()
171 setResult(RESULT_CANCELED); in onClick()
DChooseTypeAndAccountActivity.java320 if (resultCode == RESULT_CANCELED) { in onActivityResult()
324 setResult(Activity.RESULT_CANCELED); in onActivityResult()
379 setResult(Activity.RESULT_CANCELED); in onActivityResult()
412 setResult(Activity.RESULT_CANCELED); in run()
453 setResult(Activity.RESULT_CANCELED); in setResultAndFinish()
DChooseAccountActivity.java64 setResult(RESULT_CANCELED); in onCreate()
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
DSetAlarm.java106 finish(Activity.RESULT_CANCELED, ret); in errorFinish()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java126 setResult(RESULT_CANCELED); in onClick()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceChooserActivity.java91 setResult(RESULT_CANCELED); in cancel()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentReceiveResultSupport.java143 if (resultCode == RESULT_CANCELED) { in onActivityResult()
/frameworks/base/core/java/android/bluetooth/
DBluetoothPbap.java87 public static final int RESULT_CANCELED = 2; field in BluetoothPbap
DBluetoothPbapClient.java54 public static final int RESULT_CANCELED = 2; field in BluetoothPbapClient
DBluetoothSap.java91 public static final int RESULT_CANCELED = 2; field in BluetoothSap
DBluetoothMap.java53 public static final int RESULT_CANCELED = 2; field in BluetoothMap
DBluetoothMapClient.java73 public static final int RESULT_CANCELED = 2; field in BluetoothMapClient
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java171 setResult(RESULT_CANCELED); in onClick()
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBlasBenchmark.java268 setResult(RESULT_CANCELED); in onBenchmarkFinish()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java2408 requestFinishActivityLocked(mLastNoHistoryActivity.appToken, Activity.RESULT_CANCELED, in resumeTopActivityInnerLocked()
2646 requestFinishActivityLocked(next.appToken, Activity.RESULT_CANCELED, null, in resumeTopActivityInnerLocked()
3085 p, Activity.RESULT_CANCELED, null, "reset-task", false)) { in resetTargetTaskIfNeededLocked()
3164 p, Activity.RESULT_CANCELED, null, "move-affinity", false); in resetAffinityTaskIfNeededLocked()
3199 finishActivityLocked(p, Activity.RESULT_CANCELED, null, "replace", in resetAffinityTaskIfNeededLocked()
3395 if (requestFinishActivityLocked(r.appToken, Activity.RESULT_CANCELED, null, in stopActivityLocked()
3473 finishActivityLocked(r, Activity.RESULT_CANCELED, null, "request-sub", in finishSubActivityLocked()
3494 finishActivityLocked(r, Activity.RESULT_CANCELED, null, reason, false); in finishTopRunningActivityLocked()
3517 finishActivityLocked(r, Activity.RESULT_CANCELED, null, reason, false); in finishTopRunningActivityLocked()
3533 finishActivityLocked(r, Activity.RESULT_CANCELED, null, "finish-voice", in finishVoiceTask()
[all …]
DActivityStarter.java19 import static android.app.Activity.RESULT_CANCELED;
425 -1, resultRecord, resultWho, requestCode, RESULT_CANCELED, null); in startActivity()
463 RESULT_CANCELED, null); in startActivity()
1136 mStartActivity.resultWho, mStartActivity.requestCode, RESULT_CANCELED, in startActivityUnchecked()
1374 mStartActivity.resultWho, mStartActivity.requestCode, RESULT_CANCELED, in sendNewTaskResultRequestIfNeeded()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java153 mTextView.onActivityResult(TextView.PROCESS_TEXT_REQUEST_CODE, Activity.RESULT_CANCELED, in testProcessTextActivityResultCancel()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DImageProcessingActivityJB.java666 setResult(RESULT_CANCELED); in onBenchmarkFinish()

12