summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Eric Sum <esum@google.com> 2024-12-19 14:52:32 -0800
committer Eric Sum <esum@google.com> 2024-12-20 11:09:10 -0800
commite506b3caef639855844b47af7de558587c73c039 (patch)
tree1e6b9a498c10769c3cf7800336a36d4d7ca252b4 /libs/androidfw/ResourceTimer.cpp
parent01e38b57088eb431117dbff7df37a24d672631f0 (diff)
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
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions