platform_hardware_libhardware/modules
Greg Kaiser 23c710e7b2 nfc_nci_example: Switch to C++
Our custom UNUSED_ARGUMENT macro was redundant with the sys/defs.h
__unused macro, so it needed to be removed.  But rather than
switch to __unused, we opt to switch this code to C++, so we can
comment out parameter names to silence compiler warnings about
unused arguments.

The switch to C++ requires casting the result of calloc.  We
also change our function argument indentation per our C++
style rules while we're in here.

Test: Compiled and confirmed no compiler warnings.

Change-Id: Ibd0eef7787843597917c3e0e71bdd772f6e9e876
2017-04-25 09:11:27 -07:00
..
audio resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
audio_remote_submix resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
camera resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 16:28:32 +00:00
consumerir resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
fingerprint resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
gralloc gralloc: fix dependencies 2017-04-18 02:01:48 +00:00
hwcomposer resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
input Move default HAL libraries to vendor 2017-03-07 11:28:32 +08:00
local_time resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
nfc nfc.default: remove unneeded dependency 2017-04-12 23:00:56 +00:00
nfc-nci nfc_nci_example: Switch to C++ 2017-04-25 09:11:27 -07:00
power Move default HAL libraries to vendor 2017-03-07 11:28:32 +08:00
radio Make double-open radio tuner failure more verbose. 2017-04-17 17:05:38 -07:00
sensors Build dynamic sensor host test only for linux host 2017-04-21 23:10:25 +00:00
soundtrigger resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
thermal Move thermal HAL to vendor partition 2017-02-27 13:11:33 +09:00
tv_input resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
usbaudio Move default HAL libraries to vendor 2017-03-07 11:28:32 +08:00
usbcamera resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
vehicle resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
vibrator resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp 2017-04-12 09:11:38 -07:00
vr Move default HAL libraries to vendor 2017-03-07 11:28:32 +08:00
Android.mk Add radio HAL stub to the build list; fix format warning. 2017-02-08 15:04:31 -08:00
README.android Move default HAL libraries to vendor 2017-03-07 11:28:32 +08:00

Default (and possibly architecture dependents) HAL modules go here. 


libhardware.so eventually should contain *just* the HAL hub
(hardware.c), everything in it should be rewritten as modules.

Modules are .so in /vendor/lib/hw/ and have a well defined naming
convention:

    /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.product.board>.so
    /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.board.platform>.so
    /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.arch>.so
    /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.default.so

They also have a well defined interface which lives in include/hardware/.

A module can have several variants: "default", "arch" and "board", and they're
loaded in the "board", "arch" and "default" order.
The source code for the "board" variant, usually lives under partners/...

The source code for "default" and "arch" would usually
live under hardware/modules/.