Commit graph

247 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
Shawn Willden
937d61c8c4 Delete keymaster0
Test: Build
Change-Id: I55f713587ccd91a9ec76cc10f84ecb0109aad7ac
2020-12-04 11:52:34 -07:00
David Benjamin
4cb5d27ee8 Merge "Use bssl::UniquePtr."
am: 681881da02

Change-Id: I5a408faa1c06692e36a689d378ad17a2b013067e
2019-08-19 15:20:55 -07:00
Treehugger Robot
681881da02 Merge "Use bssl::UniquePtr." 2019-08-19 21:40:40 +00:00
Siarhei Vishniakou
14f4acea32 Merge "Remove custom timestamp from hw/libhw/input"
am: 6b14bd1a08

Change-Id: If9a4cf1d3ac09a1a1b853951f3af417669f10c54
2019-08-13 22:09:38 -07:00
Siarhei Vishniakou
1fc88e88f6 Remove custom timestamp from hw/libhw/input
These are no longer used by EventHub, and should not be carried forward.

Bug: 116601048
Test: presubmit only
Merged-In: I35129484d9945dcd4d291e0f2fac894e07c53c04
Change-Id: I35129484d9945dcd4d291e0f2fac894e07c53c04
2019-08-13 14:41:47 -05:00
David Benjamin
4af3eaf74e Use bssl::UniquePtr.
BoringSSL provides std::unique_ptr adapters now, so no need to
reimplement custom ones.

Test: mma
Change-Id: Ia611761e99551b9583b459a04ffa79de9fb08210
2019-08-08 13:05:23 -04:00
Valerie Hau
5543b1eb04 Add validateBufferSize and getTransportSize to gralloc.h
This reverts commit ae6d8a3e33.

Bug: 130669566
Test: build, boot
Change-Id: Icdb3b1e0534233995d5c0594feede6261033ec45
2019-04-24 22:44:42 +00:00
Valerie Hau
ae6d8a3e33 Revert "Add validateBufferSize and getTransportSize to gralloc.h"
This reverts commit 491378a3d4.

Reason for revert: Break Elfin
Bug: 130669566
Change-Id: I07c6883872ed9033ec5edbf27b0bd423ead39962
2019-04-23 22:55:18 +00:00
Valerie Hau
491378a3d4 Add validateBufferSize and getTransportSize to gralloc.h
Bug: 130669566
Test: build, boot

Change-Id: Ic141e1c6f16d0e3c1e81c2bc6c5170e30bc60f3f
2019-04-23 11:38:03 -07:00
Emilian Peev
d22172150f camera3: Add support for session parameter queries
Enable Hal to trigger or skip stream reconfiguration
based on session parameter updates.

Bug: 122609098
Test: Manual using application,
VtsHalCameraProviderV2_4TargetTest
--hal_service_instance=android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
--gtest_filter=CameraHidlTest.configureStreamsWithSessionParameters
Change-Id: Ie931e7cb7f46257276cc1796fccd301c85a90d85
2019-02-12 11:06:57 -08:00
Eino-Ville Talvala
3e11b21931 Merge "Camera: Add device state notification to camera_module" 2019-02-11 01:22:52 +00:00
Yin-Chia Yeh
875df2a3f4 Camera: add device 3.6 and buffer management APIs
Test: compile
Bug: 120986771
Change-Id: I1e73f70ba05a08e80dcb0c55bb4f54671f201746
2019-01-28 10:10:57 -08:00
Shuzhen Wang
fc590b6ee4 Camera: Add device state notification to camera_module
Test: Confirm logging of device state notifications occurs
Test: Camera continues to function when switched to 2.5
Change-Id: Iac431770be7659c0f419ba8b002a679f38ecaae2
2019-01-25 11:21:34 -08:00
Emilian Peev
8ca3c60f5c Camera: Add camera module support for stream combination query
Add necessary API to support stream combination query.
This will be used in case Hal supports the new 2.5 module
API.

Bug: 111593096
Test: Camera VTS
Change-Id: I916dcbd585e07be16f2f07da0076fb68039d6a00
2018-11-09 14:14:03 +00:00
Shuzhen Wang
a8caa6a6ed camera_common: Upgrade camera_module to 2.5
The new camera_module version adds function to query physical camera
static metadata.

Test: Camera CTS on Pixel devices
Bug: 79523700
Change-Id: I276f23808595b4c6389cb04b19c8c3658b2db967
2018-09-12 14:03:52 -07:00
Hongwei Wang
82e4dc70f4 Removes vehicle.default target
Bug: 72179784
Test: None

Change-Id: Ia96ef01c98565deb8920d1df2eee31149a2a9338
2018-01-25 15:58:11 -08: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
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
Chih-hung Hsieh
d67dcc5fc8 Merge "Use -Werror in hardware/libhardware"
am: d1a2b9f7c1

Change-Id: I3185f3d8f36c09ee61ebc3746d369a97c4f8a4c3
2017-10-12 01:27:36 +00:00
Chih-Hung Hsieh
235942389f 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
2017-10-04 11:09:30 -07:00
Andreas Gampe
70f96855a7 Merge "Keymaster: Move test to std::unique_ptr"
am: ce1ed06244

Change-Id: I351a99bfb33810876d2325c310325023965425fb
2017-10-02 21:16:25 +00:00
Andreas Gampe
e9e7c200d3 Keymaster: Move test to std::unique_ptr
In preparation for UniquePtr removal.

Test: mmma hardware/libhardware/tests/keymaster
Change-Id: I824f48128f7db037b8e26a42fa99b227913f32e2
2017-10-02 11:59:07 -07: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
Steven Moreland
7f35949414 Merge "hardware/libhardware: use proper nativehelper headers" am: dfaaefd5bf am: 70fe02e33d
am: 0254f831a0

Change-Id: I12cc3a83e8b97295180aa493b41699d4db3c98a5
2017-07-19 15:13:59 +00:00
Steven Moreland
70fe02e33d Merge "hardware/libhardware: use proper nativehelper headers"
am: dfaaefd5bf

Change-Id: Id4c967a27eb0a0d2846f76ddf718dfdd4b3d5660
2017-07-19 15:07:55 +00:00
Steven Moreland
1deb09d002 hardware/libhardware: use proper nativehelper headers
libnativeheader exports headers under nativeheader. These were
available before incorrectly as global headers in order to give
access to jni.h.

Test: modules using hardware/libhardware find headers
Bug: 63762847
Change-Id: I94305b7ab189ca0f3f89f4d87be2b113857f461f
2017-07-18 16:53:52 -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
Emilian Peev
65217c24b0 Camera: Remove Camera2 native tests
The native camera tests will no longer be supported by 'CameraService'
and will fail during compilation. VTS already has most of these
covered except for the burst test cases, which need to be rewritten.

Merged-In: I28dc3dd6e922fc7f4b21108de227d4d42695e2e0
Bug: 34392075
Test: Succesful build of hardware library
Change-Id: I28dc3dd6e922fc7f4b21108de227d4d42695e2e0
2017-04-27 10:36:55 +01:00
Emilian Peev
e241de50fa Camera: Remove Camera2 native tests
The native camera tests will no longer be supported by 'CameraService'
and will fail during compilation. VTS already has most of these
covered except for the burst test cases, which need to be rewritten.

Bug: 34392075
Test: Succesful build of hardware library
Change-Id: I28dc3dd6e922fc7f4b21108de227d4d42695e2e0
2017-04-27 08:54:02 +01:00
Mark Salyzyn
8774152335 resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp
am: 1ae7379baa

Change-Id: Id715cb96a71fc9e48e14ff2e6f9e4883402aa6f6
2017-04-12 16:28:32 +00:00
Mark Salyzyn
1ae7379baa resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Bug: 34250038
Change-Id: I4196a6d5a1365106643ac6c1548fd86faffead6f
2017-04-12 09:11:38 -07:00
Mark Salyzyn
d88dfe8607 libhardware: deprecate cutils/log.h
Replace cutils/log.h with log/log.h. Sort headers. Minimize conflicts.
Add missing required headers.

Test: compile
Bug: 34250038
Change-Id: I5c0f231cbfed90b73e0538c9d32ad3226c7cc5e4
2017-04-11 10:50:06 -07:00
Emilian Peev
3be4c0ccaf Merge "Camera tests: Include additional camera metadata header" into oc-dev am: 3623fbace2
am: f72a556a66

Change-Id: I3dd485f0e392a2410e493d4b02e56d751c33ffc3
2017-04-06 14:14:46 +00:00
Emilian Peev
1cc12b856b Camera tests: Include additional camera metadata header
Bug: 34275821
Test: adb shell /data/nativetest/cameraservice_test/cameraservice_test
--gtest_filter=CameraProviderManagerTest.MultipleVendorTagTest
Complete Camera/Camera2 CTS tests
Change-Id: Ia78e3003ea8433b31388a6451c0b6e37fda64275
2017-04-05 17:03:22 +00:00
Dan Shi
089ad62ceb Add test config to camera2_test
Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
Change-Id: Iac690291dc7797237feb3526b02c53331a117915
2017-03-27 23:15:23 -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
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
Eino-Ville Talvala
18782aa54e Camera: Update for service changes, part 2
- Indicate that HALv3.0 and v3.1 are no longer supported
- Update tests that reuse camera service plumbing to match
  service code changes

Test: Builds
Bug: 32991422
Change-Id: I13b800aea6f65270a2a621bd8a61705160fb2dc8
2017-01-05 15:23:54 -08:00
Eino-Ville Talvala
3462b08148 Camera tests: Update for service changes
Test: Builds
Bug: 32991422
Change-Id: I2cdae7f3541bb01be000c74fc162329ce768a899
2017-01-05 15:22:31 -08:00
Yunlian Jiang
946b59f7e6 Merge "fix a memory leak." am: a24fcc412f am: da95482f52 am: e936ee515c
am: 22698fc181

Change-Id: I823d8c25c51e98b05cdb53349e34dc135ea4bde2
2016-11-23 04:33:42 +00:00
Glenn Kasten
b7f11aaee6 Merge "Remove executable bit from source file" 2016-11-10 18:52:52 +00:00
Glenn Kasten
36010722e0 Remove executable bit from source file
Test: builds OK
Change-Id: Ib5a3926386bc827f75e354fa752e5d5983b37110
2016-11-09 07:44:30 -08:00
Yunlian Jiang
fe562510bc fix a memory leak.
This fixes a memory leak of pointer 'ascii_out'

BUG: None
Test: The warning is gone.
Change-Id: If3caa4c38dc9df377f1c06abb1ed9c963c9b353d
2016-11-08 17:13:03 -08:00
Yunlian Jiang
ce3cd0cf4a libhardware: fix a use after free warning.
This fixes the warning that mModule is used
after being freed.

BUG: None
Test: The warning is gone.
Change-Id: I8d081b544f0bcd69559a10dd3e925ce5cf065c28
2016-11-08 15:20:20 -08:00
Dan Albert
b55da5dd3f Stop hard coding gmock things.
The headers are exported.

Change-Id: I72f8dda3f441bc72accce3c9e94a7160fcefc54c
Test: mma
(cherry picked from commit a26bcd5424)
2016-09-06 11:07:26 -07:00
Dan Albert
a26bcd5424 Stop hard coding gmock things.
The headers are exported.

Change-Id: I72f8dda3f441bc72accce3c9e94a7160fcefc54c
Test: mma
2016-08-16 12:01:43 -07:00
Chih-hung Hsieh
e7ade1f3b9 Merge "Fix clang-tidy performance warnings in libhardware." am: 1c1e311e06 am: 5f366ef448 am: 90383959ac
am: 31a6b95815

Change-Id: I6dcc98594a1f0861fa4af489eeb824562ad16bb4
2016-08-04 22:17:47 +00:00
Chih-Hung Hsieh
5f366ef448 Merge "Fix clang-tidy performance warnings in libhardware."
am: 1c1e311e06

Change-Id: I00ee76484a102dc1577566fe370af16f9283fc3e
2016-08-04 22:03:49 +00:00