From 8ede1d12a521b263c6d5a98a7ed21f548bbdfbd7 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Mon, 8 May 2023 19:37:44 +0000 Subject: 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 --- services/inputflinger/InputManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/inputflinger/InputManager.cpp') 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; } -- cgit v1.2.3-59-g8ed1b