commit | a3863095d1bea610cbc0bf66efcad8df577ef3a6 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Wed May 31 14:43:53 2023 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Mon Jun 12 15:17:49 2023 +0000 |
tree | 30ef3f91966df6e9c86c34dc993fc79921af077c | |
parent | 580fb3af1743d2a6e12bd8c3f933641644e5eb4a [diff] |
Enable InputDeviceMetricsCollector Bug: 275726706 Test: atest CtsInputHostTestCases Change-Id: I28c6ad438d8cd6d72253b4eb7e3ccc9df3c0e161
diff --git a/services/inputflinger/InputDeviceMetricsCollector.cpp b/services/inputflinger/InputDeviceMetricsCollector.cpp index f92c4f4..55b1df1 100644 --- a/services/inputflinger/InputDeviceMetricsCollector.cpp +++ b/services/inputflinger/InputDeviceMetricsCollector.cpp
@@ -31,7 +31,7 @@ namespace { -constexpr nanoseconds DEFAULT_USAGE_SESSION_TIMEOUT = std::chrono::seconds(5); +constexpr nanoseconds DEFAULT_USAGE_SESSION_TIMEOUT = std::chrono::minutes(2); /** * Log debug messages about metrics events logged to statsd.
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index 1a9f47d..37b3187 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp
@@ -34,7 +34,7 @@ namespace android { 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); using gui::FocusRequest;