Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6688f6ec authored by Michal Brzezinski's avatar Michal Brzezinski Committed by Michał Brzeziński
Browse files

Waiting for FakeLatencyTracker’s listener to be registered

Because listener inside LatencyTracker `startListeningForLatencyTrackerConfigChanges` is registered using `BackgroundThread.getHandler()` there’s no guarantee that it will be registered before test starts running and asserting stuff. 
This change allows passing Executor so we can control where adding callback - and callback itself - is executed.

Test: atest FrameworksCoreTests_jank:com.android.internal.util.LatencyTrackerTest --rerun-until-failure 100 - it also requires forcing Settings to not use cache for all tests to pass
Flag: EXEMPT bugfix
Bug: 412954344
Change-Id: Ia87486b30451baa0c1c9a78aaa489e242f906e2d
parent 4e5a274e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment