Migrate screen rotation latency tracker with shell transition
It was done by WMS#startFreezingDisplay~stopFreezingDisplayLocked. The duration is measured from rotation change to start animation. Add a remote callback to know when the rotation animation is started. So WM core can have the paired begin/end of trace that matches the latency exactly. The added ITransitionMetricsReporter is available for any processes. So in the future it can also report the metrics from remote animator. This change focuses on the rotation animation handled by shell. Bug: 199836343 Test: adb shell setprop persist.debug.shell_transit 1; reboot Rotate display and check trace "L<ACTION_ROTATE_SCREEN>". Change-Id: I180d2fe1a77e98b6427ba831a2db2593739376bd
Loading
Please register or sign in to comment