Skip to content
Commit 7f8ee4b9 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Allow background users to call IME query APIs

With this CL, following InputMethodManager APIs are fully supported
under multi-user / multi-profile environment.

 * InputMethodManager#getInputMethodList()
 * InputMethodManager#getEnabledInputMethodList()
 * InputMethodManager#getEnabledInputMethodSubtypeList()

Those APIs should return appropriate results based on caller's user
ID, even when called from a background user.

There should be no behavior difference if those APIs are called from
the current user process.

This CL also adds -u <user id> option to 'adb shell ime list' command.

Bug: 120709962
Fix: 122164939
Test: make -j cts && atest CtsInputMethodServiceHostTestCases
Test: Manually verified that 'adb shell ime list -a -s -u <user id>'
      works, including <user id> == 'current' and 'all'.
Change-Id: I192a0f5a1375170d17a4c08af94f23966dbaea8b
parent 58514eaa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment