/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CacheResponse.java | 41 Response response1 = client.newCall(request).execute(); local 42 if (!response1.isSuccessful()) throw new IOException("Unexpected code " + response1); 44 String response1Body = response1.body().string(); 45 System.out.println("Response 1 response: " + response1); 46 System.out.println("Response 1 cache response: " + response1.cacheResponse()); 47 System.out.println("Response 1 network response: " + response1.networkResponse());
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
SocksProxyTest.java | 55 Response response1 = client.newCall(request1).execute(); local 56 assertEquals("abc", response1.body().string()); 102 Response response1 = client.newCall(request).execute(); local 103 assertEquals("abc", response1.body().string());
|
CacheTest.java | 220 Response response1 = client.newCall(request).execute(); local 222 BufferedSource in1 = response1.body().source(); 257 Response response1 = client.newCall(request).execute(); local 258 BufferedSource in = response1.body().source(); 262 String suite = response1.handshake().cipherSuite(); 263 List<Certificate> localCerts = response1.handshake().localCertificates(); 264 List<Certificate> serverCerts = response1.handshake().peerCertificates(); 265 Principal peerPrincipal = response1.handshake().peerPrincipal(); 266 Principal localPrincipal = response1.handshake().localPrincipal(); 296 Response response1 = client.newCall(request).execute() local 318 Response response1 = client.newCall(request1).execute(); local 357 Response response1 = get(server.url("\/")); local 397 Response response1 = get(server.url("\/")); local 477 Response response1 = client.newCall(request1).execute(); local 545 Response response1 = get(server.url("\/")); local 574 Response response1 = get(url); local 748 Response response1 = client.newCall(request).execute(); local 946 Response response1 = client.newCall(request1).execute(); local 1473 Response response1 = client.newCall(request).execute(); local 1540 Response response1 = client.newCall(request).execute(); local 1566 Response response1 = client.newCall(request).execute(); local 1620 Response response1 = client.newCall(request1).execute(); local 1646 Response response1 = client.newCall(request1).execute(); local 1687 Response response1 = client.newCall(request1).execute(); local 1725 Response response1 = get(server.url("\/")); local 1744 Response response1 = get(server.url("\/")); local 1762 Response response1 = get(server.url("\/")); local 1780 Response response1 = get(server.url("\/")); local 1818 Response response1 = get(server.url("\/a")); local 2221 Response response1 = get(valid); local [all...] |
ConnectionReuseTest.java | 197 Response response1 = client.newCall(request).execute(); local 199 response1.body().string(); // Discard the response body. 214 Response response1 = client.newCall(request).execute(); local 215 assertEquals("a", response1.body().string());
|
CallTest.java | 809 Response response1 = client.newCall(request1).execute(); 810 assertEquals(200, response1.code()); 840 Response response1 = client.newCall(request1).execute(); 841 BufferedSource body1 = response1.body().source(); [all...] |
InterceptorTest.java | 394 Response response1 = chain.proceed(chain.request()); 395 response1.body().close();
|
URLConnectionTest.java | 1308 MockResponse response1 = new MockResponse(); local [all...] |
/external/autotest/client/cros/cellular/wardmodem/state_machines/ |
network_identity_machine_unittest.py | 57 response1 = 'blahblah' 62 'wm_response_sim_info_success', response1) 74 self._machine._check_length_and_respond(response1, '4')
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactDirectoryManagerTest.java | 168 MatrixCursor response1 = provider1.createResponseCursor(); local 169 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 172 addDirectoryRow(response1, "account-name2", "account-type2", "display-name2", 2, 262 MatrixCursor response1 = provider1.createResponseCursor(); local 263 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 315 MatrixCursor response1 = provider1.createResponseCursor(); local 316 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 361 MatrixCursor response1 = provider1.createResponseCursor(); local 362 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 419 MatrixCursor response1 = provider1.createResponseCursor() local 488 MatrixCursor response1 = provider1.createResponseCursor(); local 521 MatrixCursor response1 = provider1.createResponseCursor(); local 555 MatrixCursor response1 = provider1.createResponseCursor(); local 595 MatrixCursor response1 = provider1.createResponseCursor(); local [all...] |
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
PartitionedActivityTest.java | 77 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 83 sReplier.addResponse(response1); 156 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 163 sReplier.addResponse(response1); 231 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 238 sReplier.addResponse(response1); 377 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 384 sReplier.addResponse(response1); 514 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 521 sReplier.addResponse(response1); 612 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 649 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 686 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 727 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 784 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 842 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 914 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 957 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 1130 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 1328 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 1514 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 1695 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 1888 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 2124 final CannedFillResponse response1 = new CannedFillResponse.Builder() local 2256 final CannedFillResponse response1 = new CannedFillResponse.Builder() local [all...] |
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
OkApacheClientTest.java | 79 HttpResponse response1 = client.execute(request1); local 80 Header[] headers1 = response1.getHeaders("Foo"); 157 HttpResponse response1 = client.execute(request1); local 158 Header[] headers1 = response1.getHeaders("Content-Type"); 161 assertNotNull(response1.getEntity().getContentType()); 162 assertEquals("text/html", response1.getEntity().getContentType().getValue());
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/ |
CertificatePinnerChainValidationTest.java | 83 Response response1 = call1.execute(); local 84 assertEquals("abc", response1.body().string()); 138 Response response1 = call1.execute(); local 139 assertEquals("abc", response1.body().string());
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
DefaultRequestDirectorTest.java | 222 HttpResponse response1 = requestDirector.execute(null, new HttpGet("http://example.com"), null); local 225 assertThat(response1.getStatusLine().getStatusCode(), equalTo(200)); 226 assertThat(Strings.fromStream(response1.getEntity().getContent()), equalTo("a happy response body"));
|
/external/autotest/client/common_lib/cros/ |
dev_server_unittest.py | 425 response1 = (True, 100) 457 json.dumps(response1)) [all...] |
/prebuilts/go/darwin-x86/src/net/http/ |
serve_test.go | 1006 response1 := <-response1c 1007 if g, e := response1, "RA:21.21.21.21:21"; g != e { [all...] |
/prebuilts/go/linux-x86/src/net/http/ |
serve_test.go | 1006 response1 := <-response1c 1007 if g, e := response1, "RA:21.21.21.21:21"; g != e { [all...] |