History log of /hardware/interfaces/sensors/1.0/default/convert.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
36665b1b3d99a8c3d0ee37c17a524ce3fbc1a758 19-Jun-2017 Peng Xu <pengxu@google.com> Zero uninitialized field in conversion and fix vts bug

Zero uninitialized sensor event field to zero to avoid undefined
value being passed to framework.

Correct sensor report type check bug in vts.

Bug: 37793558
Bug: 37710268
Test: sensor vts passes
Change-Id: I5042975fea8fe28ae130367ba083a4e4f4e5657e
/hardware/interfaces/sensors/1.0/default/convert.cpp
b2969d4eaae55e0abc28ef5477bc0ec824ffd5c3 25-Mar-2017 Ben Fennema <fennema@google.com> Add missing LOW_LATENCY_OFFBODY_DETECT handling

Bug: 36580454
Test: unlock watch with LLOB sensor and verify no SensorService crash
Change-Id: Ib1d086efd80e829bb844521fa39325f095b1c2c9
Signed-off-by: Ben Fennema <fennema@google.com>
/hardware/interfaces/sensors/1.0/default/convert.cpp
5f81564de2fc85d4ba5e547bee20fd32c6f436ec 28-Feb-2017 Steven Moreland <smoreland@google.com> Revert "Revert "Revert "Protect against null strings in hal wrapper implementation."""

This reverts commit 8dbdf39b9ac7d82c8f5802863b461734005798dd.

Bug: 35421240

Change-Id: I4dc6934d79b1822d500cffaf91f9812387413707
/hardware/interfaces/sensors/1.0/default/convert.cpp
8dbdf39b9ac7d82c8f5802863b461734005798dd 28-Feb-2017 Steven Moreland <smoreland@google.com> Revert "Revert "Protect against null strings in hal wrapper implementation.""

This reverts commit 4cc22a0bc8eb95a74bc7d77fd24ba5361650f227.

Reason for revert: Accidental +2, still waiting on: aosp 345923

Change-Id: I57e062b267ad54632c6d7fcd464c7a0dd773de33
/hardware/interfaces/sensors/1.0/default/convert.cpp
4cc22a0bc8eb95a74bc7d77fd24ba5361650f227 22-Feb-2017 Steven Moreland <smoreland@google.com> Revert "Protect against null strings in hal wrapper implementation."

This reverts commit 6909bfd8ee664c6ef93e1d4c1e0c4ba5650fcba9.

Updated sense null strings are now allowed in hidl as of Iada25da5407c3eccdd28704d993ffdee8b15c5fe.

Bug: 35421240

Change-Id: Ied1745ba7169b2e4bc0a20000503e47172538f08
/hardware/interfaces/sensors/1.0/default/convert.cpp
6909bfd8ee664c6ef93e1d4c1e0c4ba5650fcba9 16-Feb-2017 Ashutosh Joshi <ashutoshj@google.com> Protect against null strings in hal wrapper implementation.

Some HALs may provide null pointers in lieu of empty strings.
Avoid simple copies of these strings.

Bug: 35384551
Test: Verify affected device (Pixel-C) boots and auto-rotate works.
Change-Id: I37ab6e781d6dfdcc1667bcc0467690f7c2c9a557
/hardware/interfaces/sensors/1.0/default/convert.cpp
da270a09f46d300474c8fc47badb8f148dc614f9 13-Feb-2017 Ashutosh Joshi <ashutoshj@google.com> Fix shim layer bugs for Sensors HIDL wrapper.

i) Increase the number of default threads to 2.
ii) Handle the flush complete event correctly.

Bug: 35189074
Bug: 35067266

Test: Test that sensors work in both binderized and passthrough modes.
Ensure that camera photosphere works.

Change-Id: Ic8dadf03395b4e96092ae962cf790c93d65a1c8d
/hardware/interfaces/sensors/1.0/default/convert.cpp
89df2e70642a380357960e07f53e46929e9be002 10-Jan-2017 Peng Xu <pengxu@google.com> [sensors] Default implementation and vts of direct report

Added support for newly added HAL function for sensor event direct
report feature, replace dummy implementation with funtional ones for
the following:

* registerDirectChannel
* unregisterDirectChannel
* configDirectReport

Added a vts test case for direct report.

Added new offset definition to types.hal. This will not affect
existing client/calling code.

Bug: 30985702
Bug: 32022776

Test: vts pass

Change-Id: Ie5e3cddd7c37664e8c59d69cf70aaa1310fd3f58
/hardware/interfaces/sensors/1.0/default/convert.cpp
1f12c7a338884479cbc274094ca834bee1bb98ca 11-Jan-2017 Peng Xu <pengxu@google.com> [sensors] Minor tuning of hal definition

* Swap GEOMAGNETIC_FIELD with MAGNETIC_FIELD for more accurate
definition.
* Remove redundunt prefixes in various enum definitions.
* Clarify that string type will be removed for well defined sensor
types. This avoid dependency on strings defined in sensors.h.
* Added SensorFlagShift enum.
* Remove unused flag parameter in batch.
* Remove legacy setDelay function.
* Change the type of sensor flag to bitfield<SensorFlagBits>, and
use uint32_t since only low 32 bits are used.

Test: all sensor works(in marlin), tested with sensorlogger.

Change-Id: I93a4d13c5d2e054857d1e400d15002aeb9a47368
/hardware/interfaces/sensors/1.0/default/convert.cpp
4faa8c70be85c7d24c269aba905fb0ac366bcca7 11-Jan-2017 Ashutosh Joshi <ashutoshj@google.com> Add the uncalibrated accelerometer sensor type.

Adding the uncalibrated accelerometer sensor.

Test: Update makefiles.
Change-Id: I7f6bc3ce69264b698836946bf9fb820ce9959b01
/hardware/interfaces/sensors/1.0/default/convert.cpp
cefd01cd414db2c923f8172ad197cb761bab3aff 08-Nov-2016 Steven Moreland <smoreland@google.com> Sensors: cleanup includes in default implemenation

Test: compiles
Change-Id: Ib0aa43c186a4626117ed6b19a3881cb1822a5cdc
/hardware/interfaces/sensors/1.0/default/convert.cpp
db49a41180f4b3e88a9523ae1127a396d970adf7 10-Oct-2016 Andreas Huber <andih@google.com> sensor HAL v3

Bug: 32021636
Test: no
Change-Id: I7a4c5c47f8621209daef5af4d0dcbb806a236e41
/hardware/interfaces/sensors/1.0/default/convert.cpp