From f6cf7f0d6b6f9011993e2bebae2af22d0f17cb27 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Wed, 31 May 2023 14:41:18 +0000 Subject: [PATCH] Enable InputDeviceMetricsCollector Bug: 275726706 Test: atest CtsInputHostTestCases Change-Id: I6c5018e6a14be8f0d54f6666c6018bee2434ad08 --- .../core/jni/com_android_server_input_InputManagerService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/com_android_server_input_InputManagerService.cpp b/services/core/jni/com_android_server_input_InputManagerService.cpp index 52615295f38a6..1e502e17b00eb 100644 --- a/services/core/jni/com_android_server_input_InputManagerService.cpp +++ b/services/core/jni/com_android_server_input_InputManagerService.cpp @@ -971,7 +971,7 @@ void NativeInputManager::notifyDropWindow(const sp& token, float x, flo void NativeInputManager::notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp, const std::set& uids) { static const bool ENABLE_INPUT_DEVICE_USAGE_METRICS = - sysprop::InputProperties::enable_input_device_usage_metrics().value_or(false); + sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true); if (!ENABLE_INPUT_DEVICE_USAGE_METRICS) return; mInputManager->getMetricsCollector().notifyDeviceInteraction(deviceId, timestamp, uids);