Searched refs:AttentionService (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 41 import android.service.attention.AttentionService; 234 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_ABSENT, in testCallbackOnSuccess_ignoresIfNoAttention() 242 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallback() 253 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_doesNotCallNonCurrentCallback() 264 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() 267 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() 279 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop() 287 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop() 297 mAttentionDetector.mCallback.onFailure(AttentionService.ATTENTION_FAILURE_UNKNOWN); in testCallbackOnFailure_unregistersCurrentRequestCode() 298 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnFailure_unregistersCurrentRequestCode()
|
/frameworks/base/core/java/android/service/attention/ |
D | AttentionService.java | 53 public abstract class AttentionService extends Service { class 112 AttentionService.this.onCheckAttention(new AttentionCallback(callback)); 119 AttentionService.this.onCancelAttentionCheck(new AttentionCallback(callback));
|
/frameworks/base/services/core/java/com/android/server/attention/ |
D | AttentionManagerService.java | 20 import static android.service.attention.AttentionService.ATTENTION_FAILURE_CANCELLED; 21 import static android.service.attention.AttentionService.ATTENTION_FAILURE_UNKNOWN; 51 import android.service.attention.AttentionService; 52 import android.service.attention.AttentionService.AttentionFailureCodes; 53 import android.service.attention.AttentionService.AttentionSuccessCodes; 352 final Intent intent = new Intent(AttentionService.SERVICE_INTERFACE).setPackage( in resolveAttentionService() 358 AttentionService.SERVICE_INTERFACE, serviceConfigPackage in resolveAttentionService() 428 AttentionCheckCache(long lastComputed, @AttentionService.AttentionSuccessCodes int result, in AttentionCheckCache() 514 AttentionService.SERVICE_INTERFACE).setComponent( in bindLocked()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | AttentionDetector.java | 37 import android.service.attention.AttentionService; 329 if (result == AttentionService.ATTENTION_SUCCESS_PRESENT) { in onSuccess()
|
/frameworks/base/api/ |
D | system-current.txt | 7066 public abstract class AttentionService extends android.app.Service { 7067 ctor public AttentionService(); 7069 …ract void onCancelAttentionCheck(@NonNull android.service.attention.AttentionService.AttentionCall… 7070 …c abstract void onCheckAttention(@NonNull android.service.attention.AttentionService.AttentionCall… 7078 … field public static final String SERVICE_INTERFACE = "android.service.attention.AttentionService"; 7081 public static final class AttentionService.AttentionCallback {
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 6964 public abstract class AttentionService extends android.app.Service { 6965 ctor public AttentionService(); 6967 …ract void onCancelAttentionCheck(@NonNull android.service.attention.AttentionService.AttentionCall… 6968 …c abstract void onCheckAttention(@NonNull android.service.attention.AttentionService.AttentionCall… 6976 … field public static final String SERVICE_INTERFACE = "android.service.attention.AttentionService"; 6979 public static final class AttentionService.AttentionCallback {
|
/frameworks/base/cmds/statsd/src/ |
D | atoms.proto | 6503 // See core/java/android/service/attention/AttentionService.java
|