OSDN Git Service

Don't update process-level configutaion for MSIME process
authorlumark <lumark@google.com>
Tue, 2 Apr 2019 06:56:46 +0000 (14:56 +0800)
committerMing-Shin Lu <lumark@google.com>
Sat, 6 Apr 2019 09:39:03 +0000 (09:39 +0000)
commit5df4951c1f8f9c73b8af38d650c92505bcd7c43b
tree945e4264e8894dda1881c795752f571d66b1076d
parent02cca81c10665fcd5dcd8cbdad6b16ca0f2e1e4a
Don't update process-level configutaion for MSIME process

Currently, process-level display configuration change for IME process
is only for single-client IME window moving to another display to update
UI layout according display configuration.

It's not applicable for MSIME use case since other IMEs on other displays
will also receive this configuration change due to IME services use
the same application config/context, so add a check to fix this issue.

Fix: 129723692
Test: atest MultiDisplaySystemDecorationTests
Test: manual
      1. Enable config_perDisplayFocusEnabled config,
      2. Install MultiClientInputMethod app
      3. Set multi client IME component by "adb shell setprop persist.debug.multi_client_ime \
         com.example.android.multiclientinputmethod/.MultiClientInputMethod"
      4. Reboot device to initiate MultiClientInputMethod
      5. In Settings -> developer options -> Enable Simulated display &
         Force desktop mode.
      6. Reboot device to enable multi-display test environment.
      7. In primary & external display, launch app with EditText.
      8. Focus EditText in both displays and see if keyboard can displayed
         with correct layout.

Change-Id: Ic556ca212d285de183e3709b032427d5d97e0623
(cherry picked from commit 7234a64355adaea72f566e15cdca62eefd7e6515)
services/core/java/com/android/server/wm/ActivityTaskManagerService.java