/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/ |
D | BroadcastsTest.java | 40 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 …]
|
D | BroadcastFreezerTest.java | 84 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()
|
D | BroadcastReceiverTest.java | 429 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/ |
D | ResultHelperTest.java | 61 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 …]
|
D | IntentHelperTest.java | 259 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/ |
D | WindowFocusStealerService.java | 43 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()
|
D | WindowFocusStealer.java | 81 final MyResultReceiver resultReceiver = new MyResultReceiver(); in stealWindowFocus() local 83 mService.stealWindowFocus(parentAppWindowToken, resultReceiver); in stealWindowFocus() 87 resultReceiver.waitResult(timeout); in stealWindowFocus()
|
D | IWindowFocusStealer.aidl | 22 void stealWindowFocus(in IBinder parentAppWindowToken, in ResultReceiver resultReceiver); in stealWindowFocus() argument
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | TestServiceClient.java | 40 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/ |
D | ClipboardTestActivity.java | 71 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/ |
D | RetrieveTransportInfoAndReturnStatusService.java | 36 ResultReceiver resultReceiver = in onStartJob() local 44 resultReceiver.send( in onStartJob()
|
D | RetrieveScanResultsAndReturnStatusService.java | 35 ResultReceiver resultReceiver = in onStartJob() local 54 resultReceiver.send(succeeded ? 1 : 0, null); in onStartJob()
|
D | TriggerScanAndReturnStatusService.java | 35 ResultReceiver resultReceiver = in onStartJob() local 54 resultReceiver.send(succeeded ? 1 : 0, null); in onStartJob()
|
D | RetrieveConnectionInfoAndReturnStatusService.java | 35 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/ |
D | ITestService.aidl | 25 …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/ |
D | ReplyUtil.java | 79 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/ |
D | TestService.java | 53 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/ |
D | DirectShellCommand.java | 171 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/ |
D | WaitForResultActivity.java | 106 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/ |
D | SplitAppTest.java | 192 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/ |
D | RequestPinAppWidgetTest.java | 107 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/ |
D | IncrementalDeviceConnection.java | 188 final ResultReceiver resultReceiver = new ResultReceiver(null) { in connectToService() local 204 parameters, null, resultReceiver); in connectToService()
|
/cts/tests/app/GetBindingUidImportanceTest/src/android/app/cts/getbindinguidimportance/ |
D | ActivityManager_getBindingUidImportanceTest.java | 216 final BroadcastReceiver resultReceiver = new BroadcastReceiver() { in sendBroadcastAndWait() local 227 resultReceiver, in sendBroadcastAndWait()
|
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/ |
D | CtsSharesheetDeviceTest.java | 319 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/ |
D | MockIme.java | 727 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);
|