Flush onJankDataAvailable from sf to finish a CUJ session
Sometimes we need an extra frame to make sf to fire the last callback to
FrameTracker to finish the CUJ session that we can get the metrics in
the UiInteractionFrameInfoListener.
Bug: 183735018
Test: atest \
PlatformScenarioTests:android.platform.test.scenario.launcher.CloseApp3ButtonModeMicrobenchmark \
-- --test-arg \
com.android.tradefed.testtype.AndroidJUnitTest:device-listeners:android.device.collectors.UiInteractionFrameInfoListener \
--module-arg PlatformScenarioTests:instrumentation-arg:iterations:=10 \
--module-arg PlatformScenarioTests:instrumentation-arg:drop-cache:=false
\
--module-arg PlatformScenarioTests:instrumentation-arg:kill-app:=false
Change-Id: I22fe858bdcb1c82b91bfdd8f9d1e839ef23434d9
2 files changed