Searched refs:bucketIndex (Results 1 – 7 of 7) 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()
203 int bucketIndex = getBucketIndex(ambientBrightness); in log() local204 if (bucketIndex >= 0) { in log()205 mStats[bucketIndex] += durationSec; in log()
102 const int bucketIndex = index(bucketNum); in addPastBucket() local103 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket()105 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()
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()