summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-12-09 16:14:10 +0000
committer Riddle Hsu <riddlehsu@google.com> 2022-12-09 16:14:10 +0000
commit5a06af21df9edfb14fe0d169d5baa72afc9756e9 (patch)
treed2fd1933039ac06e7a4a54de43207d1080ae4072 /libs/androidfw/StringPool.cpp
parentb29e4dc3a30723aa075227735f0a3684a39ce353 (diff)
Fix high flakiness of InsetsPolicyTest
The spy() will return a different instance. The caller who doesn't use the instance will only update its own fields. The test app window was default non-focusable set up by test. So it was no problem before the change [1], that there will be no candidate window in updateSystemBarAttributes. Now updateSystemBarAttributes will choose the app window and then updateBarControlTarget(). That causes abortTransient() because focus change. And the focus change is because the policy.updateBarControlTarget updated to a different instance of InsetsPolicy#mFocusedWin. [1] I957e1eddcfa3f7b873f7a9b32eeaf69db5927b00 Bug: 254268165 Test: atest InsetsPolicyTest Change-Id: I21eb14313cc848894b6be3aafc4965a42c10ae0d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions