Compartilhar via


Accelerometer Native API (Compact 2013)

3/26/2014

The Accelerometer Native API tests provide a high-level verification of the native accelerometer API. The functional verification exercises the accelerometer functionality from the API all the way down to the device. These tests do not provide any data validation or verification.

Test Prerequisites

Your device must meet the following requirements before you run this test.

  • A platform device containing an accelerometer.
  • Associated accelerometer driver software.

Subtests

The table below lists the subtests included in this test.

SubTest ID

Description

1001

OpenSensor() - Nominal

1002

AccelerometerStart() - Nominal

1003

AccelerometerStop() - Nominal

1004

AccelerometerCreateCallback() - Nominal

1005

AccelerometerCancelCallback() - Nominal

1006

AccelerometerSetMode() - Nominal

1102

OpenSensor - Input Validation

1103

OpenSensor - Input Validation

1104

OpenSensor - Input Validation

1105

OpenSensor - Input Validation

1106

OpenSensor - Input Validation

1107

OpenSensor - Input Validation

1108

OpenSensor - Input Validation

1109

OpenSensor - Input Validation

1110

OpenSensor - Input Validation

1122

AccelerometerStart - Input Validation

1123

AccelerometerStart - Input Validation

1124

AccelerometerStart - Input Validation

1125

AccelerometerStart - Input Validation

1126

AccelerometerStart - Input Validation

1127

AccelerometerStart - Input Validation

1128

AccelerometerStart - Input Validation

1142

AccelerometerStop - Input Validation

1143

AccelerometerStop - Input Validation

1144

AccelerometerStop - Input Validation

1162

AccelerometerCreateCallback - Input Validation

1163

AccelerometerCreateCallback - Input Validation

1164

AccelerometerCreateCallback - Input Validation

1165

AccelerometerCreateCallback - Input Validation

1182

AccelerometerCancelCallback - Input Validation

1183

AccelerometerCancelCallback - Input Validation

1184

AccelerometerCancelCallback - Input Validation

1185

AccelerometerCancelCallback - Input Validation

1202

AccelerometerSetMode() - Input Validation

1203

AccelerometerSetMode() - Input Validation

1204

AccelerometerSetMode() - Input Validation

1205

AccelerometerSetMode() - Input Validation

Setting Up the Test

This test has no additional requirements, beyond the standard test environment setup.

Running the Test

This test runs the following command line on default execution: tux -o -d acc_test.dll -x1001-1999

Verifying the Test

When the test completes running, verify that "PASS" appears in the test log for all sub-tests.

Troubleshooting the Test

  • Ensure that the device image includes an accelerometer driver that employs the accelerometer API.
  • Determine the point of failure and record the exact error message.
  • If the source code is available, examine the point of failure in code to see if any additional information can be gathered about the failure domain.

See Also

Other Resources

Accelerometer Tests