Home
last modified time | relevance | path

Searched refs:resultReceiver (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Media/apex/framework/java/android/media/
DMediaSession2.java212 ResultReceiver resultReceiver = new ResultReceiver(mResultHandler) { in sendSessionCommand() local
221 controller.sendSessionCommand(command, args, resultReceiver); in sendSessionCommand()
222 return resultReceiver; in sendSessionCommand()
455 @Nullable ResultReceiver resultReceiver) { in onSessionCommand() argument
473 if (resultReceiver != null) { in onSessionCommand()
474 resultReceiver.send(RESULT_INFO_SKIPPED, null); in onSessionCommand()
480 if (resultReceiver != null) { in onSessionCommand()
482 resultReceiver.send(RESULT_INFO_SKIPPED, null); in onSessionCommand()
484 resultReceiver.send(result.getResultCode(), result.getResultData()); in onSessionCommand()
788 ResultReceiver resultReceiver) { in sendSessionCommand() argument
[all …]
DMediaController2.java213 ResultReceiver resultReceiver = new ResultReceiver(mResultHandler) { in sendSessionCommand() local
228 mPendingCommands.put(resultReceiver, seq); in sendSessionCommand()
231 resultReceiver); in sendSessionCommand()
233 mPendingCommands.remove(resultReceiver); in sendSessionCommand()
234 resultReceiver.send(RESULT_ERROR_UNKNOWN_ERROR, null); in sendSessionCommand()
238 return resultReceiver; in sendSessionCommand()
318 @Nullable ResultReceiver resultReceiver) { in onSessionCommand() argument
328 if (resultReceiver != null) { in onSessionCommand()
329 resultReceiver.send(RESULT_INFO_SKIPPED, null); in onSessionCommand()
335 if (resultReceiver != null) { in onSessionCommand()
[all …]
DController2Link.java117 ResultReceiver resultReceiver) { in sendSessionCommand() argument
119 mIController.sendSessionCommand(seq, command, args, resultReceiver); in sendSessionCommand()
155 ResultReceiver resultReceiver) { in onSessionCommand() argument
156 mController.onSessionCommand(seq, command, args, resultReceiver); in onSessionCommand()
197 ResultReceiver resultReceiver) { in sendSessionCommand() argument
200 Controller2Link.this.onSessionCommand(seq, command, args, resultReceiver); in sendSessionCommand()
DSession2Link.java131 final Session2Command command, final Bundle args, ResultReceiver resultReceiver) { in sendSessionCommand() argument
133 mISession.sendSessionCommand(caller, seq, command, args, resultReceiver); in sendSessionCommand()
161 final Session2Command command, final Bundle args, ResultReceiver resultReceiver) { in onSessionCommand() argument
162 mSession.onSessionCommand(caller, seq, command, args, resultReceiver); in onSessionCommand()
201 final Session2Command command, final Bundle args, ResultReceiver resultReceiver) { in sendSessionCommand() argument
207 Session2Link.this.onSessionCommand(caller, seq, command, args, resultReceiver); in sendSessionCommand()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DBinderHelper.java110 ResultReceiver resultReceiver = ResultReceiver.CREATOR.createFromParcel(data); in onTransactForCmd() local
133 if (resultReceiver != null) { in onTransactForCmd()
134 resultReceiver.send(r, null); in onTransactForCmd()
138 sendFailureToCaller(errFd, resultReceiver, in onTransactForCmd()
146 sendFailureToCaller(errFd, resultReceiver, in onTransactForCmd()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/service/
DAnomalyService.java40 final ResultReceiver resultReceiver = intent.getParcelableExtra( in onHandleIntent() local
45 if (resultReceiver != null) { in onHandleIntent()
46 resultReceiver.send(0 /* resultCode */, intent.getExtras()); in onHandleIntent()
/packages/modules/StatsD/statsd/tests/external/
DStatsCallbackPuller_test.cpp69 void executePull(const shared_ptr<IPullAtomResultReceiver>& resultReceiver) { in executePull() argument
86 resultReceiver->pullFinished(pullTagId, pullSuccess, parcels); in executePull()
92 const shared_ptr<IPullAtomResultReceiver>& resultReceiver) override { in onPullAtom() argument
94 pullThread = std::thread(executePull, resultReceiver); in onPullAtom()
DStatsPullerManager_test.cpp59 const shared_ptr<IPullAtomResultReceiver>& resultReceiver) override { in onPullAtom() argument
71 resultReceiver->pullFinished(atomTag, /*success*/ true, parcels); in onPullAtom()
/packages/modules/StatsD/statsd/src/external/
DStatsCallbackPuller.cpp60 shared_ptr<PullResultReceiver> resultReceiver = SharedRefBase::make<PullResultReceiver>( in PullInternal() local
87 Status status = mCallback->onPullAtom(mTagId, resultReceiver); in PullInternal()
/packages/modules/StatsD/lib/libstatspull/
Dstats_pull_atom_callback.cpp116 const std::shared_ptr<IPullAtomResultReceiver>& resultReceiver) override { in onPullAtom() argument
138 Status status = resultReceiver->pullFinished(atomTag, success, parcels); in onPullAtom()
141 resultReceiver->pullFinished(atomTag, /*success=*/false, emptyParcels); in onPullAtom()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/shadows/common/
DDeviceShadowContextImpl.java107 @Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler, in sendOrderedBroadcast() argument
109 getLocalBroadcastManager().sendOrderedBroadcast(intent, receiverPermission, resultReceiver, in sendOrderedBroadcast()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserRefinementManager.java116 RefinementResultReceiver resultReceiver, TargetInfo originalTarget) { in makeRefinementRequest() argument
128 fillIn.putExtra(Intent.EXTRA_RESULT_RECEIVER, resultReceiver.copyForSending()); in makeRefinementRequest()
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java561 public void onPullAtom(int atomTag, IPullAtomResultReceiver resultReceiver) { in onPullAtom() argument
574 resultReceiver.pullFinished(atomTag, success, parcels); in onPullAtom()
580 resultReceiver.pullFinished(atomTag, /*success=*/false, emptyData); in onPullAtom()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DRequestPinItemTest.java168 BlockingBroadcastReceiver resultReceiver = new BlockingBroadcastReceiver(mCallbackAction); in runTest() local
170 Intent result = resultReceiver.blockingGetIntent(); in runTest()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/common/
DBroadcastManager.java280 @Nullable BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
292 if (resultReceiver != null) { in sendOrderedBroadcast()
295 resultReceiver, null /* intentFilter */, context, handler)); in sendOrderedBroadcast()
/packages/modules/StatsD/aidl/android/os/
DIPullAtomCallback.aidl29 oneway void onPullAtom(int atomTag, IPullAtomResultReceiver resultReceiver); in onPullAtom() argument
/packages/modules/Media/apex/aidl/private/android/media/
DIMediaController2.aidl36 in ResultReceiver resultReceiver) = 3; in sendSessionCommand() argument
DIMediaSession2.aidl36 in Bundle args, in ResultReceiver resultReceiver) = 2; in sendSessionCommand() argument
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java322 final ResultReceiver resultReceiver = in handleMessage() local
354 carrierService.getCarrierConfig(phoneId, carrierId, resultReceiver); in handleMessage()
452 final ResultReceiver resultReceiver = in handleMessage() local
494 carrierService.getCarrierConfig(phoneId, carrierId, resultReceiver); in handleMessage()
632 final ResultReceiver resultReceiver = in handleMessage() local
662 carrierService.getCarrierConfig(phoneId, null, resultReceiver); in handleMessage()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java384 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument
391 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
398 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcastAsUser() argument
/packages/services/Car/service/src/com/android/car/
DICarImpl.java522 ICarResultReceiver resultReceiver) { in setSystemServerConnections() argument
544 resultReceiver.send(/* unused */ 0, bundle); in setSystemServerConnections()
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h555 const shared_ptr<IPullAtomResultReceiver>& resultReceiver) override;
Dstatsd_test_util.cpp1936 const shared_ptr<IPullAtomResultReceiver>& resultReceiver) { in onPullAtom() argument
1960 resultReceiver->pullFinished(atomTag, /*success=*/true, parcels); in onPullAtom()