Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/power/
H A DAttentionDetectorTest.java48 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()
/aosp12/frameworks/base/core/java/android/service/attention/
H A DAttentionService.java53 public abstract class AttentionService extends Service { class
112 AttentionService.this.onCheckAttention(new AttentionCallback(callback));
119 AttentionService.this.onCancelAttentionCheck(new AttentionCallback(callback));
/aosp12/frameworks/base/services/core/java/com/android/server/attention/
H A DAttentionManagerService.java23 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()
/aosp12/packages/apps/Settings/src/com/android/settings/display/
H A DAdaptiveSleepPreferenceController.java34 import android.service.attention.AttentionService;
159 final Intent intent = new Intent(AttentionService.SERVICE_INTERFACE).setPackage( in isAttentionServiceAvailable()
/aosp12/frameworks/base/services/core/java/com/android/server/power/
H A DAttentionDetector.java37 import android.service.attention.AttentionService;
413 if (result == AttentionService.ATTENTION_SUCCESS_PRESENT) { in onSuccess()
/aosp12/frameworks/base/core/api/
H A Dsystem-current.txt9698 public abstract class AttentionService extends android.app.Service {
9699 ctor public AttentionService();
9701 …ract void onCancelAttentionCheck(@NonNull android.service.attention.AttentionService.AttentionCall…
9702 …c abstract void onCheckAttention(@NonNull android.service.attention.AttentionService.AttentionCall…
9710 … field public static final String SERVICE_INTERFACE = "android.service.attention.AttentionService";
9713 public static final class AttentionService.AttentionCallback {
/aosp12/frameworks/proto_logging/stats/
H A Datoms.proto8988 // See core/java/android/service/attention/AttentionService.java