Commit graph

18 commits

Author SHA1 Message Date
Bob Badour
d7984ccf02 [LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware
Added SPDX-license-identifier-Apache-2.0 to:
  modules/audio/Android.bp
  modules/audio_remote_submix/Android.bp
  modules/audio_remote_submix/tests/Android.bp
  modules/camera/3_0/Android.bp
  modules/consumerir/Android.bp
  modules/fingerprint/Android.bp
  modules/gralloc/Android.mk
  modules/hwcomposer/Android.bp
  modules/input/evdev/Android.bp
  modules/local_time/Android.bp
  modules/nfc-nci/Android.bp
  modules/nfc/Android.bp
  modules/power/Android.bp
  modules/radio/Android.bp
  modules/sensors/Android.bp
  modules/sensors/Android.mk
  modules/sensors/dynamic_sensor/Android.bp
  modules/sensors/dynamic_sensor/HidUtils/Android.bp
  modules/soundtrigger/Android.bp
  modules/thermal/Android.bp
  modules/tv_input/Android.bp
  modules/usbaudio/Android.bp
  modules/usbcamera/Android.bp
  modules/vibrator/Android.bp
  modules/vr/Android.bp
  tests/camera3/Android.bp
  tests/fingerprint/Android.bp
  tests/hardware/Android.bp
  tests/hwc/Android.bp
  tests/input/evdev/Android.bp
  tests/nusensors/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  Android.bp
  modules/camera/3_4/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I28924363e6c478f5d0b465b63534c4efd041c770
2021-02-12 20:51:13 -08:00
Vineeta Srivastava
bc5b610f7b Strip sensors HAL module.
Bug: 134685292
Test: verified on a device that the library size reduces.
Change-Id: Ic22948a050f59b6ec0ae38dd89184f531d8b5c01
2019-06-12 08:34:24 -07:00
Dan Willemsen
86e247ae89 Convert to Android.bp
See build/soong/README.md for more information

Test: mmma hardware/libhardware
Change-Id: Ibb7e2af9d55f581e951d8996cea5e52cd0766b04
2017-12-27 11:05:29 -08:00
Chih-Hung Hsieh
66f312b91c Merge "Use -Werror in hardware/libhardware/modules"
am: 298fc4f6f5

Change-Id: I3c23dc4ce4609ec27402cae52b71ef79067c8e73
2017-12-06 18:42:24 +00:00
Chih-Hung Hsieh
1f601b1d7d Use -Werror in hardware/libhardware/modules
* Remove unused local variables.
* Remove or comment out unused static functions.
* Fix trivial bugs found by unused value warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I99389b883c89551850180d25241a35a40bb77b26
2017-12-01 10:37:19 -08:00
Xin Li
1d4b3d5f8f Merge commit '61f704a28f9d984eef9ee645a6e4e761130a5609' into HEAD
Change-Id: I7d27a79c89740aa041c42e1396e8bfc89bc1d4f4
2017-11-13 14:35:39 -08:00
Steven Moreland
210aed90a0 Remove use of PRODUCT_FULL_TREBLE from sensors.
This section of code uses PRODUCT_FULL_TREBLE, but
what PRODUCT_FULL_TREBLE means is too fuzzy, and
it is being broken up into multiple flags.

Also, this is an unnecessary restriction (HALs can
be implemented anyway people want).

Fixes: 67975863
Test: multiproduct_kati
Change-Id: I0de36d1ee23052c1fadcdf9a8b1ce85781dd88a0
2017-11-09 12:23:53 -08:00
Tri Vo
b12ae8ca55 Fix missing headers in libhardware/modules/sensors.
include headers missing headers from libstagefright_foundation and
libhardware.

Bug: 33241851
Test: cd hardware/libhardware/modules/sensors/ && mma -j64 -k
BOARD_VNDK_VERSION=current
Change-Id: Ie05de74207d7c31598d2cad55ea6b7b8acace0e4
2017-06-23 11:34:15 -07:00
Peng Xu
f14a550e7d 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
2017-05-04 18:12:15 -07:00
Po-Chien Hsueh
c535b2fded Move default HAL libraries to vendor
Libraries under /hardware/libhardware/modules should go to /vendor/.

These are conventionl HALs for default implementations, most of them
are not used.

Camera and thermal are already moved in other CLs.

Bug: 35907904
Test: Compiled and checked install path. Verified on Sailfish with
$ lsof | grep default.

Change-Id: Ibde574001c01cbfea014a20a0fbbb3265e6cdc8a
2017-03-07 11:28:32 +08:00
Nick Vaccaro
a889c0915a 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
2016-04-18 16:37:34 -07:00
Dan Willemsen
d0c1f170d6 Remove header from LOCAL_SRC_FILES
The build system does not use headers in LOCAL_SRC_FILES. To prevent
typos, it's now a warning to add something to LOCAL_SRC_FILES that
is not used.

Change-Id: Ieb6c6d383c04005077043d04f1b4985964ef0341
2016-02-01 19:33:33 -08:00
Satya Durga Srinivasu Prabhala
1fd36183bf 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
2015-07-08 12:32:34 -07:00
Ying Wang
23853ead7d Cleanup Obsolete LOCAL_PRELINK_MODULE.
Bug: 18675947
Change-Id: I62157cd4bfab0edb445dd6543eb47a981e642848
2014-12-16 12:33:37 -08:00
Dan Albert
6d604b127e Stop using stlport.
Bug: 15193147
Change-Id: I5d53338f239ba18a2b007b345ba050d1560220b4
2014-11-17 14:21:50 -08:00
Brian Carlstrom
8e3009721e Fix my-dir issue
Change-Id: I9c93a273328ac0c6e96f27870b890a16d18479a5
2014-06-30 15:15:45 -07:00
Aaron Whyte
ab6ec384c4 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.

Change-Id: I58418d69eebebeb96befb08ba3aed080f0f08551
2013-11-14 11:24:15 -08:00
Mike Lockwood
079083281e Move sensors multi HAL to libhardware
Change-Id: I12ba76291990264a2db61069f9610c40e96a9695
2013-11-14 11:21:46 -08:00