Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5085f68 authored by Alex Salo's avatar Alex Salo
Browse files

Add isEnabled to AttentionDetector dumpsys

And a corresponding state to AMS dumpsys.

Bug: 134531724
Test: adb shell dumpsys power | attention
Change-Id: Id33c8ec4682b1fdb82c6f340b4dca65c4986258e
parent 09ed7c97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ public class AttentionManagerService extends SystemService {

    private void dumpInternal(IndentingPrintWriter ipw) {
        ipw.println("Attention Manager Service (dumpsys attention) state:\n");

        ipw.println("isServiceEnabled=" + isServiceEnabled());
        ipw.println("AttentionServicePackageName=" + getServiceConfigPackage(mContext));
        ipw.println("Resolved component:");
        if (mComponentName != null) {
+1 −0
Original line number Diff line number Diff line
@@ -297,6 +297,7 @@ public class AttentionDetector {

    public void dump(PrintWriter pw) {
        pw.println("AttentionDetector:");
        pw.println(" mIsSettingEnabled=" + mIsSettingEnabled);
        pw.println(" mMaximumExtensionMillis=" + mMaximumExtensionMillis);
        pw.println(" mMaxAttentionApiTimeoutMillis=" + mMaxAttentionApiTimeoutMillis);
        pw.println(" mLastUserActivityTime(excludingAttention)=" + mLastUserActivityTime);