summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2025-01-30 10:58:33 +0000
committer Michał Brzeziński <brzezinski@google.com> 2025-02-08 02:05:01 -0800
commit0e0daefa2a371e0db9009c79f4ecb3bd3a6e4fb5 (patch)
tree5f77d18c8fc03892e1d9cb7f7a828e582b0c5a62 /libs/androidfw/Util.cpp
parent9d2b66a8440b2d808685244b208b29f64464b32d (diff)
Adding unfold latency tracking to DisplaySwitchLatencyTracker
Using current logic of DisplaySwitchLatencyTracker to track latency using LatencyTracker. Logic is also adjusted to exclude invalid cases when many fold/unfold events were emitted without finish event and it was measured as one very long display switch. This is done using cool-down mechanism: 1. When new start transition event is emitted before we managed to get finish event, we enter cool-down state (isCoolingDown field) 2. Cool-down lasts 2 seconds and is restarted for every new start or end event emitted while in cool-down, see startCoolDown method. 3. After cool-down times out, we are back to normal operation Old version of DisplaySwitchLatencyTracker is copied as NoCooldownDisplaySwitchLatencyTracker and will be used when unfold_latency_tracking_fix flag is off. Bug: 390649568 Test: DisplaySwitchLatencyTrackerTest Flag: com.android.systemui.unfold_latency_tracking_fix Change-Id: I8511fcea94fd234b690e56cce144412822095db9
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions