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

Commit f6cf7f0d authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Enable InputDeviceMetricsCollector

Bug: 275726706
Test: atest CtsInputHostTestCases
Change-Id: I6c5018e6a14be8f0d54f6666c6018bee2434ad08
parent 00095af0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -971,7 +971,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<int32_t>& uids) {
                                                 const std::set<int32_t>& 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(false);
            sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true);
    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);