CTS Sensor test

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.