Home
last modified time | relevance | path

Searched refs:checkAttention (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DAttentionDetectorTest.java76 when(mAttentionManagerInternal.checkAttention(anyLong(), any())) in setUp()
102 verify(mAttentionManagerInternal).checkAttention(anyLong(), any()); in testOnUserActivity_checksAttention()
112 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testOnUserActivity_doesntCheckIfNotEnabled()
120 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testOnUserActivity_doesntCheckIfNotSupported()
129 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testOnUserActivity_doesntCheckIfInLockscreen()
139 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testOnUserActivity_doesntCheckIfNotSufficientPermissions()
179 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()
196 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testOnUserActivity_ignoresAfterMaximumExtension()
202 verify(mAttentionManagerInternal).checkAttention(anyLong(), any()); in testOnUserActivity_ignoresIfAlreadyDoneForThatNextScreenDimming()
208 verify(mAttentionManagerInternal, never()).checkAttention(anyLong(), any()); in testOnUserActivity_ignoresIfAlreadyDoneForThatNextScreenDimming()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/attention/
DAttentionManagerServiceTest.java121 assertThat(mSpyAttentionManager.checkAttention(mTimeout, callback)).isFalse(); in testCheckAttention_returnFalseWhenPowerManagerNotInteract()
132 mSpyAttentionManager.checkAttention(mTimeout, callback); in testCheckAttention_callOnSuccess()
144 public void checkAttention(IAttentionCallback callback) throws RemoteException { in checkAttention() method in AttentionManagerServiceTest.MockIAttentionService
/frameworks/base/core/java/android/service/attention/
DIAttentionService.aidl27 void checkAttention(IAttentionCallback callback); in checkAttention() method
DAttentionService.java110 public void checkAttention(IAttentionCallback callback) {
/frameworks/base/core/java/android/attention/
DAttentionManagerInternal.java40 public abstract boolean checkAttention(long timeoutMillis, AttentionCallbackInternal callback); in checkAttention() method in AttentionManagerInternal
/frameworks/base/services/core/java/com/android/server/attention/
DAttentionManagerService.java173 boolean checkAttention(long timeout, AttentionCallbackInternal callbackInternal) { in checkAttention() method in AttentionManagerService
216 userState.mService.checkAttention( in checkAttention()
413 public boolean checkAttention(long timeout, AttentionCallbackInternal callbackInternal) { in checkAttention() method in AttentionManagerService.LocalService
414 return AttentionManagerService.this.checkAttention(timeout, callbackInternal); in checkAttention()
489 mService.checkAttention(mCurrentAttentionCheck.mIAttentionCallback); in handlePendingCallbackLocked()
759 boolean calledSuccessfully = checkAttention(2000, mTestableAttentionCallback); in cmdCallCheckAttention()
/frameworks/base/services/core/java/com/android/server/power/
DAttentionDetector.java215 final boolean sent = mAttentionManager.checkAttention(getAttentionTimeout(), mCallback); in updateUserActivity()