Sensor CTS, tested for sensor.
1. Test every sensor
From the log, the sensor test begins with the action of activating the sensor, and the log statement is:
SENSORSERVICE:SENSORDEVICE::ACTIVATE:IDENT=0X60BA9B48, handle=0x00000002,
Enabled=1, Count=1
Here the handle indicates which sensor, 0 is the acceleration, 1 is the electromagnetic, 2 is the direction, 3 is the gyroscope, and these are the necessary
Remember that. This is defined in Hwmsen.h. If the sensor test is normal, there will be a log statement indicating that the test passed:
Sensorservice:sent dropped flush Complete event==2
If there is no test pass, the log will not be available.
CST but found a problem, the gyroscope has activation, but did not pass the log. Found no gyroscope on the hardware, but the software
There is a gyroscope on the configuration.
2. Too many device node permissions can not be too.
To test the CTS, check the stay awake.
Find out which one, however, can go to android-cts/toos/
CTS test, run,./cts-tradefed
At the prompt,
Enter Run Cts-c android.hardware.cts.sensortest-m testbatchandflush
CTS Sensor test