summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-05-08 19:37:44 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-06-08 17:18:50 +0000
commit8ede1d12a521b263c6d5a98a7ed21f548bbdfbd7 (patch)
tree8a585493b9bad9ef78d97ce5ab90968021cc4ffb /services/inputflinger/InputManager.cpp
parent30f0d321c66ba665d9214ac71ca348b745f58093 (diff)
Notify MetricsCollector of device interaction from Dispatcher
InputDispatcher will notify the metrics collector whenever an interaction occurs between an input device and a UID through its policy. Bug: 275726706 Test: atest inputflinger_tests Test: statsd_testdrive Change-Id: Ic62b351263542577328db00c7feb5ff6042f6fe0
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index 863b4839be..1a9f47d934 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -127,6 +127,10 @@ InputProcessorInterface& InputManager::getProcessor() {
return *mProcessor;
}
+InputDeviceMetricsCollectorInterface& InputManager::getMetricsCollector() {
+ return *mCollector;
+}
+
InputDispatcherInterface& InputManager::getDispatcher() {
return *mDispatcher;
}