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

Commit c98ffca7 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5704917 from a4b9197e to qt-c2f2-release

Change-Id: I948299695e70d05114545acc9d6d775fc6e7651c
parents 9fb80101 a4b9197e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -696,11 +696,16 @@ void SensorsHidlTest::runFlushTest(const std::vector<SensorInfo>& sensors, bool
            Result flushResult = flush(sensor.sensorHandle);
            ASSERT_EQ(flushResult, expectedResponse);
        }
        activate(sensor.sensorHandle, false);
    }

    // Wait up to one second for the flush events
    callback.waitForFlushEvents(sensors, flushCalls, 1000 /* timeoutMs */);

    // Deactivate all sensors after waiting for flush events so pending flush events are not
    // abandoned by the HAL.
    for (const SensorInfo& sensor : sensors) {
        activate(sensor.sensorHandle, false);
    }
    getEnvironment()->unregisterCallback();

    // Check that the correct number of flushes are present for each sensor