Home
last modified time | relevance | path

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

12

/external/guava/guava/src/com/google/common/cache/
DCacheStats.java61 private final long hitCount; field in CacheStats
79 long hitCount, in CacheStats() argument
85 checkArgument(hitCount >= 0); in CacheStats()
92 this.hitCount = hitCount; in CacheStats()
109 return saturatedAdd(hitCount, missCount); in requestCount()
113 public long hitCount() { in hitCount() method in CacheStats
114 return hitCount; in hitCount()
124 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
244 Math.max(0, saturatedSubtract(hitCount, other.hitCount)), in minus()
264 saturatedAdd(hitCount, other.hitCount), in plus()
[all …]
DAbstractCache.java197 private final LongAddable hitCount = LongAddables.create(); field in AbstractCache.SimpleStatsCounter
210 hitCount.add(count); in recordHits()
241 negativeToMaxValue(hitCount.sum()), in snapshot()
257 hitCount.add(otherStats.hitCount()); in incrementBy()
/external/guava/android/guava/src/com/google/common/cache/
DCacheStats.java61 private final long hitCount; field in CacheStats
79 long hitCount, in CacheStats() argument
85 checkArgument(hitCount >= 0); in CacheStats()
92 this.hitCount = hitCount; in CacheStats()
109 return saturatedAdd(hitCount, missCount); in requestCount()
113 public long hitCount() { in hitCount() method in CacheStats
114 return hitCount; in hitCount()
124 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
244 Math.max(0, saturatedSubtract(hitCount, other.hitCount)), in minus()
264 saturatedAdd(hitCount, other.hitCount), in plus()
[all …]
DAbstractCache.java197 private final LongAddable hitCount = LongAddables.create(); field in AbstractCache.SimpleStatsCounter
210 hitCount.add(count); in recordHits()
241 negativeToMaxValue(hitCount.sum()), in snapshot()
257 hitCount.add(otherStats.hitCount()); in incrementBy()
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheLoadingTest.java108 assertEquals(0, stats.hitCount()); in testLoad()
116 assertEquals(0, stats.hitCount()); in testLoad()
124 assertEquals(0, stats.hitCount()); in testLoad()
133 assertEquals(0, stats.hitCount()); in testLoad()
140 assertEquals(1, stats.hitCount()); in testLoad()
149 assertEquals(2, stats.hitCount()); in testLoad()
157 assertEquals(2, stats.hitCount()); in testLoad()
182 assertEquals(0, stats.hitCount()); in testReload()
189 assertEquals(0, stats.hitCount()); in testReload()
197 assertEquals(0, stats.hitCount()); in testReload()
[all …]
DCacheManualTest.java32 assertEquals(0, stats.hitCount()); in testGetIfPresent()
42 assertEquals(0, stats.hitCount()); in testGetIfPresent()
52 assertEquals(0, stats.hitCount()); in testGetIfPresent()
64 assertEquals(1, stats.hitCount()); in testGetIfPresent()
74 assertEquals(1, stats.hitCount()); in testGetIfPresent()
86 assertEquals(2, stats.hitCount()); in testGetIfPresent()
96 assertEquals(3, stats.hitCount()); in testGetIfPresent()
108 assertEquals(0, stats.hitCount()); in testGetAllPresent()
115 assertEquals(0, stats.hitCount()); in testGetAllPresent()
122 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()
115 assertEquals(Long.MAX_VALUE, sum.hitCount()); in testPlusLarge()
DLocalLoadingCacheTest.java83 assertEquals(0, stats.hitCount()); in testStats()
96 assertEquals(1, stats.hitCount()); in testStats()
107 assertEquals(1, stats.hitCount()); in testStats()
121 assertEquals(1, stats.hitCount()); in testStats()
200 assertEquals(0, cache.stats().hitCount()); in testRecordStats()
205 assertEquals(0, cache.stats().hitCount()); in testRecordStats()
209 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
214 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
219 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
DAbstractCacheTest.java104 assertEquals(0, stats.hitCount()); in testEmptySimpleStats()
136 assertEquals(11, stats.hitCount()); in testSingleSimpleStats()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheLoadingTest.java108 assertEquals(0, stats.hitCount()); in testLoad()
116 assertEquals(0, stats.hitCount()); in testLoad()
124 assertEquals(0, stats.hitCount()); in testLoad()
133 assertEquals(0, stats.hitCount()); in testLoad()
140 assertEquals(1, stats.hitCount()); in testLoad()
149 assertEquals(2, stats.hitCount()); in testLoad()
157 assertEquals(2, stats.hitCount()); in testLoad()
182 assertEquals(0, stats.hitCount()); in testReload()
189 assertEquals(0, stats.hitCount()); in testReload()
197 assertEquals(0, stats.hitCount()); in testReload()
[all …]
DCacheManualTest.java32 assertEquals(0, stats.hitCount()); in testGetIfPresent()
42 assertEquals(0, stats.hitCount()); in testGetIfPresent()
52 assertEquals(0, stats.hitCount()); in testGetIfPresent()
64 assertEquals(1, stats.hitCount()); in testGetIfPresent()
74 assertEquals(1, stats.hitCount()); in testGetIfPresent()
86 assertEquals(2, stats.hitCount()); in testGetIfPresent()
96 assertEquals(3, stats.hitCount()); in testGetIfPresent()
108 assertEquals(0, stats.hitCount()); in testGetAllPresent()
115 assertEquals(0, stats.hitCount()); in testGetAllPresent()
122 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()
115 assertEquals(Long.MAX_VALUE, sum.hitCount()); in testPlusLarge()
DLocalLoadingCacheTest.java83 assertEquals(0, stats.hitCount()); in testStats()
96 assertEquals(1, stats.hitCount()); in testStats()
107 assertEquals(1, stats.hitCount()); in testStats()
121 assertEquals(1, stats.hitCount()); in testStats()
200 assertEquals(0, cache.stats().hitCount()); in testRecordStats()
205 assertEquals(0, cache.stats().hitCount()); in testRecordStats()
209 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
214 assertEquals(1, cache.stats().hitCount()); in testRecordStats()
219 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/llvm-project/lldb/tools/lldb-vscode/
DBreakpointBase.cpp22 uint64_t hitCount = 0; in SetHitCondition() local
23 if (llvm::to_integer(hitCondition, hitCount)) in SetHitCondition()
24 bp.SetIgnoreCount(hitCount - 1); in SetHitCondition()
/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/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/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/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/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/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/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()
/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/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()

12