Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java108 public long requestCount() { in requestCount() method in CacheStats
123 long requestCount = requestCount(); in hitRate() local
124 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
147 long requestCount = requestCount(); in missRate() local
148 return (requestCount == 0) ? 0.0 : (double) missCount / requestCount; in missRate()
/external/guava/android/guava/src/com/google/common/cache/
DCacheStats.java108 public long requestCount() { in requestCount() method in CacheStats
123 long requestCount = requestCount(); in hitRate() local
124 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
147 long requestCount = requestCount(); in missRate() local
148 return (requestCount == 0) ? 0.0 : (double) missCount / requestCount; in missRate()
/external/apache-http/src/org/apache/http/impl/
DHttpConnectionMetricsImpl.java55 private long requestCount = 0; field in HttpConnectionMetricsImpl
90 return this.requestCount; in getRequestCount()
94 this.requestCount++; in incrementRequestCount()
112 value = new Long(requestCount); in getMetric()
146 this.requestCount = 0; in reset()
/external/skqp/src/gpu/mock/
DGrMockCaps.h45 int getRenderTargetSampleCount(int requestCount, GrPixelConfig config) const override { in getRenderTargetSampleCount() argument
46 requestCount = SkTMax(requestCount, 1); in getRenderTargetSampleCount()
51 return requestCount > 1 ? 0 : 1; in getRenderTargetSampleCount()
53 return requestCount > kMaxSampleCnt ? 0 : GrNextPow2(requestCount); in getRenderTargetSampleCount()
/external/skia/src/gpu/mock/
DGrMockCaps.h87 int getRenderTargetSampleCount(int requestCount, GrColorType ct) const { in getRenderTargetSampleCount() argument
88 requestCount = std::max(requestCount, 1); in getRenderTargetSampleCount()
94 return requestCount > 1 ? 0 : 1; in getRenderTargetSampleCount()
96 return requestCount > kMaxSampleCnt ? 0 : GrNextPow2(requestCount); in getRenderTargetSampleCount()
101 int getRenderTargetSampleCount(int requestCount, in getRenderTargetSampleCount() argument
108 return this->getRenderTargetSampleCount(requestCount, format.asMockColorType()); in getRenderTargetSampleCount()
/external/guava/android/guava-tests/test/com/google/common/cache/
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()
114 assertEquals(Long.MAX_VALUE, sum.requestCount()); in testPlusLarge()
DAbstractCacheTest.java103 assertEquals(0, stats.requestCount()); in testEmptySimpleStats()
134 int requestCount = 11 + 23; in testSingleSimpleStats() local
135 assertEquals(requestCount, stats.requestCount()); in testSingleSimpleStats()
137 assertEquals(11.0 / requestCount, stats.hitRate()); in testSingleSimpleStats()
140 assertEquals(((double) missCount) / requestCount, stats.missRate()); in testSingleSimpleStats()
DLocalLoadingCacheTest.java82 assertEquals(1, stats.requestCount()); in testStats()
95 assertEquals(2, stats.requestCount()); in testStats()
106 assertEquals(3, stats.requestCount()); in testStats()
120 assertEquals(4, stats.requestCount()); in testStats()
/external/guava/guava-tests/test/com/google/common/cache/
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()
114 assertEquals(Long.MAX_VALUE, sum.requestCount()); in testPlusLarge()
DAbstractCacheTest.java103 assertEquals(0, stats.requestCount()); in testEmptySimpleStats()
134 int requestCount = 11 + 23; in testSingleSimpleStats() local
135 assertEquals(requestCount, stats.requestCount()); in testSingleSimpleStats()
137 assertEquals(11.0 / requestCount, stats.hitRate()); in testSingleSimpleStats()
140 assertEquals(((double) missCount) / requestCount, stats.missRate()); in testSingleSimpleStats()
DLocalLoadingCacheTest.java82 assertEquals(1, stats.requestCount()); in testStats()
95 assertEquals(2, stats.requestCount()); in testStats()
106 assertEquals(3, stats.requestCount()); in testStats()
120 assertEquals(4, stats.requestCount()); in testStats()
/external/dagger2/javatests/dagger/functional/cycle/
DDoubleCheckCycleTest.java163 AtomicInteger requestCount = new AtomicInteger(0); in testGetFromMultipleThreads() local
195 requestCount.incrementAndGet(); in testGetFromMultipleThreads()
203 assertThat(requestCount.get()).isEqualTo(0); in testGetFromMultipleThreads()
225 assertThat(requestCount.get()).isEqualTo(10); in testGetFromMultipleThreads()
237 assertThat(requestCount.get()).isEqualTo(10); in testGetFromMultipleThreads()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowHttpResponseCache.java27 private int requestCount = 0; field in ShadowHttpResponseCache
85 return requestCount; in getRequestCount()
91 requestCount += 1; in get()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DBenchmark.java106 int requestCount = 0; in run() local
118 double requestsPerSecond = requestCount / reportDuration * TimeUnit.SECONDS.toNanos(1); in run()
123 requestCount = 0; in run()
131 requestCount++; in run()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java86 private final AtomicInteger requestCount = new AtomicInteger(); field in MockWebServer
179 return requestCount.get(); in getRequestCount()
366 requestCount.incrementAndGet(); in serveConnection()
421 requestCount.incrementAndGet(); in dispatchBookkeepingRequest()
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DShadowDefaultRequestDirector.java151 int requestCount = FakeHttp.getFakeHttpLayer().getSentHttpRequestInfos().size(); in getLatestSentHttpRequestInfo() local
152 return FakeHttp.getFakeHttpLayer().getSentHttpRequestInfo(requestCount - 1); in getLatestSentHttpRequestInfo()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java166 private int requestCount; field in Cache
396 requestCount++; in trackResponse()
421 return requestCount; in getRequestCount()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java168 private int requestCount; field in Cache
398 requestCount++; in trackResponse()
423 return requestCount; in getRequestCount()
/external/oj-libjdwp/src/share/back/
DVirtualMachineImpl.c869 int requestCount; in disposeObjects() local
877 requestCount = inStream_readInt(in); in disposeObjects()
883 for (i = 0; i < requestCount; i++) { in disposeObjects()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java118 private final AtomicInteger requestCount = new AtomicInteger(); field in MockWebServer
296 return requestCount.get();
524 requestCount.incrementAndGet();
586 requestCount.incrementAndGet();
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java342 private long requestCount; field in NanoHTTPD.DefaultAsyncRunner
368 ++this.requestCount; in exec()
371 t.setName("NanoHttpd Request Processor (#" + this.requestCount + ")"); in exec()
/external/python/cpython2/Mac/Modules/file/
D_Filemodule.c2741 UInt64 requestCount; in File_FSAllocateFork() local
2748 &requestCount)) in File_FSAllocateFork()
2754 requestCount, in File_FSAllocateFork()