Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/power/
H A DAttentionDetectorTest.java70 private Runnable mOnUserAttention; field in AttentionDetectorTest
83 mRealAttentionDetector = new AttentionDetector(mOnUserAttention, new Object()); in setUp()
237 verify(mOnUserAttention, never()).run(); in testCallbackOnSuccess_ignoresIfNoAttention()
245 verify(mOnUserAttention).run(); in testCallbackOnSuccess_callsCallback()
256 verify(mOnUserAttention, never()).run(); in testCallbackOnSuccess_doesNotCallNonCurrentCallback()
270 verify(mOnUserAttention).run(); in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame()
283 }).when(mOnUserAttention).run(); in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop()
292 verify(mOnUserAttention, atMost(1)).run(); in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop()
301 verify(mOnUserAttention, never()).run(); in testCallbackOnFailure_unregistersCurrentRequestCode()
423 super(AttentionDetectorTest.this.mOnUserAttention, new Object()); in TestableAttentionDetector()
/aosp12/frameworks/base/services/core/java/com/android/server/power/
H A DAttentionDetector.java110 private final Runnable mOnUserAttention; field in AttentionDetector
155 mOnUserAttention = onUserAttention; in AttentionDetector()
414 mOnUserAttention.run(); in onSuccess()