Merge "Revert "Enable InputDeviceMetricsCollector"" into udc-qpr-dev am: 17c22ecda9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23814205

Change-Id: Ie076b638d3748587335fd8c7a9da497420dc05d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Prabir Pradhan
2023-06-27 18:31:08 +00:00
committed by Automerger Merge Worker

View File

@@ -971,7 +971,7 @@ void NativeInputManager::notifyDropWindow(const sp<IBinder>& token, float x, flo
void NativeInputManager::notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp,
const std::set<gui::Uid>& uids) {
static const bool ENABLE_INPUT_DEVICE_USAGE_METRICS =
sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true);
sysprop::InputProperties::enable_input_device_usage_metrics().value_or(false);
if (!ENABLE_INPUT_DEVICE_USAGE_METRICS) return;
mInputManager->getMetricsCollector().notifyDeviceInteraction(deviceId, timestamp, uids);