Searched refs:setTimeInStateMs (Results 1 – 5 of 5) sorted by relevance
/aosp12/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
H A D | BatteryUsageStatsPulledTest.java | 181 .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()
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | UidBatteryConsumer.java | 188 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
|
/aosp12/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryUsageStatsProvider.java | 168 .setTimeInStateMs(UidBatteryConsumer.STATE_BACKGROUND, in getCurrentBatteryUsageStats() 170 .setTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND, in getCurrentBatteryUsageStats()
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BatteryUsageStatsTest.java | 307 .setTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND, timeInStateForeground) in addUidBatteryConsumer() 308 .setTimeInStateMs(UidBatteryConsumer.STATE_BACKGROUND, timeInStateBackground) in addUidBatteryConsumer()
|
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryAppListPreferenceController.java | 501 .setTimeInStateMs(UidBatteryConsumer.STATE_FOREGROUND, 10000 + i * 1000) in getFakeStats() 502 .setTimeInStateMs(UidBatteryConsumer.STATE_BACKGROUND, 20000 + i * 2000) in getFakeStats()
|