Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DCtsOdpManagerTests.java220 var receiver = new ResultReceiver<ExecuteResult>(); in testExecuteReturnsIllegalStateIfServiceNotEnrolled() local
225 receiver); in testExecuteReturnsIllegalStateIfServiceNotEnrolled()
226 assertNull(receiver.getResult()); in testExecuteReturnsIllegalStateIfServiceNotEnrolled()
227 assertTrue(receiver.getException() instanceof IllegalStateException); in testExecuteReturnsIllegalStateIfServiceNotEnrolled()
235 var receiver = new ResultReceiver<ExecuteResult>(); in testExecuteReturnsNameNotFoundIfServiceNotInstalled() local
240 receiver); in testExecuteReturnsNameNotFoundIfServiceNotInstalled()
241 assertNull(receiver.getResult()); in testExecuteReturnsNameNotFoundIfServiceNotInstalled()
242 assertTrue(receiver.getException() instanceof NameNotFoundException); in testExecuteReturnsNameNotFoundIfServiceNotInstalled()
251 var receiver = new ResultReceiver<ExecuteResult>(); in testExecuteReturnsClassNotFoundIfServiceClassNotFound() local
256 receiver); in testExecuteReturnsClassNotFoundIfServiceClassNotFound()
[all …]
DIsolatedWorkerTest.java72 WorkerResultReceiver<ExecuteOutput> receiver = new WorkerResultReceiver<>(); in testOnExecute() local
81 worker.onExecute(new ExecuteInput(inputParcel), receiver); in testOnExecute()
87 WorkerResultReceiver<RenderOutput> receiver = new WorkerResultReceiver<>(); in testOnRender() local
90 worker.onRender(input, receiver); in testOnRender()
91 assertEquals("abc", receiver.mResult.getContent()); in testOnRender()
97 WorkerResultReceiver<DownloadCompletedOutput> receiver = new WorkerResultReceiver<>(); in testOnDownloadCompleted() local
101 new DownloadCompletedInput.Builder(store).build(), receiver); in testOnDownloadCompleted()
102 assertThat(receiver.mResult.getRetainedKeys(), containsInAnyOrder("a", "b")); in testOnDownloadCompleted()
108 WorkerResultReceiver<EventOutput> receiver = new WorkerResultReceiver<>(); in testOnEvent() local
111 worker.onEvent(input, receiver); in testOnEvent()
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DOutcomeReceiverForTestsTest.java70 OutcomeReceiverForTests<String> receiver = newReceiver(TIMEOUT_MS * 3); in testOnResult() local
72 runAsync(TIMEOUT_MS, () -> receiver.onResult(RESULT)); in testOnResult()
74 assertSuccess(receiver, RESULT); in testOnResult()
79 OutcomeReceiverForTests<String> receiver = mCallback; in testOnResult_calledTwice() local
80 receiver.onResult(RESULT); in testOnResult_calledTwice()
82 receiver.onResult(anotherResult); in testOnResult_calledTwice()
84 receiver.assertCalled(); in testOnResult_calledTwice()
87 assertGetResultMethods(receiver, when, RESULT, anotherResult); in testOnResult_calledTwice()
88 assertGetFailureMethodsWhenNoFailure(receiver, when); in testOnResult_calledTwice()
93 OutcomeReceiverForTests<String> receiver = mCallback; in testOnResult_afterOnError() local
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DReceiverTrackingContext.java51 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
52 addReceiver(receiver, "registerReceiver(%s, %s)", receiver, filter); in registerReceiver()
54 return super.registerReceiver(receiver, filter); in registerReceiver()
58 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
60 addReceiver(receiver, "registerReceiver(%s, %s, %d)", receiver, filter, flags); in registerReceiver()
62 return super.registerReceiver(receiver, filter, flags); in registerReceiver()
66 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
68 addReceiver(receiver, "registerReceiver(%s, %s, %s, %s)", in registerReceiver()
69 receiver, filter, broadcastPermission, scheduler); in registerReceiver()
71 return super.registerReceiver(receiver, filter, broadcastPermission, in registerReceiver()
[all …]
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DOnDevicePersonalizationManagerTest.java95 var receiver = new ResultReceiver<ExecuteResult>(); in testExecuteSuccess() local
100 receiver); in testExecuteSuccess()
101 assertTrue(receiver.isSuccess()); in testExecuteSuccess()
102 assertFalse(receiver.isError()); in testExecuteSuccess()
103 assertNotNull(receiver.getResult()); in testExecuteSuccess()
104 assertEquals(receiver.getResult().getSurfacePackageToken().getTokenString(), "aaaa"); in testExecuteSuccess()
105 assertArrayEquals(receiver.getResult().getOutputData(), new byte[]{1, 2, 3}); in testExecuteSuccess()
113 var receiver = new ResultReceiver<ExecuteResult>(); in testExecuteUnknownError() local
118 receiver); in testExecuteUnknownError()
119 assertFalse(receiver.isSuccess()); in testExecuteUnknownError()
[all …]
DOnDevicePersonalizationSystemEventManagerTest.java60 var receiver = new ResultReceiver<Void>(); in testnotifyMeasurementEventSuccess() local
68 receiver); in testnotifyMeasurementEventSuccess()
69 assertTrue(receiver.isSuccess()); in testnotifyMeasurementEventSuccess()
70 assertFalse(receiver.isError()); in testnotifyMeasurementEventSuccess()
75 var receiver = new ResultReceiver<Void>(); in testnotifyMeasurementEventError() local
83 receiver); in testnotifyMeasurementEventError()
84 assertFalse(receiver.isSuccess()); in testnotifyMeasurementEventError()
85 assertTrue(receiver.isError()); in testnotifyMeasurementEventError()
118 var receiver = new ResultReceiver<Void>(); in testnotifyMeasurementEventCatchesExceptions() local
126 receiver); in testnotifyMeasurementEventCatchesExceptions()
[all …]
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAdServicesCommonManagerTest.java70 OutcomeReceiverForTests<Boolean> receiver = new OutcomeReceiverForTests<>(); in testStatusManagerNotAuthorizedOnSPlus() local
72 mCommonManager.isAdServicesEnabled(CALLBACK_EXECUTOR, receiver); in testStatusManagerNotAuthorizedOnSPlus()
74 receiver.assertFailure(SecurityException.class); in testStatusManagerNotAuthorizedOnSPlus()
81 OutcomeReceiverForTests<Boolean> receiver = new OutcomeReceiverForTests<>(); in testSetStatusEnabledNotExecutedOnSPlus() local
83 mCommonManager.isAdServicesEnabled(CALLBACK_EXECUTOR, receiver); in testSetStatusEnabledNotExecutedOnSPlus()
85 receiver.assertFailure(SecurityException.class); in testSetStatusEnabledNotExecutedOnSPlus()
92 AdServicesOutcomeReceiverForTests<Boolean> receiver = in testStatusManagerNotAuthorizedCompat() local
95 mCommonManager.isAdServicesEnabled(CALLBACK_EXECUTOR, receiver); in testStatusManagerNotAuthorizedCompat()
97 receiver.assertFailure(SecurityException.class); in testStatusManagerNotAuthorizedCompat()
103 AdServicesOutcomeReceiverForTests<Boolean> receiver = in testSetStatusEnabledNotExecutedCompat() local
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/
DTestAdSelectionManager.java80 @NonNull OutcomeReceiver<Object, Exception> receiver) { in overrideAdSelectionConfigRemoteInfo() argument
83 Objects.requireNonNull(receiver); in overrideAdSelectionConfigRemoteInfo()
96 executor.execute(() -> receiver.onResult(new Object())); in overrideAdSelectionConfigRemoteInfo()
103 receiver.onError( in overrideAdSelectionConfigRemoteInfo()
110 receiver.onError( in overrideAdSelectionConfigRemoteInfo()
114 receiver.onError(new IllegalStateException("Failure of AdSelection service.", e)); in overrideAdSelectionConfigRemoteInfo()
139 @NonNull OutcomeReceiver<Object, Exception> receiver) { in removeAdSelectionConfigRemoteInfoOverride() argument
142 Objects.requireNonNull(receiver); in removeAdSelectionConfigRemoteInfoOverride()
152 executor.execute(() -> receiver.onResult(new Object())); in removeAdSelectionConfigRemoteInfoOverride()
159 receiver.onError( in removeAdSelectionConfigRemoteInfoOverride()
[all …]
DAdSelectionManager.java230 @NonNull OutcomeReceiver<GetAdSelectionDataOutcome, Exception> receiver) { in getAdSelectionData() argument
233 Objects.requireNonNull(receiver); in getAdSelectionData()
254 receiver.onError( in getAdSelectionData()
260 receiver.onResult( in getAdSelectionData()
273 receiver.onError( in getAdSelectionData()
280 receiver.onError( in getAdSelectionData()
284 receiver.onError(new IllegalStateException("Failure of AdSelection service.", e)); in getAdSelectionData()
327 @NonNull OutcomeReceiver<AdSelectionOutcome, Exception> receiver) { in persistAdSelectionResult() argument
330 Objects.requireNonNull(receiver); in persistAdSelectionResult()
349 receiver.onResult( in persistAdSelectionResult()
[all …]
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java202 HealthConnectReceiver<ChangeLogTokenResponse> receiver = new HealthConnectReceiver<>(); in getChangeLogToken() local
204 .getChangeLogToken(request, Executors.newSingleThreadExecutor(), receiver); in getChangeLogToken()
205 return receiver.getResponse(); in getChangeLogToken()
260 HealthConnectReceiver<InsertRecordsResponse> receiver = new HealthConnectReceiver<>(); in insertRecords() local
263 unmodifiableList(records), Executors.newSingleThreadExecutor(), receiver); in insertRecords() local
264 List<Record> returnedRecords = receiver.getResponse().getRecords(); in insertRecords()
289 HealthConnectReceiver<Void> receiver = new HealthConnectReceiver<>(); in updateRecords() local
292 unmodifiableList(records), Executors.newSingleThreadExecutor(), receiver); in updateRecords() local
293 receiver.verifyNoExceptionOrThrow(); in updateRecords()
303 HealthConnectReceiver<ChangeLogsResponse> receiver = new HealthConnectReceiver<>(); in getChangeLogs() local
[all …]
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DIsolatedWorker.java58 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute() argument
59 receiver.onResult(new ExecuteOutput.Builder().build()); in onExecute()
76 @NonNull OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted() argument
77 receiver.onResult(new DownloadCompletedOutput.Builder().build()); in onDownloadCompleted()
97 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender() argument
98 receiver.onResult(new RenderOutput.Builder().build()); in onRender()
115 @NonNull OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent() argument
116 receiver.onResult(new EventOutput.Builder().build()); in onEvent()
133 @NonNull OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples() argument
134 receiver.onResult(new TrainingExamplesOutput.Builder().build()); in onTrainingExamples()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceWorkerTest.java105 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testGetAdServicesExtData_serviceNotFound_resultsInOnErrorSet() local
107 mSpyWorker.getAdServicesExtData(receiver); in testGetAdServicesExtData_serviceNotFound_resultsInOnErrorSet()
109 Exception exception = receiver.assertErrorReceived(); in testGetAdServicesExtData_serviceNotFound_resultsInOnErrorSet()
118 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testGetAdServicesExtData_onResultSet() local
120 mSpyWorker.getAdServicesExtData(receiver); in testGetAdServicesExtData_onResultSet()
122 AdServicesExtDataParams result = receiver.assertSuccess(); in testGetAdServicesExtData_onResultSet()
131 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testGetAdServicesExtData_onErrorSet() local
133 mSpyWorker.getAdServicesExtData(receiver); in testGetAdServicesExtData_onErrorSet()
135 Exception exception = receiver.assertErrorReceived(); in testGetAdServicesExtData_onErrorSet()
144 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testSetAdServicesExtData_serviceNotFound_resultsInOnErrorSet() local
[all …]
DAdServicesExtDataStorageServiceDebugProxyTest.java116 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testGetAdServicesExtData_onResultSet() local
118 mSpyProxy.getAdServicesExtData(receiver); in testGetAdServicesExtData_onResultSet()
120 AdServicesExtDataParams adServicesExtDataParams = receiver.assertSuccess(); in testGetAdServicesExtData_onResultSet()
140 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testGetAdServicesExtData_onErrorSet() local
142 mSpyProxy.getAdServicesExtData(receiver); in testGetAdServicesExtData_onErrorSet()
143 Exception exception = receiver.assertErrorReceived(); in testGetAdServicesExtData_onErrorSet()
149 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testSetAdServicesExtData_onResultSet() local
151 mSpyProxy.setAdServicesExtData(TEST_PARAMS, TEST_FIELD_LIST, receiver); in testSetAdServicesExtData_onResultSet()
152 expect.that(receiver.assertSuccess()).isEqualTo(TEST_PARAMS); in testSetAdServicesExtData_onResultSet()
159 AdServicesOutcomeReceiverForTests<AdServicesExtDataParams> receiver = in testSetAdServicesExtData_onErrorSet() local
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/customaudience/
DCustomAudienceManager.java161 @NonNull OutcomeReceiver<Object, Exception> receiver) { in joinCustomAudience() argument
164 Objects.requireNonNull(receiver); in joinCustomAudience()
177 executor.execute(() -> receiver.onResult(new Object())); in joinCustomAudience()
184 receiver.onError( in joinCustomAudience()
191 receiver.onError(new IllegalStateException("Internal Error!", e)); in joinCustomAudience()
229 @NonNull OutcomeReceiver<Object, Exception> receiver) { in fetchAndJoinCustomAudience() argument
232 Objects.requireNonNull(receiver); in fetchAndJoinCustomAudience()
252 executor.execute(() -> receiver.onResult(new Object())); in fetchAndJoinCustomAudience()
259 receiver.onError( in fetchAndJoinCustomAudience()
266 receiver.onError(new IllegalStateException("Internal Error!", e)); in fetchAndJoinCustomAudience()
[all …]
DTestCustomAudienceManager.java74 @NonNull OutcomeReceiver<Object, Exception> receiver) { in overrideCustomAudienceRemoteInfo() argument
77 Objects.requireNonNull(receiver); in overrideCustomAudienceRemoteInfo()
90 executor.execute(() -> receiver.onResult(new Object())); in overrideCustomAudienceRemoteInfo()
97 receiver.onError( in overrideCustomAudienceRemoteInfo()
104 receiver.onError(new IllegalStateException("Internal Error!", e)); in overrideCustomAudienceRemoteInfo()
123 @NonNull OutcomeReceiver<Object, Exception> receiver) { in removeCustomAudienceRemoteInfoOverride() argument
126 Objects.requireNonNull(receiver); in removeCustomAudienceRemoteInfoOverride()
136 executor.execute(() -> receiver.onResult(new Object())); in removeCustomAudienceRemoteInfoOverride()
143 receiver.onError( in removeCustomAudienceRemoteInfoOverride()
150 receiver.onError(new IllegalStateException("Internal Error!", e)); in removeCustomAudienceRemoteInfoOverride()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DCompatUtils.java93 public static Object invoke(final Object receiver, final Object defaultValue, in invoke() argument
99 return method.invoke(receiver, args); in invoke()
107 public static Object getFieldValue(final Object receiver, final Object defaultValue, in getFieldValue() argument
113 return field.get(receiver); in getFieldValue()
120 public static void setFieldValue(final Object receiver, final Field field, final Object value) { in setFieldValue() argument
125 field.set(receiver, value); in setFieldValue()
178 public T invoke(final Object receiver, final Object... args) { in invoke() argument
179 return (T) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke()
190 public int invoke(final Object receiver, final Object... args) { in invoke() argument
191 return (int) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke()
[all …]
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkController.java159 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in setEnabled() argument
161 mControllerService.setEnabled(enabled, new OperationReceiverProxy(executor, receiver)); in setEnabled()
192 @NonNull OutcomeReceiver<ActiveOperationalDataset, ThreadNetworkException> receiver) { in createRandomizedDataset() argument
195 requireNonNull(receiver, "receiver cannot be null"); in createRandomizedDataset()
198 networkName, new ActiveDatasetReceiverProxy(executor, receiver)); in createRandomizedDataset()
493 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in join() argument
496 requireNonNull(receiver, "receiver cannot be null"); in join()
498 mControllerService.join(activeDataset, new OperationReceiverProxy(executor, receiver)); in join()
545 @NonNull OutcomeReceiver<Void, ThreadNetworkException> receiver) { in scheduleMigration() argument
548 requireNonNull(receiver, "receiver cannot be null"); in scheduleMigration()
[all …]
DIThreadNetworkController.aidl38 void join(in ActiveOperationalDataset activeOpDataset, in IOperationReceiver receiver); in join() argument
39 …d scheduleMigration(in PendingOperationalDataset pendingOpDataset, in IOperationReceiver receiver); in scheduleMigration() argument
40 void leave(in IOperationReceiver receiver); in leave() argument
42 … void setTestNetworkAsUpstream(in String testNetworkInterfaceName, in IOperationReceiver receiver); in setTestNetworkAsUpstream() argument
43 void setChannelMaxPowers(in ChannelMaxPower[] channelMaxPowers, in IOperationReceiver receiver); in setChannelMaxPowers() argument
46 void createRandomizedDataset(String networkName, IActiveOperationalDatasetReceiver receiver); in createRandomizedDataset() argument
48 void setEnabled(boolean enabled, in IOperationReceiver receiver); in setEnabled() argument
/packages/modules/RemoteKeyProvisioning/system-server/tests/unit/src/android/security/rkp/service/test/
DRegistrationProxyTests.java157 final var receiver = new ErrorReceiver<RegistrationProxy>(); in serviceNotFound() local
159 receiver); in serviceNotFound()
161 assertThat(receiver.waitForError()).isInstanceOf(IllegalStateException.class); in serviceNotFound()
175 final var receiver = new ErrorReceiver<RegistrationProxy>(); in tooManyServicesFound() local
177 receiver); in tooManyServicesFound()
179 assertThat(receiver.waitForError()).isInstanceOf(IllegalStateException.class); in tooManyServicesFound()
192 final var receiver = new ErrorReceiver<RegistrationProxy>(); in bindServiceAsUserReturnsFalse() local
194 receiver); in bindServiceAsUserReturnsFalse()
196 assertThat(receiver.waitForError()).isInstanceOf(RemoteException.class); in bindServiceAsUserReturnsFalse()
212 final var receiver = new ErrorReceiver<RegistrationProxy>(); in boundRegistrationServiceIsNull() local
[all …]
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java432 void forceStopOtDaemonForTest(boolean enabled, @NonNull IOperationReceiver receiver) { in forceStopOtDaemonForTest() argument
440 receiver, true /* expectOtDaemonDied */))); in forceStopOtDaemonForTest()
444 boolean enabled, @NonNull OperationReceiverWrapper receiver) { in forceStopOtDaemonForTestInternal() argument
447 receiver.onSuccess(); in forceStopOtDaemonForTestInternal()
454 receiver.onSuccess(); in forceStopOtDaemonForTestInternal()
465 receiver.onError(ERROR_INTERNAL_ERROR, "Thread stack error"); in forceStopOtDaemonForTestInternal()
474 public void setEnabled(boolean isEnabled, @NonNull IOperationReceiver receiver) { in setEnabled() argument
482 new OperationReceiverWrapper(receiver))); in setEnabled()
486 boolean isEnabled, boolean persist, @NonNull OperationReceiverWrapper receiver) { in setEnabledInternal() argument
489 receiver.onError( in setEnabledInternal()
[all …]
DOperationReceiverWrapper.java41 public OperationReceiverWrapper(IOperationReceiver receiver) { in OperationReceiverWrapper() argument
42 this(receiver, false /* expectOtDaemonDied */); in OperationReceiverWrapper()
52 public OperationReceiverWrapper(IOperationReceiver receiver, boolean expectOtDaemonDied) { in OperationReceiverWrapper() argument
53 mReceiver = receiver; in OperationReceiverWrapper()
63 for (OperationReceiverWrapper receiver : sPendingReceivers) { in onOtDaemonDied()
65 if (receiver.mExpectOtDaemonDied) { in onOtDaemonDied()
66 receiver.mReceiver.onSuccess(); in onOtDaemonDied()
68 receiver.mReceiver.onError(ERROR_UNAVAILABLE, "Thread daemon died"); in onOtDaemonDied()
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DITetheringConnector.aidl26 IIntResultListener receiver); in tether() argument
29 IIntResultListener receiver); in untether() argument
32 String callingAttributionTag, IIntResultListener receiver); in setUsbTethering() argument
35 String callingAttributionTag, IIntResultListener receiver); in startTethering() argument
38 IIntResultListener receiver); in stopTethering() argument
40 void requestLatestTetheringEntitlementResult(int type, in ResultReceiver receiver, in requestLatestTetheringEntitlementResult() argument
48 IIntResultListener receiver); in isTetheringSupported() argument
51 IIntResultListener receiver); in stopAllTethering() argument
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java99 BitmapReceiver receiver) { in decodeBitmap() argument
103 receiver); in decodeBitmap()
109 receiver.onBitmapDecoded(cached); in decodeBitmap()
115 receiver.onBitmapDecoded(bitmap); in decodeBitmap()
127 public void decodeBitmap(BitmapReceiver receiver) { in decodeBitmap() argument
128 decodeBitmap(0, 0, receiver); in decodeBitmap()
133 boolean shouldAdjustForRtl, BitmapReceiver receiver) { in decodeBitmapRegion() argument
137 receiver); in decodeBitmapRegion()
144 receiver.onBitmapDecoded(cached); in decodeBitmapRegion()
151 receiver.onBitmapDecoded(bitmap); in decodeBitmapRegion()
[all …]
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DTestAsset.java60 public void decodeBitmap(BitmapReceiver receiver) { in decodeBitmap() argument
62 receiver.onBitmapDecoded(mBitmap)); in decodeBitmap()
67 BitmapReceiver receiver) { in decodeBitmap() argument
69 receiver.onBitmapDecoded(mBitmap)); in decodeBitmap()
74 boolean shouldAdjustForRtl, BitmapReceiver receiver) { in decodeBitmapRegion() argument
76 receiver.onBitmapDecoded(mBitmap)); in decodeBitmapRegion()
80 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument
82 receiver.onDimensionsDecoded(mIsCorrupt ? null : new Point(1, 1))); in decodeRawDimensions()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/test/
DTestPersonalizationHandler.java61 OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted() argument
74 receiver.onResult(result); in onDownloadCompleted()
83 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute() argument
106 receiver.onResult(result); in onExecute()
112 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender() argument
121 receiver.onResult(result); in onRender()
127 @NonNull OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent() argument
145 receiver.onResult(result); in onEvent()
158 @NonNull OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples() argument
181 receiver.onResult(output); in onTrainingExamples()
[all …]

12345678910>>...13