Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java214 final int customBucket = indexToCustomBucket(index); in getBucketName() local
215 StringBuilder name = new StringBuilder().append("CUSTOM_").append(customBucket); in getBucketName()
216 if (!TextUtils.isEmpty(mCustomBucketNames[customBucket])) { in getBucketName()
217 name.append('(').append(mCustomBucketNames[customBucket]).append(')'); in getBucketName()
395 public void updateCustomBucket(int customBucket, long chargeDeltaUC) { in updateCustomBucket() argument
396 updateCustomBucket(customBucket, chargeDeltaUC, 0); in updateCustomBucket()
403 public void updateCustomBucket(int customBucket, long chargeDeltaUC, long timestampMs) { in updateCustomBucket() argument
404 if (!isValidCustomBucket(customBucket)) { in updateCustomBucket()
405 Slog.e(TAG, "Attempted to update invalid custom bucket " + customBucket); in updateCustomBucket()
408 final int index = customBucketToIndex(customBucket); in updateCustomBucket()
[all …]