HomeSort by relevance Sort by last modified time
    Searched refs:histogram_proto (Results 1 - 2 of 2) sorted by null

  /system/core/metricsd/uploader/
metrics_log_base_unittest.cc 103 const metrics::HistogramEventProto& histogram_proto = local
108 ASSERT_EQ(5, histogram_proto.bucket_size());
111 EXPECT_TRUE(histogram_proto.bucket(0).has_min());
112 EXPECT_FALSE(histogram_proto.bucket(0).has_max());
113 EXPECT_EQ(1, histogram_proto.bucket(0).min());
116 EXPECT_TRUE(histogram_proto.bucket(1).has_min());
117 EXPECT_TRUE(histogram_proto.bucket(1).has_max());
118 EXPECT_EQ(5, histogram_proto.bucket(1).min());
119 EXPECT_EQ(7, histogram_proto.bucket(1).max());
122 EXPECT_FALSE(histogram_proto.bucket(2).has_min())
    [all...]
metrics_log_base.cc 124 HistogramEventProto* histogram_proto = uma_proto_.add_histogram_event(); local
125 histogram_proto->set_name_hash(Hash(histogram_name));
126 histogram_proto->set_sum(snapshot.sum());
134 HistogramEventProto::Bucket* bucket = histogram_proto->add_bucket();
141 for (int i = 0; i < histogram_proto->bucket_size(); ++i) {
142 HistogramEventProto::Bucket* bucket = histogram_proto->mutable_bucket(i);
143 if (i + 1 < histogram_proto->bucket_size() &&
144 bucket->max() == histogram_proto->bucket(i + 1).min()) {

Completed in 206 milliseconds