Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java75 assertEquals(aih.getScreenOnTime(2000), 0); in testScreenOnTime()
77 assertEquals(aih.getScreenOnTime(4000), 1000); in testScreenOnTime()
78 assertEquals(aih.getScreenOnTime(5000), 2000); in testScreenOnTime()
81 assertEquals(aih.getScreenOnTime(7000), 3000); in testScreenOnTime()
82 assertEquals(aih.getScreenOnTime(8000), 3000); in testScreenOnTime()
87 assertEquals(aih2.getScreenOnTime(11000), 3000); in testScreenOnTime()
90 assertEquals(aih2.getScreenOnTime(13000), 4000); in testScreenOnTime()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java164 public long getScreenOnTime(long elapsedRealtime) { in getScreenOnTime() method in AppIdleHistory
251 appUsageHistory.lastUsedScreenTime = getScreenOnTime(elapsedRealtime); in reportUsage()
304 appUsageHistory.lastUsedScreenTime = getScreenOnTime(elapsedRealtime); in getPackageHistory()
488 long screenOnDelta = getScreenOnTime(elapsedRealtime) - appUsageHistory.lastUsedScreenTime; in getThresholdIndex()
659 final long screenOnTime = getScreenOnTime(elapsedRealtime); in dump()
695 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.java652 long screenOnTimeMs = mStats.getScreenOnTime(mRawRealtimeUs, mStatsType) / 1000; in addScreenUsage()
DBatteryStatsImpl.java6126 @Override public long getScreenOnTime(long elapsedRealtimeUs, int which) { in getScreenOnTime() method in BatteryStatsImpl
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java270 assertEquals(50_000, bi.getScreenOnTime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
277 assertEquals(110_000, bi.getScreenOnTime(350_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
284 assertEquals(110_000, bi.getScreenOnTime(500_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
291 assertEquals(110_000, bi.getScreenOnTime(1500_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
/frameworks/base/core/java/android/os/
DBatteryStats.java2173 public abstract long getScreenOnTime(long elapsedRealtimeUs, int which); in getScreenOnTime() method in BatteryStats
3737 final long screenOnTime = getScreenOnTime(rawRealtime, which); in dumpCheckinLocked()
4666 final long screenOnTime = getScreenOnTime(rawRealtime, which); in dumpLocked()
8035 getScreenOnTime(rawRealtimeUs, which) / 1000); in dumpProtoSystemLocked()
/frameworks/base/services/
Dart-profile13573 HSPLcom/android/server/usage/AppIdleHistory;->getScreenOnTime(J)J
/frameworks/base/config/
Dboot-image-profile.txt20947 HSPLcom/android/internal/os/BatteryStatsImpl;->getScreenOnTime(JI)J