Home
last modified time | relevance | path

Searched refs:AttentionService (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DAttentionDetectorTest.java41 import android.service.attention.AttentionService;
220 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_ABSENT, in testCallbackOnSuccess_ignoresIfNoAttention()
228 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallback()
239 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_doesNotCallNonCurrentCallback()
250 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame()
253 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame()
265 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop()
273 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnSuccess_DoesNotGoIntoInfiniteLoop()
283 mAttentionDetector.mCallback.onFailure(AttentionService.ATTENTION_FAILURE_UNKNOWN); in testCallbackOnFailure_unregistersCurrentRequestCode()
284 mAttentionDetector.mCallback.onSuccess(AttentionService.ATTENTION_SUCCESS_PRESENT, in testCallbackOnFailure_unregistersCurrentRequestCode()
/frameworks/base/core/java/android/service/attention/
DAttentionService.java53 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/
DAttentionManagerService.java20 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/
DAttentionDetector.java37 import android.service.attention.AttentionService;
327 if (result == AttentionService.ATTENTION_SUCCESS_PRESENT) { in onSuccess()
/frameworks/base/api/
Dsystem-current.txt6249 public abstract class AttentionService extends android.app.Service {
6250 ctor public AttentionService();
6252 …ract void onCancelAttentionCheck(@NonNull android.service.attention.AttentionService.AttentionCall…
6253 …c abstract void onCheckAttention(@NonNull android.service.attention.AttentionService.AttentionCall…
6261 … field public static final String SERVICE_INTERFACE = "android.service.attention.AttentionService";
6264 public static final class AttentionService.AttentionCallback {
/frameworks/base/cmds/statsd/src/
Datoms.proto5733 // See core/java/android/service/attention/AttentionService.java