Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/service/
DGraphicsStatsService.cpp414 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/
DAmbientBrightnessDayStats.java204 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/timedetector/
DTimeDetectorStrategyImpl.java600 int bucketIndex = (int) (ageMillis / TELEPHONY_BUCKET_SIZE_MILLIS); in scoreTelephonySuggestion() local
601 if (bucketIndex >= TELEPHONY_BUCKET_COUNT) { in scoreTelephonySuggestion()
606 return TELEPHONY_BUCKET_COUNT - bucketIndex; in scoreTelephonySuggestion()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java2480 final int bucketIndex = JobSchedulerService.standbyBucketToBucketIndex(bucket);
2481 updateStandbyBucket(userId, packageName, bucketIndex);
2503 final int userId, final @NonNull String packageName, final int bucketIndex) {
2506 + " to bucketIndex " + bucketIndex);
2512 debits.setStandbyBucketLocked(bucketIndex);
2524 if ((bucketIndex == RESTRICTED_INDEX || js.getStandbyBucket() == RESTRICTED_INDEX)
2525 && bucketIndex != js.getStandbyBucket()) {
2528 js.setStandbyBucket(bucketIndex);
4680 for (int bucketIndex = 0; bucketIndex < stats.length; ++bucketIndex) {
4681 ExecutionStats es = stats[bucketIndex];
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java325 private int bucketIndexToUsageStatsBucket(int bucketIndex) { in bucketIndexToUsageStatsBucket() argument
326 switch (bucketIndex) { in bucketIndexToUsageStatsBucket()
344 private void setStandbyBucket(int bucketIndex) { in setStandbyBucket() argument
346 anyLong())).thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket()
347 mQuotaController.updateStandbyBucket(SOURCE_USER_ID, SOURCE_PACKAGE, bucketIndex); in setStandbyBucket()
350 private void setStandbyBucket(int bucketIndex, JobStatus... jobs) { in setStandbyBucket() argument
351 setStandbyBucket(bucketIndex); in setStandbyBucket()
353 job.setStandbyBucket(bucketIndex); in setStandbyBucket()
356 .thenReturn(bucketIndexToUsageStatsBucket(bucketIndex)); in setStandbyBucket()
5147 List<TimingSession> timingSessions, int bucketIndex, long expectedValue) { in runTestGetTimeUntilEJQuotaConsumedLocked() argument
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java1085 int bucketIndex = mAppIdleHistory.getThresholdIndex(packageName, userId, in getBucketForLocked() local
1087 return bucketIndex >= 0 ? THRESHOLD_BUCKETS[bucketIndex] : STANDBY_BUCKET_NEVER; in getBucketForLocked()