OSDN Git Service

IMM#showInputMethodPickerFromSystem for supporting multi-display.
authorlumark <lumark@google.com>
Mon, 3 Dec 2018 08:11:16 +0000 (16:11 +0800)
committerlumark <lumark@google.com>
Tue, 4 Dec 2018 08:04:21 +0000 (16:04 +0800)
commitc8c9c286b475887edd916dc7cd4a06e8116dc77f
tree00a088ad4c8d699be02830a0b9a5dbc45fe4bdac
parent0173c5f532e3ed3b9b0dff398d4138ce145fa487
IMM#showInputMethodPickerFromSystem for supporting multi-display.

Derived from IMM#showInputMethodPicker(bool) @hide function, rename it as
showInputMethodPickerFromSystem and added displayId parameter to let
system caller can deside which display to show input method picker dialog.

Bug: 120050928
Test: manual, verify the IME switcher dialog can be shown on the external
      display when:
      1) Launch CryptKeeper activity to the external display via command:
   adb shell am start -e "com.android.settings.CryptKeeper.DEBUG_FORCE_VIEW" \
   "password" -n com.android.settings/.CryptKeeper --display 1 --windowingMode 1
      2) Pressing the IME switcher button in CryptKeeper activity.
Test: atest InputMethodManagerTest#testShowInputMethodPicker

Change-Id: I58f4e7b00eb271d426ba5b1125e9f129dac53f1d
src/com/android/settings/CryptKeeper.java