Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/
H A DAttentionDetectorTest.java71 private TestableAttentionDetector mAttentionDetector; field in AttentionDetectorTest
82 mAttentionDetector = new TestableAttentionDetector(); in setUp()
86 mAttentionDetector.setAttentionServiceSupported(true); in setUp()
95 mAttentionDetector.updateEnabledFromSettings(getContext()); in setUp()
137 mAttentionDetector.setAttentionServiceSupported(false); in testOnUserActivity_doesntCheckIfNotSupported()
250 mAttentionDetector.mRequestId = 5; in testCallbackOnSuccess_doesNotCallNonCurrentCallback()
252 mAttentionDetector.mRequestId = 55; in testCallbackOnSuccess_doesNotCallNonCurrentCallback()
261 mAttentionDetector.mRequestId = 5; in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame()
263 mAttentionDetector.mRequestId = 55; in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame()
279 mAttentionDetector.mRequestId++; in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java317 private final AttentionDetector mAttentionDetector; field in PowerManagerService
1155 mAttentionDetector = new AttentionDetector(this::onUserAttention, mLock);
1329 mAttentionDetector.systemReady(mContext);
2077 mAttentionDetector.onUserActivity(eventTime, event);
2269 mAttentionDetector.onWakefulnessChangeStarted(newWakefulness);
2959 groupNextTimeout = mAttentionDetector.updateUserActivity(groupNextTimeout,
4724 mAttentionDetector.dump(pw);