summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2019-02-05 07:55:28 -0800
committerYohei Yukawa <yukawa@google.com>2019-02-05 07:55:28 -0800
commit1fb13c59dea3c29aaed5d3e2155ce4acba7b7f7c (patch)
tree48c6e60880a1e239f4527b275691a2893b5b60b4 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent629271aa85327dca1bf800a55f48f606dbf504ba (diff)
Query right user's enabled IMEs in KeyguardPasswordView
This CL fixes a regression introduced by my previous CL [1], which enabled InputMethodManager#getEnabledInputMethodList() to return the result based on the caller's user ID, not based on the current IME user, even when it gets called from background users. Since Keyguard always runs as user 0 currently, it is now Keyguard's responsibility for querying enabled IMEs with an explicit user ID. To do so this CL adds a @hide API IMM#getEnabledInputMethodListAsUser() and lets KeyguardPasswordView use it. [1]: I192a0f5a1375170d17a4c08af94f23966dbaea8b 7f8ee4b9ddd31ad36a12c5278b27990dc76011cc Bug: 122164939 Fix: 123904896 Test: Manually verified as follows. 1. Build aosp_taimen-userdebug and flash it. 2. make -j SoftKeyboard 3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk 4. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard 5. adb shell pm create-user test_user 6. adb shell am switch-user 10 7. adb shell locksettings set-password aaaa 8. adb shell wm dismiss-keyguard 9. Make sure that the IME switcher icon is not shown at the right end of the password field. Change-Id: I6e7d7353c2b5b1da5d460ae005fb2585f85fb1c4
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions