Home
last modified time | relevance | path

Searched refs:sumStates (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsManagerTest.java62 double sumStates = 0; in testBatteryUsageStatsDataConsistency() local
64 sumStates += ubc.getConsumedPower(ubc.getKey(component, state)); in testBatteryUsageStatsDataConsistency()
66 if (sumStates > consumedPower + 0.1) { in testBatteryUsageStatsDataConsistency()
69 + " total = " + consumedPower + " states = " + sumStates); in testBatteryUsageStatsDataConsistency()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryUsageStatsProvider.java280 double sumStates = 0; in verify() local
282 sumStates += ubc.getConsumedPower(ubc.getKey(component, state)); in verify()
284 if (sumStates > consumedPower + precision) { in verify()
287 + " total = " + consumedPower + " states = " + sumStates; in verify()