Home
last modified time | relevance | path

Searched refs:getRequestCount (Results 1 – 25 of 26) sorted by relevance

12

/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
DAndroidShimResponseCache.java130 public int getRequestCount() { in getRequestCount() method in AndroidShimResponseCache
131 return delegate.getRequestCount(); in getRequestCount()
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/
DAndroidShimResponseCache.java132 public int getRequestCount() { in getRequestCount() method in AndroidShimResponseCache
133 return delegate.getRequestCount(); in getRequestCount()
/external/downloader/src/test/java/com/google/android/downloader/
DMockWebServerUrlEngineTestHelper.java98 assertThat(server.getRequestCount()).isEqualTo(1); in executeRequest_normalResponse_succeeds()
142 assertThat(server.getRequestCount()).isEqualTo(1); in executeRequest_responseThrottled_succeeds()
190 assertThat(server.getRequestCount()).isEqualTo(1); in executeRequest_largeResponse_succeeds()
279 assertThat(server.getRequestCount()).isEqualTo(1); in executeRequest_writeError_failsInternalError()
307 assertThat(server.getRequestCount()).isEqualTo(0); in executeRequest_requestCanceled_requestNeverSent()
DDownloaderTest.java496 assertThat(mockWebServer.getRequestCount()).isEqualTo(0); in downloadOneFile_fileSystem()
544 assertThat(mockWebServer.getRequestCount()).isEqualTo(2); in downloadOneFile_retryAfterFailure()
569 assertThat(mockWebServer.getRequestCount()).isEqualTo(0); in downloadOneFile_waitForConnectivity()
579 assertThat(mockWebServer.getRequestCount()).isEqualTo(1); in downloadOneFile_waitForConnectivity()
608 assertThat(mockWebServer.getRequestCount()).isEqualTo(0); in downloadOneFile_waitForConnectivity_canceled()
618 assertThat(mockWebServer.getRequestCount()).isEqualTo(0); in downloadOneFile_waitForConnectivity_canceled()
645 assertThat(mockWebServer.getRequestCount()).isEqualTo(0); in downloadOneFile_timeoutConnectivity()
655 assertThat(mockWebServer.getRequestCount()).isEqualTo(1); in downloadOneFile_timeoutConnectivity()
709 assertThat(mockWebServer.getRequestCount()).isEqualTo(2); in downloadTwoFiles_sequentially()
765 assertThat(mockWebServer.getRequestCount()).isEqualTo(2); in downloadTwoFiles_sequentially_unregisterCallback()
[all …]
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
DHttpResponseCache.java161 public int getRequestCount() { in getRequestCount() method in HttpResponseCache
162 return shimResponseCache.getRequestCount(); in getRequestCount()
DHttpResponseCacheTest.java151 assertEquals(1, cache.getRequestCount()); in statisticsTracking()
160 assertEquals(3, cache.getRequestCount()); in statisticsTracking()
/external/apache-http/src/org/apache/http/
DHttpConnectionMetrics.java48 long getRequestCount(); in getRequestCount() method
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DAndroidResponseCacheAdapter.java194 public int getRequestCount() { in getRequestCount() method in AndroidResponseCacheAdapter
195 return okHttpCache.getRequestCount(); in getRequestCount()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DAndroidResponseCacheAdapter.java196 public int getRequestCount() { in getRequestCount() method in AndroidResponseCacheAdapter
197 return okHttpCache.getRequestCount(); in getRequestCount()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java244 assertEquals(2, cache.getRequestCount()); in testResponseCaching()
271 assertEquals(2, cache.getRequestCount()); in secureResponseCaching()
298 assertEquals(4, cache.getRequestCount()); // 2 requests + 2 redirects in responseCachingAndRedirects()
349 assertEquals(4, cache.getRequestCount()); // 2 direct + 2 redirect = 4 in secureResponseCachingAndRedirects()
384 assertEquals(4, cache.getRequestCount()); // 2 direct + 2 redirect = 4 in secureResponseCachingAndProtocolRedirects()
928 assertEquals(1, cache.getRequestCount()); in requestOnlyIfCachedWithNoResponseCached()
942 assertEquals(2, cache.getRequestCount()); in requestOnlyIfCachedWithFullResponseCached()
956 assertEquals(2, cache.getRequestCount()); in requestOnlyIfCachedWithConditionalResponseCached()
968 assertEquals(2, cache.getRequestCount()); in requestOnlyIfCachedWithUnhelpfulResponseCached()
1184 assertEquals(1, cache.getRequestCount()); in statisticsConditionalCacheMiss()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java242 assertEquals(2, cache.getRequestCount()); in testResponseCaching()
271 assertEquals(2, cache.getRequestCount()); in secureResponseCaching()
302 assertEquals(4, cache.getRequestCount()); // 2 requests + 2 redirects in responseCachingAndRedirects()
366 assertEquals(4, cache.getRequestCount()); // 2 direct + 2 redirect = 4 in secureResponseCachingAndRedirects()
404 assertEquals(4, cache.getRequestCount()); // 2 direct + 2 redirect = 4 in secureResponseCachingAndProtocolRedirects()
1144 assertEquals(1, cache.getRequestCount()); in requestOnlyIfCachedWithNoResponseCached()
1162 assertEquals(2, cache.getRequestCount()); in requestOnlyIfCachedWithFullResponseCached()
1181 assertEquals(2, cache.getRequestCount()); in requestOnlyIfCachedWithConditionalResponseCached()
1198 assertEquals(2, cache.getRequestCount()); in requestOnlyIfCachedWithUnhelpfulResponseCached()
1389 assertEquals(1, cache.getRequestCount()); in statisticsConditionalCacheMiss()
[all …]
DURLConnectionTest.java433 if (server.getRequestCount() == 3) { in testServerClosesOutput()
686 assertEquals(0, server.getRequestCount()); in connectViaHttpsToUntrustedServer()
1120 assertEquals(1, server.getRequestCount()); in unauthorizedResponseHandling()
2099 assertEquals(1, server.getRequestCount());
2169 assertEquals(1, server.getRequestCount());
2176 assertEquals(2, server.getRequestCount());
DCallTest.java1577 assertEquals(0, server.getRequestCount()); in canceledBeforeExecute()
1649 assertEquals(1, server.getRequestCount()); in cancelBeforeBodyIsRead()
1836 assertEquals(0, server.getRequestCount()); in cancelWithInterceptor()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHttpResponseCacheTest.java41 assertThat(cache.getRequestCount()).isEqualTo(0); in countsStartAtZero()
DShadowDownloadManagerTest.java98 assertThat(manager.getRequestCount()).isEqualTo(1); in enqueue_shouldAddRequest()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java330 assertEquals(1, cache.getRequestCount()); in responsesAreCached()
335 assertEquals(3, cache.getRequestCount()); in responsesAreCached()
347 assertEquals(1, cache.getRequestCount()); in conditionalCache()
351 assertEquals(2, cache.getRequestCount()); in conditionalCache()
/external/apache-http/src/org/apache/http/impl/
DHttpConnectionMetricsImpl.java89 public long getRequestCount() { in getRequestCount() method in HttpConnectionMetricsImpl
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowHttpResponseCache.java84 protected int getRequestCount() { in getRequestCount() method in ShadowHttpResponseCache
DShadowDownloadManager.java65 public int getRequestCount() { in getRequestCount() method in ShadowDownloadManager
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java420 public synchronized int getRequestCount() { in getRequestCount() method
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java178 public int getRequestCount() { in getRequestCount() method in MockWebServer
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java422 public synchronized int getRequestCount() { in getRequestCount() method
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java295 public int getRequestCount() {
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java1621 assertEquals(3, server.getRequestCount()); in conditionalHitDoesNotUpdateCache()
/external/apache-http/
Dart-profile39 HPLorg/apache/http/HttpConnectionMetrics;->getRequestCount()J

12