summaryrefslogtreecommitdiff
path: root/sensors/2.0/default/Sensor.cpp
AgeCommit message (Collapse)Author
2020-02-18Add default impl of Sensors HAL 2.1Anthony Stange
Create a default implementation of HAL 2.1 that shares 90% of the underlying code with HAL 2.0 since the interfaces are very similar. Bug: 144139857 Test: compile Change-Id: Ic6b139df98ddb1f92833b1f2d65e1cecc297fd41
2019-01-30Merge "Properly append META_DATA event on flush"TreeHugger Robot
2019-01-30Use more realistic values for sensorsBrian Stack
Bug: 123597515 Test: Builds, cuttlefish device health checks pass Change-Id: Ifddf16761a218788ac7174e16b2d9f7ebb9685a9
2019-01-29Properly append META_DATA event on flushBrian Stack
Bug: 123597380 Test: atest VtsHalSensorsV2_0TargetTest:SensorsHidlTest#FlushSensor Test: Framework properly receives and handles flush complete events Change-Id: I09d2b52555c27602e1fd2ee2282f8ad700a1be18
2019-01-28Add missing sensors to Sensors 2.0Brian Stack
Bug: 123380869 Test: atest com.android.devicehealthchecks.SensorsBootCheck#checkSensors passes on Cuttlefish Change-Id: I08a8406b3932469878da981add61f60b7774a377
2018-11-14Acquire and Release Wake LockBrian Stack
Acquire a wake lock in the Sensors 2.0 Default implementation whenever there are outstanding WAKE_UP events. Release the wake lock whenever the number of oustanding WAKE_UP events is zero or at least SensorTimeout::WAKE_LOCK_SECONDS seconds have elapsed since the previous WAKE_UP event was written to the Event FMQ. Bug: 111070257 Test: Builds, wake lock is acquired and released as expected. Change-Id: I7c57724430144fd4022646d1fef1b1fa8bc4235d
2018-11-13Data Injection Support for Default Sensors HAL 2.0Brian Stack
Implements data injection support for the default Sensors HAL 2.0. Allows events to be injected into the Sensors HAL and these events be written back to the Event FMQ. Bug: 111070257 Test: Passes data injection VTS tests Change-Id: If652417ec0df4148ffb5be3d5dd8bc6f0be65467
2018-10-30Default flush implementation for Sensors 2.0Brian Stack
Bug: 111070257 Test: Builds, passes corresponding VTS tests Change-Id: I5b46232ffb0dd2c85bccd9dad34dd04d29a5677d
2018-10-24Register default accelerometer sensorBrian Stack
Registers a default accelerometer with the Sensors HAL. Bug: 111070257 Test: Builds, a_sns_test receives accel events Change-Id: I2f016eb74b9b729854e771264f4c2f1adf025c09
2018-10-24Generate events for default Sensors 2.0Brian Stack
Adds the ability for default Sensors 2.0 implementation to generate sensor events. Bug: 111070257 Test: Builds Change-Id: I98f04dbac5370cc6fc3be43468ba43b6476b4515
2018-10-24Implement activate and batch functionsBrian Stack
Implements the activate and batch functions for the default Sensors 2.0 implementation. Bug: 111070257 Test: Builds Change-Id: I5987ab722cdd97c7cd7ff466d6d989794171b851