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

Commit eefbb727 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Inline IMMS#queryInputMethodForCurrentUserLocked()

This is a mechanical refactoring CL in a unit test. There must be no
observable behavior change.

Bug: 350386877
Test: presubmit
Flag: TEST_ONLY
Change-Id: Ic1b6f446e0848268aa261574cbeb75f13dbca136
parent 87fc9576
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -497,13 +497,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
        return getUserData(userId).mBindingController;
    }


    @GuardedBy("ImfLock.class")
    @Nullable
    InputMethodInfo queryInputMethodForCurrentUserLocked(@NonNull String imeId) {
        return InputMethodSettingsRepository.get(mCurrentUserId).getMethodMap().get(imeId);
    }

    /**
     * The last window token that we confirmed that IME started talking to.  This is always updated
     * upon reports from the input method.  If the window state is already changed before the report
+2 −1
Original line number Diff line number Diff line
@@ -140,7 +140,8 @@ public class InputMethodBindingControllerTest extends InputMethodManagerServiceT
        final InputMethodInfo info;
        synchronized (ImfLock.class) {
            mBindingController.setSelectedMethodId(TEST_IME_ID);
            info = mInputMethodManagerService.queryInputMethodForCurrentUserLocked(TEST_IME_ID);
            info = InputMethodSettingsRepository.get(mCallingUserId).getMethodMap()
                    .get(TEST_IME_ID);
        }
        assertThat(info).isNotNull();
        assertThat(info.getId()).isEqualTo(TEST_IME_ID);