diff options
| author | 2023-11-14 14:47:10 -0800 | |
|---|---|---|
| committer | 2023-12-07 17:59:27 -0800 | |
| commit | 7b26dbea1d677b8d783f64ac1be23274898547ec (patch) | |
| tree | 277cc4d130d720b752978f404f40d4d0535a0515 /libs/gui/BufferQueue.cpp | |
| parent | 192968f908e22a8c086481805382c438703c5f68 (diff) | |
Pass all input events to MetricsManager
The MetricsManager needs to receive UP/CANCEL events to trigger
atom reporting. I must have moved these lines around during the
refactor and overlooked this mistake.
This change also modifies MotionPredictor and MetricsManager to
hold a "ReportAtomFunction" to facilitate testing.
Test: `statsd_testdrive 718` shows atoms reported with `adb shell setenforce 0`.
Test: `atest frameworks/native/libs/input/tests/MotionPredictor_test.cpp -c` passes.
Test: `atest frameworks/native/libs/input/tests/MotionPredictorMetricsManager_test.cpp -c` passes.
Bug: 311066949
Change-Id: Icbb709bbb7cf548512e0d9aa062783d554b857e3
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions