Reduce the time needed for SensorManager EventQueueStress

Only enable/disable the first eligible sensor for each event queue. As
long as one is enabled succesfully, the object will be set up in the
framework and will need to be destructed before it hits the file limit.

Test: atest VtsHalSensorManagerTargetTest
Bug: 299171035
Change-Id: Iae615023b861c32ad9fa4ce4015acf76316c2e53
diff --git a/sensorservice/aidl/vts/VtsHalSensorManagerTargetTest.cpp b/sensorservice/aidl/vts/VtsHalSensorManagerTargetTest.cpp
index d71d91e..1f9853e 100644
--- a/sensorservice/aidl/vts/VtsHalSensorManagerTargetTest.cpp
+++ b/sensorservice/aidl/vts/VtsHalSensorManagerTargetTest.cpp
@@ -289,6 +289,9 @@
             ASSERT_OK(queue->enableSensor(sensor.sensorHandle, sensor.minDelayUs, sensor.minDelayUs));
             // Make sure sensor resources can be cleaned up. b/260017505 for cases not calling disable
             ASSERT_OK(queue->disableSensor(sensor.sensorHandle));
+            // Enable/disable the first available sensor to make sure the event
+            // queue object is set up in the framework
+            break;
         }
     }
 }