Home
last modified time | relevance | path

Searched refs:bucketIndex (Results 1 – 8 of 8) 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.java205 int bucketIndex = getBucketIndex(ambientBrightness); in log() local
206 if (bucketIndex >= 0) { in log()
207 mStats[bucketIndex] += durationSec; in log()
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp103 const int bucketIndex = index(bucketNum); in addPastBucket() local
104 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket()
106 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/timedetector/
DTimeDetectorStrategyImpl.java426 int bucketIndex = (int) (ageMillis / TELEPHONY_BUCKET_SIZE_MILLIS); in scoreTelephonySuggestion() local
427 if (bucketIndex >= TELEPHONY_BUCKET_COUNT) { in scoreTelephonySuggestion()
432 return TELEPHONY_BUCKET_COUNT - bucketIndex; in scoreTelephonySuggestion()
/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()