Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DAttentionDetectorTest.java73 private TestableAttentionDetector mAttentionDetector; field in AttentionDetectorTest
88 mAttentionDetector = new TestableAttentionDetector(); in setUp()
90 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUp()
91 mAttentionDetector.setAttentionServiceSupported(true); in setUp()
100 mAttentionDetector.updateEnabledFromSettings(getContext()); in setUp()
127 mAttentionDetector.updateEnabledFromSettings(getContext()); in testOnUserActivity_doesntCheckIfNotEnabled()
135 mAttentionDetector.setAttentionServiceSupported(false); in testOnUserActivity_doesntCheckIfNotSupported()
170 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes()
183 mAttentionDetector.onUserActivity(now, PowerManager.USER_ACTIVITY_EVENT_TOUCH); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()
184 mAttentionDetector.updateUserActivity(mNextDimming + 5000L, DEFAULT_DIM_DURATION_MILLIS); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java250 private final AttentionDetector mAttentionDetector; field in PowerManagerService
886 mAttentionDetector = new AttentionDetector(this::onUserAttention, mLock);
1051 mAttentionDetector.systemReady(mContext);
1619 mAttentionDetector.onUserActivity(eventTime, event);
1853 mAttentionDetector.onWakefulnessChangeStarted(wakefulness);
2343 nextTimeout = mAttentionDetector.updateUserActivity(nextTimeout,
3959 mAttentionDetector.dump(pw);