Lines Matching refs:metric
129 for (int metric = 0; metric < NUM_FIELDS; metric++) { in uploadMetrics() local
130 if ((metric == RES && num_res_samples_ == 0) || kStatsSnapshotType[metric] < 0) in uploadMetrics()
132 std::string log_min = "min-" + std::to_string(metric) + " "; in uploadMetrics()
133 std::string log_max = "max-" + std::to_string(metric) + " "; in uploadMetrics()
135 log_min += std::to_string(min_[metric][j]) + " "; in uploadMetrics()
136 log_max += std::to_string(max_[metric][j]) + " "; in uploadMetrics()
141 uploadOutlierMetric(stats_client, static_cast<sampleType>(metric)); in uploadMetrics()
191 for (int metric = 0; metric < NUM_FIELDS; metric++) { in recordSample() local
193 if ((metric == RES && props->batteryStatus == android::BATTERY_STATUS_CHARGING) || in recordSample()
194 kStatsSnapshotType[metric] < 0) in recordSample()
196 if (num_samples_ == 0 || (metric == RES && num_res_samples_ == 0) || in recordSample()
197 sample[metric] < min_[metric][metric]) { in recordSample()
199 min_[metric][i] = sample[i]; in recordSample()
202 if (num_samples_ == 0 || (metric == RES && num_res_samples_ == 0) || in recordSample()
203 sample[metric] > max_[metric][metric]) { in recordSample()
205 max_[metric][i] = sample[i]; in recordSample()