Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/content/
DLoggingContentInterface.java75 public <T> T setResult(T res) { in setResult() method in LoggingContentInterface.Logger
97 return l.setResult(delegate.query(uri, projection, queryArgs, cancellationSignal)); in query()
99 l.setResult(res); in query()
109 return l.setResult(delegate.getType(uri)); in getType()
111 l.setResult(res); in getType()
122 return l.setResult(delegate.getStreamTypes(uri, mimeTypeFilter)); in getStreamTypes()
124 l.setResult(res); in getStreamTypes()
134 return l.setResult(delegate.canonicalize(uri)); in canonicalize()
136 l.setResult(res); in canonicalize()
146 return l.setResult(delegate.uncanonicalize(uri)); in uncanonicalize()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java85 setResult(RESULT_CANCELED, (new Intent()).setAction("Interrupted!")); in onResume()
98 setResult(RESULT_OK, res); in onResume()
115 setResult(RESULT_OK); 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()
DClearTop.java43 setResult(RESULT_OK); in onNewIntent()
45 setResult(RESULT_CANCELED, new Intent().setAction( in onNewIntent()
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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java308 supplicantIface.setResult(status, iface); in getIfaceV1_0()
342 supplicantIface.setResult(status, iface); in addIfaceV1_1()
562 result.setResult(status, name); in getName()
590 result.setResult(mISupplicantP2pIface.registerCallback(receiver)); in registerCallback()
618 result.setResult(mISupplicantP2pIface.find(timeout)); in find()
638 result.setResult(mISupplicantP2pIface.stopFind()); in stopFind()
658 result.setResult(mISupplicantP2pIface.flush()); in flush()
679 result.setResult(mISupplicantP2pIface.flushServices()); in serviceFlush()
703 result.setResult(mISupplicantP2pIface.setPowerSave(groupIfName, enable)); in setPowerSave()
737 result.setResult(mISupplicantP2pIface.setGroupIdle(groupIfName, timeoutInSec)); in setGroupIdle()
[all …]
/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()
165 setResult(RESULT_OK, result); in onClick()
171 setResult(RESULT_CANCELED); in onClick()
DChooseTypeAndAccountActivity.java325 setResult(Activity.RESULT_CANCELED); in onActivityResult()
380 setResult(Activity.RESULT_CANCELED); in onActivityResult()
413 setResult(Activity.RESULT_CANCELED); in run()
421 setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); in run()
454 setResult(Activity.RESULT_CANCELED); in setResultAndFinish()
461 setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); in setResultAndFinish()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java111 setResult(UserManager.USER_CREATION_FAILED_NOT_PERMITTED); in checkUserCreationRequirements()
114 setResult(UserManager.USER_CREATION_FAILED_NO_MORE_USERS); in checkUserCreationRequirements()
126 setResult(RESULT_CANCELED); in onClick()
136 setResult(RESULT_OK); in onClick()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DMockableCheckVoiceData.java41 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL, returnVal); in onCreate()
54 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, returnVal); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java87 setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName)); in onCreate()
180 setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName)); in onClick()
184 setResult(RESULT_CANCELED); in onClick()
/frameworks/av/media/libaaudio/examples/loopback/src/analyzer/
DGlitchAnalyzer.h77 setResult(ERROR_VOLUME_TOO_LOW); in getSignalToNoiseDB()
106 setResult(ERROR_NO_LOCK); in analyze()
115 setResult(ERROR_GLITCHES); in analyze()
/frameworks/base/services/core/java/com/android/server/am/
DAppErrorDialog.java154 setResult(msg.what);
163 setResult(FORCE_QUIT); in dismiss()
168 private void setResult(int result) { in setResult() method in AppErrorDialog
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountAuthenticatorDummyActivity.java39 setResult(RESULT_OK, result); in onCreate()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceChooserActivity.java94 setResult(RESULT_CANCELED); in cancel()
156 setResult(RESULT_OK, in onDeviceConfirmed()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java69 setResult(RESULT_OK); in onCreate()
153 setResult(RESULT_OK); in onClick()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DRestoreEngine.java63 public void setResult(int result) { in setResult() method in RestoreEngine
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DDeleteStagedFileOnResult.java48 setResult(resultCode, data); in onActivityResult()
DUninstallerActivity.java100 setResult(Activity.RESULT_FIRST_USER); in onCreate()
110 setResult(Activity.RESULT_FIRST_USER); in onCreate()
127 setResult(Activity.RESULT_FIRST_USER); in onCreate()
135 setResult(Activity.RESULT_FIRST_USER); in onCreate()
DInstallStaging.java69 setResult(RESULT_CANCELED); in onCreate()
131 setResult(RESULT_FIRST_USER, result); in showError()
/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/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java133 setResult(mResultCode == PackageManager.DELETE_SUCCEEDED in handleMessage()
319 setResult(mResultCode); in setResultAndFinish()
362 setResult(mResultCode); in dispatchKeyEvent()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DErrorDialogFragment.java53 getActivity().setResult(Activity.RESULT_FIRST_USER); in onDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSomnambulator.java49 setResult(RESULT_OK, resultIntent); in onStart()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetConfigure.java50 setResult(RESULT_OK);

123