commit | 887439b75636a72c200c55bb3ebfb95ca4161e58 | [log] [tgz] |
---|---|---|
author | Yohei Yukawa <yukawa@google.com> | Wed Jul 31 09:34:33 2024 -0700 |
committer | Yohei Yukawa <yukawa@google.com> | Wed Jul 31 09:34:33 2024 -0700 |
tree | 5074b7c7668fdec0409dfa350ecd8608d01d737e | |
parent | cd26e7fb38daa53c908ebad7970e8627a98bdbfc [diff] |
Remove a dependency on IMMS#getCurrentImeUserIdLocked() This is a mechanical refactoring CL to remove the dependency on InputMethodManagerService#getCurrentImeUserIdLocked() from InputMethodBindingControllerTest without changing any test expectation. Bug: 350386877 Test: atest FrameworksInputMethodSystemServerTests Flag: TEST_ONLY Change-Id: I37fb73b112cab80d68636184c0ddbec1d883d90c
diff --git a/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/InputMethodBindingControllerTest.java b/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/InputMethodBindingControllerTest.java index 1e3b7e9..e552621 100644 --- a/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/InputMethodBindingControllerTest.java +++ b/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/InputMethodBindingControllerTest.java
@@ -79,10 +79,8 @@ // from system. synchronized (ImfLock.class) { mBindingController = - new InputMethodBindingController( - mInputMethodManagerService.getCurrentImeUserIdLocked(), - mInputMethodManagerService, mImeConnectionBindFlags, - mCountDownLatch); + new InputMethodBindingController(mUserId, mInputMethodManagerService, + mImeConnectionBindFlags, mCountDownLatch); } }