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
* Opportunistic GATT connection allows system service to subscribe to
characteristic notifications without holding the BLE connection
* Exposing this flag to Java allows Android applications to use it
Bug: 35874078
Test: make, test on Android App
Change-Id: If4683b2281d743dacdece6b08db49ec539af3b18
* Add libbluetooth-types - library containing types implementation, that
is common between stystem/bt and packages/apps/Bluetooth. It must be
included in every project using btif interface.
* Put Raw Address implementation into libbluetooth-types
* Unify all "to/from string" helper methods into ToString and FromString
* bd_addr_empty -> RawAddress::kEmpty
* bd_addr_any -> RawAddress::kAny
Also fix leaks in jni str2addr by adding ReleaseStringUTFChars
Test: types_unittest
Change-Id: I2a0eb8d50ff777f494eed26bd58b5c502d2a0716
Merged-In: I2a0eb8d50ff777f494eed26bd58b5c502d2a0716
Some headers of libhardware are using headers from libcutils.
Bug: 33241851
Test: BOARD_VNDK_VERSION=current m -j successful with aosp_arm target
Change-Id: I649056285ced1cd5da4aba6a19b25e22c43c8621
This allows to get rid of some unnecessary null checks, and guarantee
proper values are passed.
Test: compilation test
Change-Id: Id5508477809a5c0b038eed71403a8bf93bd03203
This patch moves LE2M implementation to the DM instead of tied to GATT.
Below are the reasons to make this change:
1) Per link setting usually be done under DM, such as link policy etc.
2) In the future, if LECOC is coming to use in more profile/apps,
we can not rely on GATT API for these. Separate API should be required.
3) we could have multiple logical GATT user on top of the same link.
4) Also this will avoid duplicating all the APIs on GATTC and GATTS.
Bug: 37586939
Test: manual
Change-Id: I71579d6160fb16fb891e75cca64fe3cf9745116a
* Owners are selected from top CL approvals or owners.
They will be suggested to review/approve future CLs.
* OWNERS files are recognized by the new find-owners plugin, see .md files in
https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I94e4b13782e32b185eeb499d620a350239bed6b5
Originally, it is not allowed to open non-sphal libraries if the device
has sphal namespace. However, some system processes are still using
libhardware to load non-sphal libraries. Since it has no harm to allow
system libraries to be loaded by libhardware, this patch loads the
library from the default namespace if the library is located in system
partition.
Bug: 38435840
Test: sailfish builds and boots
Change-Id: I206da11a2656559fcd0995d32dbd73621a79a683
Merged-In: I206da11a2656559fcd0995d32dbd73621a79a683
(cherry picked from commit c571709b28)
* Some PTS tests requires protocols and profiles to be accessed at stack
API level
* This CL creates an ID for the MCAP protocol
* An application must be able to reference stack headers in order to use
such an interface
Bug: 37867299
Test: make, no user visible effect
Change-Id: Ice654321cdeb11f93b1c8fc4a0753fe86bd82a56
(cherry picked from commit 9213f5b043)