Searched refs:bucketIndex (Results 1 – 8 of 8) sorted by relevance
119 public Bucket getBucketByIndex(int bucketIndex) { in getBucketByIndex() argument120 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()
205 int bucketIndex = getBucketIndex(ambientBrightness); in log() local206 if (bucketIndex >= 0) { in log()207 mStats[bucketIndex] += durationSec; in log()
103 const int bucketIndex = index(bucketNum); in addPastBucket() local104 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket()106 std::shared_ptr<DimToValMap>& bucket = mPastBuckets[bucketIndex]; in addPastBucket()
201 int bucketIndex = 0; in createBucketSettings() local224 bucketIndex = findBestRegularBucketIndex(setting.periodInMs, in createBucketSettings()226 period = PREDEFINED_BUCKET_PERIODS[bucketIndex]; in createBucketSettings()493 int bucketIndex; in addScanToBuckets() local497 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()
426 int bucketIndex = (int) (ageMillis / TELEPHONY_BUCKET_SIZE_MILLIS); in scoreTelephonySuggestion() local427 if (bucketIndex >= TELEPHONY_BUCKET_COUNT) { in scoreTelephonySuggestion()432 return TELEPHONY_BUCKET_COUNT - bucketIndex; in scoreTelephonySuggestion()
1792 final int bucketIndex = JobSchedulerService.standbyBucketToBucketIndex(bucket); in onAppIdleStateChanged() local1795 + 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()
252 private int bucketIndexToUsageStatsBucket(int bucketIndex) { in bucketIndexToUsageStatsBucket() argument253 switch (bucketIndex) { in bucketIndexToUsageStatsBucket()267 private void setStandbyBucket(int bucketIndex) { in setStandbyBucket() argument269 anyLong())).thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket()272 private void setStandbyBucket(int bucketIndex, JobStatus... jobs) { in setStandbyBucket() argument273 setStandbyBucket(bucketIndex); in setStandbyBucket()275 job.setStandbyBucket(bucketIndex); in setStandbyBucket()278 .thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket()
781 int bucketIndex = mAppIdleHistory.getThresholdIndex(packageName, userId, in getBucketForLocked() local783 return THRESHOLD_BUCKETS[bucketIndex]; in getBucketForLocked()