Searched refs:CallbackResult (Results 1 – 5 of 5) sorted by relevance
50 public enum CallbackResult { enum in ResultCallbackHelper69 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()
43 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()
89 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()
108 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 EventUrlProvider151 CallbackResult(Bundle result, int errorCode) { in CallbackResult() method in EventUrlProvider.CallbackResult
89 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 ExampleStoreServiceProvider126 CallbackResult(IExampleStoreIterator iterator, int errorCode) { in CallbackResult() method in ExampleStoreServiceProvider.CallbackResult