commit | 442937958b2291470148b675ae58c4a44e880e14 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Mon May 08 19:37:44 2023 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Thu Jun 08 17:18:52 2023 +0000 |
tree | b0398ac1ffcaed97844a69909e9fd04feae9b65f | |
parent | 8ede1d12a521b263c6d5a98a7ed21f548bbdfbd7 [diff] |
Break down input device usage by uid When InputDispatcher notifies that there is an interaction between a device and UIDs, track the usage of the input device by UID. Since Dispatcher calls the policy from its own thread, we use an AtomicQueue to hold the requests until we process the usages again from the Reader thread. Bug: 275726706 Test: atest inputflinger_tests Test: statsd_testdrive Change-Id: Ic4aae4bce7d3779adf23309973b964461bd92e7e