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.java64 private final long hitCount; field in CacheStats
77 public CacheStats(long hitCount, long missCount, long loadSuccessCount, in CacheStats() argument
79 checkArgument(hitCount >= 0); in CacheStats()
86 this.hitCount = hitCount; in CacheStats()
99 return hitCount + missCount; in requestCount()
105 public long hitCount() { in hitCount() method in CacheStats
106 return hitCount; in hitCount()
116 return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; in hitRate()
221 Math.max(0, hitCount - other.hitCount), in minus()
237 hitCount + other.hitCount, in plus()
[all …]
DAbstractCache.java206 private final LongAddable hitCount = LongAddables.create(); field in AbstractCache.SimpleStatsCounter
223 hitCount.add(count); in recordHits()
254 hitCount.sum(), in snapshot()
267 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.java75 assertEquals(0, stats.hitCount()); in testEmptySimpleStats()
107 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/antlr-3.4/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/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java34 private int hitCount; field in CharsetRecog_sbcs.NGramParser
45 ngramCount = hitCount = 0; in NGramParser()
95 hitCount += 1; in lookup()
149 double rawPercent = (double) hitCount / (double) ngramCount; in parse()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java164 private int hitCount; field in Cache
382 hitCount++; in trackResponse()
387 hitCount++; in trackConditionalCacheHit()
395 return hitCount; in getHitCount()
/external/icu/icu4c/source/i18n/
Dcsrsbcs.cpp28 ngramCount = hitCount = 0; in NGramParser()
83 hitCount += 1; in lookup()
129 double rawPercent = (double) hitCount / (double) ngramCount; in parse()
Dcsrsbcs.h26 int32_t hitCount; variable
/external/skia/src/core/
DSkGlyphCache.cpp537 int hitCount = 0; in Dump() local
543 hitCount += cache->fHashHitCount; in Dump()
549 SkDebugf("Hash hit percent:%2d\n", 100 * hitCount / (hitCount + missCount)); in Dump()
/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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.jdt.debug_3.6.1.v20100715_r361/
Djdimodel.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/v8/benchmarks/
Draytrace.js524 hitCount: 0, property in Flog.RayTracer.IntersectionInfo
696 best.hitCount = hits;
/external/robolectric/lib/main/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...