/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) {
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
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...] |
SocksProxyTest.java | 55 Response response1 = client.newCall(request1).execute(); 59 Response response2 = client.newCall(request2).execute(); 83 Response response = client.newCall(request).execute(); local 84 assertEquals("abc", response.body().string()); 102 Response response1 = client.newCall(request).execute();
|
CacheTest.java | 99 * Test that response caching is consistent with the RI and the spec. 106 // We can't test 100 because it's not really a response. 178 Response response = client.newCall(request).execute(); local 179 assertEquals(responseCode, response.code()); 182 response.body().string(); 184 Response cached = cache.get(request); 220 Response response1 = client.newCall(request).execute(); 231 Response response2 = client.newCall(request).execute(); 257 Response response1 = client.newCall(request).execute() 518 Response response = get(server.url("\/")); local 605 Response response = get(server.url("\/")); local 1054 Response response = client.newCall(request).execute(); local 1072 Response response = client.newCall(request).execute(); local 1090 Response response = client.newCall(request).execute(); local 1111 Response response = client.newCall(request).execute(); local 1130 Response response = client.newCall(request).execute(); local 1141 Response response = client.newCall(request).execute(); local 1160 Response response = client.newCall(request).execute(); local 1178 Response response = client.newCall(request).execute(); local 1195 Response response = client.newCall(request).execute(); local 1218 Response response = client.newCall(request).execute(); local 1237 Response response = client.newCall(request).execute(); local 1242 MockResponse response = new MockResponse() local 1254 MockResponse response = new MockResponse() local 1276 Response response = client.newCall(request).execute(); local 1325 Response response = client.newCall(request).execute(); local 1342 Response response = client.newCall(request).execute(); local 1507 Response response = client.newCall(request).execute(); local 1846 Response response = client.newCall(request).execute(); local 1861 Response response = get(server.url("\/")); local 1874 Response response = get(server.url("\/")); local 1882 Response response = get(server.url("\/")); local 1894 Response response = get(server.url("\/")); local 1953 Response response = get(url); local [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
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/ |
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/libbrillo/brillo/dbus/ |
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...] |
data_serialization_unittest.cc | 19 using dbus::Response; 147 std::unique_ptr<Response> message = Response::CreateEmpty(); 171 std::unique_ptr<Response> message = Response::CreateEmpty(); 237 std::unique_ptr<Response> message = Response::CreateEmpty(); 264 std::unique_ptr<Response> message = Response::CreateEmpty(); 333 std::unique_ptr<Response> message = Response::CreateEmpty() [all...] |
dbus_method_response.h | 27 // response when it is available. 33 // Sends an error response. Marshals the |error| object over D-Bus. 48 // Sends a raw D-Bus response message. 49 void SendRawResponse(std::unique_ptr<dbus::Response> response); 51 // Creates a custom response object for the current method call. 52 std::unique_ptr<dbus::Response> CreateCustomResponse() const; 54 // Checks if the response has been sent already. 60 // Aborts the method execution. Does not send any response message. 64 // A callback to be called to send the method call response message 88 auto response = CreateCustomResponse(); local [all...] |
/external/libbrillo/brillo/http/ |
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/libchrome/dbus/ |
exported_object.h | 27 class Response; 42 // Called to send a response from an exported method. |response| is the 43 // response message. Callers should pass NULL in the event of an error that 44 // prevents the sending of a response. 45 typedef base::Callback<void(std::unique_ptr<Response> response)> 49 // message. |sender| is the callback that's used to send a response. 146 // Callback invoked by service provider to send a response to a method call. 151 std::unique_ptr<Response> response) [all...] |
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
Progress.java | 21 import com.squareup.okhttp.Response; 50 @Override public Response intercept(Chain chain) throws IOException { 51 Response originalResponse = chain.proceed(chain.request()); 58 Response response = client.newCall(request).execute(); local 59 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 61 System.out.println(response.body().string());
|
/external/skia/tools/skiaserve/urlhandlers/ |
ClipAlphaHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
ColorModeHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
DataHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
EnableGPUHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
InfoHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
OpBoundsHandler.cpp | 11 #include "../Response.h" 14 using namespace Response;
|
OpsHandler.cpp | 11 #include "../Response.h" 14 using namespace Response;
|
OverdrawHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
/external/volley/src/test/java/com/android/volley/mock/ |
TestRequest.java | 21 import com.android.volley.Response; 32 public Base(String url, Response.ErrorListener listener) { 36 public Base(int method, String url, Response.ErrorListener listener) { 41 protected Response<byte[]> parseNetworkResponse(NetworkResponse response) { 46 protected void deliverResponse(byte[] response) {
|
/system/nvram/hal/include/nvram/hal/ |
nvram_device_adapter.h | 34 // parameters are passed in |request| and |response| will be filled in with 37 nvram::Response* response) = 0;
|
/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...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipSessionGroup.java | 79 import javax.sip.message.Response; 122 // external address observed from any response 397 Response response = evt.getResponse(); local 398 ViaHeader viaHeader = (ViaHeader)(response.getHeader( 450 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; 454 if (dialog == null) return Response.DECLINE; 459 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; 466 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; 468 return Response.OK 477 int response = processInviteWithReplaces(event, replaces); local 951 Response response = event.getResponse(); local 977 Response response = event.getResponse(); local [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/ |
IScsiCHAP.c | 97 The initator checks the CHAP response replied by target against its own
101 @param[in] TargetResponse The response from target.
103 @retval EFI_SUCCESS The response from target passed authentication.
104 @retval EFI_SECURITY_VIOLATION The response from target was not expected value.
139 This function checks the received iSCSI Login Response during the security
144 @retval EFI_SUCCESS The Login Response passed the CHAP validation.
166 CHAR8 *Response;
187 // Build the key-value list from the data segment of the Login Response.
200 // The first Login Response.
269 // Calculate Response value. [all...] |