/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());
|
URLConnectionTest.java | 1301 MockResponse response1 = new MockResponse(); local [all...] |
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 525 Response response1 = get(server.url("\/")); local 554 Response response1 = get(url); local 728 Response response1 = client.newCall(request).execute(); local 926 Response response1 = client.newCall(request1).execute(); local 1453 Response response1 = client.newCall(request).execute(); local 1520 Response response1 = client.newCall(request).execute(); local 1546 Response response1 = client.newCall(request).execute(); local 1600 Response response1 = client.newCall(request1).execute(); local 1626 Response response1 = client.newCall(request1).execute(); local 1667 Response response1 = client.newCall(request1).execute(); local 1705 Response response1 = get(server.url("\/")); local 1724 Response response1 = get(server.url("\/")); local 1742 Response response1 = get(server.url("\/")); local 1760 Response response1 = get(server.url("\/")); local 1798 Response response1 = get(server.url("\/a")); local 2200 Response response1 = get(valid); 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());
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactDirectoryManagerTest.java | 159 MatrixCursor response1 = provider1.createResponseCursor(); local 160 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 163 addDirectoryRow(response1, "account-name2", "account-type2", "display-name2", 2, 220 MatrixCursor response1 = provider1.createResponseCursor(); local 221 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 273 MatrixCursor response1 = provider1.createResponseCursor(); local 274 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 319 MatrixCursor response1 = provider1.createResponseCursor(); local 320 addDirectoryRow(response1, "account-name1", "account-type1", "display-name1", 1, 377 MatrixCursor response1 = provider1.createResponseCursor() local 446 MatrixCursor response1 = provider1.createResponseCursor(); local 479 MatrixCursor response1 = provider1.createResponseCursor(); local 513 MatrixCursor response1 = provider1.createResponseCursor(); local 553 MatrixCursor response1 = provider1.createResponseCursor(); local [all...] |
/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"));
|