Home
last modified time | relevance | path

Searched refs:bucketIndex (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java119 public Bucket getBucketByIndex(int bucketIndex) { in getBucketByIndex() argument
120 int bucketKey = mBuckets.keyAt(bucketIndex); in getBucketByIndex()
125 int count = mBuckets.valueAt(bucketIndex); in getBucketByIndex()
166 for (int bucketIndex = 0; bucketIndex < mBuckets.size(); ++bucketIndex) { in toString()
167 if (bucketIndex > 0) { in toString()
170 int bucketKey = mBuckets.keyAt(bucketIndex); in toString()
183 sb.append('=').append(mBuckets.valueAt(bucketIndex)); in toString()
/frameworks/base/core/java/android/hardware/display/
DAmbientBrightnessDayStats.java203 int bucketIndex = getBucketIndex(ambientBrightness); in log() local
204 if (bucketIndex >= 0) { in log()
205 mStats[bucketIndex] += durationSec; in log()
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp102 const int bucketIndex = index(bucketNum); in addPastBucket() local
103 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket()
105 std::shared_ptr<DimToValMap>& bucket = mPastBuckets[bucketIndex]; in addPastBucket()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java201 int bucketIndex = 0; in createBucketSettings() local
224 bucketIndex = findBestRegularBucketIndex(setting.periodInMs, in createBucketSettings()
226 period = PREDEFINED_BUCKET_PERIODS[bucketIndex]; in createBucketSettings()
493 int bucketIndex; in addScanToBuckets() local
497 bucketIndex = EXPONENTIAL_BACK_OFF_BUCKET_IDX; in addScanToBuckets()
499 bucketIndex = findBestRegularBucketIndex(settings.periodInMs, NUM_OF_REGULAR_BUCKETS); in addScanToBuckets()
502 mBuckets.getOrCreate(bucketIndex).addSettings(settings); in addScanToBuckets()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java1792 final int bucketIndex = JobSchedulerService.standbyBucketToBucketIndex(bucket); in onAppIdleStateChanged() local
1795 + bucketIndex); in onAppIdleStateChanged()
1804 js.setStandbyBucket(bucketIndex); in onAppIdleStateChanged()
2729 for (int bucketIndex = 0; bucketIndex < stats.length; ++bucketIndex) { in dumpControllerStateLocked()
2730 ExecutionStats es = stats[bucketIndex]; in dumpControllerStateLocked()
2738 bucketIndex); in dumpControllerStateLocked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java252 private int bucketIndexToUsageStatsBucket(int bucketIndex) { in bucketIndexToUsageStatsBucket() argument
253 switch (bucketIndex) { in bucketIndexToUsageStatsBucket()
267 private void setStandbyBucket(int bucketIndex) { in setStandbyBucket() argument
269 anyLong())).thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket()
272 private void setStandbyBucket(int bucketIndex, JobStatus... jobs) { in setStandbyBucket() argument
273 setStandbyBucket(bucketIndex); in setStandbyBucket()
275 job.setStandbyBucket(bucketIndex); in setStandbyBucket()
278 .thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java781 int bucketIndex = mAppIdleHistory.getThresholdIndex(packageName, userId, in getBucketForLocked() local
783 return THRESHOLD_BUCKETS[bucketIndex]; in getBucketForLocked()