Relax accelerometer events norm check

Current accelerometer norm check threshold is tight and cause
unnecessary test flakiness in test environment with small
inevitable vibration (e.g. from people walking by testing
lab).

This CL relax the threshold from 0.5m/s^2 to 1m/s^2.

Test: vts pass
Bug: 62811045
Change-Id: I5d7e736623c892b6e6c9b8ddc5d0f53fa8aaba77
Merged-In: I5d7e736623c892b6e6c9b8ddc5d0f53fa8aaba77
This commit is contained in:
Peng Xu 2017-07-05 11:24:19 -07:00
parent ce6e742eb6
commit 5b036a21a4

View file

@ -584,7 +584,7 @@ class SensorsHidlTest : public ::testing::VtsHalHidlTargetTestBase {
};
const Vec3NormChecker SensorsHidlTest::sAccelNormChecker(
Vec3NormChecker::byNominal(GRAVITY_EARTH, 0.5f/*m/s^2*/));
Vec3NormChecker::byNominal(GRAVITY_EARTH, 1.0f/*m/s^2*/));
const Vec3NormChecker SensorsHidlTest::sGyroNormChecker(
Vec3NormChecker::byNominal(0.f, 0.1f/*rad/s*/));