Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureManager.java396 final SyncResultReceiver resultReceiver = new SyncResultReceiver(SYNC_CALLS_TIMEOUT_MS); in getServiceComponentName()
398 mService.getServiceComponentName(resultReceiver); in getServiceComponentName()
399 return resultReceiver.getParcelableResult(); in getServiceComponentName()
421 final SyncResultReceiver resultReceiver = new SyncResultReceiver(SYNC_CALLS_TIMEOUT_MS); in getServiceSettingsComponentName() local
423 service.getServiceSettingsActivity(resultReceiver); in getServiceSettingsComponentName()
424 final int resultCode = resultReceiver.getIntResult(); in getServiceSettingsComponentName()
426 throw new SecurityException(resultReceiver.getStringResult()); in getServiceSettingsComponentName()
428 return resultReceiver.getParcelableResult(); in getServiceSettingsComponentName()
468 final SyncResultReceiver resultReceiver = syncRun( in getContentCaptureConditions()
471 final ArrayList<ContentCaptureCondition> result = resultReceiver in getContentCaptureConditions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java294 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument
296 spiedContext.sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast()
302 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument
304 spiedContext.sendOrderedBroadcast(intent, receiverPermission, options, resultReceiver, in sendOrderedBroadcast()
311 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument
313 spiedContext.sendOrderedBroadcast(intent, receiverPermission, appOp, resultReceiver, in sendOrderedBroadcast()
349 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument
352 intent, user, receiverPermission, AppOpsManager.OP_NONE, resultReceiver, in sendOrderedBroadcastAsUser()
358 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
361 intent, user, receiverPermission, appOp, null, resultReceiver, in sendOrderedBroadcastAsUser()
[all …]
/frameworks/base/media/apex/java/android/media/
DMediaController2.java210 ResultReceiver resultReceiver = new ResultReceiver(mResultHandler) { in sendSessionCommand() local
225 mPendingCommands.put(resultReceiver, seq); in sendSessionCommand()
228 resultReceiver); in sendSessionCommand()
230 mPendingCommands.remove(resultReceiver); in sendSessionCommand()
231 resultReceiver.send(RESULT_ERROR_UNKNOWN_ERROR, null); in sendSessionCommand()
235 return resultReceiver; in sendSessionCommand()
315 @Nullable ResultReceiver resultReceiver) { in onSessionCommand() argument
325 if (resultReceiver != null) { in onSessionCommand()
326 resultReceiver.send(RESULT_INFO_SKIPPED, null); in onSessionCommand()
332 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()
DMediaSession2.java204 ResultReceiver resultReceiver = new ResultReceiver(mResultHandler) { in sendSessionCommand() local
213 controller.sendSessionCommand(command, args, resultReceiver); in sendSessionCommand()
214 return resultReceiver; in sendSessionCommand()
438 @Nullable ResultReceiver resultReceiver) { in onSessionCommand() argument
456 resultReceiver.send(RESULT_INFO_SKIPPED, null); in onSessionCommand()
461 if (resultReceiver != null) { in onSessionCommand()
463 resultReceiver.send(RESULT_INFO_SKIPPED, null); in onSessionCommand()
465 resultReceiver.send(result.getResultCode(), result.getResultData()); in onSessionCommand()
763 ResultReceiver resultReceiver) { in sendSessionCommand() argument
769 mPendingCommands.put(resultReceiver, seq); in sendSessionCommand()
[all …]
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()
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DDirectStatementService.java194 ResultReceiver resultReceiver = extras.getParcelable(EXTRA_RESULT_RECEIVER); in onStartCommand() local
196 if (resultReceiver == null) { in onStartCommand()
202 resultReceiver.send(RESULT_FAIL, Bundle.EMPTY); in onStartCommand()
207 resultReceiver.send(RESULT_FAIL, Bundle.EMPTY); in onStartCommand()
212 resultReceiver.send(RESULT_FAIL, Bundle.EMPTY); in onStartCommand()
217 new IsAssociatedCallable(sources, target, relation, resultReceiver), TAG)); in onStartCommand()
232 ResultReceiver resultReceiver) { in IsAssociatedCallable() argument
236 mResultReceiver = resultReceiver; in IsAssociatedCallable()
/frameworks/base/cmds/statsd/src/shell/
DShellSubscriber.cpp32 void ShellSubscriber::startNewSubscription(int in, int out, sp<IResultReceiver> resultReceiver, in startNewSubscription() argument
43 mResultReceiver = resultReceiver; in startNewSubscription()
61 [this, resultReceiver] { return mResultReceiver != resultReceiver; }); in startNewSubscription()
63 mShellDied.wait(lk, [this, resultReceiver] { return mResultReceiver != resultReceiver; }); in startNewSubscription()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java374 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument
377 if (resultReceiver != null) { in sendOrderedBroadcast()
379 mOrderedBroadcastReceivers.put(intent, resultReceiver); in sendOrderedBroadcast()
386 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument
389 sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast()
395 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast() argument
397 sendOrderedBroadcast(intent, receiverPermission, resultReceiver, scheduler, in sendOrderedBroadcast()
425 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument
429 if (resultReceiver != null) { in sendOrderedBroadcastAsUser()
431 mOrderedBroadcastReceivers.put(intent, resultReceiver); in sendOrderedBroadcastAsUser()
[all …]
/frameworks/base/core/java/android/content/
DContextWrapper.java493 Intent intent, String receiverPermission, BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
497 resultReceiver, scheduler, initialCode, in sendOrderedBroadcast()
506 BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
510 options, resultReceiver, scheduler, initialCode, in sendOrderedBroadcast()
517 Intent intent, String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
521 resultReceiver, scheduler, initialCode, in sendOrderedBroadcast()
552 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument
554 mBase.sendOrderedBroadcastAsUser(intent, user, receiverPermission, resultReceiver, in sendOrderedBroadcastAsUser()
561 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
563 mBase.sendOrderedBroadcastAsUser(intent, user, receiverPermission, appOp, resultReceiver, in sendOrderedBroadcastAsUser()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DMultiClientInputMethodClientCallbackAdaptor.java343 public void showSoftInput(int flags, ResultReceiver resultReceiver) { in showSoftInput() argument
350 resultReceiver)); in showSoftInput()
355 public void hideSoftInput(int flags, ResultReceiver resultReceiver) { in hideSoftInput() argument
362 resultReceiver)); in hideSoftInput()
455 void showSoftInput(int flags, ResultReceiver resultReceiver) { in showSoftInput() argument
459 mOriginalCallback.onShowSoftInput(flags, resultReceiver); in showSoftInput()
462 void hideSoftInput(int flags, ResultReceiver resultReceiver) { in hideSoftInput() argument
466 mOriginalCallback.onHideSoftInput(flags, resultReceiver); in hideSoftInput()
/frameworks/base/core/java/com/android/internal/inputmethod/
DIMultiClientInputMethodSession.aidl27 void showSoftInput(int flags, in ResultReceiver resultReceiver); in showSoftInput() argument
28 void hideSoftInput(int flags, in ResultReceiver resultReceiver); in hideSoftInput() argument
/frameworks/base/core/java/android/telephony/
DCellBroadcastIntents.java84 @Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler, in sendSmsCbReceivedBroadcast() argument
94 receiverPermission, receiverAppOp, resultReceiver, scheduler, initialCode, in sendSmsCbReceivedBroadcast()
98 receiverAppOp, resultReceiver, scheduler, initialCode, null, null); in sendSmsCbReceivedBroadcast()
/frameworks/native/libs/binder/
DBinder.cpp68 const sp<IResultReceiver>& resultReceiver) in shellCommand() argument
81 …send.writeStrongBinder(resultReceiver != nullptr ? IInterface::asBinder(resultReceiver) : nullptr); in shellCommand()
372 sp<IResultReceiver> resultReceiver = IResultReceiver::asInterface( in onTransact() local
381 if (resultReceiver != nullptr) { in onTransact()
382 resultReceiver->send(INVALID_OPERATION); in onTransact()
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java394 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument
403 …Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initi… in sendOrderedBroadcast() argument
411 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast() argument
444 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser() argument
452 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
460 String receiverPermission, int appOp, Bundle options, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
467 String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcast() argument
475 String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcast() argument
487 … BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendStickyOrderedBroadcast() argument
510 UserHandle user, BroadcastReceiver resultReceiver, in sendStickyOrderedBroadcastAsUser() argument
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DUtils.java66 ResultReceiver resultReceiver = intent.getParcelableExtra(Intent.EXTRA_RESULT_RECEIVER); in sendLooperIdle() local
67 resultReceiver.send(0, null); in sendLooperIdle()
/frameworks/base/core/java/com/android/internal/view/
DIInputMethod.aidl51 void showSoftInput(int flags, in ResultReceiver resultReceiver); in showSoftInput() argument
53 void hideSoftInput(int flags, in ResultReceiver resultReceiver); in hideSoftInput() argument
DIInputMethodManager.aidl45 in ResultReceiver resultReceiver); in showSoftInput() argument
47 in ResultReceiver resultReceiver); in hideSoftInput() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsHandler.java955 SmsBroadcastReceiver resultReceiver = new SmsBroadcastReceiver(tracker); in processMessagePart() local
962 resultReceiver); in processMessagePart()
966 int result = mWapPush.dispatchWapPdu(output.toByteArray(), resultReceiver, in processMessagePart()
995 pdus, destPort, tracker, resultReceiver, true /* userUnlocked */); in processMessagePart()
998 dispatchSmsDeliveryIntent(pdus, format, destPort, resultReceiver, in processMessagePart()
1015 byte[][] pdus, int destPort, SmsBroadcastReceiver resultReceiver) { in processMessagePartWithUserLocked() argument
1024 pdus, destPort, tracker, resultReceiver, false /* userUnlocked */); in processMessagePartWithUserLocked()
1090 InboundSmsTracker tracker, SmsBroadcastReceiver resultReceiver, boolean userUnlocked) { in filterSms() argument
1093 pdus, destPort, tracker.getFormat(), resultReceiver, userUnlocked, in filterSms()
1105 dropSms(resultReceiver); in filterSms()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputMethod.java291 public void showSoftInput(int flags, ResultReceiver resultReceiver); in showSoftInput() argument
306 public void hideSoftInput(int flags, ResultReceiver resultReceiver); in hideSoftInput() argument
/frameworks/native/libs/graphicsenv/
DIGpuService.cpp210 sp<IResultReceiver> resultReceiver; in onTransact() local
211 if ((status = data.readNullableStrongBinder(&resultReceiver)) != OK) return status; in onTransact()
214 if (resultReceiver != nullptr) resultReceiver->send(status); in onTransact()
/frameworks/native/libs/sensor/
DISensorServer.cpp241 sp<IResultReceiver> resultReceiver; in onTransact() local
246 if ((status = data.readNullableStrongBinder(&resultReceiver)) != NO_ERROR) { in onTransact()
250 if (resultReceiver != nullptr) { in onTransact()
251 resultReceiver->send(status); in onTransact()
/frameworks/base/services/coverage/java/com/android/server/coverage/
DCoverageService.java59 String[] args, ShellCallback callback, ResultReceiver resultReceiver) { in onShellCommand() argument
60 new CoverageCommand().exec(this, in, out, err, args, callback, resultReceiver); in onShellCommand()
/frameworks/base/core/java/android/app/
DContextImpl.java1175 String receiverPermission, BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
1179 resultReceiver, scheduler, initialCode, initialData, initialExtras, null); in sendOrderedBroadcast()
1184 String receiverPermission, Bundle options, BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
1188 resultReceiver, scheduler, initialCode, initialData, initialExtras, options); in sendOrderedBroadcast()
1193 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
1197 resultReceiver, scheduler, initialCode, initialData, initialExtras, null); in sendOrderedBroadcast()
1201 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcast() argument
1206 if (resultReceiver != null) { in sendOrderedBroadcast()
1212 resultReceiver, getOuterContext(), scheduler, in sendOrderedBroadcast()
1219resultReceiver, getOuterContext(), scheduler, null, false).getIIntentReceiver(); in sendOrderedBroadcast()
[all …]
/frameworks/base/cmds/statsd/tests/shell/
DShellSubscriber_test.cpp82 sp<MyResultReceiver> resultReceiver = new MyResultReceiver(); in runShellTest() local
85 std::thread reader([&resultReceiver, &fds_config, &fds_data, &shellClient] { in runShellTest()
86 shellClient->startNewSubscription(fds_config[0], fds_data[1], resultReceiver, -1); in runShellTest()

12345