OSDN Git Service
Jack He [Thu, 3 Jan 2019 18:59:32 +0000 (10:59 -0800)]
Remove BTM_SCO_INCLUDED flag am:
050ef35fde am:
e83786389b
am:
db8e271d53
Change-Id: I8462da3a204f2b6cdbed1e36f9f111caf4300647
Jack He [Thu, 3 Jan 2019 18:55:23 +0000 (10:55 -0800)]
Remove BTM_SCO_INCLUDED flag am:
050ef35fde
am:
e83786389b
Change-Id: Ic89d66af8c5a48b6a0b68daec4d9c01df919807a
Jack He [Thu, 3 Jan 2019 18:52:18 +0000 (10:52 -0800)]
Remove BTM_SCO_INCLUDED flag
am:
050ef35fde
Change-Id: Id88e1c8b8e75764ede1b4d869ebaf1af4fb8ff8a
Jack He [Thu, 3 Jan 2019 01:38:53 +0000 (17:38 -0800)]
Remove BTM_SCO_INCLUDED flag
* Instead of removing SCO related code during compilation, platforms
should chose not to call SCO related methods when SCO is not supported
* For example, platforms can choose to not initialize HFP to avoid using
SCO commands
* This CL removes BTM_SCO_INCLUDED compile time flag to simplify code
flow and improve readability
Bug:
122279647
Test: mm -j40; run Bluetooth stack and make phone call
Change-Id: I67d290839091f66c289a428496304c8b3e1dbe21
Jakub Pawlowski [Mon, 31 Dec 2018 15:34:10 +0000 (07:34 -0800)]
Remove connection_manager from gatt namespace am:
f20d94aeb8 am:
bd90b8cc83
am:
a91dc2b560
Change-Id: I388e7e2b8495e62e06778c62e3aabcaf1c2c39ca
Jakub Pawlowski [Mon, 31 Dec 2018 15:25:08 +0000 (07:25 -0800)]
Remove connection_manager from gatt namespace am:
f20d94aeb8
am:
bd90b8cc83
Change-Id: Ic9df6a5e09c8643c890d8bc3c76d036444e368de
Jakub Pawlowski [Mon, 31 Dec 2018 15:21:04 +0000 (07:21 -0800)]
Remove connection_manager from gatt namespace
am:
f20d94aeb8
Change-Id: I04df3ae34e992e68297e3704000d7f30c176bcad
Jakub Pawlowski [Fri, 28 Dec 2018 18:03:09 +0000 (19:03 +0100)]
Remove connection_manager from gatt namespace
connection_manager handles more than GATT. Celanup naming.
Bug:
112827989
Test: compilation
Change-Id: Id5fdfacb12921cff04204cf2589f73a7c6a0d01f
Jakub Pawlowski [Fri, 28 Dec 2018 21:43:00 +0000 (13:43 -0800)]
Get rid of is_ble_connecting and ble_connecting_bda am:
23572544ba am:
5350332903
am:
f6209e2a25
Change-Id: I78b86ee35f844524dfa70bdd4b2f3dda0e063ac5
Jakub Pawlowski [Fri, 28 Dec 2018 21:42:37 +0000 (13:42 -0800)]
Use conneciton_manager for all LE connection establishment am:
ada2b3ee07 am:
3a6c324a44
am:
affbb9a797
Change-Id: I99751d311e99aff8803ecba153061dec76b9ac02
Jakub Pawlowski [Fri, 28 Dec 2018 21:42:14 +0000 (13:42 -0800)]
Get rid of direct connect queueing logic am:
672d7b1f37 am:
414db3af86
am:
bc497038a9
Change-Id: I28f457eb38479bd4a13492dadd906983b7e56a3a
Jakub Pawlowski [Fri, 28 Dec 2018 21:29:38 +0000 (13:29 -0800)]
Get rid of is_ble_connecting and ble_connecting_bda am:
23572544ba
am:
5350332903
Change-Id: I5bae17dcc15a1ab3947b60bdf28ffdc390efed98
Jakub Pawlowski [Fri, 28 Dec 2018 21:29:19 +0000 (13:29 -0800)]
Use conneciton_manager for all LE connection establishment am:
ada2b3ee07
am:
3a6c324a44
Change-Id: If96ba1fd4127f97c593dcd768573181c85c5f7db
Jakub Pawlowski [Fri, 28 Dec 2018 21:29:01 +0000 (13:29 -0800)]
Get rid of direct connect queueing logic am:
672d7b1f37
am:
414db3af86
Change-Id: I7b365d7ff3cb2dc6f3b209465c977a7dff8ef1a6
Jakub Pawlowski [Fri, 28 Dec 2018 21:25:05 +0000 (13:25 -0800)]
Get rid of is_ble_connecting and ble_connecting_bda
am:
23572544ba
Change-Id: Ib22fc7e693d9fdf31273b19c0a102aaf8c98bb38
Jakub Pawlowski [Fri, 28 Dec 2018 21:24:53 +0000 (13:24 -0800)]
Use conneciton_manager for all LE connection establishment
am:
ada2b3ee07
Change-Id: I3fd558723f18737fffb0fa7270c306cfd8aed5de
Jakub Pawlowski [Fri, 28 Dec 2018 21:24:41 +0000 (13:24 -0800)]
Get rid of direct connect queueing logic
am:
672d7b1f37
Change-Id: I43fd40bf6cf683843cbae944211b0a6b9430fb01
Jakub Pawlowski [Thu, 27 Dec 2018 20:02:13 +0000 (21:02 +0100)]
Get rid of is_ble_connecting and ble_connecting_bda
These variables make no sense any more, as we might be attempting
multiple connections at the same time.
Test: sl4a GattConnectTest, manual bonding test
Bug:
112827989
Change-Id: I7e1d01e8d80383b49ff9c20fb3758cef03c52882
Jakub Pawlowski [Wed, 19 Dec 2018 21:23:47 +0000 (22:23 +0100)]
Use conneciton_manager for all LE connection establishment
Test: sl4a GattConnectTest, manual bonding test
Bug:
112827989
Change-Id: I55878e03d268c43002e22ce4ebfbf0e334523882
Jakub Pawlowski [Mon, 17 Dec 2018 12:59:54 +0000 (13:59 +0100)]
Get rid of direct connect queueing logic
Instead of queueing requests, we should use whitelist to process the
requests simulteanously.
This patch does remove the queueing logic, succeeding patch will add the
logic to schedule through whitelist.
Test: compilation
Bug:
112827989
Change-Id: Ia7132812f704658ecb6919e52c70b291e6874660
TreeHugger Robot [Fri, 28 Dec 2018 01:34:25 +0000 (01:34 +0000)]
Merge "Fix OOB caused by invalid SMP packet length"
Jakub Pawlowski [Fri, 21 Dec 2018 22:39:30 +0000 (14:39 -0800)]
Call btm_ble_set_conn_st before on_connection_complete am:
a22a78f3b3 am:
e5db0bb3b3
am:
7f4a7a4870
Change-Id: I7cdf9fa0b435c35f74f3fbadde1bbd0b814d145b
Jakub Pawlowski [Fri, 21 Dec 2018 22:27:22 +0000 (14:27 -0800)]
Call btm_ble_set_conn_st before on_connection_complete am:
a22a78f3b3
am:
e5db0bb3b3
Change-Id: Ida0c13dbf208cc70b32b99ca98ba5636211f6f8c
Jakub Pawlowski [Fri, 21 Dec 2018 22:23:16 +0000 (14:23 -0800)]
Call btm_ble_set_conn_st before on_connection_complete
am:
a22a78f3b3
Change-Id: I97d4f45aa54e6798204e0227c69ac91621294501
Jakub Pawlowski [Fri, 21 Dec 2018 16:16:01 +0000 (17:16 +0100)]
Call btm_ble_set_conn_st before on_connection_complete
on_connection_complete can trigger BTM_WhiteListRemove, which sends
"LE Create Connection Cancel" if the connection is pending.
Make sure connection state is updated before calling on_connection_complete.
Otherwise we send an unnecessary "LE Create Connection Cancel" request.
Bug:
112827989
Test: establish Direct connection with at least one device in the
background connection procedure. Verify HCI snoop log content
Change-Id: I1b8532f4e58d5ab62b471ce0bde6c48640c83ff7
Jakub Pawlowski [Thu, 20 Dec 2018 21:21:39 +0000 (13:21 -0800)]
Merge code in scanner/advertiser connection complete handler am:
c8dfd0fb06 am:
22f2cc7739
am:
c568d6b495
Change-Id: Ib2d744fe40a4e32a13cf5e3afe46b7d4e10c0aa2
Jakub Pawlowski [Thu, 20 Dec 2018 21:21:16 +0000 (13:21 -0800)]
Unify code in scanner/advertiser connection complete handler. am:
b295c481dd am:
a04440ddf8
am:
b03d620f24
Change-Id: I4aaaf8e82c48c4b79a0d1afd0a6b2d04527f54d7
Jakub Pawlowski [Thu, 20 Dec 2018 21:16:23 +0000 (13:16 -0800)]
Merge code in scanner/advertiser connection complete handler am:
c8dfd0fb06
am:
22f2cc7739
Change-Id: I28522473d8da04397996038695685cf67322fd30
Jakub Pawlowski [Thu, 20 Dec 2018 21:16:03 +0000 (13:16 -0800)]
Unify code in scanner/advertiser connection complete handler. am:
b295c481dd
am:
a04440ddf8
Change-Id: I9421fc05a5b8e82894b61a96e275bb59b677f048
Jakub Pawlowski [Thu, 20 Dec 2018 21:12:05 +0000 (13:12 -0800)]
Merge code in scanner/advertiser connection complete handler
am:
c8dfd0fb06
Change-Id: Ibaed9f65f68cedf670ac4f6d9c0f19c36ea45243
Jakub Pawlowski [Thu, 20 Dec 2018 21:11:52 +0000 (13:11 -0800)]
Unify code in scanner/advertiser connection complete handler.
am:
b295c481dd
Change-Id: I000cfd81b6caace4b6046b9a6757c4fc589cb0a4
Jakub Pawlowski [Thu, 20 Dec 2018 18:42:40 +0000 (10:42 -0800)]
Split l2cu_create_conn into two separate, transport-specific functions am:
50a0ec23d7 am:
a29f1fa4d0
am:
9138cf3c52
Change-Id: Iffd3a01b97f5d36c367904c5026a9abdfbf21474
Jakub Pawlowski [Thu, 20 Dec 2018 18:38:33 +0000 (10:38 -0800)]
Split l2cu_create_conn into two separate, transport-specific functions am:
50a0ec23d7
am:
a29f1fa4d0
Change-Id: I0b87bb407970887c306ce7a5fba64c2abea43b0a
Jakub Pawlowski [Thu, 20 Dec 2018 18:34:22 +0000 (10:34 -0800)]
Split l2cu_create_conn into two separate, transport-specific functions
am:
50a0ec23d7
Change-Id: I01f507afca510252ee1c294e953506b3301a9637
Jakub Pawlowski [Fri, 14 Dec 2018 18:53:59 +0000 (19:53 +0100)]
Merge code in scanner/advertiser connection complete handler
Test: sl4a GattConnectTest
Bug:
112827989
Change-Id: I860693c11c263643858cfa0b4e4deb6a9f231cdd
Jakub Pawlowski [Fri, 14 Dec 2018 18:38:44 +0000 (19:38 +0100)]
Unify code in scanner/advertiser connection complete handler.
btm_ble_set_conn_st is called in every possible scenario of
l2cble_scanner_conn_comp. Call it at start, instead of before each
return.
Test: sl4a GattConnectTest
Bug:
112827989
Change-Id: I969fc59b934dc1c7a52be00741fdf38402545b26
Jakub Pawlowski [Fri, 14 Dec 2018 14:15:54 +0000 (15:15 +0100)]
Split l2cu_create_conn into two separate, transport-specific functions
There is no common logic between LE and BR/EDR paths.
Test: compilation
Bug:
112827989
Change-Id: I507d3a0d8efa0e4936b22722a9c1cc846e0be3bd
Ted Wang [Thu, 20 Dec 2018 06:42:39 +0000 (22:42 -0800)]
Merge "Fix mtu assignment with correct value" am:
55c0aa19be am:
3aab6fc66f
am:
4b3ce73d6e
Change-Id: Idb2f25947b7a42f2cde8941e262f802649c15f8d
Ted Wang [Thu, 20 Dec 2018 06:37:33 +0000 (22:37 -0800)]
Merge "Fix mtu assignment with correct value" am:
55c0aa19be
am:
3aab6fc66f
Change-Id: Ibe77d9c0fa39090520e82bb10b5cde5f068375f2
Ted Wang [Thu, 20 Dec 2018 06:31:27 +0000 (22:31 -0800)]
Merge "Fix mtu assignment with correct value"
am:
55c0aa19be
Change-Id: I3cc2bed544165ee45dbf7646ab13ac4258ce2ab2
Ted Wang [Thu, 20 Dec 2018 06:16:47 +0000 (06:16 +0000)]
Merge "Fix mtu assignment with correct value"
Nick Kralevich [Thu, 20 Dec 2018 00:34:11 +0000 (16:34 -0800)]
Merge "use epoll_create1" am:
b0cbd21cb2 am:
27cbccab96
am:
779e770561
Change-Id: If2286a543dd5c7f878b0dd2b5573e8f232aaee6e
Nick Kralevich [Thu, 20 Dec 2018 00:23:14 +0000 (16:23 -0800)]
Merge "use epoll_create1" am:
b0cbd21cb2
am:
27cbccab96
Change-Id: Ice00312c9a10cde938e9af9198301e80a607cd00
Nick Kralevich [Thu, 20 Dec 2018 00:12:10 +0000 (16:12 -0800)]
Merge "use epoll_create1"
am:
b0cbd21cb2
Change-Id: Ie4a8c3462707aedc9676340ae06487f615e32776
Treehugger Robot [Wed, 19 Dec 2018 23:51:28 +0000 (23:51 +0000)]
Merge "use epoll_create1"
Hansong Zhang [Wed, 19 Dec 2018 23:22:43 +0000 (15:22 -0800)]
Enable BLE background connection when stack is started am:
f91d55816c am:
5f55b943ec
am:
7ff44a3774
Change-Id: I68c80152e30b332cb028eff3d09b361416016de2
Hansong Zhang [Wed, 19 Dec 2018 22:28:12 +0000 (14:28 -0800)]
Enable BLE background connection when stack is started am:
f91d55816c
am:
5f55b943ec
Change-Id: I4ae9a780c3eaaa80aa6531963e26c0d6cd624c8d
Hansong Zhang [Wed, 19 Dec 2018 22:09:47 +0000 (14:09 -0800)]
Enable BLE background connection when stack is started
am:
f91d55816c
Change-Id: Idc622903ea84149956bcbb13daa0903ab8396e78
Hansong Zhang [Tue, 17 Jul 2018 23:24:24 +0000 (16:24 -0700)]
Enable BLE background connection when stack is started
Remove variable btm_cb.ble_ctr_cb.bg_conn_type. We can enable the
background mode when the Bluetooth stack is started and don't have
to wait until the first background connection request from HID
Device/Hearing Aid/GATT. As soon as we add the first device to white
list, the stack will send HCI Create Connection (White List) command.
Test: manual. Bond to a BLE mouse and turn off/on Bluetooth. Also test
with initiating another direct/white list connection while another white
list connection is pending
Bug:
111562702
Bug:
112827989
Change-Id: I82a476489d181d17aa1c1da8202df1be76928d77
Jakub Pawlowski [Wed, 19 Dec 2018 19:43:45 +0000 (11:43 -0800)]
Revert "Remove redundant GATT_StartIf" am:
b22ea41685 am:
9c0c2868cd
am:
9252b3390a
Change-Id: I9119c54fc0da3a9d8c36507e087cb967a2fbe845
Jakub Pawlowski [Wed, 19 Dec 2018 19:28:23 +0000 (11:28 -0800)]
Revert "Remove redundant GATT_StartIf" am:
b22ea41685
am:
9c0c2868cd
Change-Id: Iea2137dd82bc0d044ac71640503d155e5f1cb517
Jakub Pawlowski [Wed, 19 Dec 2018 19:20:21 +0000 (11:20 -0800)]
Revert "Remove redundant GATT_StartIf"
am:
b22ea41685
Change-Id: I4fba57ad6c2f856109afb74331bdf3e621794899
Jakub Pawlowski [Wed, 19 Dec 2018 12:43:03 +0000 (13:43 +0100)]
Revert "Remove redundant GATT_StartIf"
This change broke initial HID connection.
This reverts commit
cb45b1e380126f300d9f7d89a8382438c5d06cd3.
Stanley Tng [Tue, 18 Dec 2018 21:30:31 +0000 (13:30 -0800)]
Merge "Add stng@google.com to the OWNERS list" am:
efc194ae59 am:
afdb2d2b79
am:
f311d43ab4
Change-Id: I289ff0f7778fcbff46ba518e4904082bbb3f5cd7
Stanley Tng [Tue, 18 Dec 2018 21:21:26 +0000 (13:21 -0800)]
Merge "Add stng@google.com to the OWNERS list" am:
efc194ae59
am:
afdb2d2b79
Change-Id: Ica3b1329a7fb88e114d80602731a76fbadb4f1b4
Stanley Tng [Tue, 18 Dec 2018 21:17:20 +0000 (13:17 -0800)]
Merge "Add stng@google.com to the OWNERS list"
am:
efc194ae59
Change-Id: I042d5406886c56f1e7fd2fc52ea46f9c7358a970
Treehugger Robot [Tue, 18 Dec 2018 21:11:28 +0000 (21:11 +0000)]
Merge "Add stng@google.com to the OWNERS list"
Dan Shi [Tue, 18 Dec 2018 20:24:52 +0000 (12:24 -0800)]
Merge "Add a host test for net_test_avrcp" am:
9f3afe4957 am:
6af7f6371a
am:
fc054c587d
Change-Id: I0b83406f2ee2a769c1e32c5b7acad2afa08a10a9
Dan Shi [Tue, 18 Dec 2018 19:50:35 +0000 (11:50 -0800)]
Merge "Add a host test for net_test_avrcp" am:
9f3afe4957
am:
6af7f6371a
Change-Id: Ife1c89bd276bd966aff587dc462c1a70f590124d
Dan Shi [Tue, 18 Dec 2018 19:21:54 +0000 (11:21 -0800)]
Merge "Add a host test for net_test_avrcp"
am:
9f3afe4957
Change-Id: Ia2cae467aabd10bd9b713bc8c108ca1c297ca8fa
Treehugger Robot [Tue, 18 Dec 2018 19:05:15 +0000 (19:05 +0000)]
Merge "Add a host test for net_test_avrcp"
Stanley Tng [Tue, 18 Dec 2018 18:20:26 +0000 (10:20 -0800)]
Merge "Make sure Hearing Aids' Connection Intervals is unchanged" am:
be5124ed3d am:
cbd1f98c02
am:
5cdb8bacea
Change-Id: I185f8f5cbbe5bfafe236ca4e41d96553088e19d5
Stanley Tng [Tue, 18 Dec 2018 18:14:47 +0000 (10:14 -0800)]
Merge "Make sure Hearing Aids' Connection Intervals is unchanged" am:
be5124ed3d
am:
cbd1f98c02
Change-Id: I38625903f477536fb287f3743d903c64f771e369
Stanley Tng [Tue, 18 Dec 2018 18:05:38 +0000 (10:05 -0800)]
Merge "Make sure Hearing Aids' Connection Intervals is unchanged"
am:
be5124ed3d
Change-Id: I8179c5990b1329874a2f5f3d9d5b926f4708e933
Treehugger Robot [Tue, 18 Dec 2018 17:04:26 +0000 (17:04 +0000)]
Merge "Make sure Hearing Aids' Connection Intervals is unchanged"
Ted Wang [Tue, 18 Dec 2018 02:31:06 +0000 (10:31 +0800)]
Fix mtu assignment with correct value
Assigned mtu value with correspond avct channel configuration
Bug:
120524683
Test: manual
Change-Id: Idb70c678cef1d704e232aef8706082a48b073ef8
Stanley Tng [Tue, 28 Aug 2018 23:06:55 +0000 (16:06 -0700)]
Add stng@google.com to the OWNERS list
Test: N/A
Change-Id: Ic164086fc97fa72aa68ad751b35f339fa71233bb
Nick Kralevich [Mon, 17 Dec 2018 17:09:43 +0000 (09:09 -0800)]
use epoll_create1
epoll_create leaks file descriptors. Use epoll_create1(EPOLL_CLOEXEC)
instead.
Bug:
120983106
Test: compiles and boots
Change-Id: I40abaaea6dad641dc03d141adb29e963e853edc4
Stanley Tng [Fri, 14 Dec 2018 01:31:31 +0000 (17:31 -0800)]
Make sure Hearing Aids' Connection Intervals is unchanged
Make sure that the connection interval of the LE Connection remains the
desired one and reset it if this interval gets changed.
Test: Manual with Hearing Aids device and repeated
connection/disconnection
Bug:
117886712
Change-Id: Id11d1d2e7901bfbbc9c452b94aba968afbc52ee0
Dan Shi [Sat, 15 Dec 2018 01:22:14 +0000 (17:22 -0800)]
Merge "List test_config_template to android platform only." am:
d41f810b28 am:
b3eff154f2
am:
1745af3a1f
Change-Id: I699e65d3ec90852b7e4f7d5fedde56836e556df0
Dan Shi [Sat, 15 Dec 2018 01:17:40 +0000 (17:17 -0800)]
Add a host test for net_test_avrcp
Bug:
111921389
Test: atest
Change-Id: I26e4036bb76271ac6181429c904efe0f8b438256
Dan Shi [Sat, 15 Dec 2018 01:16:52 +0000 (17:16 -0800)]
Merge "List test_config_template to android platform only." am:
d41f810b28
am:
b3eff154f2
Change-Id: If44bc52f1dd92076a2c4c7fd3552d4d7c3af2ca0
Dan Shi [Sat, 15 Dec 2018 01:12:41 +0000 (17:12 -0800)]
Merge "List test_config_template to android platform only."
am:
d41f810b28
Change-Id: I131e44269981e905f6d4917f86a906d8dd0edd86
Dan Shi [Sat, 15 Dec 2018 01:03:29 +0000 (01:03 +0000)]
Merge "List test_config_template to android platform only."
Dan Shi [Fri, 14 Dec 2018 17:56:36 +0000 (09:56 -0800)]
List test_config_template to android platform only.
This allows host side test config to be auto-generated from the right
template.
Bug:
120993548
Test: m -j net_test_avrcp && atest net_test_avrcp --host
Change-Id: I003713ea3c1c4c1c0686551828d817227ec19019
Jakub Pawlowski [Fri, 14 Dec 2018 10:10:12 +0000 (02:10 -0800)]
Use White List for direct connection establishment to multiple devices am:
cab1ae1127 am:
b2867bbcb9
am:
8184abe735
Change-Id: Ibccf88204a3f7984c1d6d9c50f9fcd47a686a55e
Jakub Pawlowski [Fri, 14 Dec 2018 10:02:02 +0000 (02:02 -0800)]
Use White List for direct connection establishment to multiple devices am:
cab1ae1127
am:
b2867bbcb9
Change-Id: I04a9f960a4c3681d03a8087998d7d37c20fde11d
Jakub Pawlowski [Fri, 14 Dec 2018 09:56:57 +0000 (01:56 -0800)]
Use White List for direct connection establishment to multiple devices
am:
cab1ae1127
Change-Id: I72d61ae5db9a9924fa10c23b74794be56370035c
Jakub Pawlowski [Fri, 14 Dec 2018 09:03:27 +0000 (01:03 -0800)]
Remove unused battery level support am:
c79ab7241c am:
94f4e629ea
am:
528b69ecc8
Change-Id: I13f532e116d146c08ede7740a52c0b34b5f8a9e2
Jakub Pawlowski [Fri, 14 Dec 2018 09:02:58 +0000 (01:02 -0800)]
Merge "Remove redundant GATT_StartIf" am:
76037ac30a am:
140ef6de01
am:
fe23d4a41f
Change-Id: I5214468a65a8409b2c55d8bd05ce9e53d738aef5
Jakub Pawlowski [Fri, 14 Dec 2018 08:59:11 +0000 (00:59 -0800)]
Remove unused battery level support am:
c79ab7241c
am:
94f4e629ea
Change-Id: I1e948147ad4247dfa902ce71cc49f918039ca673
Jakub Pawlowski [Fri, 14 Dec 2018 08:58:50 +0000 (00:58 -0800)]
Merge "Remove redundant GATT_StartIf" am:
76037ac30a
am:
140ef6de01
Change-Id: If37a2277d5fc63b38991f11e4b514531dd013f61
Jakub Pawlowski [Fri, 14 Dec 2018 08:54:00 +0000 (00:54 -0800)]
Remove unused battery level support
am:
c79ab7241c
Change-Id: Ia624db04e97c94e0b93f1a95723318d36b243743
Jakub Pawlowski [Fri, 14 Dec 2018 08:53:43 +0000 (00:53 -0800)]
Merge "Remove redundant GATT_StartIf"
am:
76037ac30a
Change-Id: I77e6f64ea666ce524fc11df625304db0c7f0d136
Jakub Pawlowski [Wed, 14 Nov 2018 15:15:04 +0000 (16:15 +0100)]
Use White List for direct connection establishment to multiple devices
Currently, we implement GAP Direct Connect procedure exactly as the spec
says: we attempt connection to just one device.
This means that an app doing Direct Connection can take over the ability
to establish connections, and if it repeats the request, can cause other
devices to not connect.
From now on, we will use White List for both Background and Direct
connections. When there is at least one direct connection, we will
increase the scan parameters used for connection.
Bug:
112827989
Test: added unittests, also sl4a GattConnectTest
Change-Id: Ic0b2f631e3c84d5e8e0f4683b0148f031bfd5639
Jakub Pawlowski [Thu, 13 Dec 2018 23:27:11 +0000 (00:27 +0100)]
Remove unused battery level support
Change-Id: I88239a835562a5e3c32b830e4c2c31fed1f107b3
Jakub Pawlowski [Fri, 14 Dec 2018 08:40:04 +0000 (08:40 +0000)]
Merge "Remove redundant GATT_StartIf"
Zach Johnson [Thu, 13 Dec 2018 23:05:37 +0000 (15:05 -0800)]
Merge "Pass package name as a part of startDiscovery" am:
62e1f765bc am:
98d86a5124
am:
d40ae4a97a
Change-Id: I9182cd72d3f89ef23e5474a8d8254ddd349543ff
Xin Li [Thu, 13 Dec 2018 22:26:12 +0000 (14:26 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am:
cb7dcad70d -s ours am:
2f24d9ccc9 -s ours
am:
398a91b8cf -s ours
Change-Id: I5f53c2d3019ced3e774362736529d2cbdd25a01e
Zach Johnson [Thu, 13 Dec 2018 22:08:15 +0000 (14:08 -0800)]
Merge "Pass package name as a part of startDiscovery" am:
62e1f765bc
am:
98d86a5124
Change-Id: Ie125c59f1da11fdfa118c817528e97b5e7c7396a
Xin Li [Thu, 13 Dec 2018 22:00:20 +0000 (14:00 -0800)]
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am:
1083b621e4 -s ours am:
193454c2f5 -s ours
am:
36aa4a532a -s ours
Change-Id: Ib0d89e2da5af38dda9333b4419de3eefa36b661b
Jakub Pawlowski [Thu, 13 Dec 2018 16:53:15 +0000 (17:53 +0100)]
Remove redundant GATT_StartIf
GATT_StartIf is just sending connect callback about all currently
connected devices, even ones that this app is not interested in.
For btif/java apps, we will trigger connection attempt to just one
device right after registration, which would trigger connect callback
anyway.
For all bta layer apps, they do guard inside connect callback to make
sure code is triggered for already known device, but the devices are
considered as known only after they already connected, and some event
triggered app to create control block.
Thus, GATT_StartIf is surplus feature that should be removed.
Test: run all sl4a GATT tests
Change-Id: I8c45b92dbbf80894c32bb870eb392e766063c934
Zach Johnson [Thu, 13 Dec 2018 21:49:38 +0000 (13:49 -0800)]
Merge "Pass package name as a part of startDiscovery"
am:
62e1f765bc
Change-Id: I3911f27f80b99ab28c91bd8a56cceefba5357fe6
Xin Li [Thu, 13 Dec 2018 21:31:02 +0000 (13:31 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am:
cb7dcad70d -s ours
am:
2f24d9ccc9 -s ours
Change-Id: Ifcdb0d9bc09fe02a35d7a21f2a6a612c392e4741
Xin Li [Thu, 13 Dec 2018 21:27:59 +0000 (13:27 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
am:
cb7dcad70d -s ours
Change-Id: I3937cd25882e43468acb0d0192a5ccd34aa59091
Xin Li [Thu, 13 Dec 2018 20:20:55 +0000 (12:20 -0800)]
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am:
1083b621e4 -s ours
am:
193454c2f5 -s ours
Change-Id: I9220d2fbd647f37883e3fae57dddccb57660990a
Chih-Hung Hsieh [Thu, 13 Dec 2018 19:42:50 +0000 (11:42 -0800)]
Fix performance-for-range-copy warnings am:
01a40403d7 am:
864618752b
am:
9392c94d42
Change-Id: I5689191df82a5c02635d93dca34fb2cf6533eb52
Xin Li [Thu, 13 Dec 2018 19:25:51 +0000 (11:25 -0800)]
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
am:
1083b621e4 -s ours
Change-Id: I050265331bd4a18405f7d6f93b03125a1fc659ae
Chih-Hung Hsieh [Thu, 13 Dec 2018 19:08:56 +0000 (11:08 -0800)]
Fix performance-for-range-copy warnings am:
01a40403d7
am:
864618752b
Change-Id: I4d306d3f51fe634e5e638423400870b158098633
Chih-Hung Hsieh [Thu, 13 Dec 2018 18:48:26 +0000 (10:48 -0800)]
Fix performance-for-range-copy warnings
am:
01a40403d7
Change-Id: Ife0d8af7af4a5ac26dfe7d735bbc65460d1beb70