Searched refs:getScreenOnTime (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppIdleHistoryTests.java | 76 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/ |
D | AppIdleHistory.java | 164 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/ |
D | WakelockPowerCalculator.java | 65 + (stats.getScreenOnTime(rawRealtimeUs, statsType) / 1000); in calculateRemaining()
|
D | BatteryStatsHelper.java | 630 long screenOnTimeMs = mStats.getScreenOnTime(mRawRealtimeUs, mStatsType) / 1000; in addScreenUsage()
|
D | BatteryStatsImpl.java | 6287 @Override public long getScreenOnTime(long elapsedRealtimeUs, int which) { in getScreenOnTime() method in BatteryStatsImpl
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 271 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/ |
D | BatteryStats.java | 2034 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/ |
D | hiddenapi-light-greylist.txt | 3904 Landroid/os/BatteryStats;->getScreenOnTime(JI)J 7724 Lcom/android/internal/os/BatteryStatsImpl;->getScreenOnTime(JI)J
|
D | boot-image-profile.txt | 8984 HPLcom/android/internal/os/BatteryStatsImpl;->getScreenOnTime(JI)J 27208 HSPLandroid/os/BatteryStats;->getScreenOnTime(JI)J
|