Searched refs:bucketIndex (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 414 for (int bucketIndex = 0; bucketIndex < findIt->second.histogram_size(); bucketIndex++) { in mergeStat() local 415 auto bucket = findIt->second.mutable_histogram(bucketIndex); in mergeStat() 417 stat.histogram(bucketIndex).frame_count()); in mergeStat() 419 for (int bucketIndex = 0; bucketIndex < findIt->second.gpu_histogram_size(); in mergeStat() local 420 bucketIndex++) { in mergeStat() 421 auto bucket = findIt->second.mutable_gpu_histogram(bucketIndex); in mergeStat() 423 stat.gpu_histogram(bucketIndex).frame_count()); in mergeStat() 496 for (int bucketIndex = 0; bucketIndex < stat.histogram_size(); bucketIndex++) { in writeCpuHistogram() local 497 auto& bucket = stat.histogram(bucketIndex); in writeCpuHistogram() 502 for (int bucketIndex = 0; bucketIndex < stat.histogram_size(); bucketIndex++) { in writeCpuHistogram() local [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | AmbientBrightnessDayStats.java | 204 int bucketIndex = getBucketIndex(ambientBrightness); in log() local 205 if (bucketIndex >= 0) { in log() 206 mStats[bucketIndex] += durationSec; in log()
|
/frameworks/base/services/core/java/com/android/server/media/metrics/ |
D | MediaMetricsManagerService.java | 759 int bucketIndex = in getBucketedDurationMillis() local 765 bucketIndex = Math.min(DURATION_BUCKETS_COUNT, Math.max(0, bucketIndex)); in getBucketedDurationMillis() 768 Math.ceil(Math.pow(2, bucketIndex - DURATION_BUCKETS_BELOW_ONE_MINUTE) * 60_000.0); in getBucketedDurationMillis()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | TimeDetectorStrategyImpl.java | 864 int bucketIndex = (int) (ageMillis / TELEPHONY_BUCKET_SIZE_MILLIS); 865 if (bucketIndex >= TELEPHONY_BUCKET_COUNT) { 870 return TELEPHONY_BUCKET_COUNT - bucketIndex;
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | QuotaController.java | 2522 final int bucketIndex = JobSchedulerService.standbyBucketToBucketIndex(bucket); 2523 updateStandbyBucket(userId, packageName, bucketIndex); 2545 final int userId, final @NonNull String packageName, final int bucketIndex) { 2548 + " to bucketIndex " + bucketIndex); 2554 debits.setStandbyBucketLocked(bucketIndex); 2566 if ((bucketIndex == RESTRICTED_INDEX || js.getStandbyBucket() == RESTRICTED_INDEX) 2567 && bucketIndex != js.getStandbyBucket()) { 2570 js.setStandbyBucket(bucketIndex); 4772 for (int bucketIndex = 0; bucketIndex < stats.length; ++bucketIndex) { in dumpControllerStateLocked() 4773 ExecutionStats es = stats[bucketIndex]; in dumpControllerStateLocked() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 337 private int bucketIndexToUsageStatsBucket(int bucketIndex) { in bucketIndexToUsageStatsBucket() argument 338 switch (bucketIndex) { in bucketIndexToUsageStatsBucket() 356 private void setStandbyBucket(int bucketIndex) { in setStandbyBucket() argument 358 anyLong())).thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket() 359 mQuotaController.updateStandbyBucket(SOURCE_USER_ID, SOURCE_PACKAGE, bucketIndex); in setStandbyBucket() 362 private void setStandbyBucket(int bucketIndex, JobStatus... jobs) { in setStandbyBucket() argument 363 setStandbyBucket(bucketIndex); in setStandbyBucket() 365 job.setStandbyBucket(bucketIndex); in setStandbyBucket() 368 .thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket() 5303 List<TimingSession> timingSessions, int bucketIndex, long expectedValue) { in runTestGetTimeUntilEJQuotaConsumedLocked() argument [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppStandbyController.java | 1120 int bucketIndex = mAppIdleHistory.getThresholdIndex(packageName, userId, in getBucketForLocked() local 1122 return bucketIndex >= 0 ? THRESHOLD_BUCKETS[bucketIndex] : STANDBY_BUCKET_NEVER; in getBucketForLocked()
|