Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef6699c3 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Automerger Merge Worker
Browse files

Merge "Revert "Enable InputDeviceMetricsCollector"" into udc-qpr-dev am: 17c22ecd am: 783ebc28

parents 5fb3fa76 783ebc28
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -968,7 +968,7 @@ void NativeInputManager::notifyDropWindow(const sp<IBinder>& token, float x, flo
void NativeInputManager::notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp,
void NativeInputManager::notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp,
                                                 const std::set<gui::Uid>& uids) {
                                                 const std::set<gui::Uid>& uids) {
    static const bool ENABLE_INPUT_DEVICE_USAGE_METRICS =
    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;
    if (!ENABLE_INPUT_DEVICE_USAGE_METRICS) return;


    mInputManager->getMetricsCollector().notifyDeviceInteraction(deviceId, timestamp, uids);
    mInputManager->getMetricsCollector().notifyDeviceInteraction(deviceId, timestamp, uids);