/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
PerCallSettings.java | 20 import com.squareup.okhttp.Response; 36 Response response = cloned.newCall(request).execute(); local 37 System.out.println("Response 1 succeeded: " + response); 39 System.out.println("Response 1 failed: " + e); 46 Response response = cloned.newCall(request).execute(); local 47 System.out.println("Response 2 succeeded: " + response); [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
ImageRequest.java | 28 import com.android.volley.Response; 49 private Response.Listener<Bitmap> mListener; 76 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, 77 ScaleType scaleType, Config decodeConfig, Response.ErrorListener errorListener) { 93 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, 94 Config decodeConfig, Response.ErrorListener errorListener) { 159 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) { 163 return doParse(response); 165 VolleyLog.e("Caught OOM for %d byte image, url=%s", response.data.length, getUrl()) [all...] |
RequestFuture.java | 20 import com.android.volley.Response; 31 * Used by providing as your response and error listeners. For example: 43 * JSONObject response = future.get(); 44 * // do something with response 52 * @param <T> The type of parsed response this future expects. 54 public class RequestFuture<T> implements Future<T>, Response.Listener<T>, 55 Response.ErrorListener { 141 public synchronized void onResponse(T response) { 143 mResult = response;
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/ |
Mmc.h | 42 #define MMC_CSD_GET_CCC(Response) (Response[2] >> 20)
43 #define MMC_CSD_GET_TRANSPEED(Response) (Response[3] & 0xFF)
44 #define MMC_CSD_GET_READBLLEN(Response) ((Response[2] >> 16) & 0xF)
45 #define MMC_CSD_GET_WRITEBLLEN(Response) ((Response[0] >> 22) & 0xF)
46 #define MMC_CSD_GET_FILEFORMAT(Response) ((Response[0] >> 10) & 0x3) [all...] |
MmcIdentification.c | 94 DEBUG ((EFI_D_ERROR, "EmmcGetDeviceState(): Failed to get response of CMD13, Status=%r.\n", Status));
143 IN OCR_RESPONSE Response
306 UINT32 Response[4];
326 // Read Response
327 Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_CSD, Response);
332 PrintCSD (Response);
333 if (MMC_CSD_GET_CCC(Response) & SD_CCC_SWITCH) {
340 CardSize = HC_MMC_CSD_GET_DEVICESIZE (Response);
342 BlockSize = 1 << MMC_CSD_GET_READBLLEN (Response);
344 CardSize = MMC_CSD_GET_DEVICESIZE (Response);
[all...] |
MmcDebug.c | 128 IN UINT32 Response
131 DEBUG ((EFI_D_INFO, "Response: 0x%X\n", Response));
132 if (Response & MMC_R0_READY_FOR_DATA) {
136 switch ((Response >> 9) & 0xF) {
|
/external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/ |
AppNanolets.java | 51 import fi.iki.elonen.NanoHTTPD.Response.IStatus; 52 import fi.iki.elonen.NanoHTTPD.Response.Status; 91 public NanoHTTPD.Response.IStatus getStatus() { 92 return NanoHTTPD.Response.Status.OK; 95 public NanoHTTPD.Response get(UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) {
|
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/ |
CacheAdapter.java | 19 import com.squareup.okhttp.Response; 46 @Override public Response get(Request request) throws IOException { 54 @Override public CacheRequest put(Response response) throws IOException { 55 URI uri = response.request().uri(); 56 HttpURLConnection connection = JavaApiConverter.createJavaUrlConnectionForCachePut(response); 81 @Override public void update(Response cached, Response network) throws IOException { 86 // with the original cached response.
|
/system/bt/service/ipc/dbus/ |
bluetooth_adapter.cc | 26 using ::dbus::Response; 76 response_sender.Run(Response::FromMethodCall(method_call)); 83 response_sender.Run(Response::FromMethodCall(method_call)); 96 std::unique_ptr<Response> response(Response::FromMethodCall(method_call)); 97 MessageWriter writer(response.get()); 100 response_sender.Run(std::move(response));
|
/external/libbrillo/brillo/http/ |
http_utils.h | 49 // For more advanced functionality you need to use Request/Response objects 55 // can be obtained from the returned Response object. 56 BRILLO_EXPORT std::unique_ptr<Response> SendRequestAndBlock( 68 BRILLO_EXPORT std::unique_ptr<Response> SendRequestWithNoDataAndBlock( 76 // with the response object. On failure, |error_callback| is called with the 119 // the returned Response object. 120 BRILLO_EXPORT std::unique_ptr<Response> GetAndBlock( 138 // the returned Response object. 139 BRILLO_EXPORT std::unique_ptr<Response> HeadAndBlock( 155 // from the returned Response object [all...] |
http_request.cc | 134 std::unique_ptr<Response> Request::GetResponseAndBlock( 137 return std::unique_ptr<Response>(); 138 std::unique_ptr<Response> response(new Response(connection_)); 140 transport_.reset(); // Indicate that the response has been received 141 return response; 285 "HTTP response already received"); 291 // ********************** Response Class ********************** 293 Response::Response(const std::shared_ptr<Connection>& connection [all...] |
/external/v8/src/inspector/ |
v8-profiler-agent-impl.cc | 202 Response V8ProfilerAgentImpl::enable() { 203 if (m_enabled) return Response::OK(); 206 return Response::OK(); 209 Response V8ProfilerAgentImpl::disable() { 210 if (!m_enabled) return Response::OK(); 219 return Response::OK(); 222 Response V8ProfilerAgentImpl::setSamplingInterval(int interval) { 224 return Response::Error("Cannot change sampling interval when profiling."); 227 return Response::OK(); 246 Response V8ProfilerAgentImpl::start() [all...] |
v8-value-copier.cc | 76 protocol::Response toProtocolValue(v8::Local<v8::Context> context, 79 using protocol::Response; 82 return Response::InternalError(); 85 if (!maxDepth) return Response::Error("Object reference chain is too long"); 90 return Response::OK(); 95 return Response::OK(); 102 return Response::OK(); 105 return Response::OK(); 110 return Response::OK(); 120 return Response::InternalError() 122 Response response = toProtocolValue(context, value, maxDepth, &element); local 154 Response response = local [all...] |
/prebuilts/go/darwin-x86/src/net/http/ |
filetransport.go | 34 func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) { 38 // sends our *Response on, once the *Response itself has been 49 func newPopulateResponseWriter() (*populateResponse, <-chan *Response) { 52 ch: make(chan *Response), 54 res: &Response{ 65 // populateResponse is a ResponseWriter that populates the *Response 66 // in res, and writes its body to a pipe connected to the response 67 // body. Once writes begin or finish() is called, the response is sent 70 res *Response [all...] |
/prebuilts/go/linux-x86/src/net/http/ |
filetransport.go | 34 func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) { 38 // sends our *Response on, once the *Response itself has been 49 func newPopulateResponseWriter() (*populateResponse, <-chan *Response) { 52 ch: make(chan *Response), 54 res: &Response{ 65 // populateResponse is a ResponseWriter that populates the *Response 66 // in res, and writes its body to a pipe connected to the response 67 // body. Once writes begin or finish() is called, the response is sent 70 res *Response [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/ |
IScsiCHAP.c | 75 The initator checks the CHAP response replied by target against its own
79 @param[in] TargetResponse The response from target.
81 @retval EFI_SUCCESS The response from target passed authentication.
82 @retval EFI_SECURITY_VIOLATION The response from target was not expected value.
115 This function checks the received iSCSI Login Response during the security
120 @retval EFI_SUCCESS The Login Response passed the CHAP validation.
141 CHAR8 *Response;
162 // Build the key-value list from the data segment of the Login Response.
175 // The first Login Response.
236 // Calculate Response value [all...] |
/external/libbrillo/brillo/dbus/ |
dbus_object_internal_impl.h | 9 // sent back to the caller of D-Bus method via the response message. 54 // a success or error response message had been sent). 61 // (that is, they do not send an error response). 118 auto response = method_response.CreateCustomResponse(); 119 dbus::MessageWriter writer(response.get()); 121 method_response.SendRawResponse(std::move(response)); 140 // synchronous method handlers that may fail and return an error response 167 auto response = method_response.CreateCustomResponse(); 168 dbus::MessageWriter writer(response.get()); 170 method_response.SendRawResponse(std::move(response)); [all...] |
dbus_object_test_helpers.h | 37 // instance of D-Bus method call response message. We use this in tests 38 // to get the response in case the handler processes a method call request 43 void ReceiveResponse(std::unique_ptr<dbus::Response> response) { 44 response_ = std::move(response); 47 std::unique_ptr<dbus::Response> response_; 53 // call sites. Returns a response from the method handler or nullptr if the 54 // method hasn't provided the response message immediately 56 inline std::unique_ptr<dbus::Response> CallMethod( 59 std::unique_ptr<dbus::Response> response local [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
ImageRequestTest.java | 24 import com.android.volley.Response; 130 Response<Bitmap> response = request.parseNetworkResponse(networkResponse); local 131 assertNotNull(response); 132 assertTrue(response.isSuccess()); 133 Bitmap bitmap = response.result; 167 assertNotNull(ImageRequest.class.getConstructor(String.class, Response.Listener.class, 168 int.class, int.class, Bitmap.Config.class, Response.ErrorListener.class)); 169 assertNotNull(ImageRequest.class.getConstructor(String.class, Response.Listener.class, 171 Response.ErrorListener.class)) [all...] |
/frameworks/base/core/java/android/hardware/location/ |
ContextHubTransaction.java | 43 * @param <T> the type of the contents in the transaction response 123 * A class describing the response for a ContextHubTransaction. 125 * @param <R> the type of the contents in the response 127 public static class Response<R> { 135 * The contents of the response from the Context Hub. 139 Response(@ContextHubTransaction.Result int result, R contents) { 157 * @param <L> the type of the contents in the transaction response 165 * @param response the response of the transaction. 168 ContextHubTransaction<L> transaction, ContextHubTransaction.Response<L> response) [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
InterceptorTest.java | 60 final Response interceptorResponse = new Response.Builder() 69 @Override public Response intercept(Chain chain) throws IOException { 74 Response response = client.newCall(request).execute(); local 75 assertSame(interceptorResponse, response); 82 @Override public Response intercept(Chain chain) throws IOException { 83 return new Response.Builder() 112 @Override public Response intercept(Chain chain) throws IOException { 136 @Override public Response intercept(Chain chain) throws IOException 208 Response response = client.newCall(request).execute(); local 305 Response response = client.newCall(request).execute(); local 349 Response response = client.newCall(request).execute(); local 404 Response response = client.newCall(request).execute(); local 519 Response response = client.newCall(request).execute(); local [all...] |
ConnectionReuseTest.java | 125 Response response = client.newCall(request).execute(); local 126 assertEquals("b", response.body().string()); 143 Response response = client.newCall(request).execute(); local 144 assertEquals("b", response.body().string()); 158 Response responseA = client.newCall(request).execute(); 162 Response responseB = client.newCall(request).execute(); 176 Response responseA = client.newCall(requestA).execute(); 184 Response responseB = client.newCall(requestB).execute() 237 Response response = client.newCall(requests[i]).execute(); local 245 Response response = client.newCall(request).execute(); local [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
PutStreamIntegrationTest.java | 59 public Response serve(IHTTPSession session) { 70 return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, e.getMessage()); 73 String response = String.valueOf(method) + ':' + new String(body); local 74 return newFixedLengthResponse(response); 78 public Response serve(String uri, Method method, Map<String, String> headers, Map<String, String> parms, Map<String, String> files) {
|
/cts/tests/tests/syncmanager/common/proto/ |
sync_manager_cts.proto | 68 message Response { 74 optional Response response = 2;
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
TestThread.java | 62 private final SynchronousQueue<Response> responseQueue = new SynchronousQueue<Response>(); 199 * Receives a response from this thread. 201 * @throws TimeoutException if this thread does not offer a response within a resonable amount of 206 private Response getResponse(String methodName) throws Exception { 207 Response response = responseQueue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); local 208 if (response == null) { 211 assertEquals(methodName, response.methodName); 212 return response; [all...] |