Home
last modified time | relevance | path

Searched refs:getTimeOnBattery (Results 1 – 8 of 8) sorted by relevance

/tools/loganalysis/src/com/android/loganalysis/rule/
DProcessUsageRule.java57 if (processUsageItem != null && getTimeOnBattery() > 0) { in applyRule()
70 final long alarmsPerMs = getTimeOnBattery()/usage.getAlarmWakeups(); in addAlarmAnalysis()
77 final long sensorUsageThresholdMs = (long) (getTimeOnBattery() in addSensorAnalysis()
DAbstractPowerRule.java48 protected long getTimeOnBattery() { in getTimeOnBattery() method in AbstractPowerRule
49 return mPowerDetailedAnalysisItem.getTimeOnBattery(); in getTimeOnBattery()
DWakelockRule.java48 if (wakelockItem != null && getTimeOnBattery() > 0) { in applyRule()
49 long wakelockThreshold = (long)(getTimeOnBattery() in applyRule()
DWifiStatsRule.java51 if (mBugreportItem.getDumpsys() == null || getTimeOnBattery() <= 0) { in applyRule()
59 final long observedWifiScanIntervalMs = getTimeOnBattery() / in applyRule()
DInterruptRule.java49 if (interruptItem == null || getTimeOnBattery() < 0) { in applyRule()
53 final long interruptsPerMs = getTimeOnBattery()/interrupts.getInterruptCount(); in applyRule()
DLocationUsageRule.java52 if (mBugreportItem.getActivityService() == null || getTimeOnBattery() <= 0) { in applyRule()
60 final long locationRequestThresholdMs = (long) (getTimeOnBattery() * in applyRule()
/tools/loganalysis/javatests/com/android/loganalysis/parser/
DBatteryStatsDetailedInfoParserTest.java81 assertEquals(8465622, stats.getTimeOnBattery()); in testBatteryStatsDetailedInfoParser()
122 assertEquals(8465622, stats.getTimeOnBattery()); in testMissingWakelockSection()
/tools/loganalysis/src/com/android/loganalysis/item/
DBatteryStatsDetailedInfoItem.java91 public long getTimeOnBattery() { in getTimeOnBattery() method in BatteryStatsDetailedInfoItem
154 batteryStatsComponent.put(TIME_ON_BATTERY, getTimeOnBattery()); in toJson()