Home
last modified time | relevance | path

Searched refs:hitCount (Results 1 – 24 of 24) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java65 private final long hitCount; field in CacheStats
78 public CacheStats(long hitCount, long missCount, long loadSuccessCount, in CacheStats() argument
80 checkArgument(hitCount >= 0); in CacheStats()
87 this.hitCount = hitCount; in CacheStats()
100 return hitCount + missCount; in requestCount()
106 public long hitCount() { in hitCount() method in CacheStats
107 return hitCount; in hitCount()
117 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
222 Math.max(0, hitCount - other.hitCount), in minus()
238 hitCount + other.hitCount, in plus()
[all …]
DAbstractCache.java209 private final LongAddable hitCount = LongAddables.create(); field in AbstractCache.SimpleStatsCounter
226 hitCount.add(count); in recordHits()
257 hitCount.sum(), in snapshot()
270 hitCount.add(otherStats.hitCount()); in incrementBy()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheLoadingTest.java110 assertEquals(0, stats.hitCount()); in testLoad()
118 assertEquals(0, stats.hitCount()); in testLoad()
126 assertEquals(0, stats.hitCount()); in testLoad()
135 assertEquals(0, stats.hitCount()); in testLoad()
142 assertEquals(1, stats.hitCount()); in testLoad()
151 assertEquals(2, stats.hitCount()); in testLoad()
159 assertEquals(2, stats.hitCount()); in testLoad()
183 assertEquals(0, stats.hitCount()); in testReload()
190 assertEquals(0, stats.hitCount()); in testReload()
198 assertEquals(0, stats.hitCount()); in testReload()
[all …]
DCacheManualTest.java35 assertEquals(0, stats.hitCount()); in testGetIfPresent()
45 assertEquals(0, stats.hitCount()); in testGetIfPresent()
55 assertEquals(0, stats.hitCount()); in testGetIfPresent()
67 assertEquals(1, stats.hitCount()); in testGetIfPresent()
77 assertEquals(1, stats.hitCount()); in testGetIfPresent()
89 assertEquals(2, stats.hitCount()); in testGetIfPresent()
99 assertEquals(3, stats.hitCount()); in testGetIfPresent()
111 assertEquals(0, stats.hitCount()); in testGetAllPresent()
118 assertEquals(0, stats.hitCount()); in testGetAllPresent()
125 assertEquals(0, stats.hitCount()); in testGetAllPresent()
[all …]
DCacheStatsTest.java31 assertEquals(0, stats.hitCount()); in testEmpty()
47 assertEquals(11, stats.hitCount()); in testSingle()
66 assertEquals(42, diff.hitCount()); in testMinus()
87 assertEquals(64, sum.hitCount()); in testPlus()
DLocalLoadingCacheTest.java88 assertEquals(0, stats.hitCount()); in testStats()
101 assertEquals(1, stats.hitCount()); in testStats()
112 assertEquals(1, stats.hitCount()); in testStats()
126 assertEquals(1, stats.hitCount()); in testStats()
209 assertEquals(0, cache.stats().hitCount()); in testRecordStats()
214 assertEquals(0, cache.stats().hitCount()); in testRecordStats()
218 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
223 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
228 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
DAbstractCacheTest.java104 assertEquals(0, stats.hitCount()); in testEmptySimpleStats()
136 assertEquals(11, stats.hitCount()); in testSingleSimpleStats()
/external/slf4j/
Dversion.pl23 my $hitCount=0;
25 if($hitCount == 0 && /<version>.*<\/version>/) {
27 $hitCount++;
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/helper/
DAbbreviator.java72 int hitCount = 0; in computeNextIndex() local
77 if (hitCount == 0) { in computeNextIndex()
83 hitCount++; in computeNextIndex()
/external/antlr/runtime/ObjC/Framework/ANTLR.xcodeproj/
Dacondit.pbxuser1317 hitCount = 1;
1335 hitCount = 1;
1353 hitCount = 1;
1371 hitCount = 0;
1413 hitCount = 0;
1430 hitCount = 0;
1447 hitCount = 0;
1464 hitCount = 0;
1481 hitCount = 0;
1498 hitCount = 0;
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowHttpResponseCache.java28 private int hitCount = 0; field in ShadowHttpResponseCache
75 return hitCount; in getHitCount()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java37 private int hitCount; field in CharsetRecog_sbcs.NGramParser
48 ngramCount = hitCount = 0; in NGramParser()
98 hitCount += 1; in lookup()
152 double rawPercent = (double) hitCount / (double) ngramCount; in parse()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_sbcs.java38 private int hitCount; field in CharsetRecog_sbcs.NGramParser
49 ngramCount = hitCount = 0; in NGramParser()
99 hitCount += 1; in lookup()
153 double rawPercent = (double) hitCount / (double) ngramCount; in parse()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java165 private int hitCount; field in Cache
404 hitCount++; in trackResponse()
409 hitCount++; in trackConditionalCacheHit()
417 return hitCount; in getHitCount()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java167 private int hitCount; field in Cache
406 hitCount++; in trackResponse()
411 hitCount++; in trackConditionalCacheHit()
419 return hitCount; in getHitCount()
/external/icu/icu4c/source/i18n/
Dcsrsbcs.cpp29 ngramCount = hitCount = 0; in NGramParser()
84 hitCount += 1; in lookup()
130 double rawPercent = (double) hitCount / (double) ngramCount; in parse()
Dcsrsbcs.h28 int32_t hitCount; variable
/external/replicaisland/src/com/replica/replicaisland/
DCollisionSystem.java479 int hitCount = 0; in testBoxAgainstList() local
489 for (int x = 0; x < count && hitCount < maxSegments; x++) { in testBoxAgainstList()
512 hitCount++; in testBoxAgainstList()
518 return hitCount > 0; in testBoxAgainstList()
/external/skqp/src/gpu/ccpr/
DGrCCPathCache.h212 int hitCount() const { return fHitCount; } in hitCount() function
DGrCCDrawPathsOp.cpp270 if (fCacheEntry->hitCount() <= 1) { in shouldCachePathMask()
/external/skia/src/gpu/ccpr/
DGrCCPathCache.h212 int hitCount() const { return fHitCount; } in hitCount() function
DGrCCDrawPathsOp.cpp273 if (fCacheEntry->hitCount() <= 1) { in shouldCachePathMask()
/external/v8/benchmarks/
Draytrace.js524 hitCount: 0, property in Flog.RayTracer.IntersectionInfo
696 best.hitCount = hits;
/external/v8/src/inspector/
Djs_protocol.pdl668 optional integer hitCount