Reduce sensor maximum delay to 0.5 second

The VTS tests VtsHalSensorsV1_0Target tries receive 50 response with a
maximum sensor delay. Thus having a high maximum delay times out the
test easily.

Also, the tests wait for 0.5 sec "for change rate to happen". Any delay
higher than that would cause flakiness (delay settings are NOT cleaned
up between tests).

BUG: 74250258

Test: run vts -m VtsHalSensorsV1_0Target -t
SensorsHidlTest.AccelerometerSamplingPeriodHotSwitchOperation_32bit

Change-Id: I06175612d404abe69a40d57d7e5cc7eca7022034
(cherry picked from commit 99918b30fa0e30f58925c001d550d874acbc6ce4)
diff --git a/sensors/sensors_qemu.c b/sensors/sensors_qemu.c
index f3bcb1e..998d1c1 100644
--- a/sensors/sensors_qemu.c
+++ b/sensors/sensors_qemu.c
@@ -710,7 +710,7 @@
           .resolution = 1.0f/4032.0f,
           .power      = 3.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.accelerometer",
@@ -728,7 +728,7 @@
           .resolution = 1.0f/1000.0f,
           .power      = 3.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .stringType = "android.sensor.gyroscope",
           .reserved   = {}
         },
@@ -742,7 +742,7 @@
           .resolution = 1.0f,
           .power      = 6.7f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.magnetic_field",
@@ -760,7 +760,7 @@
           .resolution = 1.0f,
           .power      = 9.7f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.orientation",
@@ -778,7 +778,7 @@
           .resolution = 1.0f,
           .power      = 0.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.ambient_temperature",
@@ -796,7 +796,7 @@
           .resolution = 1.0f,
           .power      = 20.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.proximity",
@@ -814,7 +814,7 @@
           .resolution = 1.0f,
           .power      = 20.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.light",
@@ -832,7 +832,7 @@
           .resolution = 1.0f,
           .power      = 20.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.pressure",
@@ -850,7 +850,7 @@
           .resolution = 1.0f,
           .power      = 20.0f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .fifoReservedEventCount = 0,
           .fifoMaxEventCount =   0,
           .stringType = "android.sensor.relative_humidity",
@@ -868,7 +868,7 @@
           .resolution = 1.0f,
           .power      = 6.7f,
           .minDelay   = 10000,
-          .maxDelay   = 60 * 1000 * 1000,
+          .maxDelay   = 500 * 1000,
           .stringType = "android.sensor.magnetic_field_uncalibrated",
           .reserved   = {}
         },