diff options
| author | 2023-11-08 21:26:15 +0800 | |
|---|---|---|
| committer | 2023-11-08 21:26:15 +0800 | |
| commit | 79597940e8b80d6273658e19638eee62e3c71394 (patch) | |
| tree | 2858d35d1cb77db7bdf969838423bb55b65bb828 /libs/androidfw/StringPool.cpp | |
| parent | f4356a7a1a642a8cb4c30cc79e95ade9a0f2d96e (diff) | |
Do not update mocked environment by real display events
The real display listener is registered in
RootWindowContainer#setWindowManager.
Some test may set up display size in @Before, but when running
the real test method, the display size of the mocked display is
updated by real display info.
e.g. according to WindowManagerGlobalLockRule:
1. test thread: lockWm {@Before}
2. ui thread: lockWm {onDisplayChanged} <- flaky race
3. test thread: lockWm {test method}
Fix: 309542567
Test: atest DisplayPolicyLayoutTests#testSimulateLayoutDisplay
Change-Id: I2b00a09b14497573d4b09873351aac73f56e70eb
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions