Searched refs:checkAttention (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 76 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/ |
D | AttentionManagerServiceTest.java | 121 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/ |
D | IAttentionService.aidl | 27 void checkAttention(IAttentionCallback callback); in checkAttention() method
|
D | AttentionService.java | 110 public void checkAttention(IAttentionCallback callback) {
|
/frameworks/base/core/java/android/attention/ |
D | AttentionManagerInternal.java | 40 public abstract boolean checkAttention(long timeoutMillis, AttentionCallbackInternal callback); in checkAttention() method in AttentionManagerInternal
|
/frameworks/base/services/core/java/com/android/server/attention/ |
D | AttentionManagerService.java | 173 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/ |
D | AttentionDetector.java | 215 final boolean sent = mAttentionManager.checkAttention(getAttentionTimeout(), mCallback); in updateUserActivity()
|