/external/webrtc/webrtc/modules/audio_processing/agc/ |
histogram.h | 21 // This class implements the histogram of loudness with circular buffers so that 22 // the histogram tracks the last T seconds of the loudness. 23 class Histogram { 25 // Create a non-sliding Histogram. 26 static Histogram* Create(); 28 // Create a sliding Histogram, i.e. the histogram represents the last 30 static Histogram* Create(int window_size); 31 ~Histogram(); 36 // Reset the histogram, forget the past [all...] |
agc.h | 21 class Histogram; 51 rtc::scoped_ptr<Histogram> histogram_; 52 rtc::scoped_ptr<Histogram> inactive_histogram_;
|
histogram.cc | 11 #include "webrtc/modules/audio_processing/agc/histogram.h" 61 Histogram::Histogram() 73 "histogram bin centers incorrect size"); 76 Histogram::Histogram(int window_size) 87 Histogram::~Histogram() {} 89 void Histogram::Update(double rms, double activity_probaility) { 90 // If circular histogram is activated then remove the oldest entry [all...] |
histogram_unittest.cc | 13 #include "webrtc/modules/audio_processing/agc/histogram.h" 40 rtc::scoped_ptr<Histogram> hist_; 55 hist_.reset(Histogram::Create(buffer_size)); 57 hist_.reset(Histogram::Create());
|
agc.cc | 20 #include "webrtc/modules/audio_processing/agc/histogram.h" 36 histogram_(Histogram::Create(kNumAnalysisFrames)), 37 inactive_histogram_(Histogram::Create()) {
|
/external/webrtc/webrtc/system_wrappers/source/ |
metrics_default.cc | 12 // Default implementation of histogram methods for WebRTC clients that do not 18 Histogram* HistogramFactoryGetCounts(const std::string& name, int min, int max, 21 Histogram* HistogramFactoryGetEnumeration(const std::string& name, 25 Histogram* histogram_pointer, const std::string& name, int sample) {}
|
/external/webrtc/webrtc/system_wrappers/include/ |
metrics.h | 23 // Histogram for counters. 26 // Histogram for enumerators. 37 // Histogram* webrtc::metrics::HistogramFactoryGetCounts( 40 // Histogram* webrtc::metrics::HistogramFactoryGetEnumeration( 43 // Histogram* histogram_pointer, const std::string& name, int sample); 62 // Macros for adding samples to a named histogram. 64 // Histogram for counters (exponentially spaced buckets). 105 // Histogram for percentage (evenly spaced buckets). 114 // Histogram for enumerators (evenly spaced buckets). 126 // The name of the histogram should not vary [all...] |
/system/update_engine/scripts/update_payload/ |
histogram_unittest.py | 7 """Unit tests for histogram.py.""" 12 import histogram 30 self.CompareToExpectedDefault(str(histogram.Histogram( 34 self.CompareToExpectedDefault(str(histogram.Histogram.FromCountDict( 38 self.CompareToExpectedDefault(str(histogram.Histogram.FromKeyList( 46 actual_str = str(histogram.Histogram([('Yes', 5), ('No', 1)], scale=5) [all...] |
histogram.py | 5 """Histogram generation tools.""" 12 class Histogram(object): 13 """A histogram generating object. 16 ASCII histogram, including bars and percentage markers, and taking care of 19 in different formats into a histogram. Histogram generation is exported via 31 """Initialize a histogram object. 34 data: list of (key, count) pairs constituting the histogram 36 formatter: function used for formatting raw histogram values 47 """Takes a dictionary of counts and returns a histogram object [all...] |
/art/runtime/base/ |
histogram_test.cc | 21 #include "histogram-inl.h" 26 // Histogram *hist(new Histogram("SimplePercentiles")); 37 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("MeanTest", 5)); 55 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("VarianceTest", 5)); 67 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("Percentile", 5)); 68 Histogram<uint64_t>::CumulativeData data [all...] |
histogram-inl.h | 25 #include "histogram.h" 33 template <class Value> inline void Histogram<Value>::AddValue(Value value) { 43 template <class Value> inline void Histogram<Value>::AdjustAndAddValue(Value value) { 47 template <class Value> inline Histogram<Value>::Histogram(const char* name) 56 inline Histogram<Value>::Histogram(const char* name, Value initial_bucket_width, 67 inline void Histogram<Value>::GrowBuckets(Value new_max) { 89 template <class Value> inline size_t Histogram<Value>::FindBucket(Value val) const { 90 // Since this is only a linear histogram, bucket index can be found simply wit [all...] |
histogram.h | 26 // Creates a data histogram for a better understanding of statistical data. 27 // Histogram analysis goes beyond simple mean and standard deviation to provide 31 template <class Value> class Histogram { 37 friend class Histogram<Value>; 42 // Used by the cumulative timing logger to search the histogram set using for an existing split 44 explicit Histogram(const char* name); 46 Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100); 100 // Add more buckets to the histogram to fill in a new value that exceeded 106 // Number of samples placed in histogram. 109 // histogram percentiles are. Grows adaptively when we hit max buckets [all...] |
timing_logger.cc | 24 #include "base/histogram-inl.h" 95 Histogram<uint64_t>* histogram; local 96 Histogram<uint64_t> dummy(label.c_str()); 101 histogram = new Histogram<uint64_t>(label.c_str(), kInitialBucketSize, max_buckets); 102 histograms_.insert(histogram); 104 histogram = *it; 106 histogram->AddValue(delta_time); 111 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const [all...] |
timing_logger.h | 20 #include "base/histogram.h" 51 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const { 67 std::set<Histogram<uint64_t>*, HistogramComparator> histograms_ GUARDED_BY(lock_);
|
/external/webrtc/webrtc/test/ |
histogram.cc | 11 #include "webrtc/test/histogram.h" 20 // Test implementation of histogram methods in 33 // Map holding info about added samples to a histogram (mapped by the histogram 39 Histogram* HistogramFactoryGetCounts(const std::string& name, int min, int max, 46 return reinterpret_cast<Histogram*>(&it->second); 49 Histogram* HistogramFactoryGetEnumeration(const std::string& name, 56 return reinterpret_cast<Histogram*>(&it->second); 60 Histogram* histogram_pointer, const std::string& name, int sample) {
|
/external/libchrome/base/metrics/ |
histogram_unittest.cc | 5 #include "base/metrics/histogram.h" 31 // for histogram allocation. False will allocate histograms from the process 43 // Each test will have a clean state (no Histogram / BucketRanges 67 // By getting the results-histogram before any persistent allocator 68 // is attached, that histogram is guaranteed not to be stored in 99 HistogramBase* histogram = Histogram::FactoryGet( local 101 EXPECT_TRUE(histogram); 142 HistogramBase* histogram = LinearHistogram::FactoryGet( local 145 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples() 152 HistogramBase* histogram = local 181 HistogramBase* histogram = local 218 Histogram* histogram = static_cast<Histogram*>( local 259 Histogram* histogram = static_cast<Histogram*>( local 297 Histogram* histogram = static_cast<Histogram*>( local 346 Histogram* histogram = static_cast<Histogram*>( local 358 Histogram* histogram = static_cast<Histogram*>( local 381 Histogram* histogram = static_cast<Histogram*>( local 406 Histogram* histogram = static_cast<Histogram*>( local 453 Histogram* histogram = static_cast<Histogram*>( local 506 Histogram* histogram = static_cast<Histogram*>( local 541 Histogram* histogram = static_cast<Histogram*>( local 617 HistogramBase* histogram = Histogram::FactoryGet( local [all...] |
histogram.cc | 5 // Histogram is an object that aggregates statistics, and can summarize them in 10 #include "base/metrics/histogram.h" 51 DLOG(ERROR) << "Pickle error decoding Histogram: " << *histogram_name; 56 // checks above and beyond those in Histogram::Initialize() 62 DLOG(ERROR) << "Values error decoding Histogram: " << histogram_name; 66 // We use the arguments to find or create the local version of the histogram 73 bool ValidateRangeChecksum(const HistogramBase& histogram, 75 const Histogram& casted_histogram = 76 static_cast<const Histogram&>(histogram); 150 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name_); local 576 HistogramBase* histogram = Histogram::FactoryGet( local 763 LinearHistogram* histogram = static_cast<LinearHistogram*>(base_histogram); variable 922 HistogramBase* histogram = LinearHistogram::FactoryGet( local 1007 HistogramBase* histogram = BooleanHistogram::FactoryGet( local 1168 HistogramBase* histogram = CustomHistogram::FactoryGet( local [all...] |
statistics_recorder_unittest.cc | 53 // Each test will have a clean state (no Histogram / BucketRanges 80 Histogram* CreateHistogram(const std::string& name, 85 Histogram::InitializeBucketRanges(min, max, ranges); 88 return new Histogram(name, min, max, registered_ranges); 91 void DeleteHistogram(HistogramBase* histogram) { 92 delete histogram; 138 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local 141 EXPECT_EQ(histogram, 142 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram)); 195 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local 274 HistogramBase* histogram = Histogram::FactoryGet( local 323 HistogramBase* histogram = Histogram::FactoryGet( local 490 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local 517 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local 541 HistogramBase* histogram = Histogram::FactoryGet( local 620 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local [all...] |
histogram_delta_serialization.cc | 19 // Create or find existing histogram and add the samples from pickle. 22 HistogramBase* histogram = DeserializeHistogramInfo(iter); local 23 if (!histogram) 26 if (histogram->flags() & HistogramBase::kIPCSerializationSourceFlag) { 27 DVLOG(1) << "Single process mode, histogram observed and not copied: " 28 << histogram->histogram_name(); 31 histogram->AddSamplesFromPickle(iter); 42 "Histogram.Inconsistencies" + caller_name, 1, 49 "Histogram.Inconsistencies" + caller_name + "Unique", 1, 55 Histogram::FactoryGet [all...] |
histogram_base_unittest.cc | 7 #include "base/metrics/histogram.h" 19 // Each test will have a clean state (no Histogram / BucketRanges 47 HistogramBase* histogram = Histogram::FactoryGet( local 53 ASSERT_TRUE(histogram->SerializeInfo(&pickle)); 57 EXPECT_EQ(histogram, deserialized); 64 EXPECT_NE(histogram, deserialized); 73 HistogramBase* histogram = LinearHistogram::FactoryGet( local 78 ASSERT_TRUE(histogram->SerializeInfo(&pickle)); 82 EXPECT_EQ(histogram, deserialized) 96 HistogramBase* histogram = BooleanHistogram::FactoryGet( local 123 HistogramBase* histogram = CustomHistogram::FactoryGet( local 145 HistogramBase* histogram = SparseHistogram::FactoryGet( local [all...] |
histogram_macros.h | 10 #include "base/metrics/histogram.h" 13 // Macros for efficient use of histograms. See documentation in histogram.h. 22 // the macros declare a static pointer to the histogram in question, and only 23 // take a "slow path" to construct (or find) the histogram on the first run 29 // initialization looks like for a histogram (after a macro is expanded). This 40 // in the histogram. 41 base::Histogram* histogram_pointer(reinterpret_cast<base::Histogram*>( 46 // histogram. FactoryGet includes locks on a global histogram name ma [all...] |
histogram.h | 5 // Histogram is an object that aggregates statistics, and can summarize them in 12 // For Histogram(exponential histogram), LinearHistogram and CustomHistogram, 20 // Each use of a histogram with the same name will reference the same underlying 21 // data, so it is safe to record to the same histogram from multiple locations 22 // in the code. It is a runtime error if all uses of the same histogram do not 25 // For Histogram and LinearHistogram, the maximum for a declared range should 32 // (Histogram::kBucketCount_MAX - 1). 34 // The buckets layout of class Histogram is exponential. For example, buckets 37 // That bucket allocation would actually result from construction of a histogram [all...] |
histogram_snapshot_manager.cc | 26 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { 27 PrepareSamples(histogram, histogram->SnapshotDelta()); 31 const HistogramBase* histogram) { 32 PrepareSamples(histogram, histogram->SnapshotFinalDelta()); 36 const HistogramBase* histogram, 40 // Get information known about this histogram. If it did not previously 42 SampleInfo* sample_info = &known_histograms_[histogram->name_hash()]; 47 uint32_t corruption = histogram->FindCorruption(*samples) [all...] |
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
Histogram.java | 24 public class Histogram extends TestBase { 31 public Histogram(boolean useIntrisic) {
|
/test/vts/web/dashboard/src/main/java/com/android/vts/util/ |
Histogram.java | 29 public class Histogram extends Graph { 40 private GraphType type = GraphType.HISTOGRAM; 44 public Histogram(String name) {
|