这个刚开始把手机放到一个平面上测试,发现测试不通过:
02-17 12:40:43 I/20160202154441: android.hardware.cts.SensorTest#testBatchAndFlush FAIL
junit.framework.AssertionFailedError: WaitForEvents | sensor='Memsic MXC622X 3-axis Accelerometer', samplingPeriod=0us, maxReportLatency=10000000us | requested=500, received=65, timeout=16111000us
registerListener | sensor='LTR558ALS Light sensor', samplingPeriod=0us, maxReportLatency=10000000us | Failed
registerListener | sensor='LTR558ALS Proximity sensor', samplingPeriod=0us, maxReportLatency=10000000us | Failed
at junit.framework.Assert.fail(Assert.java:64)
at android.hardware.cts.SensorTest.assertOnErrors(SensorTest.java:513)
at android.hardware.cts.SensorTest.testBatchAndFlush(SensorTest.java:319)
后来发现需要将手机放在比较暗的地方就可以通过