Home
last modified time | relevance | path

Searched refs:responseFuture (Results 1 – 11 of 11) sorted by relevance

/external/downloader/src/main/java/com/google/android/downloader/
DCronetUrlEngine.java69 SettableFuture<UrlResponse> responseFuture = SettableFuture.create(); in createRequest() local
70 CronetCallback callback = new CronetCallback(responseFuture); in createRequest()
73 return new CronetUrlRequestBuilder(builder, responseFuture); in createRequest()
84 private final ListenableFuture<UrlResponse> responseFuture; field in CronetUrlEngine.CronetUrlRequest
88 responseFuture = builder.responseFuture; in CronetUrlRequest()
90 responseFuture.addListener( in CronetUrlRequest()
92 if (responseFuture.isCancelled()) { in CronetUrlRequest()
102 return responseFuture; in send()
109 private final ListenableFuture<UrlResponse> responseFuture; field in CronetUrlEngine.CronetUrlRequestBuilder
113 ListenableFuture<UrlResponse> responseFuture) { in CronetUrlRequestBuilder() argument
[all …]
DOkHttp3UrlEngine.java125 SettableFuture<UrlResponse> responseFuture = SettableFuture.create(); in send() local
132 responseFuture.set(new OkHttpUrlResponse(response)); in send()
134 responseFuture.setException( in send()
144 responseFuture.setException(new RequestException(exception)); in send()
147 responseFuture.addListener( in send()
149 if (responseFuture.isCancelled()) { in send()
154 return responseFuture; in send()
DOkHttp2UrlEngine.java125 SettableFuture<UrlResponse> responseFuture = SettableFuture.create(); in send() local
132 responseFuture.set(new OkHttpUrlResponse(response)); in send()
134 responseFuture.setException( in send()
148 responseFuture.setException(new RequestException(exception)); in send()
151 responseFuture.addListener( in send()
153 if (responseFuture.isCancelled()) { in send()
158 return responseFuture; in send()
DDownloader.java671 (closer, responseFuture) -> completeRequest(request, checkNotNull(responseFuture)), in runRequest()
681 DownloadRequest request, ListenableFuture<UrlResponse> responseFuture) { in completeRequest() argument
682 return ClosingFuture.from(responseFuture) in completeRequest()
/external/downloader/src/test/java/com/google/android/downloader/
DMockWebServerUrlEngineTestHelper.java86 ListenableFuture<UrlResponse> responseFuture = request.send(); in executeRequest_normalResponse_succeeds() local
87 UrlResponse response = responseFuture.get(); in executeRequest_normalResponse_succeeds()
130 ListenableFuture<UrlResponse> responseFuture = request.send(); in executeRequest_responseThrottled_succeeds() local
131 UrlResponse response = responseFuture.get(); in executeRequest_responseThrottled_succeeds()
178 ListenableFuture<UrlResponse> responseFuture = request.send(); in executeRequest_largeResponse_succeeds() local
179 UrlResponse response = responseFuture.get(); in executeRequest_largeResponse_succeeds()
216 ListenableFuture<UrlResponse> responseFuture = request.send(); in executeRequest_closeBeforeWrite_failsAborted() local
217 UrlResponse response = responseFuture.get(); in executeRequest_closeBeforeWrite_failsAborted()
234 ListenableFuture<UrlResponse> responseFuture = request.send(); in executeRequest_serverError_failsInternalError() local
236 ExecutionException exception = assertThrows(ExecutionException.class, responseFuture::get); in executeRequest_serverError_failsInternalError()
[all …]
DCronetUrlEngineTest.java116 ListenableFuture<? extends UrlResponse> responseFuture = request.send(); in executeRequest_fileUrl_requestFails() local
120 ExecutionException exception = assertThrows(ExecutionException.class, responseFuture::get); in executeRequest_fileUrl_requestFails()
DPlatformUrlEngineTest.java119 ListenableFuture<? extends UrlResponse> responseFuture = request.send(); in executeRequest_fileUrl() local
120 UrlResponse response = responseFuture.get(); in executeRequest_fileUrl()
DDataUrlEngineTest.java81 ListenableFuture<? extends UrlResponse> responseFuture = request.send(); in executeRequest_invalidDataUrl() local
83 ExecutionException exception = assertThrows(ExecutionException.class, responseFuture::get); in executeRequest_invalidDataUrl()
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DClientCalls.java127 ListenableFuture<RespT> responseFuture = futureUnaryCall(call, req); in blockingUnaryCall() local
128 while (!responseFuture.isDone()) { in blockingUnaryCall()
139 return getUnchecked(responseFuture); in blockingUnaryCall()
188 GrpcFuture<RespT> responseFuture = new GrpcFuture<RespT>(call); in futureUnaryCall() local
189 asyncUnaryRequestCall(call, req, new UnaryStreamToFuture<RespT>(responseFuture), false); in futureUnaryCall()
190 return responseFuture; in futureUnaryCall()
450 private final GrpcFuture<RespT> responseFuture; field in ClientCalls.UnaryStreamToFuture
454 UnaryStreamToFuture(GrpcFuture<RespT> responseFuture) { in UnaryStreamToFuture() argument
455 this.responseFuture = responseFuture; in UnaryStreamToFuture()
476 responseFuture.setException( in onClose()
[all …]
/external/bcc/examples/usdt_sample/usdt_sample_app1/
Dmain.cpp132 auto responseFuture = op.executeAsync(OperationRequest(inputOss.str())); in main() local
136 responseQueue.push(responseFuture); in main()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyClientTransportTest.java683 listener.responseFuture.get(10, TimeUnit.SECONDS); in waitForResponse()
693 final SettableFuture<Void> responseFuture = SettableFuture.create(); field in NettyClientTransportTest.TestClientStreamListener
711 responseFuture.setException(e); in closed()
718 responseFuture.set(null); in messagesAvailable()