Home
last modified time | relevance | path

Searched refs:DimToValMap (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/cmds/statsd/tests/anomaly/
DAnomalyTracker_test.cpp45 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/
DAnomalyTracker.h52 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);
DAnomalyTracker.cpp106 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/
DCountMetricProducer.h88 std::shared_ptr<DimToValMap> mCurrentSlicedCounter = std::make_shared<DimToValMap>();
92 std::shared_ptr<DimToValMap> mCurrentFullCounters = std::make_shared<DimToValMap>();
DCountMetricProducer.cpp361 mCurrentFullCounters = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
378 mCurrentSlicedCounter = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
DGaugeMetricProducer.h157 std::shared_ptr<DimToValMap> mCurrentSlicedBucketForAnomaly;
DGaugeMetricProducer.cpp97 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in GaugeMetricProducer()
591 mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>(); in flushCurrentBucketLocked()
/frameworks/base/cmds/statsd/src/
Dstats_util.h32 typedef std::unordered_map<MetricDimensionKey, int64_t> DimToValMap; typedef