Home
last modified time | relevance | path

Searched refs:accNorm (Results 1 – 2 of 2) sorted by relevance

/cts/tests/sensor/jni/
DSensorTestCases.cpp220 double accNorm = std::sqrt(acc.x * acc.x + acc.y * acc.y + acc.z * acc.z); in testDirectReport() local
221 if (accNorm > GRAVITY_MAX || accNorm < GRAVITY_MIN) { in testDirectReport()
222 ALOGE("Gravity norm = %f", accNorm); in testDirectReport()
224 ASSERT_GE(accNorm, GRAVITY_MIN); in testDirectReport()
225 ASSERT_LE(accNorm, GRAVITY_MAX); in testDirectReport()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java1398 double accNorm = Math.sqrt(e.x * e.x + e.y * e.y + e.z * e.z); in checkSharedMemoryContent() local
1399 assertTrue("incorrect gravity norm " + accNorm + " at offset " + offset, in checkSharedMemoryContent()
1400 accNorm < GRAVITY_MAX && accNorm > GRAVITY_MIN); in checkSharedMemoryContent()