Commit graph

4202 commits

Author SHA1 Message Date
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
johnshamoon
4a38e2b53a Merge "Fix build by adding bt_types to bluetooth.h (2/2)"
am: 7de0e9ceae

Change-Id: Ic02b634d1e77f2ae73b68b625e4cc9fb2cff8706
2017-07-21 23:17:31 +00:00
Treehugger Robot
7de0e9ceae Merge "Fix build by adding bt_types to bluetooth.h (2/2)" 2017-07-21 23:10:30 +00:00
johnshamoon
181518b0bf Fix build by adding bt_types to bluetooth.h (2/2)
Allow bt_types to be included as a shared or static library.

Test: Compiles
Change-Id: Idabc1da73f1d735ea874942a08ebfcd655a7833b
2017-07-21 10:45:03 -07:00
Steven Moreland
70fe02e33d Merge "hardware/libhardware: use proper nativehelper headers"
am: dfaaefd5bf

Change-Id: Id4c967a27eb0a0d2846f76ddf718dfdd4b3d5660
2017-07-19 15:07:55 +00:00
Treehugger Robot
dfaaefd5bf Merge "hardware/libhardware: use proper nativehelper headers" 2017-07-19 15:03:49 +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
Jack He
e046029d08 Merge "GATT: Expose opportunistic client API to Java"
am: 3fca77cec8

Change-Id: I2f41880853b910857a96af9b6db1be97ef8b64af
2017-07-11 20:23:58 +00:00
Treehugger Robot
3fca77cec8 Merge "GATT: Expose opportunistic client API to Java" 2017-07-11 20:15:17 +00:00
Jack He
56f19a1f11 GATT: Expose opportunistic client API to Java
* 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
2017-07-07 19:07:54 -07:00
Android Build Merger (Role)
2063592cd2 Merge "Merge "Make RawAddress into a class (2/3)" am: 31e94c57e9" into stage-aosp-master 2017-07-07 01:37:41 +00:00
Jakub Pawlowski
220751b48f Merge "Make RawAddress into a class (2/3)"
am: 31e94c57e9

Change-Id: I37a9727fb3851052b9eab2e1a8fad9a7569d6986
2017-07-07 01:36:15 +00:00
Jakub Pawlowski
d188655a38 Merge "Make RawAddress into a class (2/3)"
am: 31e94c57e9

Change-Id: I7991262e2c1b8b1c48e6eda5373ac608f0ed845b
2017-07-07 01:34:50 +00:00
Treehugger Robot
31e94c57e9 Merge "Make RawAddress into a class (2/3)" 2017-07-07 01:29:30 +00:00
Jakub Pawlowski
bec70c64ce Make RawAddress into a class (2/3)
* 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
2017-07-06 22:39:27 +00:00
Steven Moreland
4a78017b77 Merge "Add some additional owners."
am: 2ff30cbc0f

Change-Id: Icdd0ae7b141c7fd161aa4eff082173de3a5ef6cf
2017-07-05 23:33:06 +00:00
Treehugger Robot
2ff30cbc0f Merge "Add some additional owners." 2017-07-05 23:30:50 +00:00
Steven Moreland
418f58bdd8 Add some additional owners.
Because CLs can't currently be merged and the original list was
too restrictive.

Test: pass
Change-Id: Ic9616536c47edf16c2c10061af1d396f1978c739
2017-07-05 11:00:30 -07:00
Jakub Pawlowski
04551f4036 Merge "Rename bt_bdaddr_t into RawAddress (1/3)"
am: f12e85e1d3

Change-Id: I9a9254552a6904b1fbcbd91dedcc065220c975c7
2017-06-29 07:09:16 +00:00
Jakub Pawlowski
f12e85e1d3 Merge "Rename bt_bdaddr_t into RawAddress (1/3)" 2017-06-29 07:02:43 +00:00
Jakub Pawlowski
5a852006a6 Rename bt_bdaddr_t into RawAddress (1/3)
Test: compilation test
Change-Id: I80288013ce1c75538c45949815660cbb66ffed2e
2017-06-28 22:32:03 +00:00
Jiyong Park
0934df77a5 Merge "libhardware_headers export headers from libcutils"
am: 4ba2ac5844

Change-Id: I367e5101f46405ac4e105f6c2c7f6a3e1d55c4df
2017-06-27 02:23:17 +00:00
Treehugger Robot
4ba2ac5844 Merge "libhardware_headers export headers from libcutils" 2017-06-27 02:18:56 +00:00
Jiyong Park
9bd43bd4f6 libhardware_headers export headers from libcutils
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
2017-06-26 13:31:52 +09:00
Jakub Pawlowski
33972ecee0 Merge "Use references in GATT client/server API (1/3)" am: 3e175f653f
am: 681c247fd2

Change-Id: Ic519bf97121259a6c9bf81eb4e35e8a5e7ea1e07
2017-06-21 23:58:19 +00:00
Jakub Pawlowski
681c247fd2 Merge "Use references in GATT client/server API (1/3)"
am: 3e175f653f

Change-Id: I8481ff6d86fdad71c5d7fd692c044607b245f17e
2017-06-21 23:55:47 +00:00
Jakub Pawlowski
3e175f653f Merge "Use references in GATT client/server API (1/3)" 2017-06-21 23:48:40 +00:00
Jakub Pawlowski
37cb8d7610 Use references in GATT client/server API (1/3)
This allows to get rid of some unnecessary null checks, and guarantee
proper values are passed.

Test: compilation test
Change-Id: Id5508477809a5c0b038eed71403a8bf93bd03203
2017-06-21 09:55:56 -07:00
Fabien Sanglard
c62a6f60b9 Add Skip Validate capability to hwc2 interface
am: 4ab926a39e

Change-Id: Ibbbfa07349a16fd26949e86d0040c81a8238a2d8
2017-06-20 01:43:07 +00:00
Fabien Sanglard
4ab926a39e Add Skip Validate capability to hwc2 interface
Change-Id: I716100780f820574440abc5a247ea7071b630113
2017-06-19 23:22:23 +00:00
Avish Shah
379a7de04a Merge "Bluetooth 5: Update LE2M implementation through DM (2/3)" am: 1cde649b04
am: 4f60242707

Change-Id: Ia893070f8f48cea328fd83c6a6ea39e19d5e512b
2017-06-15 17:58:00 +00:00
Avish Shah
4f60242707 Merge "Bluetooth 5: Update LE2M implementation through DM (2/3)"
am: 1cde649b04

Change-Id: I60e85a283f12c45566d92a090a6d6a7df78d4fba
2017-06-15 17:53:44 +00:00
Treehugger Robot
1cde649b04 Merge "Bluetooth 5: Update LE2M implementation through DM (2/3)" 2017-06-15 17:50:30 +00:00
Avish Shah
21227dfc6e Bluetooth 5: Update LE2M implementation through DM (2/3)
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
2017-06-14 12:26:01 +05:30
Chih-hung Hsieh
1d46ce1894 Merge "Add OWNERS in hardware/libhardware" am: 1d20610c68
am: 92b7f0c845

Change-Id: I8c207177282bdc214ebed49250566b0d8750a6fc
2017-06-13 16:34:42 +00:00
Chih-hung Hsieh
92b7f0c845 Merge "Add OWNERS in hardware/libhardware"
am: 1d20610c68

Change-Id: If9fd89a47888331f77a0184b699d3b45a250d7a4
2017-06-13 16:30:10 +00:00
Chih-hung Hsieh
1d20610c68 Merge "Add OWNERS in hardware/libhardware" 2017-06-13 16:24:10 +00:00
Chih-Hung Hsieh
792f386ae6 Add OWNERS in hardware/libhardware
* 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
2017-06-12 13:54:00 -07:00
Tomasz Wasilczyk
b576a165fa resolve merge conflicts of a9e037ed to oc-dev-plus-aosp
Test: it builds on AOSP and master
Change-Id: Ic48edc2081579656be43f92ab20ec7a9720595bf
2017-06-09 15:46:42 -07:00
Tomasz Wasilczyk
a9e037ed33 Merge "tune command execute time to resolve FPE_INTDIV error"
am: e2adb6d923

Change-Id: I30af4855951a097d9b98c60179ccde01ce703e87
2017-06-09 22:31:59 +00:00
Tomasz Wasilczyk
e2adb6d923 Merge "tune command execute time to resolve FPE_INTDIV error" 2017-06-09 22:25:35 +00:00
Zach Johnson
3bb112c340 Merge "Provide HFP API to set AG SCO policy" am: 2d2b5fb5bc
am: 686ddad419

Change-Id: Iec89be852a10c8176e14204bb89e649a93e1cf3f
2017-06-08 18:39:07 +00:00
Zach Johnson
686ddad419 Merge "Provide HFP API to set AG SCO policy"
am: 2d2b5fb5bc

Change-Id: I35b729c037574bf223580aae7beac34f7848bab8
2017-06-08 18:36:07 +00:00
Treehugger Robot
2d2b5fb5bc Merge "Provide HFP API to set AG SCO policy" 2017-06-08 18:31:15 +00:00
Zach Johnson
9a773fe3e5 Provide HFP API to set AG SCO policy
Bug: 32958838
Test: manual
Change-Id: I744c964e85dc78347a5d9bd69c1acc970774ecb6
2017-06-07 17:37:48 -07:00
Justin Yun
c35bdcf5ef libhardware: load with dlopen if the library is in system.
am: a6ff1a4698

Change-Id: I234995fca08e058318c500314cbed230cdaeb480
2017-05-31 07:09:20 +00:00
Justin Yun
a6ff1a4698 libhardware: load with dlopen if the library is in system.
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)
2017-05-26 11:45:51 +09:00
Jack He
d1451e1d33 MCAP: Add test interface ID (1/2)
am: 5aa83c0c09

Change-Id: I59e93d00d5a8131dd0a4403029cd076737caca58
2017-05-25 23:15:30 +00:00
Jack He
5aa83c0c09 MCAP: Add test interface ID (1/2)
* 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)
2017-05-24 14:50:03 -07:00
Jack He
e2e64dff91 Merge "MCAP: Add test interface ID (1/2)" am: 9dbf14a312 am: d7d66b117d
am: 1495e0996e

Change-Id: I5dd6875e8ead5733bebea25daa2c7fb97f5b81e6
2017-05-24 20:48:18 +00:00