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.java76 assertEquals(aih.getScreenOnTime(2000), 0); in testScreenOnTime()
78 assertEquals(aih.getScreenOnTime(4000), 1000); in testScreenOnTime()
79 assertEquals(aih.getScreenOnTime(5000), 2000); in testScreenOnTime()
82 assertEquals(aih.getScreenOnTime(7000), 3000); in testScreenOnTime()
83 assertEquals(aih.getScreenOnTime(8000), 3000); in testScreenOnTime()
88 assertEquals(aih2.getScreenOnTime(11000), 3000); in testScreenOnTime()
91 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()
493 long screenOnDelta = getScreenOnTime(elapsedRealtime) - appUsageHistory.lastUsedScreenTime; in getThresholdIndex()
649 final long screenOnTime = getScreenOnTime(elapsedRealtime); in dump()
685 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.java630 long screenOnTimeMs = mStats.getScreenOnTime(mRawRealtimeUs, mStatsType) / 1000; in addScreenUsage()
DBatteryStatsImpl.java6287 @Override public long getScreenOnTime(long elapsedRealtimeUs, int which) { in getScreenOnTime() method in BatteryStatsImpl
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java271 assertEquals(50_000, bi.getScreenOnTime(250_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
278 assertEquals(110_000, bi.getScreenOnTime(350_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
285 assertEquals(110_000, bi.getScreenOnTime(500_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
292 assertEquals(110_000, bi.getScreenOnTime(1500_000, STATS_SINCE_CHARGED)); in testNoteScreenStateTimersLocked()
/frameworks/base/core/java/android/os/
DBatteryStats.java2034 public abstract long getScreenOnTime(long elapsedRealtimeUs, int which); in getScreenOnTime() method in BatteryStats
3549 final long screenOnTime = getScreenOnTime(rawRealtime, which); in dumpCheckinLocked()
4486 final long screenOnTime = getScreenOnTime(rawRealtime, which); in dumpLocked()
7858 getScreenOnTime(rawRealtimeUs, which) / 1000); in dumpProtoSystemLocked()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt3904 Landroid/os/BatteryStats;->getScreenOnTime(JI)J
7724 Lcom/android/internal/os/BatteryStatsImpl;->getScreenOnTime(JI)J
Dboot-image-profile.txt8984 HPLcom/android/internal/os/BatteryStatsImpl;->getScreenOnTime(JI)J
27208 HSPLandroid/os/BatteryStats;->getScreenOnTime(JI)J