summaryrefslogtreecommitdiff
path: root/sensors/common/vts/utils/SensorsHidlEnvironmentBase.cpp
AgeCommit message (Collapse)Author
2020-02-18Add VTS tests for Sensors HAL 2.1Anthony Stange
Bug: 144139857 Test: atest VtsHalSensorsV2_0TargetTest VtsHalSensorsV2_1TargetTest Change-Id: If2b751929b8d89c9d381032f5e8424a24719b6bd
2019-07-15Verify mPollThread is joinable before detachingAnthony Stange
If HidlSetUp() bails before startPollingThread() is called (which can happen if the HAL isn't implemented on the given device), mPollThread will initialize with the default constructor resulting in joinable() returning false which means calling detach() throws an exception. Checking joinable() before detaching allows the test suite to be skipped successfully. Fixes: 136736906 Test: Run vts-tradefed on VtsHalSensorsV1_0Target and verify that it is skipped successfully on a device that doesn't support HAL 1.0 Change-Id: Ie685ae2dc314edb8df2f3cc7112141a2f5e46008
2018-11-07Update member variables to use mNamingConventionBrian Stack
Bug: 115969174 Test: Builds Change-Id: Id4334d9060a3110d13debcfaf1bebc9dddd321c5
2018-11-07Implement VTS tests for Sensors 2.0 flushBrian Stack
Bug: 115969174 Test: Tests pass against default implementation Change-Id: Icb8c3d7776b8460d502bfec251ded061f978bec9
2018-10-05Create SensorsHidlEnvironmentBaseBrian Stack
Move common parts of SensorsHidlEnvironment into a base class so they can be reused with other versions of sensors tests. Bug: 111070257 Test: Builds Change-Id: I1e04e734d00308adff35b9c16de1499573a84b03