Searched refs:mAttentionDetector (Results 1 – 2 of 2) sorted by relevance
72 private TestableAttentionDetector mAttentionDetector; field in AttentionDetectorTest83 mAttentionDetector = new TestableAttentionDetector(); in setUp()86 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUp()87 mAttentionDetector.setAttentionServiceSupported(true); in setUp()96 mAttentionDetector.updateEnabledFromSettings(getContext()); in setUp()130 mAttentionDetector.updateEnabledFromSettings(getContext()); in testOnUserActivity_doesntCheckIfNotEnabled()138 mAttentionDetector.setAttentionServiceSupported(false); in testOnUserActivity_doesntCheckIfNotSupported()163 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes()176 mAttentionDetector.onUserActivity(now, PowerManager.USER_ACTIVITY_EVENT_TOUCH); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()177 mAttentionDetector.updateUserActivity(mNextDimming + 5000L, DEFAULT_DIM_DURATION_MILLIS); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()[all …]
323 private final AttentionDetector mAttentionDetector; field in PowerManagerService1189 mAttentionDetector = new AttentionDetector(this::onUserAttention, mLock);1366 mAttentionDetector.systemReady(mContext);2143 mAttentionDetector.onUserActivity(eventTime, event);2339 mAttentionDetector.onWakefulnessChangeStarted(newWakefulness);3048 groupNextTimeout = mAttentionDetector.updateUserActivity(groupNextTimeout,4844 mAttentionDetector.dump(pw);