/external/webrtc/webrtc/base/ |
D | random_unittest.cc | 37 void UniformBucketTest(T bucket_count, int samples, Random* prng) { in UniformBucketTest() argument 38 std::vector<int> buckets(bucket_count, 0); in UniformBucketTest() 44 static_cast<T>(total_values % static_cast<uint64_t>(bucket_count)); in UniformBucketTest() 56 buckets[fdiv_remainder(sample, bucket_count)]++; in UniformBucketTest() 59 for (T i = 0; i < bucket_count; i++) { in UniformBucketTest() 61 EXPECT_NEAR(buckets[i], samples / bucket_count, in UniformBucketTest() 62 3 * sqrt(samples / bucket_count)); in UniformBucketTest() 111 void BucketTestSignedInterval(unsigned int bucket_count, in BucketTestSignedInterval() argument 117 std::vector<unsigned int> buckets(bucket_count, 0); in BucketTestSignedInterval() 120 ASSERT_GE(bucket_count, 2u); in BucketTestSignedInterval() [all …]
|
/external/libchrome/base/metrics/ |
D | histogram.cc | 40 size_t* bucket_count, in ReadHistogramArguments() argument 46 !iter->ReadSizeT(bucket_count) || in ReadHistogramArguments() 57 INT_MAX / sizeof(HistogramBase::Count) <= *bucket_count || in ReadHistogramArguments() 58 *bucket_count < 2) { in ReadHistogramArguments() 90 size_t bucket_count, in FactoryGet() argument 93 InspectConstructionArguments(name, &minimum, &maximum, &bucket_count); in FactoryGet() 99 BucketRanges* ranges = new BucketRanges(bucket_count + 1); in FactoryGet() 113 if (!histogram->HasConstructionArguments(minimum, maximum, bucket_count)) { in FactoryGet() 129 size_t bucket_count, in FactoryTimeGet() argument 132 static_cast<Sample>(maximum.InMilliseconds()), bucket_count, in FactoryTimeGet() [all …]
|
D | sample_vector.cc | 20 local_counts_(bucket_ranges->bucket_count()), in SampleVector() 24 CHECK_GE(bucket_ranges_->bucket_count(), 1u); in SampleVector() 34 counts_size_(bucket_ranges->bucket_count()), in SampleVector() 36 CHECK_LE(bucket_ranges_->bucket_count(), counts_size_); in SampleVector() 37 CHECK_GE(bucket_ranges_->bucket_count(), 1u); in SampleVector() 107 size_t bucket_count = bucket_ranges_->bucket_count(); in GetBucketIndex() local 108 CHECK_GE(bucket_count, 1u); in GetBucketIndex() 110 CHECK_LT(value, bucket_ranges_->range(bucket_count)); in GetBucketIndex() 113 size_t over = bucket_count; in GetBucketIndex() 138 CHECK_GE(bucket_ranges_->bucket_count(), counts_size_); in SampleVectorIterator() [all …]
|
D | histogram.h | 119 size_t bucket_count, 124 size_t bucket_count, 133 size_t bucket_count, 138 size_t bucket_count, 167 virtual size_t bucket_count() const; 179 size_t* bucket_count); 294 size_t bucket_count, 299 size_t bucket_count, 308 size_t bucket_count, 313 size_t bucket_count, [all …]
|
D | histogram_macros.h | 99 #define LOCAL_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument 101 base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ 113 #define LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument 115 base::Histogram::FactoryGet(name, min, max, bucket_count, \ 180 #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument 182 base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ 197 #define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument 199 base::Histogram::FactoryGet(name, min, max, bucket_count, \
|
/external/libcxx/test/std/containers/unord/unord.set/ |
D | rehash.pass.cpp | 49 assert(c.bucket_count() >= 5); in main() 51 assert(c.bucket_count() == 5); in main() 55 assert(c.bucket_count() == 3); in main() 58 assert(c.bucket_count() == 31); in main() 77 assert(c.bucket_count() >= 5); in main() 79 assert(c.bucket_count() == 5); in main() 83 assert(c.bucket_count() == 3); in main() 86 assert(c.bucket_count() == 31); in main()
|
D | reserve.pass.cpp | 49 assert(c.bucket_count() >= 5); in main() 51 assert(c.bucket_count() == 5); in main() 55 assert(c.bucket_count() >= 2); in main() 58 assert(c.bucket_count() >= 16); in main() 77 assert(c.bucket_count() >= 5); in main() 79 assert(c.bucket_count() == 5); in main() 83 assert(c.bucket_count() >= 2); in main() 86 assert(c.bucket_count() >= 16); in main()
|
D | swap_member.pass.cpp | 39 assert(c1.bucket_count() == 0); in main() 48 assert(c2.bucket_count() == 0); in main() 79 assert(c1.bucket_count() >= 11); in main() 96 assert(c2.bucket_count() == 0); in main() 125 assert(c1.bucket_count() == 0); in main() 134 assert(c2.bucket_count() >= 5); in main() 178 assert(c1.bucket_count() >= 11); in main() 195 assert(c2.bucket_count() >= 5); in main() 220 assert(c1.bucket_count() == 0); in main() 229 assert(c2.bucket_count() == 0); in main() [all …]
|
D | bucket_count.pass.cpp | 30 assert(c.bucket_count() == 0); in main() 48 assert(c.bucket_count() >= 11); in main() 56 assert(c.bucket_count() == 0); in main() 74 assert(c.bucket_count() >= 11); in main()
|
/external/libcxx/test/std/containers/unord/unord.multiset/ |
D | reserve.pass.cpp | 49 assert(c.bucket_count() >= 7); in main() 51 assert(c.bucket_count() == 7); in main() 55 assert(c.bucket_count() == 3); in main() 58 assert(c.bucket_count() >= 16); in main() 77 assert(c.bucket_count() >= 7); in main() 79 assert(c.bucket_count() == 7); in main() 83 assert(c.bucket_count() == 3); in main() 86 assert(c.bucket_count() >= 16); in main()
|
D | rehash.pass.cpp | 49 assert(c.bucket_count() >= 7); in main() 51 assert(c.bucket_count() == 7); in main() 55 assert(c.bucket_count() == 3); in main() 58 assert(c.bucket_count() == 31); in main() 77 assert(c.bucket_count() >= 7); in main() 79 assert(c.bucket_count() == 7); in main() 83 assert(c.bucket_count() == 3); in main() 86 assert(c.bucket_count() == 31); in main()
|
D | swap_member.pass.cpp | 39 assert(c1.bucket_count() == 0); in main() 48 assert(c2.bucket_count() == 0); in main() 79 assert(c1.bucket_count() >= 11); in main() 96 assert(c2.bucket_count() == 0); in main() 125 assert(c1.bucket_count() == 0); in main() 134 assert(c2.bucket_count() >= 7); in main() 178 assert(c1.bucket_count() >= 11); in main() 195 assert(c2.bucket_count() >= 7); in main() 220 assert(c1.bucket_count() == 0); in main() 229 assert(c2.bucket_count() == 0); in main() [all …]
|
D | bucket_count.pass.cpp | 30 assert(c.bucket_count() == 0); in main() 48 assert(c.bucket_count() >= 11); in main() 57 assert(c.bucket_count() == 0); in main() 76 assert(c.bucket_count() >= 11); in main()
|
/external/libcxx/test/std/containers/unord/unord.map/ |
D | reserve.pass.cpp | 50 assert(c.bucket_count() >= 5); in main() 52 assert(c.bucket_count() == 5); in main() 56 assert(c.bucket_count() >= 2); in main() 59 assert(c.bucket_count() >= 16); in main() 78 assert(c.bucket_count() >= 5); in main() 80 assert(c.bucket_count() == 5); in main() 84 assert(c.bucket_count() >= 2); in main() 87 assert(c.bucket_count() >= 16); in main()
|
D | rehash.pass.cpp | 50 assert(c.bucket_count() >= 5); in main() 52 assert(c.bucket_count() == 5); in main() 56 assert(c.bucket_count() == 3); in main() 59 assert(c.bucket_count() == 31); in main() 78 assert(c.bucket_count() >= 5); in main() 80 assert(c.bucket_count() == 5); in main() 84 assert(c.bucket_count() == 3); in main() 87 assert(c.bucket_count() == 31); in main()
|
D | bucket_count.pass.cpp | 30 assert(c.bucket_count() == 0); in main() 47 assert(c.bucket_count() >= 11); in main() 54 assert(c.bucket_count() == 0); in main() 72 assert(c.bucket_count() >= 11); in main()
|
/external/libcxx/test/std/containers/unord/unord.multimap/ |
D | reserve.pass.cpp | 52 assert(c.bucket_count() >= 7); in main() 54 assert(c.bucket_count() == 7); in main() 58 assert(c.bucket_count() == 3); in main() 61 assert(c.bucket_count() >= 16); in main() 80 assert(c.bucket_count() >= 7); in main() 82 assert(c.bucket_count() == 7); in main() 86 assert(c.bucket_count() == 3); in main() 89 assert(c.bucket_count() >= 16); in main()
|
D | rehash.pass.cpp | 59 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in test() 78 assert(c.bucket_count() >= 7); in main() 80 assert(c.bucket_count() == 7); in main() 84 assert(c.bucket_count() == 3); in main() 87 assert(c.bucket_count() == 31); in main() 106 assert(c.bucket_count() >= 7); in main() 108 assert(c.bucket_count() == 7); in main() 112 assert(c.bucket_count() == 3); in main() 115 assert(c.bucket_count() == 31); in main()
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/ |
D | init.pass.cpp | 45 assert(c.bucket_count() >= 7); in main() 57 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 76 assert(c.bucket_count() >= 7); in main() 88 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 109 assert(c.bucket_count() >= 12); in main() 122 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 143 assert(c.bucket_count() >= 12); in main() 157 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
|
D | range.pass.cpp | 48 assert(c.bucket_count() >= 7); in main() 60 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 81 assert(c.bucket_count() >= 7); in main() 93 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 114 assert(c.bucket_count() >= 12); in main() 127 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 148 assert(c.bucket_count() >= 16); in main() 162 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/ |
D | init.pass.cpp | 45 assert(c.bucket_count() >= 5); in main() 57 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 76 assert(c.bucket_count() >= 5); in main() 88 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 109 assert(c.bucket_count() >= 12); in main() 122 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 143 assert(c.bucket_count() >= 12); in main() 157 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
|
D | range.pass.cpp | 48 assert(c.bucket_count() >= 5); in main() 60 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 81 assert(c.bucket_count() >= 5); in main() 93 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 114 assert(c.bucket_count() >= 12); in main() 127 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 148 assert(c.bucket_count() >= 16); in main() 162 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 39 assert(c1.bucket_count() == 0); in main() 48 assert(c2.bucket_count() == 0); in main() 79 assert(c1.bucket_count() >= 11); in main() 96 assert(c2.bucket_count() == 0); in main() 125 assert(c1.bucket_count() == 0); in main() 134 assert(c2.bucket_count() >= 5); in main() 178 assert(c1.bucket_count() >= 11); in main() 195 assert(c2.bucket_count() >= 5); in main() 220 assert(c1.bucket_count() == 0); in main() 229 assert(c2.bucket_count() == 0); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 39 assert(c1.bucket_count() == 0); in main() 48 assert(c2.bucket_count() == 0); in main() 79 assert(c1.bucket_count() >= 11); in main() 96 assert(c2.bucket_count() == 0); in main() 125 assert(c1.bucket_count() == 0); in main() 134 assert(c2.bucket_count() >= 7); in main() 178 assert(c1.bucket_count() >= 11); in main() 195 assert(c2.bucket_count() >= 7); in main() 220 assert(c1.bucket_count() == 0); in main() 229 assert(c2.bucket_count() == 0); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/ |
D | init.pass.cpp | 46 assert(c.bucket_count() >= 5); in main() 59 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 78 assert(c.bucket_count() >= 5); in main() 91 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 111 assert(c.bucket_count() >= 12); in main() 123 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main() 143 assert(c.bucket_count() >= 12); in main() 156 assert(fabs(c.load_factor() - (float)c.size()/c.bucket_count()) < FLT_EPSILON); in main()
|