Home
last modified time | relevance | path

Searched refs:currentBucket (Results 1 – 5 of 5) sorted by relevance

/packages/modules/StatsD/statsd/src/metrics/
DNumericValueMetricProducer.cpp584 for (const auto& [metricDimensionKey, currentBucket] : mCurrentSlicedBucket) { in appendToFullBucket()
586 currentBucket.intervals.empty()) { in appendToFullBucket()
590 auto& interval = currentBucket.intervals[0]; in appendToFullBucket()
605 for (const auto& [metricDimensionKey, currentBucket] : mCurrentSlicedBucket) { in appendToFullBucket()
607 if (tracker != nullptr && !currentBucket.intervals.empty()) { in appendToFullBucket()
609 auto& interval = currentBucket.intervals[0]; in appendToFullBucket()
621 for (const auto& [metricDimensionKey, currentBucket] : mCurrentSlicedBucket) { in appendToFullBucket()
622 if (!currentBucket.intervals.empty()) { in appendToFullBucket()
624 auto& interval = currentBucket.intervals[0]; in appendToFullBucket()
DValueMetricProducer.cpp635 for (const auto& [metricDimensionKey, currentBucket] : mCurrentSlicedBucket) { in dumpStatesLocked()
636 for (const Interval& interval : currentBucket.intervals) { in dumpStatesLocked()
718 CurrentBucket& currentBucket = mCurrentSlicedBucket[MetricDimensionKey(whatKey, oldStateKey)]; in onMatchedLogEventInternalLocked() local
727 vector<Interval>& intervals = currentBucket.intervals; in onMatchedLogEventInternalLocked()
742 currentBucket.conditionTimer.onConditionChanged(false, eventTimeNs); in onMatchedLogEventInternalLocked()
797 for (auto& [metricDimensionKey, currentBucket] : mCurrentSlicedBucket) { in flushCurrentBucketLocked()
798 currentBucket.conditionTimer.newBucketStart(eventTimeNs, nextBucketStartTimeNs); in flushCurrentBucketLocked()
835 for (auto& [metricDimensionKey, currentBucket] : mCurrentSlicedBucket) { in closeCurrentBucket()
837 buildPartialBucket(bucketEndTimeNs, currentBucket.intervals); in closeCurrentBucket()
844 currentBucket.conditionTimer.newBucketStart(eventTimeNs, bucketEndTimeNs); in closeCurrentBucket()
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java639 Bucket currentBucket, ListIterator<Bucket> iterTargetBuckets) { in mergeSettingsToLowerBuckets() argument
642 Bucket maxScheduledBucket = currentBucket; in mergeSettingsToLowerBuckets()
701 Bucket currentBucket = iterBuckets.next(); in optimizeBuckets() local
702 Iterator<ScanSettings> iterSettings = currentBucket.getSettingsList().iterator(); in optimizeBuckets()
713 currentSettings, currentBucket, iterTargetBuckets); in optimizeBuckets()
728 currentBucket.addSettings(splitSettings); in optimizeBuckets()
730 if (currentBucket.getSettingsList().isEmpty()) { in optimizeBuckets()
734 currentBucket.updateChannelCollection(); in optimizeBuckets()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java119 final int currentBucket = info.priority / 10; in updateState() local
120 boolean needDivider = currentBucket != bucket; in updateState()
121 bucket = currentBucket; in updateState()
/packages/modules/StatsD/statsd/tests/anomaly/
DAnomalyTracker_test.cpp78 const std::shared_ptr<DimToValMap>& currentBucket, in detectAnomaliesPass() argument
82 if (!tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass()
87 if (tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass()