Searched refs:GetCountAtIndex (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/base/metrics/ |
D | sample_vector_unittest.cc | 42 EXPECT_EQ(-100, samples.GetCountAtIndex(0)); in TEST_F() 45 EXPECT_EQ(200, samples.GetCountAtIndex(1)); in TEST_F() 52 EXPECT_EQ(100, samples.GetCountAtIndex(1)); in TEST_F() 69 EXPECT_EQ(-100, samples.GetCountAtIndex(0)); in TEST_F() 72 EXPECT_EQ(200, samples.GetCountAtIndex(1)); in TEST_F() 79 EXPECT_EQ(100, samples.GetCountAtIndex(1)); in TEST_F() 112 EXPECT_EQ(100, samples1.GetCountAtIndex(0)); in TEST_F() 113 EXPECT_EQ(200, samples1.GetCountAtIndex(1)); in TEST_F() 114 EXPECT_EQ(300, samples1.GetCountAtIndex(2)); in TEST_F() 115 EXPECT_EQ(300, samples1.GetCountAtIndex(3)); in TEST_F() [all …]
|
D | histogram_unittest.cc | 459 EXPECT_EQ(2, samples->GetCountAtIndex(0)); in TEST_P() 460 EXPECT_EQ(0, samples->GetCountAtIndex(1)); in TEST_P() 463 EXPECT_EQ(0, samples->GetCountAtIndex(array_size - 2)); in TEST_P() 464 EXPECT_EQ(2, samples->GetCountAtIndex(array_size - 1)); in TEST_P() 484 EXPECT_EQ(2, custom_samples->GetCountAtIndex(0)); in TEST_P() 485 EXPECT_EQ(0, custom_samples->GetCountAtIndex(1)); in TEST_P() 487 EXPECT_EQ(0, custom_samples->GetCountAtIndex(bucket_count - 2)); in TEST_P() 488 EXPECT_EQ(3, custom_samples->GetCountAtIndex(bucket_count - 1)); in TEST_P() 508 EXPECT_EQ(i + 1, samples->GetCountAtIndex(i)); in TEST_P() 757 EXPECT_EQ(0, samples->GetCountAtIndex(0)); in TEST_P() [all …]
|
D | histogram.cc | 697 while (0 == snapshot->GetCountAtIndex(largest_non_empty_bucket)) { in WriteAsciiImpl() 706 if (snapshot->GetCountAtIndex(i)) { in WriteAsciiImpl() 717 Count current = snapshot->GetCountAtIndex(i); in WriteAsciiImpl() 726 0 == snapshot->GetCountAtIndex(i + 1)) { in WriteAsciiImpl() 728 0 == snapshot->GetCountAtIndex(i + 1)) { in WriteAsciiImpl() 748 double current_size = GetBucketSize(samples.GetCountAtIndex(i), i); in GetPeakBucketSize() 798 Sample count_at_index = snapshot->GetCountAtIndex(i); in GetCountAndBucketData()
|
D | sample_vector.cc | 69 return GetCountAtIndex(GetBucketIndex(value)); in GetCount() 93 Count SampleVectorBase::GetCountAtIndex(size_t bucket_index) const { in GetCountAtIndex() function in base::SampleVectorBase
|
D | sample_vector.h | 45 HistogramBase::Count GetCountAtIndex(size_t bucket_index) const;
|