Searched refs:AttentionService (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 48 import android.service.attention.AttentionService; 235 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_ABSENT, in testCallbackOnSuccess_ignoresIfNoAttention() 243 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallback() 254 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_doesNotCallNonCurrentCallback() 265 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() 268 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() 280 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop() 288 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop() 298 mAttentionDetector.mCallback.onFailure(AttentionService.ATTENTION_FAILURE_UNKNOWN); in testCallbackOnFailure_unregistersCurrentRequestCode() 299 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 | 23 import static android.service.attention.AttentionService.ATTENTION_FAILURE_CANCELLED; 24 import static android.service.attention.AttentionService.ATTENTION_FAILURE_UNKNOWN; 55 import android.service.attention.AttentionService; 56 import android.service.attention.AttentionService.AttentionFailureCodes; 57 import android.service.attention.AttentionService.AttentionSuccessCodes; 357 final Intent intent = new Intent(AttentionService.SERVICE_INTERFACE).setPackage( in resolveAttentionService() 363 AttentionService.SERVICE_INTERFACE, serviceConfigPackage in resolveAttentionService() 475 AttentionCheckCache(long lastComputed, @AttentionService.AttentionSuccessCodes int result, in AttentionCheckCache() 687 AttentionService.SERVICE_INTERFACE).setComponent( in bindLocked()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | AttentionDetector.java | 37 import android.service.attention.AttentionService; 413 if (result == AttentionService.ATTENTION_SUCCESS_PRESENT) { in onSuccess()
|
/frameworks/base/core/api/ |
D | system-current.txt | 9650 public abstract class AttentionService extends android.app.Service { 9651 ctor public AttentionService(); 9653 …ract void onCancelAttentionCheck(@NonNull android.service.attention.AttentionService.AttentionCall… 9654 …c abstract void onCheckAttention(@NonNull android.service.attention.AttentionService.AttentionCall… 9662 … field public static final String SERVICE_INTERFACE = "android.service.attention.AttentionService"; 9665 public static final class AttentionService.AttentionCallback {
|
/frameworks/proto_logging/stats/ |
D | atoms.proto | 8786 // See core/java/android/service/attention/AttentionService.java
|