Home
last modified time | relevance | path

Searched refs:nextTimeout (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2041 long nextTimeout = 0; in updateUserActivitySummaryLocked() local
2053 nextTimeout = mLastUserActivityTime in updateUserActivitySummaryLocked()
2055 if (now < nextTimeout) { in updateUserActivitySummaryLocked()
2058 nextTimeout = mLastUserActivityTime + screenOffTimeout; in updateUserActivitySummaryLocked()
2059 if (now < nextTimeout) { in updateUserActivitySummaryLocked()
2066 nextTimeout = mLastUserActivityTimeNoChangeLights + screenOffTimeout; in updateUserActivitySummaryLocked()
2067 if (now < nextTimeout) { in updateUserActivitySummaryLocked()
2082 nextTimeout = anyUserActivity + sleepTimeout; in updateUserActivitySummaryLocked()
2083 if (now < nextTimeout) { in updateUserActivitySummaryLocked()
2089 nextTimeout = -1; in updateUserActivitySummaryLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DAttentionDetectorTest.java187 long nextTimeout = mAttentionDetector.updateUserActivity(mNextDimming + 5000L); in testUpdateUserActivity_schedulesTheNextCheck() local
188 assertThat(nextTimeout).isEqualTo(mNextDimming + 5000L); in testUpdateUserActivity_schedulesTheNextCheck()