diff options
| author | 2023-05-29 20:02:52 +0800 | |
|---|---|---|
| committer | 2023-05-29 20:08:17 +0800 | |
| commit | 614ed9e0e99fa7a18d8785e6f6087b667e4e7af4 (patch) | |
| tree | 1dad44ac578ad1a87e3701424dd0d2d5d76094e6 /libs/androidfw/ApkParsing.cpp | |
| parent | 25aa2d3c877f7880222695bd4048a8edf0f360fd (diff) | |
Set fit insets type for decor insets test
Otherwise because since the key of InsetsState#mSources is based
on hashcode (InsetsSource.createId), the order to iterate mSources
may be indeterministic for the same insets type.
Then WindowLayout#computeFrames may compute different results
according to the hashcode, that causes the test to be flaky.
By setting fit insets type to 0, the insets won't affect each other.
Fix: 284435531
Test: DisplayPolicyTests#testUpdateDisplayConfigurationByDecor
Change-Id: I30ea22c051f84264a03d0b698d50d83c62059869
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions