diff options
| author | 2024-08-05 22:10:41 -0700 | |
|---|---|---|
| committer | 2024-08-05 22:10:41 -0700 | |
| commit | 58d454e69a4e5bb17a751ad7e88a27606db7a23d (patch) | |
| tree | fe6480fdab6dbda3323e281c3c03d157db37ea86 | |
| parent | 9f94e49dc786cce615264cc093d88788022ea490 (diff) | |
Improve dump format in InputMethodSubtypeSwitchingController
This CL adjusts several prefix handlings in
InputMethodSubtypeSwitchingController.ControllerImpl#dump(),
which was updated to support IME subtype switching auto mode [1].
Other than cleaning up the dump format, there must be no observable
behavior change in this CL.
[1]: I71e3a0f4234f829ca6791cd575fda977bc3df13f
72fa182396fa3f1f9c14483bb751b0fab33e7c21
Bug: 311791923
Flag: android.view.inputmethod.ime_switcher_revamp
Test: manually verified with "adb shell dumpsys input_method"
Change-Id: I25d294136d39a31b11efd9afbd3b841dcf2dc713
| -rw-r--r-- | services/core/java/com/android/server/inputmethod/InputMethodSubtypeSwitchingController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodSubtypeSwitchingController.java b/services/core/java/com/android/server/inputmethod/InputMethodSubtypeSwitchingController.java index 05cc5985a8cc..b5c278ca1c52 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodSubtypeSwitchingController.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodSubtypeSwitchingController.java @@ -591,13 +591,13 @@ final class InputMethodSubtypeSwitchingController { pw.println(prefix + "Static order:"); for (int i = 0; i < mItems.size(); ++i) { final var item = mItems.get(i); - pw.println(prefix + "i=" + i + " item=" + item); + pw.println(prefix + " i=" + i + " item=" + item); } pw.println(prefix + "Recency order:"); for (int i = 0; i < mRecencyMap.length; ++i) { final int index = mRecencyMap[i]; final var item = mItems.get(index); - pw.println(prefix + "i=" + i + " item=" + item); + pw.println(prefix + " i=" + i + " item=" + item); } } } @@ -800,7 +800,7 @@ final class InputMethodSubtypeSwitchingController { pw.println(prefix + "mHardwareRotationList:"); mHardwareRotationList.dump(pw, prefix + " "); } - pw.println("User action since last switch: " + mUserActionSinceSwitch); + pw.println(prefix + "User action since last switch: " + mUserActionSinceSwitch); } } } |