Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java99 public long requestCount() { in requestCount() method in CacheStats
116 long requestCount = requestCount(); in hitRate() local
117 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
140 long requestCount = requestCount(); in missRate() local
141 return (requestCount == 0) ? 0.0 : (double) missCount / requestCount; in missRate()
/external/skia/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/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/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/guava/guava-tests/test/com/google/common/cache/
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()
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.java87 assertEquals(1, stats.requestCount()); in testStats()
100 assertEquals(2, stats.requestCount()); in testStats()
111 assertEquals(3, stats.requestCount()); in testStats()
125 assertEquals(4, stats.requestCount()); in testStats()
/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/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();
585 requestCount.incrementAndGet();
/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/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()