Merge "Add the missing unregisterCallback call" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-15 19:12:02 +00:00
committed by Android (Google) Code Review

View File

@@ -737,6 +737,8 @@ TEST_P(SensorsHidlTest, NoStaleEvents) {
callback.waitForEvents(sensors, kFiveHundredMs + (5 * maxMinDelay));
activateAllSensors(false);
getEnvironment()->unregisterCallback();
for (const SensorInfoType& sensor : sensors) {
// Skip sensors that did not previously report an event
if (lastEventTimestampMap.find(sensor.sensorHandle) == lastEventTimestampMap.end()) {