/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | MultiStateStatsTest.java | 45 state(false, false, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_allEnabled() 47 state(false, true, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_allEnabled() 49 state(true, false, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_allEnabled() 51 state(true, true, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_allEnabled() 61 state(false, false, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_procStateTrackingDisabled() 62 state(false, true, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_procStateTrackingDisabled() 63 state(true, false, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_procStateTrackingDisabled() 64 state(true, true, BatteryConsumer.PROCESS_STATE_FOREGROUND)) in compositeStateIndex_procStateTrackingDisabled() 66 state(false, false, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_procStateTrackingDisabled() 69 state(false, true, BatteryConsumer.PROCESS_STATE_FOREGROUND), in compositeStateIndex_procStateTrackingDisabled() [all …]
|
D | PowerStatsAggregatorTest.java | 94 BatteryConsumer.PROCESS_STATE_FOREGROUND); in stateUpdates() 159 BatteryConsumer.PROCESS_STATE_FOREGROUND})) in stateUpdates() 166 BatteryConsumer.PROCESS_STATE_FOREGROUND})) in stateUpdates() 198 BatteryConsumer.PROCESS_STATE_FOREGROUND); in incompatiblePowerStats() 239 BatteryConsumer.PROCESS_STATE_FOREGROUND})) in incompatiblePowerStats() 254 BatteryConsumer.PROCESS_STATE_FOREGROUND})) in incompatiblePowerStats()
|
D | PowerStatsExporterTest.java | 136 BatteryConsumer.PROCESS_STATE_FOREGROUND, 2.198082); in breakdownByProcState_fullRange() 164 BatteryConsumer.PROCESS_STATE_FOREGROUND, 0.397749); in breakdownByProcState_subRange() 200 BatteryConsumer.PROCESS_STATE_FOREGROUND))); in combinedProcessStates() 220 BatteryConsumer.PROCESS_STATE_FOREGROUND); in recordBatteryHistory() 254 BatteryConsumer.PROCESS_STATE_FOREGROUND); in recordBatteryHistory()
|
D | CpuPowerStatsProcessorTest.java | 20 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 119 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND), in powerProfileModel() 122 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND), in powerProfileModel() 164 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND), in energyConsumerModel() 167 states(POWER_STATE_BATTERY, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND), in energyConsumerModel()
|
D | BinaryStatePowerStatsProcessorTest.java | 21 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 117 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel() 209 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in energyConsumerModel() 278 powerComponentStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in createAggregatedPowerStats()
|
D | BatteryUsageStatsTest.java | 24 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 359 .setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND, timeInProcessStateForeground) in addUidBatteryConsumer() 376 BatteryConsumer.PROCESS_STATE_FOREGROUND); in addUidBatteryConsumer() 423 BatteryConsumer.PROCESS_STATE_FOREGROUND); in addAggregateBatteryConsumer() 528 PROCESS_STATE_FOREGROUND)).isEqualTo(timeInProcessStateForeground); in assertUidBatteryConsumer() 555 PROCESS_STATE_FOREGROUND))) in assertUidBatteryConsumer() 572 BatteryConsumer.POWER_COMPONENT_CPU, BatteryConsumer.PROCESS_STATE_FOREGROUND); in assertUidBatteryConsumer()
|
D | BluetoothPowerCalculatorTest.java | 105 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testTimerBasedModel_byProcessState() 152 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testTimerBasedModel_byProcessState() 226 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testMeasuredEnergyBasedModel_byProcessState() 272 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testMeasuredEnergyBasedModel_byProcessState()
|
D | BluetoothPowerStatsProcessorTest.java | 21 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 234 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_mostlyDataTransfer() 333 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_mostlyScan() 437 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in consumedEnergyModel() 483 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in createAggregatedPowerStats()
|
D | MobileRadioPowerStatsProcessorTest.java | 23 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 191 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in powerProfileModel() 274 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel() 346 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in energyConsumerModel() 430 aggregatedStats.setUidState(APP_UID, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in prepareAggregatedStats_energyConsumerModel()
|
D | WifiPowerStatsProcessorTest.java | 23 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 271 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_powerController() 384 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in consumedEnergyModel_powerController() 491 states(POWER_STATE_OTHER, SCREEN_STATE_ON, PROCESS_STATE_FOREGROUND)); in powerProfileModel_noPowerController() 536 aggregatedStats.setUidState(APP_UID1, STATE_PROCESS_STATE, PROCESS_STATE_FOREGROUND, 0); in createAggregatedPowerStats()
|
D | BatteryStatsManagerTest.java | 55 {BatteryConsumer.PROCESS_STATE_FOREGROUND, in testBatteryUsageStatsDataConsistency()
|
D | WifiPowerCalculatorTest.java | 188 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testPowerControllerBasedModel_powerProfile_byProcessState() 222 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testPowerControllerBasedModel_powerProfile_byProcessState() 277 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testPowerControllerBasedModel_measured_byProcessState() 310 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testPowerControllerBasedModel_measured_byProcessState()
|
D | BstatsCpuTimesValidationTest.java | 23 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND; 189 PROCESS_STATE_FOREGROUND); in checkCpuTimesAvailability() 441 getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_FOREGROUND)); in testCpuFreqTimes_stateFg() 443 doSomeWork(PROCESS_STATE_FOREGROUND); in testCpuFreqTimes_stateFg() 446 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_FOREGROUND); in testCpuFreqTimes_stateFg() 581 case PROCESS_STATE_FOREGROUND: in doSomeWork()
|
D | AggregatedPowerStatsTest.java | 111 BatteryConsumer.PROCESS_STATE_FOREGROUND, 2000); in prepareAggregatePowerStats() 219 BatteryConsumer.PROCESS_STATE_FOREGROUND)) in verifyAggregatedPowerStats()
|
D | CpuPowerCalculatorTest.java | 309 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testTimerBasedModel_byProcessState() 377 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testTimerBasedModel_byProcessState() 422 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testMeasuredEnergyBasedModel_perProcessState() 488 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testMeasuredEnergyBasedModel_perProcessState()
|
D | MobileRadioPowerCalculatorTest.java | 485 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testTimerBasedModel_byProcessState() 552 BatteryConsumer.PROCESS_STATE_FOREGROUND)) in testTimerBasedModel_byProcessState() 576 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testTimerBasedModel_byProcessState() 971 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, 1000); in testMeasuredEnergyBasedModel_byProcessState() 1015 BatteryConsumer.PROCESS_STATE_FOREGROUND)) in testMeasuredEnergyBasedModel_byProcessState() 1036 BatteryConsumer.PROCESS_STATE_FOREGROUND); in testMeasuredEnergyBasedModel_byProcessState()
|
D | BatteryStatsHistoryTest.java | 620 mHistory.recordProcessStateChange(300, 300, 42, BatteryConsumer.PROCESS_STATE_FOREGROUND); in recordProcStateChange()
|
/frameworks/base/core/java/android/os/ |
D | UidBatteryConsumer.java | 118 case PROCESS_STATE_FOREGROUND: in getTimeInProcessStateMs() 135 appendProcessStateData(sb, BatteryConsumer.PROCESS_STATE_FOREGROUND, in dump() 181 getTimeInProcessStateMs(PROCESS_STATE_FOREGROUND)); in writeToXml() 205 consumerBuilder.setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND, in createFromXml() 309 case PROCESS_STATE_FOREGROUND: in setTimeInProcessStateMs() 338 setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND, in add() 340 + consumer.getTimeInProcessStateMs(PROCESS_STATE_FOREGROUND)); in add()
|
D | BatteryConsumer.java | 166 PROCESS_STATE_FOREGROUND, 177 public static final int PROCESS_STATE_FOREGROUND = 1; field in BatteryConsumer 189 sProcessStateNames[PROCESS_STATE_FOREGROUND] = "fg";
|
D | PowerComponents.java | 286 case BatteryConsumer.PROCESS_STATE_FOREGROUND: in writePowerUsageSlice()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 52 BatteryConsumer.PROCESS_STATE_FOREGROUND, 272 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 1000) in buildBatteryUsageStats() 288 BatteryConsumer.PROCESS_STATE_FOREGROUND); in buildBatteryUsageStats() 307 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 1234); in buildBatteryUsageStats() 354 BatteryConsumer.PROCESS_STATE_FOREGROUND, 1 * 60 * 1000) in testLargeAtomTruncated() 364 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 10 * 60 * 1000) in testLargeAtomTruncated() 372 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 60 * 60 * 1000) in testLargeAtomTruncated()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryUsageStatsProvider.java | 214 .setTimeInProcessStateMs(UidBatteryConsumer.PROCESS_STATE_FOREGROUND, in getCurrentBatteryUsageStats() 273 {BatteryConsumer.PROCESS_STATE_FOREGROUND, in verify() 315 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, realtimeUs, in getProcessForegroundTimeMs()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppBatteryTracker.java | 34 import static android.os.BatteryConsumer.PROCESS_STATE_FOREGROUND; 905 final double foregroundUsage = usage.getUsagePowerMah(PROCESS_STATE_FOREGROUND); in dumpUidStats() 944 static final int BATTERY_USAGE_INDEX_FOREGROUND = PROCESS_STATE_FOREGROUND; 954 PROCESS_STATE_FOREGROUND), 1072 case PROCESS_STATE_FOREGROUND: in getUsagePowerMah()
|
D | HealthStatsBatteryStatsWriter.java | 267 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_FOREGROUND)); in writeUid()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerData.java | 182 case BatteryConsumer.PROCESS_STATE_FOREGROUND: in addProcessStateEntries()
|