summaryrefslogtreecommitdiff
path: root/tests/SystemUIDemoModeController/src
diff options
context:
space:
mode:
author Nicholas Ambur <nambur@google.com> 2023-03-01 09:51:12 +0000
committer Nicholas Ambur <nambur@google.com> 2023-03-20 17:33:28 +0000
commit5de4d6599658684f11dc0336daaa4201503328cf (patch)
treed838a8e7417734cb275c133e46f71e73a0640dfe /tests/SystemUIDemoModeController/src
parent31302573d7d1869696252107e4289446119a9324 (diff)
rework LatencyTracker for testing
Modify the VisibleForTesting methods of the LatencyTracker class to improve the testibility. The class is modified to support overriding callbacks when actions/outcomes are taken by LatencyTracker based on its inputs. Test classes using LatencyTracker can now verify: 1. When PerfettoTrigger has been triggered 2. When FrameworkStatsLog is written to This CL fixes a bug where only the global enable flag is checked when calling onActionStart and onActionEnd. It also adds a new enabled check for when the public logAction API is called. Test: atest LatencyTrackerTest Bug: 269254242 Change-Id: I4f8d21bca4a9e52fb3875e88387b8c8641f64c94
Diffstat (limited to 'tests/SystemUIDemoModeController/src')
0 files changed, 0 insertions, 0 deletions