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>
Thu, 4 Apr 2019 06:10:23 +0000 (06:10 +0000)
commit7234a64355adaea72f566e15cdca62eefd7e6515
treee2ba3d61d90dfdf9c52f642faa2d7a36d8217fa0
parent356c5dfd420331434e893f852ee3ac3f307a3c40
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
services/core/java/com/android/server/wm/ActivityTaskManagerService.java