Searched refs:mAttentionDetector (Results 1 – 2 of 2) sorted by relevance
73 private TestableAttentionDetector mAttentionDetector; field in AttentionDetectorTest88 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 …]
250 private final AttentionDetector mAttentionDetector; field in PowerManagerService886 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);