Home
last modified time | relevance | path

Searched refs:getScreenOnTime (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java62 assertEquals(aih.getScreenOnTime(2000), 0); in testScreenOnTime()
64 assertEquals(aih.getScreenOnTime(4000), 1000); in testScreenOnTime()
65 assertEquals(aih.getScreenOnTime(5000), 2000); in testScreenOnTime()
68 assertEquals(aih.getScreenOnTime(7000), 3000); in testScreenOnTime()
69 assertEquals(aih.getScreenOnTime(8000), 3000); in testScreenOnTime()
74 assertEquals(aih2.getScreenOnTime(11000), 3000); in testScreenOnTime()
77 assertEquals(aih2.getScreenOnTime(13000), 4000); in testScreenOnTime()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java124 public long getScreenOnTime(long elapsedRealtime) { in getScreenOnTime() method in AppIdleHistory
185 packageHistory.lastUsedScreenTime = getScreenOnTime(elapsedRealtime); in reportUsage()
240 packageHistory.lastUsedScreenTime = getScreenOnTime(elapsedRealtime); in getPackageHistory()
271 packageHistory.lastUsedScreenTime = getScreenOnTime(elapsedRealtime) in setIdle()
282 <= getScreenOnTime(elapsedRealtime) - mScreenOnTimeThreshold) in hasPassedThresholds()
377 final long screenOnTime = getScreenOnTime(elapsedRealtime); in dump()
396 TimeUtils.formatDuration(getScreenOnTime(elapsedRealtime), idpw); in dump()
/frameworks/base/core/java/com/android/internal/os/
DWakelockPowerCalculator.java65 + (stats.getScreenOnTime(rawRealtimeUs, statsType) / 1000); in calculateRemaining()
DBatteryStatsHelper.java621 long screenOnTimeMs = mStats.getScreenOnTime(mRawRealtimeUs, mStatsType) / 1000; in addScreenUsage()
DBatteryStatsImpl.java5263 @Override public long getScreenOnTime(long elapsedRealtimeUs, int which) { in getScreenOnTime() method in BatteryStatsImpl
/frameworks/base/core/java/android/os/
DBatteryStats.java1816 public abstract long getScreenOnTime(long elapsedRealtimeUs, int which); in getScreenOnTime() method in BatteryStats
3063 final long screenOnTime = getScreenOnTime(rawRealtime, which); in dumpCheckinLocked()
3846 final long screenOnTime = getScreenOnTime(rawRealtime, which); in dumpLocked()