Commit graph

23 commits

Author SHA1 Message Date
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
4224d9ea16 Use -Werror in hardware/libhardware/tests
* Remove unused local variables.
* Suppress warning of unused template functions.
* Fix error of unused expression value.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I5a37c24f3be0f61b0ae4552e34b7311f561d499e
2017-12-04 13:32:48 -08:00
Elliott Hughes
d53231a511 Merge "C++14 is the default now."
am: c85724298e

Change-Id: I2f23db3ff90d9fcd541176af87bdff2b95cbf6ae
2017-08-23 23:57:37 +00:00
Elliott Hughes
b2b0d1f5e7 C++14 is the default now.
Bug: http://b/32019064
Test: builds
Change-Id: Iacc91f1150cdab2df40db3e33f5b57933ff79824
2017-08-23 14:34:16 -07:00
Mathias Agopian
d8108ab504 fix circular dependency libnativewindow <-> libui
Bug: 37647680, 37648355
Test: compile, manual
Change-Id: I5aaf07dd76d0d8f5294fb4133c7a0b5e6df3bebc
2017-05-05 14:08:40 -07:00
Peng Xu
08a4dd9e89 [sensors] Adding HAL API support for direct report mode
Added HAL function and constant definition for sensor direct
report mode. This new mode allows sensor hardware to communicate
with application directly via a lock-free queue based on shared
memory to achieve low latency and high report frequency.

Test: compiles and runs
Bug: 30985702
Change-Id: I79c73bcdcc45d43b5a236d65874e5071a589cecd
2017-01-12 12:19:12 -08:00
Dan Willemsen
74bb150529 Partially revert "Begin converting Android.mk to Android.bp"
Continue using Android.mk for hardware/libhardware/tests/hardware, until
some partial branches without system/media are fixed to define
SOONG_ALLOW_MISSING_DEPENDENCIES=true.

Change-Id: I82ec7b104ea610ea02a473ba6f5a067faba78052
2016-07-13 15:13:03 -07:00
Dan Willemsen
f51bf92061 Begin converting Android.mk to Android.bp
These modules have their dependencies satisfied.

Change-Id: I67986efd7478e477770bedac72ab35a407e3d06a
2016-07-12 23:34:37 -07:00
Andreas Gampe
1aa58f9ef9 Libhardware: Fix tests
Fix some warnings. Silence another. Less build noise.

Change-Id: Ibdbba093c2aca45343bfbe72c551b15d0f94e1b5
2015-12-16 15:53:35 -08:00
Eino-Ville Talvala
aee4782839 Camera: Add HAL module init method.
For use by Camera HAL libraries to perform one-time initialization
steps after the library is loaded.

Bug: 20016050
Change-Id: Ia01ae0eafcadece9124ac2cfcc3b1c3939352843
2015-04-15 17:26:13 -07:00
Ashutosh Joshi
5f0ebe67c5 Change struct offsets tests
Change the structure offset tests to account for the addition
of a new member in a sensors device structure.

Change-Id: I2ef7b82446b09b32f903346bbc9b857a99d80043
2015-04-14 16:24:10 -07:00
Chien-Yu Chen
301591776f camera_common: add torch mode APIs for flashlight
Add torch mode APIs to support flashlight without opening any
camera devices.

Bug: 2682206
Change-Id: Ida46bb878962caf305f3e97051b15e0465fe8c02
2015-01-15 10:35:07 -08:00
Greg Hackmann
6d37e6ac6d update struct-offset.cpp test for hwc 1.4
Change-Id: I882a1741ad473492d4acc58918a54d944ac382c3
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-07-24 13:27:07 -07:00
Dan Stoza
e83d10c1fc hwcomposer: Allow display configuration selection
Adds two functions to the HWC interface: one for querying the current
display configuration, and one for setting a new configuration. This
will enable DisplayManager to change the mode on demand.

Bug: 14320401
Change-Id: I556c509192b877b38b2103a78f937b3687f35546
2014-07-14 14:09:13 -07:00
Greg Hackmann
16c19a2c4a update struct-offset.cpp test for camera API 2.3
Change-Id: I2f63f9f5e567099ea9d0005317f7a745c5a63ca6
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-06-13 13:52:48 -07:00
Greg Hackmann
1b8191186e update struct-offset.cpp test for gralloc API 0.3
Change-Id: I6509ea0fda3a3d9b4aea83c5342a491993dc9c26
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-05-12 13:49:42 -07:00
Aravind Akella
6242f32a22 Define new wake_up sensors in sensors.h
i) Define WAKE_UP sensors.
     ii) Deprecate flags DRY_RUN and WAKE_UPON_FIFO_FULL.
    iii) Define maxDelay and isWakeUpSensor flag in sensor_t.

Bug: 13251067
Change-Id: Ic474d90d05459b06e93094856423f6645b4bf58e
2014-04-23 16:09:24 -07:00
Aravind Akella
54770a5d8a Remove offset checks for reserved fields in sensor_t and sensors_event_t.
This reverts commit ea676f9ae6.

Change-Id: I4c69b46f20fa3505e062363643711991e65d6cb4
2014-04-11 20:45:49 +00:00
Etienne Le Grand
ea676f9ae6 Revert "Remove offset checks for reserved fields in sensor_t and sensors_event_t."
This reverts commit 4db220ec85.

Change-Id: I61feb99c2024889e29e2b300ad4a4f5af1fdc282
2014-04-05 04:46:55 +00:00
Aravind Akella
4db220ec85 Remove offset checks for reserved fields in sensor_t and sensors_event_t.
Change-Id: I3dcc4b4204932a73503ede45b188142b03dcdd31
2014-04-04 18:26:34 -07:00
Rom Lemarchand
ca10795491 HAL test: statically test the last member of structs
Ensure the last member of structs is actually the one we expect

Change-Id: Ib623f1a5e09fd9b8d464456528a94742b0ccd00b
2013-11-22 17:47:53 -08:00
Rom Lemarchand
1b22d07594 HAL test: statically test the offsets of known struct members
Make sure the ABI doesn't get inadvertently broken by moving HAL interface
struct members around.

Change-Id: I058c963df002dc7c12eb24181d5db74c0c6fd38c
2013-11-22 17:47:52 -08:00
Rom Lemarchand
4c2aa4c223 HAL test: statically test the size of HAL structs
Ensure none of the HAL structs change size over time.
Issues might arise when making changes without taking the different
pointer sizes for specific architectures into account.

Change-Id: I63f00004a23f09b2f46df01e7c69296766a5d03f
2013-11-21 15:52:05 -08:00