Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java21 import static com.android.internal.power.EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS;
57 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testConstruction()
69 for (int bucket = 0; bucket < NUMBER_STANDARD_POWER_BUCKETS; bucket++) { in testConstruction()
93 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testReadWriteParcel()
118 for (int bucket = 0; bucket < NUMBER_STANDARD_POWER_BUCKETS; bucket++) { in testReadWriteParcel()
137 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testCreateAndReadConfigFromParcel()
157 for (int bucket = 0; bucket < NUMBER_STANDARD_POWER_BUCKETS; bucket++) { in testCreateAndReadConfigFromParcel()
188 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testCreateAndReadSummaryFromParcel()
213 for (int i = 0; i < NUMBER_STANDARD_POWER_BUCKETS; i++) { in testCreateAndReadSummaryFromParcel()
230 final boolean[] supportedStandardBuckets = new boolean[NUMBER_STANDARD_POWER_BUCKETS]; in testCreateAndReadSummaryFromParcel_configChange()
[all …]
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java64 public static final int NUMBER_STANDARD_POWER_BUCKETS = 10; // Buckets above this are custom. field in EnergyConsumerStats
255 for (int stdBucket = 0; stdBucket < NUMBER_STANDARD_POWER_BUCKETS; stdBucket++) { in EnergyConsumerStats()
674 return mAccumulatedChargeMicroCoulomb.length - NUMBER_STANDARD_POWER_BUCKETS; in getNumberCustomPowerBuckets()
678 return customBucket + NUMBER_STANDARD_POWER_BUCKETS; in customBucketToIndex()
682 return index - NUMBER_STANDARD_POWER_BUCKETS; in indexToCustomBucket()
692 return bucket >= 0 && bucket < NUMBER_STANDARD_POWER_BUCKETS; in isValidStandardBucket()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMockBatteryStatsImpl.java102 new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in initMeasuredEnergyStats()
DSystemServicePowerCalculatorTest.java152 new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in testMeasuredEnergyBasedModel()
DBatteryUsageStatsRule.java281 mSupportedStandardBuckets = new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in initMeasuredEnergyStatsLocked()
DCpuPowerCalculatorTest.java108 mSupportedPowerBuckets = new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in setUp()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryExternalStatsWorker.java913 final boolean[] buckets = new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS];