Home
last modified time | relevance | path

Searched refs:GetCountAtIndex (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/base/metrics/
Dsample_vector_unittest.cc30 EXPECT_EQ(-100, samples.GetCountAtIndex(0)); in TEST()
33 EXPECT_EQ(200, samples.GetCountAtIndex(1)); in TEST()
40 EXPECT_EQ(100, samples.GetCountAtIndex(1)); in TEST()
73 EXPECT_EQ(100, samples1.GetCountAtIndex(0)); in TEST()
74 EXPECT_EQ(200, samples1.GetCountAtIndex(1)); in TEST()
75 EXPECT_EQ(300, samples1.GetCountAtIndex(2)); in TEST()
76 EXPECT_EQ(300, samples1.GetCountAtIndex(3)); in TEST()
82 EXPECT_EQ(100, samples1.GetCountAtIndex(0)); in TEST()
83 EXPECT_EQ(0, samples1.GetCountAtIndex(1)); in TEST()
84 EXPECT_EQ(100, samples1.GetCountAtIndex(2)); in TEST()
[all …]
Dhistogram_unittest.cc278 EXPECT_EQ(2, samples->GetCountAtIndex(0)); in TEST_F()
279 EXPECT_EQ(0, samples->GetCountAtIndex(1)); in TEST_F()
282 EXPECT_EQ(0, samples->GetCountAtIndex(array_size - 2)); in TEST_F()
283 EXPECT_EQ(2, samples->GetCountAtIndex(array_size - 1)); in TEST_F()
303 EXPECT_EQ(2, custom_samples->GetCountAtIndex(0)); in TEST_F()
304 EXPECT_EQ(0, custom_samples->GetCountAtIndex(1)); in TEST_F()
306 EXPECT_EQ(0, custom_samples->GetCountAtIndex(bucket_count - 2)); in TEST_F()
307 EXPECT_EQ(3, custom_samples->GetCountAtIndex(bucket_count - 1)); in TEST_F()
327 EXPECT_EQ(i + 1, samples->GetCountAtIndex(i)); in TEST_F()
Dhistogram.cc426 while (0 == snapshot->GetCountAtIndex(largest_non_empty_bucket)) { in WriteAsciiImpl()
435 if (snapshot->GetCountAtIndex(i)) { in WriteAsciiImpl()
446 Count current = snapshot->GetCountAtIndex(i); in WriteAsciiImpl()
455 0 == snapshot->GetCountAtIndex(i + 1)) { in WriteAsciiImpl()
457 0 == snapshot->GetCountAtIndex(i + 1)) { in WriteAsciiImpl()
477 double current_size = GetBucketSize(samples.GetCountAtIndex(i), i); in GetPeakBucketSize()
530 Sample count_at_index = snapshot->GetCountAtIndex(i); in GetCountAndBucketData()
Dsample_vector.h46 HistogramBase::Count GetCountAtIndex(size_t bucket_index) const;
Dsample_vector.cc63 Count SampleVector::GetCountAtIndex(size_t bucket_index) const { in GetCountAtIndex() function in base::SampleVector