diff options
| author | 2025-03-17 22:34:42 -0700 | |
|---|---|---|
| committer | 2025-03-18 11:59:17 -0700 | |
| commit | 49f14a2de433a2596eff65f0aae83a6d156814de (patch) | |
| tree | ca73dc6626d81e37ff30072b195c562e68774d3e /libs/androidfw/StringPool.cpp | |
| parent | e67ea9bc18bc96b1775afd8f345358f8a77b0549 (diff) | |
Fix flaky flicker test
Fixes flakes in the test switchAppByDoubleTapDivider by changing the way click events are sent in doubleTapDividerToSwitch().
Previously, this test relied on SystemClock.sleep() and UiObject2.click() to create a double-click action; however, in a minority of cases, this was failing -- the component was registering two spaced-out single clicks instead of a double-click.
Using UiAutomation to inject the clicks at precise times fixes the problem.
Fixes: 397395900
Flag: EXEMPT test changes only
Test: A local test run of 200+ iterations ended with no flakes (previously was failing reliably by 30-50 iterations)
Change-Id: I9399a54129b31e2f9692ff6027a33fc868249170
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions