Set mean threshold based on resolution for auto

Rather than hard-coding based on assumed ADC bits and FSR, set based on
the reported resolution. This better aligns the test with the automotive
CDD which asks for 250dps FSR. This same approach is applicable to all
devices, but the change is scoped to automotive only in this CL since
some devices do not correctly report resolution. Once CTS more closely
validates reported IMU resolution, then this automotive-only scoping can
be removed.

Also simplify the test code to better support runtime-determined
thresholds rather than hard-coded defaults, and fix formatting.

Bug: 267254360
Test: CTS SensorBatchingTests
Change-Id: I7b8a1dc3018651e24c74c7714765994f0c2d83f3
1 file changed