Home
last modified time | relevance | path

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

/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java181 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_FOREGROUND, 1000) in buildBatteryUsageStats()
182 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_BACKGROUND, 2000) in buildBatteryUsageStats()
198 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_FOREGROUND, 1234); in buildBatteryUsageStats()
242 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_FOREGROUND, 1 * 60 * 1000) in testLargeAtomTruncated()
243 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_BACKGROUND, 2 * 60 * 1000) in testLargeAtomTruncated()
253 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_FOREGROUND, 10 * 60 * 1000) in testLargeAtomTruncated()
254 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_BACKGROUND, 20 * 60 * 1000) in testLargeAtomTruncated()
263 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_FOREGROUND, 60 * 60 * 1000) in testLargeAtomTruncated()
264 .setTimeInStateMs(android.os.UidBatteryConsumer.STATE_BACKGROUND, 120 * 60 * 1000) in testLargeAtomTruncated()
/frameworks/base/core/java/android/os/
DUidBatteryConsumer.java188 consumerBuilder.setTimeInStateMs(STATE_FOREGROUND, in createFromXml()
190 consumerBuilder.setTimeInStateMs(STATE_BACKGROUND, in createFromXml()
258 public Builder setTimeInStateMs(@State int state, long timeInStateMs) { in setTimeInStateMs() method in UidBatteryConsumer.Builder
/frameworks/base/core/java/com/android/internal/os/
DBatteryUsageStatsProvider.java167 .setTimeInStateMs(UidBatteryConsumer.STATE_BACKGROUND, in getCurrentBatteryUsageStats()
169 .setTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND, in getCurrentBatteryUsageStats()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryUsageStatsTest.java307 .setTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND, timeInStateForeground) in addUidBatteryConsumer()
308 .setTimeInStateMs(UidBatteryConsumer.STATE_BACKGROUND, timeInStateBackground) in addUidBatteryConsumer()