Home
last modified time | relevance | path

Searched refs:requestCount (Results 1 – 15 of 15) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java91 public long requestCount() { in requestCount() method in CacheStats
108 long requestCount = requestCount(); in hitRate() local
109 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
132 long requestCount = requestCount(); in missRate() local
133 return (requestCount == 0) ? 0.0 : (double) missCount / requestCount; in missRate()
/external/apache-http/src/org/apache/http/impl/
DHttpConnectionMetricsImpl.java50 private long requestCount = 0; field in HttpConnectionMetricsImpl
85 return this.requestCount; in getRequestCount()
89 this.requestCount++; in incrementRequestCount()
107 value = new Long(requestCount); in getMetric()
141 this.requestCount = 0; in reset()
/external/guava/guava-tests/test/com/google/common/cache/
DAbstractCacheTest.java86 assertEquals(0, stats.requestCount()); in testEmptySimpleStats()
117 int requestCount = 11 + 23; in testSingleSimpleStats() local
118 assertEquals(requestCount, stats.requestCount()); in testSingleSimpleStats()
120 assertEquals(11.0/requestCount, stats.hitRate()); in testSingleSimpleStats()
123 assertEquals(((double) missCount)/requestCount, stats.missRate()); in testSingleSimpleStats()
DCacheStatsTest.java30 assertEquals(0, stats.requestCount()); in testEmpty()
46 assertEquals(24, stats.requestCount()); in testSingle()
65 assertEquals(76, diff.requestCount()); in testMinus()
86 assertEquals(124, sum.requestCount()); in testPlus()
DLocalLoadingCacheTest.java92 assertEquals(1, stats.requestCount()); in testStats()
105 assertEquals(2, stats.requestCount()); in testStats()
116 assertEquals(3, stats.requestCount()); in testStats()
130 assertEquals(4, stats.requestCount()); in testStats()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DBenchmark.java107 int requestCount = 0; in run() local
119 double requestsPerSecond = requestCount / reportDuration * TimeUnit.SECONDS.toNanos(1); in run()
124 requestCount = 0; in run()
132 requestCount++; in run()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java69 private final AtomicInteger requestCount = new AtomicInteger(); field in MockWebServer
163 return requestCount.get(); in getRequestCount()
348 requestCount.incrementAndGet(); in serveConnection()
415 requestCount.incrementAndGet(); in dispatchBookkeepingRequest()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDefaultRequestDirector.java138 int requestCount = Robolectric.getFakeHttpLayer().getSentHttpRequestInfos().size(); in getLatestSentHttpRequestInfo() local
139 return Robolectric.getFakeHttpLayer().getSentHttpRequestInfo(requestCount - 1); in getLatestSentHttpRequestInfo()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DHttpResponseCache.java137 private int requestCount; field in HttpResponseCache
307 requestCount++; in trackResponse()
333 return requestCount; in getRequestCount()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java103 private final AtomicInteger requestCount = new AtomicInteger(); field in MockWebServer
215 return requestCount.get(); in getRequestCount()
392 requestCount.incrementAndGet(); in serveConnection()
429 requestCount.incrementAndGet(); in dispatchBookkeepingRequest()
/external/chromium_org/third_party/WebKit/Source/core/loader/
DProgressTracker.cpp167 int numPendingOrLoadingRequests = m_frame->document()->fetcher()->requestCount(); in incrementProgress()
DFrameLoader.cpp455 if (m_frame->document()->fetcher()->requestCount()) in checkCompleted()
941 if (document->fetcher()->requestCount()) in isDocumentDoneLoading()
/external/chromium_org/third_party/WebKit/Source/core/fetch/
DResourceFetcher.h127 int requestCount() const { return m_requestCount; } in requestCount() function
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java452 private long requestCount; field in NanoHTTPD.DefaultAsyncRunner
456 ++requestCount; in exec()
459 t.setName("NanoHttpd Request Processor (#" + requestCount + ")"); in exec()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/audits/
DAuditRules.js609 var requestCount = requests.length;
611 for (var i = 0; i < requestCount; ++i) {