Home
last modified time | relevance | path

Searched refs:CallbackResult (Results 1 – 5 of 5) sorted by relevance

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DResultCallbackHelper.java50 public enum CallbackResult { enum in ResultCallbackHelper
69 public ListenableFuture<CallbackResult> callHandleResult( in callHandleResult()
89 return Futures.immediateFuture(CallbackResult.FAIL); in callHandleResult()
109 CallbackResult callbackResult = in callHandleResult()
110 statusCode == STATUS_SUCCESS ? CallbackResult.SUCCESS : CallbackResult.FAIL; in callHandleResult()
119 return Futures.immediateFuture(CallbackResult.FAIL); in callHandleResult()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DResultCallbackHelperTest.java43 import com.android.federatedcompute.services.training.ResultCallbackHelper.CallbackResult;
109 CallbackResult result = in testHandleResult_success()
112 assertThat(result).isEqualTo(CallbackResult.SUCCESS); in testHandleResult_success()
121 CallbackResult result = in testHandleResult_remoteException()
124 assertThat(result).isEqualTo(CallbackResult.FAIL); in testHandleResult_remoteException()
133 CallbackResult result = in testHandleResult_interruptedException()
136 assertThat(result).isEqualTo(CallbackResult.FAIL); in testHandleResult_interruptedException()
145 CallbackResult result = in testHandleResult_failed()
148 assertThat(result).isEqualTo(CallbackResult.FAIL); in testHandleResult_failed()
DFederatedComputeWorkerTest.java89 import com.android.federatedcompute.services.training.ResultCallbackHelper.CallbackResult;
389 doReturn(Futures.immediateFuture(CallbackResult.SUCCESS)) in doBeforeEachTest()
793 doReturn(Futures.immediateFuture(CallbackResult.FAIL)) in testPublishToResultHandlingServiceFails_returnsSuccess()
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DEventUrlProvider.java108 BlockingQueue<CallbackResult> asyncResult = new ArrayBlockingQueue<>(1); in getUrl()
116 asyncResult.add(new CallbackResult(result, 0)); in getUrl()
120 asyncResult.add(new CallbackResult(null, errorCode)); in getUrl()
123 CallbackResult callbackResult = asyncResult.take(); in getUrl()
147 private static class CallbackResult { class in EventUrlProvider
151 CallbackResult(Bundle result, int errorCode) { in CallbackResult() method in EventUrlProvider.CallbackResult
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/examplestore/
DExampleStoreServiceProvider.java89 BlockingQueue<CallbackResult> asyncResult = new ArrayBlockingQueue<>(1); in getExampleIterator()
96 asyncResult.add(new CallbackResult(iterator, 0)); in getExampleIterator()
103 asyncResult.add(new CallbackResult(null, errorCode)); in getExampleIterator()
107 CallbackResult callbackResult = in getExampleIterator()
122 private static class CallbackResult { class in ExampleStoreServiceProvider
126 CallbackResult(IExampleStoreIterator iterator, int errorCode) { in CallbackResult() method in ExampleStoreServiceProvider.CallbackResult