Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java57 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testConstruction()
59 supportedStandardBuckets[POWER_BUCKET_SCREEN_ON] = true; in testConstruction()
60 supportedStandardBuckets[POWER_BUCKET_SCREEN_DOZE] = false; in testConstruction()
61 supportedStandardBuckets[POWER_BUCKET_SCREEN_OTHER] = true; in testConstruction()
64 new EnergyConsumerStats.Config(supportedStandardBuckets, customBucketNames, in testConstruction()
70 if (supportedStandardBuckets[bucket]) { in testConstruction()
93 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testReadWriteParcel()
95 supportedStandardBuckets[POWER_BUCKET_SCREEN_ON] = true; in testReadWriteParcel()
96 supportedStandardBuckets[POWER_BUCKET_SCREEN_DOZE] = false; in testReadWriteParcel()
97 supportedStandardBuckets[POWER_BUCKET_SCREEN_OTHER] = true; in testReadWriteParcel()
[all …]
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java97 public Config(@NonNull boolean[] supportedStandardBuckets, in Config() argument
101 mSupportedStandardBuckets = supportedStandardBuckets; in Config()
104 new boolean[supportedStandardBuckets.length + mCustomBucketNames.length]; in Config()
166 final boolean[] supportedStandardBuckets = new boolean[supportedStandardBucketCount]; in createFromParcel()
167 in.readBooleanArray(supportedStandardBuckets); in createFromParcel()
173 return new Config(supportedStandardBuckets, customBucketNames, in createFromParcel()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMockBatteryStatsImpl.java101 final boolean[] supportedStandardBuckets = in initMeasuredEnergyStats()
103 Arrays.fill(supportedStandardBuckets, true); in initMeasuredEnergyStats()
105 mEnergyConsumerStatsConfig = new EnergyConsumerStats.Config(supportedStandardBuckets, in initMeasuredEnergyStats()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java15779 public void initEnergyConsumerStatsLocked(@Nullable boolean[] supportedStandardBuckets,
15787 if (supportedStandardBuckets != null) {
15789 supportedStandardBuckets, customBucketNames,
15804 if (supportedStandardBuckets[EnergyConsumerStats.POWER_BUCKET_BLUETOOTH]) {
15807 if (supportedStandardBuckets[EnergyConsumerStats.POWER_BUCKET_MOBILE_RADIO]) {
15810 if (supportedStandardBuckets[EnergyConsumerStats.POWER_BUCKET_WIFI]) {