Home
last modified time | relevance | path

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

/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java272 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 1000) in buildBatteryUsageStats()
273 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_BACKGROUND, 2000) in buildBatteryUsageStats()
307 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 1234); in buildBatteryUsageStats()
353 .setTimeInProcessStateMs( in testLargeAtomTruncated()
355 .setTimeInProcessStateMs( in testLargeAtomTruncated()
364 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 10 * 60 * 1000) in testLargeAtomTruncated()
365 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_BACKGROUND, 20 * 60 * 1000) in testLargeAtomTruncated()
372 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_FOREGROUND, 60 * 60 * 1000) in testLargeAtomTruncated()
373 .setTimeInProcessStateMs(BatteryConsumer.PROCESS_STATE_BACKGROUND, 120 * 60 * 1000) in testLargeAtomTruncated()
/frameworks/base/core/java/android/os/
DUidBatteryConsumer.java205 consumerBuilder.setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND, in createFromXml()
207 consumerBuilder.setTimeInProcessStateMs(PROCESS_STATE_BACKGROUND, in createFromXml()
209 consumerBuilder.setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE, in createFromXml()
307 public Builder setTimeInProcessStateMs(@ProcessState int state, long timeInProcessStateMs) { in setTimeInProcessStateMs() method in UidBatteryConsumer.Builder
338 setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND, in add()
341 setTimeInProcessStateMs(PROCESS_STATE_BACKGROUND, in add()
344 setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE, in add()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryUsageStatsProvider.java212 .setTimeInProcessStateMs(UidBatteryConsumer.PROCESS_STATE_BACKGROUND, in getCurrentBatteryUsageStats()
214 .setTimeInProcessStateMs(UidBatteryConsumer.PROCESS_STATE_FOREGROUND, in getCurrentBatteryUsageStats()
216 .setTimeInProcessStateMs( in getCurrentBatteryUsageStats()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryUsageStatsTest.java359 .setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND, timeInProcessStateForeground) in addUidBatteryConsumer()
360 .setTimeInProcessStateMs(PROCESS_STATE_BACKGROUND, timeInProcessStateBackground) in addUidBatteryConsumer()
361 .setTimeInProcessStateMs(PROCESS_STATE_FOREGROUND_SERVICE, in addUidBatteryConsumer()