Home
last modified time | relevance | path

Searched refs:usageTimeMs (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryAppListPreferenceController.java231 if (sipper.usageTimeMs == 0 && sipper.drainType == DrainType.APP) { in refreshAppListGroup()
232 sipper.usageTimeMs = mBatteryUtils.getProcessTimeMs( in refreshAppListGroup()
341 final long usageTimeMs = sipper.usageTimeMs; in setUsageSummary() local
342 if (usageTimeMs >= DateUtils.MINUTE_IN_MILLIS) { in setUsageSummary()
344 StringUtil.formatElapsedTime(mContext, usageTimeMs, false); in setUsageSummary()
DAdvancedPowerUsageDetail.java117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
DBatteryUtils.java372 return sipper != null ? sipper.usageTimeMs : 0; in calculateScreenUsageTime()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java231 if (sipper.usageTimeMs == 0 && sipper.drainType == DrainType.APP) { in refreshAppListGroup()
232 sipper.usageTimeMs = mBatteryUtils.getProcessTimeMs( in refreshAppListGroup()
341 final long usageTimeMs = sipper.usageTimeMs; in setUsageSummary() local
342 if (usageTimeMs >= DateUtils.MINUTE_IN_MILLIS) { in setUsageSummary()
344 StringUtil.formatElapsedTime(mContext, usageTimeMs, false); in setUsageSummary()
DAdvancedPowerUsageDetail.java117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
DBatteryUtils.java399 return sipper != null ? sipper.usageTimeMs : 0; in calculateScreenUsageTime()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceControllerTest.java146 mNormalBatterySipper.usageTimeMs = 59 * DateUtils.SECOND_IN_MILLIS; in testSetUsageSummary_timeLessThanOneMinute_DoNotSetSummary()
154 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; in testSetUsageSummary_timeMoreThanOneMinute_normalApp_setScreenSummary()
166 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; in testSetUsageSummary_timeMoreThanOneMinute_hiddenApp_setUsedSummary()
177 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; in testSetUsageSummary_timeMoreThanOneMinute_notApp_setUsedSummary()
DPowerUsageSummaryTest.java182 mScreenBatterySipper.usageTimeMs = USAGE_TIME_MS; in setUp()
DAdvancedPowerUsageDetailTest.java280 mBatterySipper.usageTimeMs = PHONE_FOREGROUND_TIME_MS; in testStartBatteryDetailPage_typeNotApp_hasBasicData()
DBatteryUtilsTest.java548 mScreenBatterySipper.usageTimeMs = TIME_EXPECTED_FOREGROUND; in testCalculateScreenUsageTime_returnCorrectTime()