Searched refs:mAttentionDetector (Results 1 – 2 of 2) sorted by relevance
65 private TestableAttentionDetector mAttentionDetector; field in AttentionDetectorTest79 mAttentionDetector = new TestableAttentionDetector(); in setUp()80 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUp()81 mAttentionDetector.setAttentionServiceSupported(true); in setUp()90 mAttentionDetector.updateEnabledFromSettings(getContext()); in setUp()110 mAttentionDetector.updateEnabledFromSettings(getContext()); in testOnUserActivity_doesntCheckIfNotEnabled()118 mAttentionDetector.setAttentionServiceSupported(false); in testOnUserActivity_doesntCheckIfNotSupported()164 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes()177 mAttentionDetector.onUserActivity(now, PowerManager.USER_ACTIVITY_EVENT_TOUCH); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()178 mAttentionDetector.updateUserActivity(mNextDimming + 5000L); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()[all …]
236 private final AttentionDetector mAttentionDetector; field in PowerManagerService769 mAttentionDetector = new AttentionDetector(this::onUserAttention, mLock); in PowerManagerService()838 mAttentionDetector.systemReady(mContext); in systemReady()1395 mAttentionDetector.onUserActivity(eventTime, event); in userActivityNoUpdateLocked()1622 mAttentionDetector.onWakefulnessChangeStarted(wakefulness); in setWakefulnessLocked()2108 nextTimeout = mAttentionDetector.updateUserActivity(nextTimeout); in updateUserActivitySummaryLocked()3562 mAttentionDetector.dump(pw); in dumpInternal()