summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-06-14 20:01:50 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-06-14 20:01:50 +0000
commit6778bd40c51ffa583f0533d00d2c7230a630b20c (patch)
tree640d2b5703e08aceeb27d58ee5ae3eea25ba15d3
parent87cbe76c68b795a9bdbad6e92fdbad6aafe5092e (diff)
parenta3863095d1bea610cbc0bf66efcad8df577ef3a6 (diff)
Merge "Enable InputDeviceMetricsCollector" into udc-qpr-dev
-rw-r--r--services/inputflinger/InputDeviceMetricsCollector.cpp2
-rw-r--r--services/inputflinger/InputManager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/services/inputflinger/InputDeviceMetricsCollector.cpp b/services/inputflinger/InputDeviceMetricsCollector.cpp
index f92c4f47f1..55b1df13cb 100644
--- a/services/inputflinger/InputDeviceMetricsCollector.cpp
+++ b/services/inputflinger/InputDeviceMetricsCollector.cpp
@@ -31,7 +31,7 @@ using std::chrono_literals::operator""ns;
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 1a9f47d934..37b31875f8 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;