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

Commit 848c6a0e authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Revert "Track update count of IMMS#mMethodMap"

This reverts commit e073306d [1].

Reason for revert:
This field is not so useful any more, especially after we started
offloading slow disk read operations to a worker thread without
requiring ImfLock [2][3].
Let's simplify this unused field in favor of simplicity.

 [1]: I05850578cbf2e6adfea6c7e9b1fb9ec4e9d5e2c9
 [2]: I263cd49dd4d64b64136acc3dad469f83a862ce97
      db19711e
 [3]: Icc84fe9d0d3b5842b4d5ee51b12b0d3cd10a1d24
      81a9a1ba

Bug: 32343335
Bug: 340221861
Bug: 343601565
Test: presubmit
Flag: EXEMPT refactor
Change-Id: I424b2bab3921d0354638df40877b94449e5b7af8
parent d43735b3
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -367,12 +367,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
    @MultiUserUnawareField
    private HardwareKeyboardShortcutController mHardwareKeyboardShortcutController;

    /**
     * Tracks how many times {@link #mSettings} was updated.
     */
    @GuardedBy("ImfLock.class")
    private int mMethodMapUpdateCount = 0;

    @GuardedBy("ImfLock.class")
    @MultiUserUnawareField
    private int mDeviceIdToShowIme = DEVICE_ID_DEFAULT;
@@ -5218,7 +5212,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
            Slog.e(TAG, "buildInputMethodListLocked is not allowed until system is ready");
            return;
        }
        mMethodMapUpdateCount++;

        final InputMethodSettings settings = InputMethodSettingsRepository.get(mCurrentUserId);

@@ -6044,7 +6037,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
            p.println("Current Input Method Manager state:");
            final List<InputMethodInfo> methodList = settings.getMethodList();
            int numImes = methodList.size();
            p.println("  Input Methods: mMethodMapUpdateCount=" + mMethodMapUpdateCount);
            p.println("  Input Methods:");
            for (int i = 0; i < numImes; i++) {
                InputMethodInfo info = methodList.get(i);
                p.println("  InputMethod #" + i + ":");