Merge "Protect isInputMethodPickerShown() with TEST_INPUT_METHOD permission"