HomeSort by relevance Sort by last modified time
    Searched refs:response2 (Results 1 - 18 of 18) sorted by null

  /external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
CacheResponse.java 49 Response response2 = client.newCall(request).execute(); local
50 if (!response2.isSuccessful()) throw new IOException("Unexpected code " + response2);
52 String response2Body = response2.body().string();
53 System.out.println("Response 2 response: " + response2);
54 System.out.println("Response 2 cache response: " + response2.cacheResponse());
55 System.out.println("Response 2 network response: " + response2.networkResponse());
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
CacheTest.java 231 Response response2 = client.newCall(request).execute(); local
232 BufferedSource in2 = response2.body().source();
235 assertEquals(200, response2.code());
236 assertEquals("Fantastic", response2.message());
268 Response response2 = client.newCall(request).execute(); // Cached! local
269 assertEquals("ABC", response2.body().string());
275 assertEquals(suite, response2.handshake().cipherSuite());
276 assertEquals(localCerts, response2.handshake().localCertificates());
277 assertEquals(serverCerts, response2.handshake().peerCertificates());
278 assertEquals(peerPrincipal, response2.handshake().peerPrincipal())
299 Response response2 = client.newCall(request).execute(); \/\/ Cached! local
325 Response response2 = client.newCall(request2).execute(); local
362 Response response2 = get(server.url("\/")); local
401 Response response2 = get(server.url("\/")); local
481 Response response2 = client.newCall(request2).execute(); local
557 Response response2 = get(server.url("\/")); local
577 Response response2 = get(url); local
752 Response response2 = get(url); local
952 Response response2 = client.newCall(request2).execute(); local
1479 Response response2 = client.newCall(request1).execute(); local
1546 Response response2 = client.newCall(request1).execute(); local
1574 Response response2 = client.newCall(request1).execute(); local
1628 Response response2 = client.newCall(request2).execute(); local
1654 Response response2 = client.newCall(request2).execute(); local
1694 Response response2 = client.newCall(request2).execute(); local
1729 Response response2 = get(server.url("\/")); local
1748 Response response2 = get(server.url("\/")); local
1766 Response response2 = get(server.url("\/")); local
1784 Response response2 = get(server.url("\/")); local
1823 Response response2 = get(server.url("\/a")); local
2225 Response response2 = get(valid); local
    [all...]
SocksProxyTest.java 59 Response response2 = client.newCall(request2).execute(); local
60 assertEquals("def", response2.body().string());
ConnectionReuseTest.java 198 Response response2 = client.newCall(request).execute(); local
200 response2.body().string(); // Discard the response body.
220 Response response2 = client.newCall(request).execute(); local
221 assertEquals("b", response2.body().string());
CallTest.java 826 Response response2 = client.newCall(request2).execute();
827 assertEquals(200, response2.code());
847 Response response2 = client.newCall(request2).execute();
848 BufferedSource body2 = response2.body().source();
    [all...]
URLConnectionTest.java 1312 MockResponse response2 = new MockResponse(); local
    [all...]
  /external/autotest/client/cros/cellular/wardmodem/state_machines/
network_identity_machine_unittest.py 59 response2 = response2_clipped + '2'
75 self._machine._check_length_and_respond(response2, '3')
  /cts/tests/autofillservice/src/android/autofillservice/cts/
PartitionedActivityTest.java 100 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
106 sReplier.addResponse(response2);
184 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
191 sReplier.addResponse(response2);
263 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
270 sReplier.addResponse(response2);
408 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
415 sReplier.addResponse(response2);
535 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
542 sReplier.addResponse(response2);
623 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
660 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
698 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
739 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
796 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
854 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
982 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
1157 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
1370 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
1546 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
1725 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
1922 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
2146 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
2274 final CannedFillResponse response2 = new CannedFillResponse.Builder() local
    [all...]
  /external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
OkApacheClientTest.java 85 HttpResponse response2 = client.execute(request2); local
86 Header[] headers2 = response2.getHeaders("Foo");
165 HttpResponse response2 = client.execute(request2); local
166 Header[] headers2 = response2.getHeaders("Content-Type");
169 assertNotNull(response2.getEntity().getContentType());
170 assertEquals("application/json", response2.getEntity().getContentType().getValue());
  /cts/tests/tests/carrierapi/src/android/carrierapi/cts/
CarrierApiTest.java 134 String response2 = mTelephonyManager.getIccAuthentication(TelephonyManager.APPTYPE_USIM, local
136 assertTrue("Two responses must be different.", !response.equals(response2));
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
CertificatePinnerChainValidationTest.java 93 Response response2 = call2.execute(); local
94 assertEquals("def", response2.body().string());
148 Response response2 = call2.execute(); local
149 assertEquals("def", response2.body().string());
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
ExcludedProxyTest.java 80 String response2 = ""; local
84 response2 += new String(b2, 0, count2);
85 assertTrue("Response to POST method invalid", response2
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactDirectoryManagerTest.java 179 MatrixCursor response2 = provider2.createResponseCursor(); local
180 addDirectoryRow(response2, "account-name3", "account-type3", "display-name3", 3,
279 MatrixCursor response2 = provider2.createResponseCursor(); local
280 addDirectoryRow(response2, "account-name3", "account-type3", "display-name3", 3,
323 MatrixCursor response2 = provider2.createResponseCursor(); local
324 addDirectoryRow(response2, "account-name3", "account-type3", "display-name3", 3,
369 MatrixCursor response2 = provider2.createResponseCursor(); local
370 addDirectoryRow(response2, "account-name3", "account-type3", "display-name3", 3,
427 MatrixCursor response2 = provider2.createResponseCursor(); local
428 addDirectoryRow(response2, "account-name2", "account-type2", "display-name2", 2
529 MatrixCursor response2 = provider1.createResponseCursor(); local
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DefaultRequestDirectorTest.java 223 HttpResponse response2 = requestDirector.execute(null, new HttpGet("www.example.com"), null); local
228 assertThat(response2.getStatusLine().getStatusCode(), equalTo(201));
229 assertThat(Strings.fromStream(response2.getEntity().getContent()), equalTo("another happy response body"));
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
WifiScanningServiceTest.java 1314 Message response2 = verifyHandleMessageAndGetMessage(order, handler); local
1372 Message response2 = verifyHandleMessageAndGetMessage(order, handler); local
1454 Message response2 = verifyHandleMessageAndGetMessage(order, handler); local
    [all...]
  /external/autotest/client/common_lib/cros/
dev_server_unittest.py 426 response2 = (True, 'Completed')
470 json.dumps(response2))
    [all...]
  /prebuilts/go/darwin-x86/src/net/http/
serve_test.go 996 response2 := <-response2c
997 if g, e := response2, "RA:12.12.12.12:12"; g != e {
    [all...]
  /prebuilts/go/linux-x86/src/net/http/
serve_test.go 996 response2 := <-response2c
997 if g, e := response2, "RA:12.12.12.12:12"; g != e {
    [all...]

Completed in 5863 milliseconds