/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 106 CacheStats stats = cache.stats(); in testLoad() local 107 assertEquals(0, stats.missCount()); in testLoad() 108 assertEquals(0, stats.loadSuccessCount()); in testLoad() 109 assertEquals(0, stats.loadExceptionCount()); in testLoad() 110 assertEquals(0, stats.hitCount()); in testLoad() 114 stats = cache.stats(); in testLoad() 115 assertEquals(1, stats.missCount()); in testLoad() 116 assertEquals(1, stats.loadSuccessCount()); in testLoad() 117 assertEquals(0, stats.loadExceptionCount()); in testLoad() 118 assertEquals(0, stats.hitCount()); in testLoad() [all …]
|
D | CacheManualTest.java | 31 CacheStats stats = cache.stats(); in testGetIfPresent() local 32 assertEquals(0, stats.missCount()); in testGetIfPresent() 33 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent() 34 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent() 35 assertEquals(0, stats.hitCount()); in testGetIfPresent() 41 stats = cache.stats(); in testGetIfPresent() 42 assertEquals(1, stats.missCount()); in testGetIfPresent() 43 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent() 44 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent() 45 assertEquals(0, stats.hitCount()); in testGetIfPresent() [all …]
|
D | CacheStatsTest.java | 29 CacheStats stats = new CacheStats(0, 0, 0, 0, 0, 0); in testEmpty() local 30 assertEquals(0, stats.requestCount()); in testEmpty() 31 assertEquals(0, stats.hitCount()); in testEmpty() 32 assertEquals(1.0, stats.hitRate()); in testEmpty() 33 assertEquals(0, stats.missCount()); in testEmpty() 34 assertEquals(0.0, stats.missRate()); in testEmpty() 35 assertEquals(0, stats.loadSuccessCount()); in testEmpty() 36 assertEquals(0, stats.loadExceptionCount()); in testEmpty() 37 assertEquals(0.0, stats.loadExceptionRate()); in testEmpty() 38 assertEquals(0, stats.loadCount()); in testEmpty() [all …]
|
D | LocalLoadingCacheTest.java | 82 assertEquals(EMPTY_STATS, cache.stats()); in testStats() 86 CacheStats stats = cache.stats(); in testStats() local 87 assertEquals(1, stats.requestCount()); in testStats() 88 assertEquals(0, stats.hitCount()); in testStats() 89 assertEquals(0.0, stats.hitRate()); in testStats() 90 assertEquals(1, stats.missCount()); in testStats() 91 assertEquals(1.0, stats.missRate()); in testStats() 92 assertEquals(1, stats.loadCount()); in testStats() 93 long totalLoadTime = stats.totalLoadTime(); in testStats() 95 assertTrue(stats.averageLoadPenalty() >= 0.0); in testStats() [all …]
|
D | AbstractCacheTest.java | 102 CacheStats stats = counter.snapshot(); in testEmptySimpleStats() local 103 assertEquals(0, stats.requestCount()); in testEmptySimpleStats() 104 assertEquals(0, stats.hitCount()); in testEmptySimpleStats() 105 assertEquals(1.0, stats.hitRate()); in testEmptySimpleStats() 106 assertEquals(0, stats.missCount()); in testEmptySimpleStats() 107 assertEquals(0.0, stats.missRate()); in testEmptySimpleStats() 108 assertEquals(0, stats.loadSuccessCount()); in testEmptySimpleStats() 109 assertEquals(0, stats.loadExceptionCount()); in testEmptySimpleStats() 110 assertEquals(0, stats.loadCount()); in testEmptySimpleStats() 111 assertEquals(0, stats.totalLoadTime()); in testEmptySimpleStats() [all …]
|
/external/libvpx/libvpx/ |
D | vpxstats.c | 19 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { in stats_open_file() argument 21 stats->pass = pass; in stats_open_file() 24 stats->file = fopen(fpf, "wb"); in stats_open_file() 25 stats->buf.sz = 0; in stats_open_file() 26 stats->buf.buf = NULL; in stats_open_file() 27 res = (stats->file != NULL); in stats_open_file() 31 stats->file = fopen(fpf, "rb"); in stats_open_file() 33 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); in stats_open_file() 35 if (fseek(stats->file, 0, SEEK_END)) in stats_open_file() 38 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file); in stats_open_file() [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_stats.cc | 58 void AsanStats::MergeFrom(const AsanStats *stats) { in MergeFrom() argument 60 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); in MergeFrom() 79 accumulated_stats->MergeFrom(&t->stats()); in MergeThreadStats() 82 static void GetAccumulatedStats(AsanStats *stats) { in GetAccumulatedStats() argument 83 stats->Clear(); in GetAccumulatedStats() 87 .RunCallbackForEachThreadLocked(MergeThreadStats, stats); in GetAccumulatedStats() 89 stats->MergeFrom(&unknown_thread_stats); in GetAccumulatedStats() 92 stats->MergeFrom(&dead_threads_stats); in GetAccumulatedStats() 97 if (max_malloced_memory < stats->malloced) { in GetAccumulatedStats() 98 max_malloced_memory = stats->malloced; in GetAccumulatedStats() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtcp_utility_unittest.cc | 31 RTCPUtility::NackStats stats; in TEST() local 32 EXPECT_EQ(0U, stats.unique_requests()); in TEST() 33 EXPECT_EQ(0U, stats.requests()); in TEST() 34 stats.ReportRequest(10); in TEST() 35 EXPECT_EQ(1U, stats.unique_requests()); in TEST() 36 EXPECT_EQ(1U, stats.requests()); in TEST() 38 stats.ReportRequest(10); in TEST() 39 EXPECT_EQ(1U, stats.unique_requests()); in TEST() 40 stats.ReportRequest(11); in TEST() 41 EXPECT_EQ(2U, stats.unique_requests()); in TEST() [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/web_perf/metrics/ |
D | smoothness_unittest.py | 15 stats = ['refresh_period', 'frame_timestamps', 'frame_times', 'paint_times', variable in _MockRenderingStats 25 for stat in self.stats: 40 stats = _MockRenderingStats() 41 for stat in _MockRenderingStats.stats: 44 setattr(stats, stat, [[10, 20], [30, 40, 50]]) 47 self.metric._PopulateResultsFromStats(results, stats, False) 65 stats = _MockRenderingStats(refresh_period=10, 69 self.metric._ComputeSurfaceFlingerMetric(self.page, stats)) 76 stats = _MockRenderingStats( 81 self.metric._ComputeSurfaceFlingerMetric(self.page, stats)) [all …]
|
D | smoothness.py | 54 stats = rendering_stats.RenderingStats( 58 self._PopulateResultsFromStats(results, stats, has_surface_flinger_stats) 60 def _PopulateResultsFromStats(self, results, stats, argument 64 self._ComputeQueueingDuration(page, stats), 65 self._ComputeFrameTimeDiscrepancy(page, stats), 66 self._ComputeMeanPixelsApproximated(page, stats), 67 self._ComputeMeanPixelsCheckerboarded(page, stats) 69 values += self._ComputeLatencyMetric(page, stats, 'input_event_latency', 70 stats.input_event_latency) 71 values += self._ComputeLatencyMetric(page, stats, [all …]
|
/external/iproute2/tipc/ |
D | link.c | 210 struct nlattr *stats[]) in _show_link_stat() argument 229 mnl_attr_get_u32(stats[TIPC_NLA_STATS_RX_INFO]), in _show_link_stat() 230 mnl_attr_get_u32(stats[TIPC_NLA_STATS_RX_FRAGMENTS]), in _show_link_stat() 231 mnl_attr_get_u32(stats[TIPC_NLA_STATS_RX_FRAGMENTED]), in _show_link_stat() 232 mnl_attr_get_u32(stats[TIPC_NLA_STATS_RX_BUNDLES]), in _show_link_stat() 233 mnl_attr_get_u32(stats[TIPC_NLA_STATS_RX_BUNDLED])); in _show_link_stat() 237 mnl_attr_get_u32(stats[TIPC_NLA_STATS_TX_INFO]), in _show_link_stat() 238 mnl_attr_get_u32(stats[TIPC_NLA_STATS_TX_FRAGMENTS]), in _show_link_stat() 239 mnl_attr_get_u32(stats[TIPC_NLA_STATS_TX_FRAGMENTED]), in _show_link_stat() 240 mnl_attr_get_u32(stats[TIPC_NLA_STATS_TX_BUNDLES]), in _show_link_stat() [all …]
|
/external/webrtc/webrtc/modules/video_processing/ |
D | video_processing_impl.cc | 44 FrameStats* stats) { in GetFrameStats() argument 45 ClearFrameStats(stats); // The histogram needs to be zeroed out. in GetFrameStats() 52 stats->sub_sampling_factor = GetSubSamplingFactor(width, height); in GetFrameStats() 56 for (int i = 0; i < height; i += (1 << stats->sub_sampling_factor)) { in GetFrameStats() 58 for (int j = 0; j < width; j += (1 << stats->sub_sampling_factor)) { in GetFrameStats() 59 stats->hist[buffer[k + j]]++; in GetFrameStats() 60 stats->sum += buffer[k + j]; in GetFrameStats() 64 stats->num_pixels = (width * height) / ((1 << stats->sub_sampling_factor) * in GetFrameStats() 65 (1 << stats->sub_sampling_factor)); in GetFrameStats() 66 assert(stats->num_pixels > 0); in GetFrameStats() [all …]
|
D | brightness_detection.cc | 32 const VideoProcessing::FrameStats& stats) { in ProcessFrame() argument 39 if (!VideoProcessing::ValidFrameStats(stats)) { in ProcessFrame() 49 prop_low += stats.hist[i]; in ProcessFrame() 51 prop_low /= stats.num_pixels; in ProcessFrame() 57 prop_high += stats.hist[i]; in ProcessFrame() 59 prop_high /= stats.num_pixels; in ProcessFrame() 62 if (stats.mean < 90 || stats.mean > 170) { in ProcessFrame() 66 for (int h = 0; h < height; h += (1 << stats.sub_sampling_factor)) { in ProcessFrame() 68 for (int w = 0; w < width; w += (1 << stats.sub_sampling_factor)) { in ProcessFrame() 70 (buffer[w + row] - stats.mean) * (buffer[w + row] - stats.mean); in ProcessFrame() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | call_statistics_unittest.cc | 20 AudioDecodingCallStats stats; in TEST() local 22 stats = call_stats.GetDecodingStatistics(); in TEST() 23 EXPECT_EQ(0, stats.calls_to_neteq); in TEST() 24 EXPECT_EQ(0, stats.calls_to_silence_generator); in TEST() 25 EXPECT_EQ(0, stats.decoded_normal); in TEST() 26 EXPECT_EQ(0, stats.decoded_cng); in TEST() 27 EXPECT_EQ(0, stats.decoded_plc); in TEST() 28 EXPECT_EQ(0, stats.decoded_plc_cng); in TEST() 33 AudioDecodingCallStats stats; in TEST() local 41 stats = call_stats.GetDecodingStatistics(); in TEST() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowSyncResult.java | 31 return result.syncAlreadyInProgress || result.stats.numIoExceptions > 0; in hasSoftError() 36 return result.stats.numParseExceptions > 0 in hasHardError() 37 || result.stats.numConflictDetectedExceptions > 0 in hasHardError() 38 || result.stats.numAuthExceptions > 0 in hasHardError() 51 return ((result.stats.numDeletes > 0) && !result.tooManyDeletions) in madeSomeProgress() 52 || result.stats.numInserts > 0 in madeSomeProgress() 53 || result.stats.numUpdates > 0; in madeSomeProgress() 69 result.stats.clear(); in clear() 76 private SyncStats stats; field in ShadowSyncResult.ShadowSyncStats 80 stats.numAuthExceptions = 0; in clear() [all …]
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
D | Profiler.java | 146 ProfileStats stats = new ProfileStats(); field in Profiler 158 stats.numRuleInvocations++; in enterRule() 160 stats.maxRuleInvocationDepth = Math.max(stats.maxRuleInvocationDepth, ruleLevel); in enterRule() 184 stats.numMemoizationCacheMisses++; in examineRuleMemoization() 185 stats.numGuessingRuleInvocations++; // we'll have to enter in examineRuleMemoization() 191 stats.numMemoizationCacheHits++; in examineRuleMemoization() 204 stats.numMemoizationCacheEntries++; in memoize() 215 stats.numDecisionEvents++; in enterDecision() 261 stats.numTokens++; in consumeToken() 288 if ( !inDecision() ) stats.numHiddenTokens++; in consumeHiddenToken() [all …]
|
/external/webrtc/webrtc/video/ |
D | report_block_stats_unittest.cc | 59 const RTCPReportBlock& stats) { in RtcpReportBlockToRtcpStatistics() argument 61 block.cumulative_lost = stats.cumulativeLost; in RtcpReportBlockToRtcpStatistics() 62 block.fraction_lost = stats.fractionLost; in RtcpReportBlockToRtcpStatistics() 63 block.extended_max_sequence_number = stats.extendedHighSeqNum; in RtcpReportBlockToRtcpStatistics() 64 block.jitter = stats.jitter; in RtcpReportBlockToRtcpStatistics() 82 ReportBlockStats stats; in TEST_F() local 84 RTCPReportBlock aggregated = stats.AggregateAndStore(empty); in TEST_F() 92 ReportBlockStats stats; in TEST_F() local 93 RTCPReportBlock aggregated = stats.AggregateAndStore(ssrc1block1_); in TEST_F() 100 aggregated = stats.AggregateAndStore(ssrc1block2_); in TEST_F() [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
D | Profiler.cs | 90 ProfileStats stats = new ProfileStats(); field in Antlr.Runtime.Debug.Profiler 102 stats.numRuleInvocations++; in EnterRule() 104 stats.maxRuleInvocationDepth = Math.Max(stats.maxRuleInvocationDepth, ruleLevel); in EnterRule() 128 stats.numMemoizationCacheMisses++; in ExamineRuleMemoization() 129 stats.numGuessingRuleInvocations++; // we'll have to enter in ExamineRuleMemoization() 134 stats.numMemoizationCacheHits++; in ExamineRuleMemoization() 147 stats.numMemoizationCacheEntries++; in Memoize() 157 stats.numDecisionEvents++; in EnterDecision() 210 stats.numTokens++; in ConsumeToken() 242 stats.numHiddenTokens++; in ConsumeHiddenToken() [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
D | Profiler.cs | 90 ProfileStats stats = new ProfileStats(); field in Antlr.Runtime.Debug.Profiler 105 stats.numRuleInvocations++; in EnterRule() 107 stats.maxRuleInvocationDepth = Math.Max(stats.maxRuleInvocationDepth, ruleLevel); in EnterRule() 134 stats.numMemoizationCacheMisses++; in ExamineRuleMemoization() 135 stats.numGuessingRuleInvocations++; // we'll have to enter in ExamineRuleMemoization() 142 stats.numMemoizationCacheHits++; in ExamineRuleMemoization() 156 stats.numMemoizationCacheEntries++; in Memoize() 168 stats.numDecisionEvents++; in EnterDecision() 227 stats.numTokens++; in ConsumeToken() 264 stats.numHiddenTokens++; in ConsumeHiddenToken() [all …]
|
/external/v8/src/ |
D | compilation-statistics.cc | 16 const BasicStats& stats) { in RecordPhaseStats() argument 23 it->second.Accumulate(stats); in RecordPhaseStats() 28 const BasicStats& stats) { in RecordPhaseKindStats() argument 36 it->second.Accumulate(stats); in RecordPhaseKindStats() 41 const BasicStats& stats) { in RecordTotalStats() argument 43 total_stats_.Accumulate(stats); in RecordTotalStats() 47 void CompilationStatistics::BasicStats::Accumulate(const BasicStats& stats) { in Accumulate() argument 48 delta_ += stats.delta_; in Accumulate() 49 total_allocated_bytes_ += stats.total_allocated_bytes_; in Accumulate() 50 if (stats.absolute_max_allocated_bytes_ > absolute_max_allocated_bytes_) { in Accumulate() [all …]
|
/external/webrtc/webrtc/audio/ |
D | audio_receive_stream.cc | 192 webrtc::AudioReceiveStream::Stats stats; in GetStats() local 193 stats.remote_ssrc = config_.rtp.remote_ssrc; in GetStats() 199 return stats; in GetStats() 202 stats.bytes_rcvd = call_stats.bytesReceived; in GetStats() 203 stats.packets_rcvd = call_stats.packetsReceived; in GetStats() 204 stats.packets_lost = call_stats.cumulativeLost; in GetStats() 205 stats.fraction_lost = Q8ToFloat(call_stats.fractionLost); in GetStats() 206 stats.capture_start_ntp_time_ms = call_stats.capture_start_ntp_time_ms_; in GetStats() 208 stats.codec_name = codec_inst.plname; in GetStats() 210 stats.ext_seqnum = call_stats.extendedMax; in GetStats() [all …]
|
/external/zopfli/src/zopfli/ |
D | squeeze.c | 42 static void InitStats(SymbolStats* stats) { in InitStats() argument 43 memset(stats->litlens, 0, 288 * sizeof(stats->litlens[0])); in InitStats() 44 memset(stats->dists, 0, 32 * sizeof(stats->dists[0])); in InitStats() 46 memset(stats->ll_symbols, 0, 288 * sizeof(stats->ll_symbols[0])); in InitStats() 47 memset(stats->d_symbols, 0, 32 * sizeof(stats->d_symbols[0])); in InitStats() 98 static void RandomizeStatFreqs(RanState* state, SymbolStats* stats) { in RandomizeStatFreqs() argument 99 RandomizeFreqs(state, stats->litlens, 288); in RandomizeStatFreqs() 100 RandomizeFreqs(state, stats->dists, 32); in RandomizeStatFreqs() 101 stats->litlens[256] = 1; /* End symbol. */ in RandomizeStatFreqs() 104 static void ClearStatFreqs(SymbolStats* stats) { in ClearStatFreqs() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICURWLock.java | 44 private Stats stats = null; field in ICURWLock 107 Stats result = stats; in resetStats() 108 stats = new Stats(); in resetStats() 116 Stats result = stats; in clearStats() 117 stats = null; in clearStats() 125 return stats == null ? null : new Stats(stats); in getStats() 139 if (stats != null) { // stats is null by default in acquireRead() 141 stats._rc++; in acquireRead() 143 stats._mrc++; in acquireRead() 146 stats._wrc++; in acquireRead() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICURWLock.java | 42 private Stats stats = null; field in ICURWLock 105 Stats result = stats; in resetStats() 106 stats = new Stats(); in resetStats() 114 Stats result = stats; in clearStats() 115 stats = null; in clearStats() 123 return stats == null ? null : new Stats(stats); in getStats() 137 if (stats != null) { // stats is null by default in acquireRead() 139 stats._rc++; in acquireRead() 141 stats._mrc++; in acquireRead() 144 stats._wrc++; in acquireRead() [all …]
|
/external/skia/tests/ |
D | GpuLayerCacheTest.cpp | 119 GrResourceCache::Stats stats; 148 resourceCache->getStats(&stats); 155 REPORTER_ASSERT(reporter, 1 == stats.fTotal); 161 REPORTER_ASSERT(reporter, 2 == stats.fTotal); 177 resourceCache->getStats(&stats); 178 REPORTER_ASSERT(reporter, 2 == stats.fTotal); 180 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable); 181 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable); 216 resourceCache->getStats(&stats); 217 REPORTER_ASSERT(reporter, 2 == stats.fTotal); [all …]
|