Fix desktop window resizing jank data collection.
In the current state, running `statsd_testdrive 305` while
resizing a window results in the DESKTOP_MODE_RESIZE_WINDOW
CUJ being recorded with 0 `total_frames`. This happens despite
resizing the window for a few seconds.
To fix, a timeline (i.e. target vsync id) must be set for each
frame rendered during the interaction. That causes surfaceflinger
to report jank stats for the interaction, which was missing before.
Flag: com.android.window.flags.sdk_desired_present_time
Bug: 385361072
Test: atest ResizeVeilTest
Run `statsd_testdrive 305` with a desktop and check that
DESKTOP_MODE_RESIZE_WINDOW is recorded with `total_frames`
being a reasonable value.
Change-Id: I971e4dc520fbeaa597720db0cccee865dd789b37
Loading
Please register or sign in to comment