235942389f797228865c761589732e4b10f42692 |
|
30-Sep-2017 |
Chih-Hung Hsieh <chh@google.com> |
Use -Werror in hardware/libhardware * Remove unused local variables and function. * Fix unused return value warning. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I269eca76cda2222c7a0176e85e92df0bb0924a0e
/hardware/libhardware/modules/sensors/multihal.cpp
|
d8871a76871b30235301a36feafc168a36c5660d |
|
10-Aug-2017 |
Peng Xu <pengxu@google.com> |
Fix potential memory leak in multihal Bug: 64266341 Test: compile and pixel 2017 device sensor operate normally Change-Id: I879379106d038ce28937a28ab5863b4bea615bf0 Merged-In: I879379106d038ce28937a28ab5863b4bea615bf0
/hardware/libhardware/modules/sensors/multihal.cpp
|
516ef86487e8f04dbb8a7f30f3ef9617f589caa0 |
|
24-May-2017 |
Alexey Polyudov <apolyudov@google.com> |
sensors: route sensor handle for multi-hal event injection Change-Id: Iad65c8b7eea7fbe89747123bd3364b6dcde8b839 Merged-In: Iad65c8b7eea7fbe89747123bd3364b6dcde8b839
/hardware/libhardware/modules/sensors/multihal.cpp
|
15b43e96a3c8c0ffea488e9b29056f0cf3c56477 |
|
28-Apr-2017 |
Peng Xu <pengxu@google.com> |
Add support of sensor direct report and operation parameter Adds sensor direct report mode support to multihal. Limited by hal API only the first HAL in configuration list can support sensor direct report. Sensor operation parameter support in multihal module is added in this CL. In treblized device multihal is enabled by default and implementation is included in default implementation. Remove multihal shared lib generation in device specified PRODUCT_FULL_TREBLE. Test: warning message shows up on device that specified both PRODUCT_FULL_TREBLE and USE_SENSOR_MULTI_HAL flags. Test: cts test passes Change-Id: I868e7c1ce727370b333f80bbfe737fb106f6d106 Merged-In: I868e7c1ce727370b333f80bbfe737fb106f6d106
/hardware/libhardware/modules/sensors/multihal.cpp
|
900cfac9eecf7b7318a9adccd8a18bbf3da3bdd1 |
|
22-Apr-2017 |
Peng Xu <pengxu@google.com> |
Move default multihal configuration file to /vendor/... Move default multihal configuration file path to /vendor/etc/sensors/hals.conf. Retained old definition but changed varible name to mark it deprecated. get_so_paths() is modified to search both new and old path for configuration file. MULTI_HAL_CONFIG_FILE_PATH is only used by hidl default implementation at this moment outside multihal module. Bug: 35947802 Test: build ok, sensor works on 2017 devices Change-Id: I443ff71fa194383646108c8eb0c5438d150a5886
/hardware/libhardware/modules/sensors/multihal.cpp
|
9eb5bbd45f37c5f2ee5633640b639372d72d92aa |
|
10-Jan-2017 |
Ashutosh Joshi <ashutoshj@google.com> |
Drop support for old Sensor HALs. Dropping support for Sensor HAL version 1.0. Sensor HALs version 1.1 and 1.2 are already depracated. This makes version 1.3 as the earliest supported version. Test: Sensors CTS tests still pass. Change-Id: I806ce1d0d9277cbb312d9f90749975420cef2109
/hardware/libhardware/modules/sensors/multihal.cpp
|
8a83708daeb3e02ff7379b40948ffbef5d040eb1 |
|
13-Dec-2016 |
Nick Vaccaro <nvaccaro@google.com> |
Sensors: MultiHal: add support for HIDL Add get_multi_hal_module_info() to support using multi-hal functionality within the HIDL sensor implementation. Move externally relevant constants and prototypes to new multihal.h file. Add new Android.bp for Treble to build multi-hal into a static library that is now included by the HIDL sensor implementation. Bug: 32022308 Change-Id: I2b3afa9ff1e0a2e5a098e643dde99ec86bb88206
/hardware/libhardware/modules/sensors/multihal.cpp
|
c1ded2afef390c05dd40a271fcca20febf5cf967 |
|
14-Oct-2016 |
Nick Vaccaro <nvaccaro@google.com> |
Sensors: MultiHal: support sensor API version 1.4 Add ability to support HALs with an API version of SENSORS_DEVICE_API_VERSION_1_4. Bug: 32113642 Change-Id: If61ff54faa9aefc959102a097df60e75a230cae3
/hardware/libhardware/modules/sensors/multihal.cpp
|
59d9fb4f881a7d3aa313ee49fca1ca35ccd81b0d |
|
19-Jul-2016 |
Nick Vaccaro <nvaccaro@google.com> |
Sensors: MultiHal: ignore errors from poll calls MultiHal was not properly fielding errors from the poll() calls of sub-HALs. Propagating errors received from sub-HALs up to Sensor Services causes Sensor Services to abort, so instead of propagating the error up to Sensor Services, the MultiHal logs a message to logcat to fix the sub-HAL problem. Bug: 30060537 Change-Id: I6e20c193a2f2d228da48cf3d5a23e439eaf663df
/hardware/libhardware/modules/sensors/multihal.cpp
|
a889c0915af205d7af1a8032e54b5a4d4496babb |
|
15-Apr-2016 |
Nick Vaccaro <nvaccaro@terrapin.mtv.corp.google.com> |
Sensors: MultiHal: fix naming and compiler warning Changed module name back to sensors.$(TARGET_DEVICE) to assure proper load ordering. Fix use of GNU old-style field designator extension and a couple type-mismatched comparisons. Bug: 28251347 Change-Id: I7cf6cc1f78085b8b254729cd8ec42bdb20ea3f81
/hardware/libhardware/modules/sensors/multihal.cpp
|
940bd08b73a2440127a433fde01d83b74a87539d |
|
16-Feb-2016 |
Nick Vaccaro <nvaccaro@google.com> |
Sensors: MultiHal: Increase xfer buffer size am: 98d5e946ba am: b675803d03 * commit 'b675803d03ed44124c1111d2535ec841da2f3081': Sensors: MultiHal: Increase xfer buffer size
|
98d5e946baa0132eb9e512a38e04c5416d5512c4 |
|
09-Feb-2016 |
Nick Vaccaro <nvaccaro@google.com> |
Sensors: MultiHal: Increase xfer buffer size Increased the size of the sensor event transfer queue from 20 to 36 sensor events. This size now matches Sensor Services buffer size that it passes to poll() for reading events and will allow the multihal to transfer the maximum events possible per poll cycle. Change-Id: I55459ea0a70b9da848d3d3d43590050d71c53e28
/hardware/libhardware/modules/sensors/multihal.cpp
|
993779c3c46016e561a797e13d2560cc6320e6e8 |
|
04-Aug-2015 |
Nick Vaccaro <nvaccaro@google.com> |
am 3f93d2a9: Merge "libhardware: sensors: update multi hal to support 64bit builds" * commit '3f93d2a9705df0c4c341ac3e75b3751da82c98c6': libhardware: sensors: update multi hal to support 64bit builds
|
4fd217a1c6d149a826b7d6d09661d32cfecb6454 |
|
23-Jul-2015 |
Ching Tzung Lin <ctlin@google.com> |
Fix compilation error on emerald-dev Change-Id: I324fb9b1b54e31610fe4fdce8edbb6979e666cbb
/hardware/libhardware/modules/sensors/multihal.cpp
|
1fd36183bfa2634d5357c055c16130632701158c |
|
21-Jan-2015 |
Satya Durga Srinivasu Prabhala <satyap@codeaurora.org> |
libhardware: sensors: update multi hal to support 64bit builds To get multi hal working on both 32 & 64 bit targets, removing hardcoded paths & checks in multi HAL. Sensor HAL libs must be installed path that is available through LD_LIBRARY_PATH. /system/lib & /system/vendor/lib for 32-bit targets. /system/lib64 & /system/vendor/lib64 for 64-bit targets. Change-Id: Ib1c1f25f08855c4584d53cc04fbe82a3a768b180
/hardware/libhardware/modules/sensors/multihal.cpp
|
e914d696a95a799bbcca221238a1874f995871ca |
|
10-Oct-2014 |
Nick Vaccaro <nvaccaro@google.com> |
Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliant Ignore calls to any HALs that are not 1_0 or 1_3 compliant. Fix an unused parameter compiler warning. Bug: 17645248 Change-Id: Ia50f7512dfe35f37973440bba84e1b1b177a7bd3
/hardware/libhardware/modules/sensors/multihal.cpp
|
c384b1863768d424116c1bcc7f26f5764c35c330 |
|
11-Jun-2014 |
Nick Vaccaro <nvaccaro@google.com> |
Don't pass up bad sensor event packets to Sensor Services If an event packet is read containing an unknown sensor handle, don't pass it on to Sensor Services. Drop it on the floor instead as it's causing Sensor Services to crash. Moved read of queue size in sensors_poll_context_t::poll() to post queue mutex grab for safety. Bug: 15285345 Change-Id: I2ebc0f8591a1ae60f09bf9599b8321c5a3dfae69
/hardware/libhardware/modules/sensors/multihal.cpp
|
ad70dc482f044b1ef03ef1aa74b6e2c5a446d32b |
|
15-May-2014 |
Nick Vaccaro <nvaccaro@google.com> |
add /system/vendor/lib as valid search path for sensor HALs MultiHal will now accept sensor HALs listed in the hals.conf file that reside in either /system/lib/hw or /system/vendor/lib. Bug: 14994424 Change-Id: I13f17352b97c36b97cfbcee8c9b6a0d2e1ed6dc3
/hardware/libhardware/modules/sensors/multihal.cpp
|
d34ed32e06045c5a55b4d25247a98fa64c233bfe |
|
06-May-2014 |
Nick Vaccaro <nvaccaro@google.com> |
Change MultiHal API version to 1.1 Bug: 14451762 Change-Id: Id16fa71ae7382689ce141a92eb974b208e20327b
/hardware/libhardware/modules/sensors/multihal.cpp
|
f22e1c18081e4e7affc7f71f29b594d42a8f0e95 |
|
16-Apr-2014 |
Aaron Whyte <awhyte@google.com> |
Reduced most MultiHal ALOGI to ALOGV, reducing bootup logspam. Bug: 14084750 Change-Id: I099aaaa24caf0213af373b5a600616674349ff95
/hardware/libhardware/modules/sensors/multihal.cpp
|
4d7ac52d75b725ff25d68416747bfd43bbbc065d |
|
10-Apr-2014 |
Aaron Whyte <awhyte@google.com> |
Fixed multihal handling of nonexistent sensor handles. This prevents crashes and undefined behavior when someone calls sensor HAL methods with nonexistent handles. It also adds checks and warnings if bad sensor HALs provide garbage sensor handles in their sensor events. Tested by making sure pedometer and tilt still work. Bug: 13513595 Change-Id: Ie1489d3f2972bec82ee1c73189e532f6658d1eca
/hardware/libhardware/modules/sensors/multihal.cpp
|
93bf99647b0d33dfe12deecef828b6bcb568cafe |
|
17-Mar-2014 |
Nick Vaccaro <nvaccaro@google.com> |
Fix sensor multi hal crash when sub-HAL reports an error Fix a null pointer dereference bug that caused the multihal to crash in an endless loop continuously trying to open a sensor HAL when it reports back an error. Change-Id: I6d82e8fdd9acde53f378a5fb3dfdb02c39d7b433
/hardware/libhardware/modules/sensors/multihal.cpp
|
f84776247777ca8710eca8a911f607e10256cc7d |
|
17-Oct-2013 |
Mike Lockwood <lockwood@google.com> |
DO NOT MERGE: Sensor multi HAL Squashed commit of: Move sensors multi HAL to libhardware Added a SensorEventQueue, a circular buffer meant for reading with one thread and polling a subhal with another. The writing thread gets access to pointers in the internal buffer. This design avoids a memcpy on write when the multihal fetches subhal events using poll(). Unit-tests include multithreaded reading and writing lots of events, in random-sized chunks. This is not used by the multihal yet. That will be a different CL. MultiHal multithreaded polling Tests SensorEventQueue I/O when the queue is full. Reduced debug logging in multihal. deactivated multihal logspam, made warnings warnings, left critical startup info Removed unneeded linux/input.h includes, to fix Mac SDK build Change-Id: I1e35508949df98a1acef7a4a2d012eea87b4a5eb
/hardware/libhardware/modules/sensors/multihal.cpp
|