sensors: slightly increase reported accelerometer range

Issue: FP2A10-49
Test: run cts-dev -m CtsSensorTestCases -t android.hardware.cts.SensorTest#testSensorOperations
Change-Id: If246fa8f0a8d0c752bba7ced399ce6bdb92b7d11
diff --git a/sensors/1.0/default/convert.cpp b/sensors/1.0/default/convert.cpp
index 52f5e4f..63c9673 100644
--- a/sensors/1.0/default/convert.cpp
+++ b/sensors/1.0/default/convert.cpp
@@ -40,6 +40,12 @@
     dst->requiredPermission = src.requiredPermission;
     dst->maxDelay = src.maxDelay;
     dst->flags = src.flags;
+
+    if (dst->type == SensorType::ACCELEROMETER) {
+        // Tell the framework that we have a slightly larger sensor range so our
+        // precision gets a bit better and is good enough for the CTS.
+        dst->maxRange = src.maxRange + 1;
+    }
 }
 
 void convertToSensor(