Searched refs:DimToValMap (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 45 std::shared_ptr<DimToValMap> bucket) { in AddValueToBucket() 51 std::shared_ptr<DimToValMap> MockBucket( in MockBucket() 53 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in MockBucket() 59 int64_t getBucketValue(const std::shared_ptr<DimToValMap>& bucket, in getBucketValue() 71 const std::shared_ptr<DimToValMap>& currentBucket, in detectAnomaliesPass() 90 const std::shared_ptr<DimToValMap>& bucket, in detectAndDeclareAnomalies() 141 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST() 142 std::shared_ptr<DimToValMap> bucket1 = MockBucket({{keyA, 1}}); in TEST() 143 std::shared_ptr<DimToValMap> bucket2 = MockBucket({{keyB, 1}}); in TEST() 144 std::shared_ptr<DimToValMap> bucket3 = MockBucket({{keyA, 2}}); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.h | 52 void addPastBucket(std::shared_ptr<DimToValMap> bucket, const int64_t& bucketNum); 138 std::vector<shared_ptr<DimToValMap>> mPastBuckets; 142 DimToValMap mSumOverPastBuckets; 159 void addBucketToSum(const shared_ptr<DimToValMap>& bucket); 163 void subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket);
|
D | AnomalyTracker.cpp | 106 std::shared_ptr<DimToValMap>& bucket = mPastBuckets[bucketIndex]; in addPastBucket() 118 std::shared_ptr<DimToValMap> bucket = std::make_shared<DimToValMap>(); in addPastBucket() 124 void AnomalyTracker::addPastBucket(std::shared_ptr<DimToValMap> bucket, in addPastBucket() 143 void AnomalyTracker::subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket) { in subtractBucketFromSum() 165 void AnomalyTracker::addBucketToSum(const shared_ptr<DimToValMap>& bucket) { in addBucketToSum()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | CountMetricProducer.h | 88 std::shared_ptr<DimToValMap> mCurrentSlicedCounter = std::make_shared<DimToValMap>(); 92 std::shared_ptr<DimToValMap> mCurrentFullCounters = std::make_shared<DimToValMap>();
|
D | CountMetricProducer.cpp | 361 mCurrentFullCounters = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked() 378 mCurrentSlicedCounter = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
|
D | GaugeMetricProducer.h | 157 std::shared_ptr<DimToValMap> mCurrentSlicedBucketForAnomaly;
|
D | GaugeMetricProducer.cpp | 97 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in GaugeMetricProducer() 591 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
|
/frameworks/base/cmds/statsd/src/ |
D | stats_util.h | 32 typedef std::unordered_map<MetricDimensionKey, int64_t> DimToValMap; typedef
|