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

Commit 0a117d8f authored by Bill Lin's avatar Bill Lin
Browse files

Refine dump info of One Handed Mode components

1) "ComponentName" + "States:" Sometimes confuse developers
   (e.g: OneHandedControllerStates)
2) The indent of OneHandedSettingsUtil is incorrect

Test: adb shell dumpsys activity service com.android.systemui
Test: make
Bug: 187014022
Change-Id: Icca01221986efdf9a1f9975efa30e485c5be36b0
parent 3ed02ffe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ public final class OneHandedAccessibilityUtil {

    public void dump(@NonNull PrintWriter pw) {
        final String innerPrefix = "  ";
        pw.println(TAG + "States: ");
        pw.println(TAG);
        pw.print(innerPrefix + "mPackageName=");
        pw.println(mPackageName);
        pw.print(innerPrefix + "mDescription=");
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ public class OneHandedBackgroundPanelOrganizer extends DisplayAreaOrganizer

    void dump(@NonNull PrintWriter pw) {
        final String innerPrefix = "  ";
        pw.println(TAG + "states: ");
        pw.println(TAG);
        pw.print(innerPrefix + "mIsShowing=");
        pw.println(mIsShowing);
        pw.print(innerPrefix + "mBkgBounds=");
+2 −1
Original line number Diff line number Diff line
@@ -630,7 +630,8 @@ public class OneHandedController implements RemoteCallable<OneHandedController>

    public void dump(@NonNull PrintWriter pw) {
        final String innerPrefix = "  ";
        pw.println(TAG + "States: ");
        pw.println();
        pw.println(TAG);
        pw.print(innerPrefix + "mOffSetFraction=");
        pw.println(mOffSetFraction);
        pw.print(innerPrefix + "mLockedDisabled=");
+1 −1
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ public class OneHandedDisplayAreaOrganizer extends DisplayAreaOrganizer {

    void dump(@NonNull PrintWriter pw) {
        final String innerPrefix = "  ";
        pw.println(TAG + "states: ");
        pw.println(TAG);
        pw.print(innerPrefix + "mDisplayLayout.rotation()=");
        pw.println(mDisplayLayout.rotation());
        pw.print(innerPrefix + "mDisplayAreaTokenMap=");
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ public class OneHandedGestureHandler implements OneHandedTransitionCallback {

    void dump(@NonNull PrintWriter pw) {
        final String innerPrefix = "  ";
        pw.println(TAG + "States: ");
        pw.println(TAG);
        pw.print(innerPrefix + "mAllowGesture=");
        pw.println(mAllowGesture);
        pw.print(innerPrefix + "mIsEnabled=");
Loading