Home
last modified time | relevance | path

Searched refs:requestCount (Results 1 – 18 of 18) 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/webkit/Source/WebCore/platform/audio/mac/
DAudioFileReaderMac.cpp111 OSStatus AudioFileReader::readProc(void* clientData, SInt64 position, UInt32 requestCount, void* bu… in readProc() argument
121 bytesToRead = requestCount <= bytesAvailable ? requestCount : bytesAvailable; in readProc()
DAudioFileReaderMac.h55 …static OSStatus readProc(void* clientData, SInt64 position, UInt32 requestCount, void* buffer, UIn…
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java77 private final AtomicInteger requestCount = new AtomicInteger(); field in MockWebServer
159 return requestCount.get(); in getRequestCount()
382 requestCount.incrementAndGet(); in processHandshakeFailure()
473 requestCount.incrementAndGet(); in dispatch()
/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/src/main/java/com/squareup/okhttp/internal/http/
DHttpResponseCache.java82 private int requestCount; field in HttpResponseCache
250 requestCount++; in trackResponse()
276 return requestCount; in getRequestCount()
/external/webkit/Source/WebCore/loader/cache/
DCachedResourceLoader.h109 int requestCount();
DCachedResourceLoader.cpp672 int CachedResourceLoader::requestCount() in requestCount() function in WebCore::CachedResourceLoader
/external/webkit/Source/WebCore/loader/
DDocumentLoader.cpp444 if (doc->cachedResourceLoader()->requestCount()) in isLoadingInAPISense()
DFrameLoader.cpp163 return document->cachedResourceLoader()->requestCount(); in numRequests()
/external/webkit/Source/WebCore/page/
DFrameView.cpp1645 if (document && (document->parsing() || document->cachedResourceLoader()->requestCount())) in checkStopDelayingDeferredRepaints()
1680 if (!document || (!document->parsing() && !document->cachedResourceLoader()->requestCount())) { in updateDeferredRepaintDelay()
/external/webkit/Source/WebCore/
DChangeLog-2007-10-1440557 (WebCore::DocLoader::requestCount): Emulate the defunct Loader::numRequests()
40561 (WebCore::numRequests): Call DocLoader::requestCount() directly
DChangeLog-2011-02-1643757 (WebCore::CachedResourceLoader::requestCount):
DChangeLog-2010-12-0660086 (WebCore::CachedResourceLoader::requestCount):