summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2021-02-02 12:12:27 -1000
committer Siarhei Vishniakou <svv@google.com> 2021-02-09 18:14:04 +0000
commit3531ae7db42af4c982f5c60f7bd532f90de34c88 (patch)
treebe5eddd80b99d6c2f7343191eee98ad5df9beb17 /libs/gui/SurfaceComposerClient.cpp
parenta9b9fe40c28882f3db0b13dc9ac9b00b0fd2eab1 (diff)
Send consumeTime from the app to InputDispatcher
When the app completes an input event by calling 'finishInputEvent', it will now notify InputDispatcher about the time when the event was first read by the app. This will help InputManager collect dispatching latency statistics. Sample dumpsys output for validation: android.view.ViewRootImpl$WindowInputEventReceiver mInputChannel: da2dbc7 com.google.latencyTester/com.google.latencyTester.activities.MainActivity (client) mSeqMap: {} mReceiverPtr: mInputConsumer: mResampleTouch = true mChannel = da2dbc7 com.google.latencyTester/com.google.latencyTester.activities.MainActivity (client) mMsgDeferred: false Batches: Batch: Message 2277: MOTION action=MOVE Pointer 0 : x=643.0 y=961.0 mSeqChains: <empty> mConsumeTimes: seq = 2277 consumeTime = 74385633441431 The above dump was acquired during touch of the latencyTester app. Also verified that normally, mConsumeTimes is empty. Bug: 169866723 Test: atest inputflinger_tests Test: adb shell dumpsys activity all | grep -i consume -C 20 Change-Id: Ib173bb38e5decc2e4a6b0cf9bca9aceb32352ec0
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions