OSDN Git Service

Do not remove the default display during tests.
authorBryce Lee <brycelee@google.com>
Sat, 18 Mar 2017 00:22:35 +0000 (17:22 -0700)
committerBryce Lee <brycelee@google.com>
Mon, 20 Mar 2017 21:48:16 +0000 (14:48 -0700)
commit6272c7f83fd1e78ec610d84621abfd0b87680465
tree5701963aa6a07a60ac3cec2461ed9caf0ecb9e29
parent44277fbd617c9b23125494563c8e640876dbd941
Do not remove the default display during tests.

The default display is used by some tests that exercise features only
functional only on the default display (like policy rotation). This CL
makes this display not get removed with the created test displays and
ensures no collision in id space from a previous test run (done in the
test setup).

Change-Id: Ia14b9c023c779d263283fe8c7b512dca17ff312f
Fix: 36385757
Test: bit FrameworksServicesTests:com.android.server.wm.StackWindowControllerTests#testRemoveContainer_deferRemoval
services/tests/servicestests/src/com/android/server/wm/AppWindowTokenTests.java
services/tests/servicestests/src/com/android/server/wm/WindowTestsBase.java