OSDN Git Service

Do not defer wm display logic when called from am.
authorBryce Lee <brycelee@google.com>
Mon, 20 Mar 2017 17:37:12 +0000 (10:37 -0700)
committerBryce Lee <brycelee@google.com>
Mon, 20 Mar 2017 17:37:12 +0000 (10:37 -0700)
commitaf3a400ead86f29ca355613dbe3a13b6fc3243d3
treec73163c673f706d76f8bb358d99b6ce5c63ee906
parent44277fbd617c9b23125494563c8e640876dbd941
Do not defer wm display logic when called from am.

Currently we process any remove/add/change logic from the activity
manager to the window manager through a handler message. This opens
the possibility of the activity manager requesting display state
from a window manager that is a step behind.

This change modifies the call behavior so that these changes are done
synchronously between the two managers.

Change-Id: Icd19f37c62bfb7aad10fab2e1b21e41ac75052b5
Fixes: 35741135
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests#testCreateMultipleVirtualDisplaysH
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/wm/WindowManagerService.java