Home
last modified time | relevance | path

Searched refs:PROCESS_STATE_FOREGROUND (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMultiStateStatsTest.java45 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 …]
DPowerStatsAggregatorTest.java94 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()
DPowerStatsExporterTest.java136 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()
DCpuPowerStatsProcessorTest.java20 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()
DBinaryStatePowerStatsProcessorTest.java21 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()
DBatteryUsageStatsTest.java24 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()
DBluetoothPowerCalculatorTest.java105 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()
DBluetoothPowerStatsProcessorTest.java21 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()
DMobileRadioPowerStatsProcessorTest.java23 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()
DWifiPowerStatsProcessorTest.java23 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()
DBatteryStatsManagerTest.java55 {BatteryConsumer.PROCESS_STATE_FOREGROUND, in testBatteryUsageStatsDataConsistency()
DWifiPowerCalculatorTest.java188 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()
DBstatsCpuTimesValidationTest.java23 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()
DAggregatedPowerStatsTest.java111 BatteryConsumer.PROCESS_STATE_FOREGROUND, 2000); in prepareAggregatePowerStats()
219 BatteryConsumer.PROCESS_STATE_FOREGROUND)) in verifyAggregatedPowerStats()
DCpuPowerCalculatorTest.java309 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()
DMobileRadioPowerCalculatorTest.java485 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()
DBatteryStatsHistoryTest.java620 mHistory.recordProcessStateChange(300, 300, 42, BatteryConsumer.PROCESS_STATE_FOREGROUND); in recordProcStateChange()
/frameworks/base/core/java/android/os/
DUidBatteryConsumer.java118 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()
DBatteryConsumer.java166 PROCESS_STATE_FOREGROUND,
177 public static final int PROCESS_STATE_FOREGROUND = 1; field in BatteryConsumer
189 sProcessStateNames[PROCESS_STATE_FOREGROUND] = "fg";
DPowerComponents.java286 case BatteryConsumer.PROCESS_STATE_FOREGROUND: in writePowerUsageSlice()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java52 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/
DBatteryUsageStatsProvider.java214 .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/
DAppBatteryTracker.java34 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()
DHealthStatsBatteryStatsWriter.java267 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_FOREGROUND)); in writeUid()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java182 case BatteryConsumer.PROCESS_STATE_FOREGROUND: in addProcessStateEntries()

12