Lines Matching refs:metric
108 for (int metric = 0; metric < NUM_FIELDS; metric++) { in uploadMetrics() local
109 if ((metric == RES && num_res_samples_ == 0) || kStatsSnapshotType[metric] < 0) in uploadMetrics()
111 std::string log_min = "min-" + std::to_string(metric) + " "; in uploadMetrics()
112 std::string log_max = "max-" + std::to_string(metric) + " "; in uploadMetrics()
114 log_min += std::to_string(min_[metric][j]) + " "; in uploadMetrics()
115 log_max += std::to_string(max_[metric][j]) + " "; in uploadMetrics()
120 uploadOutlierMetric(stats_client, static_cast<sampleType>(metric)); in uploadMetrics()
170 for (int metric = 0; metric < NUM_FIELDS; metric++) { in recordSample() local
172 if ((metric == RES && health_info.batteryStatus == BatteryStatus::CHARGING) || in recordSample()
173 kStatsSnapshotType[metric] < 0) in recordSample()
175 if (num_samples_ == 0 || (metric == RES && num_res_samples_ == 0) || in recordSample()
176 sample[metric] < min_[metric][metric]) { in recordSample()
178 min_[metric][i] = sample[i]; in recordSample()
181 if (num_samples_ == 0 || (metric == RES && num_res_samples_ == 0) || in recordSample()
182 sample[metric] > max_[metric][metric]) { in recordSample()
184 max_[metric][i] = sample[i]; in recordSample()