Home
last modified time | relevance | path

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

12

/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBroadcastsTest.java40 final ResultReceiver resultReceiver = new ResultReceiver(); in testExplicitManifestBroadcast() local
42 resultReceiver, null /* scheduler */, 0 /* initialCode */, in testExplicitManifestBroadcast()
45 assertThat(resultReceiver.getResult()).isEqualTo(ORDERED_BROADCAST_RESULT_DATA); in testExplicitManifestBroadcast()
55 final ResultReceiver resultReceiver = new ResultReceiver(); in testExplicitManifestBroadcast() local
57 resultReceiver, null /* scheduler */, 0 /* initialCode */, in testExplicitManifestBroadcast()
60 assertThat(resultReceiver.getResult()).isEqualTo(ORDERED_BROADCAST_RESULT_DATA); in testExplicitManifestBroadcast()
72 final ResultReceiver resultReceiver = new ResultReceiver(); in testImplicitManifestBroadcast() local
74 resultReceiver, null /* scheduler */, 0 /* initialCode */, in testImplicitManifestBroadcast()
77 assertThat(resultReceiver.getResult()).isEqualTo(ORDERED_BROADCAST_INITIAL_DATA); in testImplicitManifestBroadcast()
87 final ResultReceiver resultReceiver = new ResultReceiver(); in testImplicitManifestBroadcast() local
[all …]
DBroadcastFreezerTest.java84 final ResultReceiver resultReceiver = new ResultReceiver(); in testBroadcastOptions_appFreezingDelayed() local
88 resultReceiver, null, 0, null, null); in testBroadcastOptions_appFreezingDelayed()
91 assertThat(resultReceiver.getResult()) in testBroadcastOptions_appFreezingDelayed()
105 resultReceiver, null, 0, null, null); in testBroadcastOptions_appFreezingDelayed()
108 assertThat(resultReceiver.getResult()) in testBroadcastOptions_appFreezingDelayed()
157 final ResultReceiver resultReceiver = new ResultReceiver(); in testBroadcastDelivery_syncTxnWhileFrozen() local
159 resultReceiver, null, 0, null, null); in testBroadcastDelivery_syncTxnWhileFrozen()
161 assertThat(resultReceiver.getResult()) in testBroadcastDelivery_syncTxnWhileFrozen()
DBroadcastReceiverTest.java429 final MockReceiverInternal resultReceiver = new MockReceiverInternal(); in testAsync() local
430 mContext.sendOrderedBroadcast(intent, null, resultReceiver, null, 24, null, null); in testAsync()
437 resultReceiver.waitForReceiver(SEND_BROADCAST_TIMEOUT); in testAsync()
438 assertEquals(42, resultReceiver.getResultCode()); in testAsync()
/cts/tests/credentials/src/android/credentials/cts/unittests/selection/
DResultHelperTest.java61 ResultReceiver resultReceiver = mock(ResultReceiver.class); in sendUiFailure() local
64 FailureResult.sendFailureResult(resultReceiver, failure); in sendUiFailure()
66 verify(resultReceiver).send(eq(/*RESULT_CODE_DATA_PARSING_FAILURE*/3), in sendUiFailure()
76 ResultReceiver resultReceiver = mock(ResultReceiver.class); in sendFailure_nullMessage() local
79 FailureResult.sendFailureResult(resultReceiver, failure); in sendFailure_nullMessage()
81 verify(resultReceiver).send(eq(/*RESULT_CODE_DATA_PARSING_FAILURE*/3), in sendFailure_nullMessage()
92 ResultReceiver resultReceiver = mock(ResultReceiver.class); in sendUserCancelFailure() local
95 FailureResult.sendFailureResult(resultReceiver, failure); in sendUserCancelFailure()
97 verify(resultReceiver).send(eq(/*RESULT_CODE_DIALOG_USER_CANCELED*/0), in sendUserCancelFailure()
108 ResultReceiver resultReceiver = mock(ResultReceiver.class); in sendCancelAndLaunchSettingsFailure() local
[all …]
DIntentHelperTest.java259 ResultReceiver resultReceiver = new ResultReceiver(null); in testExtractResultReceiver() local
261 intent.putExtra("android.credentials.selection.extra.RESULT_RECEIVER", resultReceiver); in testExtractResultReceiver()
265 assertThat(actual).isEqualTo(resultReceiver); in testExtractResultReceiver()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DWindowFocusStealerService.java43 public void stealWindowFocus(IBinder parentAppWindowToken, ResultReceiver resultReceiver) { in stealWindowFocus() argument
44 mMainHandler.post(() -> handleStealWindowFocus(parentAppWindowToken, resultReceiver)); in stealWindowFocus()
63 IBinder parentAppWindowToken, ResultReceiver resultReceiver) { in handleStealWindowFocus() argument
75 resultReceiver.send(0, null); in handleStealWindowFocus()
DWindowFocusStealer.java81 final MyResultReceiver resultReceiver = new MyResultReceiver(); in stealWindowFocus() local
83 mService.stealWindowFocus(parentAppWindowToken, resultReceiver); in stealWindowFocus()
87 resultReceiver.waitResult(timeout); in stealWindowFocus()
DIWindowFocusStealer.aidl22 void stealWindowFocus(in IBinder parentAppWindowToken, in ResultReceiver resultReceiver); in stealWindowFocus() argument
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DTestServiceClient.java40 Bundle createOptions, ResultReceiver resultReceiver) in generatePendingIntent() argument
43 resultReceiver); in generatePendingIntent()
64 ResultReceiver resultReceiver) throws RemoteException { in generatePendingIntentBroadcast() argument
65 return mTestService.generatePendingIntentBroadcast(componentName, resultReceiver); in generatePendingIntentBroadcast()
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DClipboardTestActivity.java71 RemoteCallback resultReceiver = in processAction() local
73 if (resultReceiver != null) { in processAction()
74 resultReceiver.sendResult(result); in processAction()
/cts/tests/tests/wifi/CtsWifiLocationTestApp/src/android/net/wifi/cts/app/
DRetrieveTransportInfoAndReturnStatusService.java36 ResultReceiver resultReceiver = in onStartJob() local
44 resultReceiver.send( in onStartJob()
DRetrieveScanResultsAndReturnStatusService.java35 ResultReceiver resultReceiver = in onStartJob() local
54 resultReceiver.send(succeeded ? 1 : 0, null); in onStartJob()
DTriggerScanAndReturnStatusService.java35 ResultReceiver resultReceiver = in onStartJob() local
54 resultReceiver.send(succeeded ? 1 : 0, null); in onStartJob()
DRetrieveConnectionInfoAndReturnStatusService.java35 ResultReceiver resultReceiver = in onStartJob() local
54 resultReceiver.send(succeeded ? 1 : 0, null); in onStartJob()
/cts/tests/framework/base/windowmanager/backgroundactivity/common/aidl/android/server/wm/backgroundactivity/common/
DITestService.aidl25 …ponentName componentName, in int flags, in Bundle createOptions, in ResultReceiver resultReceiver); in generatePendingIntent() argument
26 …t generatePendingIntentBroadcast(in ComponentName componentName, in ResultReceiver resultReceiver); in generatePendingIntentBroadcast() argument
/cts/tests/tests/shortcutmanager/common/src/android.content.pm.cts.shortcutmanager.common/
DReplyUtil.java79 final BroadcastReceiver resultReceiver = new BroadcastReceiver() { in invokeAndWaitForReply() local
86 context.registerReceiver(resultReceiver, filter, Context.RECEIVER_EXPORTED); in invokeAndWaitForReply()
100 context.unregisterReceiver(resultReceiver); in invokeAndWaitForReply()
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/
DTestService.java53 Bundle createOptions, ResultReceiver resultReceiver) { in generatePendingIntent() argument
58 intent.putExtra(EVENT_NOTIFIER_EXTRA, resultReceiver); in generatePendingIntent()
66 ResultReceiver resultReceiver) { in generatePendingIntentBroadcast() argument
70 intent.putExtra(EVENT_NOTIFIER_EXTRA, resultReceiver); in generatePendingIntentBroadcast()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DDirectShellCommand.java171 final MyResultReceiver resultReceiver = new MyResultReceiver(pipeFds[0]); in run() local
176 out.getFileDescriptor(), err.getFileDescriptor(), args, null, resultReceiver); in run()
178 return resultReceiver::getResult; in run()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWaitForResultActivity.java106 ResultReceiver resultReceiver = new ResultReceiver(null) { in startServiceToWaitForResult() local
118 .putExtra(RESULT_RECEIVER_EXTRA, convertToGeneric(resultReceiver)) in startServiceToWaitForResult()
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java192 final ExtrasResultReceiver resultReceiver = new ExtrasResultReceiver(); in sendOrderedBroadcast() local
194 resultReceiver, null, 0, null, null); in sendOrderedBroadcast()
195 return resultReceiver; in sendOrderedBroadcast()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DRequestPinAppWidgetTest.java107 BlockingBroadcastReceiver resultReceiver = new BlockingBroadcastReceiver() in runPinWidgetTest() local
112 resultReceiver.await(); in runPinWidgetTest()
115 assertEquals("dummy-2", resultReceiver.result.getStringExtra("dummy")); in runPinWidgetTest()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java188 final ResultReceiver resultReceiver = new ResultReceiver(null) { in connectToService() local
204 parameters, null, resultReceiver); in connectToService()
/cts/tests/app/GetBindingUidImportanceTest/src/android/app/cts/getbindinguidimportance/
DActivityManager_getBindingUidImportanceTest.java216 final BroadcastReceiver resultReceiver = new BroadcastReceiver() { in sendBroadcastAndWait() local
227 resultReceiver, in sendBroadcastAndWait()
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/
DCtsSharesheetDeviceTest.java319 ResultReceiver resultReceiver = intent.getParcelableExtra( in testRefinementIntentSender()
328 resultReceiver.send(Activity.RESULT_OK, bundle); in testRefinementIntentSender()
428 ResultReceiver resultReceiver = intent.getParcelableExtra( in testRefinementCanOverwritePayloadFields()
434 resultReceiver.send(Activity.RESULT_OK, bundle); in testRefinementCanOverwritePayloadFields()
546 ResultReceiver resultReceiver = intent.getParcelableExtra( in testShortcutSelectionRefinedToAlternate()
555 resultReceiver.send(Activity.RESULT_OK, bundle); in testShortcutSelectionRefinedToAlternate()
732 ResultReceiver resultReceiver = intent.getParcelableExtra( in testChooserTargetsRefinement()
743 resultReceiver.send(Activity.RESULT_OK, bundle); in testChooserTargetsRefinement()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java727 public void showSoftInput(int flags, ResultReceiver resultReceiver) { in showSoftInput() argument
728 getTracer().showSoftInput(flags, resultReceiver, in showSoftInput()
729 () -> super.showSoftInput(flags, resultReceiver)); in showSoftInput()
733 public void hideSoftInput(int flags, ResultReceiver resultReceiver) { in hideSoftInput() argument
734 getTracer().hideSoftInput(flags, resultReceiver, in hideSoftInput()
735 () -> super.hideSoftInput(flags, resultReceiver)); in hideSoftInput()
1658 void showSoftInput(int flags, ResultReceiver resultReceiver, @NonNull Runnable runnable) {
1661 arguments.putParcelable("resultReceiver", resultReceiver);
1665 void hideSoftInput(int flags, ResultReceiver resultReceiver, @NonNull Runnable runnable) {
1668 arguments.putParcelable("resultReceiver", resultReceiver);

12