History log of /device/google/contexthub/sensorhal/sensors.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd9172bb9cc8b250152bbf98f888d14ba20a7a4f 06-Sep-2017 Ben Fennema <fennema@google.com> sensorhal: protect mWakeEventCount with lock and handle mRing full

Bug: 62513931
Test: build/enable prox, trigger prox, verify wakelock not stuck on
Change-Id: I29d734d404d982b9c6bca445a91c7f9bc7a65f40
Signed-off-by: Ben Fennema <fennema@google.com>
/device/google/contexthub/sensorhal/sensors.cpp
42c348b4417f99a22847fae821b446df8bcf5e94 23-Jun-2017 Ivan Podogov <ginkage@google.com> Add Lefty vendor interface implementation to HubConnection.

Bug: 17961466
Change-Id: Ib2b7e41c5ed61e585d73e5aaa52621a87b0dbe51
/device/google/contexthub/sensorhal/sensors.cpp
d0b85d1f465827965e13c950ff71430e946d0508 27-Apr-2017 Joe Onorato <joeo@google.com> Turn off logspam (contexthub)

For more information, see https://source.android.com/source/code-style#log-sparingly

In a 4 hour test of an idle device, these two files were responsible for 10% of the total log
messages:

Top tags by count
-----------------
899 (13%) 88 kb (11%) BtGatt.ScanManager
579 ( 8%) 75 kb ( 9%) BtGatt.GattService
460 ( 6%) 73 kb ( 9%) zygote64
427 ( 6%) 48 kb ( 6%) QMI_OEMHOOK
357 ( 5%) 19 kb ( 2%) sensors
357 ( 5%) 34 kb ( 4%) nanohub
322 ( 4%) 34 kb ( 4%) QC_RIL_OEM_HOOK
299 ( 4%) 34 kb ( 4%) PlayCommon
270 ( 4%) 24 kb ( 3%) Conscrypt
231 ( 3%) 28 kb ( 3%) WCNSS_FILTER
228 ( 3%) 28 kb ( 3%) QcrilMsgTunnelSocket

Bug: 37252687
Test: development/tools/logblame/medium_idle_test
Change-Id: I88bf45b1459a02cf6e06278dc8db157547f4ebe7
/device/google/contexthub/sensorhal/sensors.cpp
9b0516fb972808085ff5cd037ed0e933a215c337 02-May-2017 Peng Xu <pengxu@google.com> Correct sensor handle for operation parameter

Sensor handle 0 is a valid sensor handle. Use SENSORS_HANDLE_BASE - 1
instead in inject_sensor_data for operation parameter.

Test: sensor cts passes
Bug: 37956047

Change-Id: If0ac77c70f1bf4175b17eab1a8394788e10852f5
/device/google/contexthub/sensorhal/sensors.cpp
2b2e7eff4c3592ec0d0cd8a78da371e6fbb0b885 17-Mar-2017 Peng Xu <pengxu@google.com> Sensor operation parameter update support

This CL supports sensor operation parameter update. Specifically
update of location geomagnetic field information is added.

Local geomagnetic field strength, declination, inclination information
is useful for magnetometer calibration. It also benefits rotation
vector sensor implementation as it gives a baseline that aids detecting
magnetic field disturbance.

Bug: 30958130
Test: Tested with marlin. Modified hal implementation can get local
geomagnetic field.

Change-Id: I8b717fd8e805d2ac84dd640a670be98116c9418c
/device/google/contexthub/sensorhal/sensors.cpp
5603662beb1c26f34de996a7002f439c1ef3298e 23-Jan-2017 Peng Xu <pengxu@google.com> Add dynamic sensor extension to nanohub HAL

Dynamic sensor extension to nanohub HAL:
* Create new device config switch
NANOHUB_SENSORHAL_DYNAMIC_SENSOR_EXT_ENABLED to control
inclusion of dynamic sensor extension.
* Add interface code to DynamicSensorManager.
* Add dispatcher pattern to distribute sensor operation to
the correct entity.

Test: run cts tests about dynamic sensors,
checked basic sensor functionality using sensorlogger

Change-Id: I3180fa1d7de04b8c18ec2b3436ed998311785423
/device/google/contexthub/sensorhal/sensors.cpp
b0ae54e9a706aa28060b1fdbb8ad19e37c4f4c34 23-Feb-2017 Ben Fennema <fennema@google.com> bmi160: add support for raw mag samples

Bug: 33693823
Test: run mag and verify output data looks correct
Change-Id: I756adebd5258b143edb36b7fea320b0a25786339
Signed-off-by: Ben Fennema <fennema@google.com>
/device/google/contexthub/sensorhal/sensors.cpp
cf5df9cf40929f5d02ee8ab0dbc8f69b2236a947 03-Nov-2016 Peng Xu <pengxu@google.com> Implement sensor direct report mode

This change implements direct report for accel, gyro and mag at normal
and fast rate level. It supports ashmem shared memory.

The direct report and traditional sensor subscription are still
tangled up in this implementation.

Bug: 30985702
Bug: 33588372
Test: tested via demo app

Change-Id: Idc4f626dfe624558718c1b04f16898a0ea247e62
/device/google/contexthub/sensorhal/sensors.cpp
a30dfb1e38c0d5fe7778b5fe142057ec2bad26a1 07-Jul-2016 Andrew Rossignol <aarossig@google.com> sensorhal: remove unnecessary flags argument am: 2b9311a5a6
am: 1206991464

Change-Id: I231266982c328bf4474cd3f83f446599d06db097
2b9311a5a67f15538bf6a83c5a6a42b01ba87590 07-Jul-2016 Andrew Rossignol <aarossig@google.com> sensorhal: remove unnecessary flags argument

Change-Id: I5d659bbc670aae9e8938ed87773fc40487a3fb7b
/device/google/contexthub/sensorhal/sensors.cpp
ca7d92c7dae143eed115fbb94671baae94f6dd27 07-Jul-2016 Andrew Rossignol <aarossig@google.com> Merge \\"activity_hal: move static class methods to free functions\\" into nyc-mr1-dev am: 759d604909
am: 6ca4bf84b9

Change-Id: I76a9c4788daa69f5e0e16b95e68067cf62c9dec1
4594a90716c1e561f90240adca007993682340f1 29-Jun-2016 Andrew Rossignol <aarossig@google.com> activity_hal: move static class methods to free functions

The wrapper functions do not need to be static class methods and have
been moved to static free functions. This also improvies some of the
access modifiers. Some private methods were being used in a public way
(invoked by the AR HAL).

Change-Id: I87f5a5ee9ada7d72f4e6fe2149c4bd9e2e6c3c76
/device/google/contexthub/sensorhal/sensors.cpp
560cc2f56963794781ed93c458c39038265236d9 20-Apr-2016 Nick Vaccaro <nvaccaro@google.com> sensorhal: protect wake events with a wakelock

If there's a sensor wake event in the sensor HAL's event pipeline,
grab a wakelock to keep device from falling asleep until Sensor
Services has had a chance to grab its own wakelock.

Bug: 28249097
Change-Id: Ia36b2726bbf200d0dbdbb3f2a36fbc5482096a93
/device/google/contexthub/sensorhal/sensors.cpp
d82bf31ea82409862e4423dd1c9e73fff12941d5 01-Apr-2016 Andrew Rossignol <aarossig@google.com> sensorhal: adds separate sensor lists for devices

This change adds support for a different sensor list depending
on the type of device.

Bug: 27943736
Change-Id: Id8c30b9b72084576d11546a663de7327fb29d76f
/device/google/contexthub/sensorhal/sensors.cpp
49f32a52b840b6b7e7f31d2036c3f10510a42b8b 24-Mar-2016 Meng-hsuan Chung <menghsuan@google.com> sensorhal: enable 400Hz accel/gyro

bug: 27687515
Change-Id: I4d6714105f70d0e277fcd8e8849bda0666b47ede
/device/google/contexthub/sensorhal/sensors.cpp
2b7c19d0bc28ff93be5f99d9a50ca821490ceb32 23-Mar-2016 Peng Xu <pengxu@google.com> Fix the bug that causes setDelay not working

Fix the bug that causes setDelay not working. Many native sensor
apps, such as camera EIS, still use this API.

Bug: b/27790706
Change-Id: Iaf7eeb3311a2148ca556d27dbd117e1992715644
/device/google/contexthub/sensorhal/sensors.cpp
21f2c7c52a0a1159b7fcc594ed46cdd3c084d00e 25-Feb-2016 Trevor Bunker <trevorbunker@google.com> sensorhal: migrate from vendor/google_contexthub and google_chinook

- Original authors for hubconnection: Ben Fennema (fennema@google.com),
Andreas Huber (andih@google.com), Trevor Bunker
(trevorbunker@google.com), and Andrew Rossignol (aaross@google.com)
- Original authors for other files: Andreas Huber (andih@google.com),
Trevor Bunker (trevorbunker@google.com), and Meng-hsuan Chung
(menghsuan@google.com)

Change-Id: I4b1097b80315135949f0713103c61793b92126c2
/device/google/contexthub/sensorhal/sensors.cpp