Home
last modified time | relevance | path

Searched refs:EnergyConsumerStats (Results 1 – 12 of 12) 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;
22 import static com.android.internal.power.EnergyConsumerStats.POWER_BUCKET_BLUETOOTH;
23 import static com.android.internal.power.EnergyConsumerStats.POWER_BUCKET_CPU;
24 import static com.android.internal.power.EnergyConsumerStats.POWER_BUCKET_SCREEN_DOZE;
25 import static com.android.internal.power.EnergyConsumerStats.POWER_BUCKET_SCREEN_ON;
26 import static com.android.internal.power.EnergyConsumerStats.POWER_BUCKET_SCREEN_OTHER;
27 import static com.android.internal.power.EnergyConsumerStats.POWER_BUCKET_WIFI;
63 final EnergyConsumerStats.Config config = in testConstruction()
64 new EnergyConsumerStats.Config(supportedStandardBuckets, customBucketNames, in testConstruction()
67 final EnergyConsumerStats stats = new EnergyConsumerStats(config); in testConstruction()
[all …]
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java48 public class EnergyConsumerStats { class
212 return DebugUtils.valueToString(EnergyConsumerStats.class, "POWER_BUCKET_", index); in getBucketName()
249 public EnergyConsumerStats(EnergyConsumerStats.Config config) { in EnergyConsumerStats() method in EnergyConsumerStats
266 public static EnergyConsumerStats createFromParcel(Config config, Parcel in) { in createFromParcel()
270 return new EnergyConsumerStats(config, in); in createFromParcel()
274 public EnergyConsumerStats(EnergyConsumerStats.Config config, Parcel in) { in EnergyConsumerStats() method in EnergyConsumerStats
547 public static EnergyConsumerStats createAndReadSummaryFromParcel(@Nullable Config config, in createAndReadSummaryFromParcel()
555 final EnergyConsumerStats mes = new EnergyConsumerStats( in createAndReadSummaryFromParcel()
565 final EnergyConsumerStats mes = new EnergyConsumerStats(config); in createAndReadSummaryFromParcel()
570 final EnergyConsumerStats stats = new EnergyConsumerStats(config); in createAndReadSummaryFromParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryExternalStatsWorker.java47 import com.android.internal.power.EnergyConsumerStats;
913 final boolean[] buckets = new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS];
919 buckets[EnergyConsumerStats.POWER_BUCKET_BLUETOOTH] = true;
922 buckets[EnergyConsumerStats.POWER_BUCKET_CPU] = true;
925 buckets[EnergyConsumerStats.POWER_BUCKET_GNSS] = true;
928 buckets[EnergyConsumerStats.POWER_BUCKET_MOBILE_RADIO] = true;
929 buckets[EnergyConsumerStats.POWER_BUCKET_PHONE] = true;
932 buckets[EnergyConsumerStats.POWER_BUCKET_SCREEN_ON] = true;
933 buckets[EnergyConsumerStats.POWER_BUCKET_SCREEN_DOZE] = true;
934 buckets[EnergyConsumerStats.POWER_BUCKET_SCREEN_OTHER] = true;
[all …]
DBatteryStatsImpl.java141 import com.android.internal.power.EnergyConsumerStats;
142 import com.android.internal.power.EnergyConsumerStats.StandardPowerBucket;
357 EnergyConsumerStats.POWER_BUCKET_CPU,
358 EnergyConsumerStats.POWER_BUCKET_MOBILE_RADIO,
359 EnergyConsumerStats.POWER_BUCKET_WIFI,
360 EnergyConsumerStats.POWER_BUCKET_BLUETOOTH,
1529 protected @Nullable EnergyConsumerStats.Config mEnergyConsumerStatsConfig;
1543 protected EnergyConsumerStats mGlobalEnergyConsumerStats;
5624 EnergyConsumerStats.POWER_BUCKET_SCREEN_ON)) { in noteScreenStateLocked()
7849 return getPowerBucketConsumptionUC(EnergyConsumerStats.POWER_BUCKET_BLUETOOTH); in getBluetoothEnergyConsumptionUC()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMockBatteryStatsImpl.java40 import com.android.internal.power.EnergyConsumerStats;
102 new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in initMeasuredEnergyStats()
105 mEnergyConsumerStatsConfig = new EnergyConsumerStats.Config(supportedStandardBuckets, in initMeasuredEnergyStats()
107 mGlobalEnergyConsumerStats = new EnergyConsumerStats(mEnergyConsumerStatsConfig); in initMeasuredEnergyStats()
DSystemServicePowerCalculatorTest.java44 import com.android.internal.power.EnergyConsumerStats;
152 new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in testMeasuredEnergyBasedModel()
153 supportedPowerBuckets[EnergyConsumerStats.POWER_BUCKET_CPU] = true; in testMeasuredEnergyBasedModel()
DCpuPowerCalculatorTest.java46 import com.android.internal.power.EnergyConsumerStats;
108 mSupportedPowerBuckets = new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in setUp()
223 mSupportedPowerBuckets[EnergyConsumerStats.POWER_BUCKET_CPU] = true; in testMeasuredEnergyBasedModel()
408 mSupportedPowerBuckets[EnergyConsumerStats.POWER_BUCKET_CPU] = true; in testMeasuredEnergyBasedModel_perProcessState()
DBatteryUsageStatsRule.java45 import com.android.internal.power.EnergyConsumerStats;
281 mSupportedStandardBuckets = new boolean[EnergyConsumerStats.NUMBER_STANDARD_POWER_BUCKETS]; in initMeasuredEnergyStatsLocked()
DBatteryStatsNoteTest.java67 import com.android.internal.power.EnergyConsumerStats;
2327 final int bucket = EnergyConsumerStats.POWER_BUCKET_SCREEN_ON; in checkMeasuredCharge()
/frameworks/base/ravenwood/texts/
Dravenwood-annotation-allowed-classes.txt24 com.android.internal.power.EnergyConsumerStats
/frameworks/base/services/
Dart-profile3100 …umptionUC(I)J+]Lcom/android/internal/power/EnergyConsumerStats;Lcom/android/internal/power/EnergyC…
3102 …->getOrCreateEnergyConsumerStatsIfSupportedLocked()Lcom/android/internal/power/EnergyConsumerStats;
3118 …iStateCounter;]Lcom/android/internal/power/EnergyConsumerStats;Lcom/android/internal/power/EnergyC…
3132 …/os/RailStats;]Lcom/android/internal/power/EnergyConsumerStats;Lcom/android/internal/power/EnergyC…
3141 …al/os/Clock$1;]Lcom/android/internal/power/EnergyConsumerStats;Lcom/android/internal/power/EnergyC…
3142 …SysTimeReader;]Lcom/android/internal/power/EnergyConsumerStats;Lcom/android/internal/power/EnergyC…
Dart-wear-profile21998 …m/android/server/power/stats/BatteryStatsImpl$Uid;)Lcom/android/internal/power/EnergyConsumerStats;
22001 …/android/server/power/stats/BatteryStatsImpl$Uid;Lcom/android/internal/power/EnergyConsumerStats;)V
22016 …->getOrCreateEnergyConsumerStatsIfSupportedLocked()Lcom/android/internal/power/EnergyConsumerStats;