OSDN Git Service

android-x86/system-bt.git
6 years ago[automerger skipped] Merge "GATT: Handle too short Error Response PDU" into oc-mr1...
Jakub Pawlowski [Sat, 26 May 2018 04:51:57 +0000 (21:51 -0700)]
[automerger skipped] Merge "GATT: Handle too short Error Response PDU" into oc-mr1-dev am: 29befd94cf  -s ours am: 5b0e1f119d  -s ours
am: 9af8d9a2fe  -s ours

Change-Id: Id274406efdba5b1baea825c4386a4ee31b6722c3

6 years ago[automerger skipped] Merge "GATT: Handle too short Error Response PDU" into oc-mr1...
Jakub Pawlowski [Sat, 26 May 2018 04:46:52 +0000 (21:46 -0700)]
[automerger skipped] Merge "GATT: Handle too short Error Response PDU" into oc-mr1-dev am: 29befd94cf  -s ours
am: 5b0e1f119d  -s ours

Change-Id: I275298c30c315422358078deae48d60eaa47a10b

6 years ago[automerger skipped] Merge "GATT: Handle too short Error Response PDU" into oc-mr1-dev
Jakub Pawlowski [Sat, 26 May 2018 04:41:18 +0000 (21:41 -0700)]
[automerger skipped] Merge "GATT: Handle too short Error Response PDU" into oc-mr1-dev
am: 29befd94cf  -s ours

Change-Id: I04051b1a6a9846bbc2336fc2491eebacb26ad00f

6 years agoMerge "GATT: Handle too short Error Response PDU" into oc-mr1-dev
TreeHugger Robot [Sat, 26 May 2018 04:32:17 +0000 (04:32 +0000)]
Merge "GATT: Handle too short Error Response PDU" into oc-mr1-dev

6 years ago[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_...
Jakub Pawlowski [Sat, 26 May 2018 04:13:29 +0000 (21:13 -0700)]
[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0 skipped: 0488ddb980 am: 147da61cb8  -s ours am: 5c37e7f55e  -s ours am: 243abd8835  -s ours am: 93e1510b93  -s ours
am: 51eac223a8  -s ours

Change-Id: I33dcd6bebf8c3d264156db9dd497b3c675b3bc05

6 years ago[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_...
Jakub Pawlowski [Sat, 26 May 2018 04:08:24 +0000 (21:08 -0700)]
[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0 skipped: 0488ddb980 am: 147da61cb8  -s ours am: 5c37e7f55e  -s ours am: 243abd8835  -s ours
am: 93e1510b93  -s ours

Change-Id: I172da104e56459ba308f2fc5044fece45569cad3

6 years ago[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_...
Jakub Pawlowski [Sat, 26 May 2018 04:02:49 +0000 (21:02 -0700)]
[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0 skipped: 0488ddb980 am: 147da61cb8  -s ours am: 5c37e7f55e  -s ours
am: 243abd8835  -s ours

Change-Id: I7f1e5d4a5fe7ac5ec5a2ee0bca3397713b434e06

6 years ago[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_...
Jakub Pawlowski [Sat, 26 May 2018 03:56:45 +0000 (20:56 -0700)]
[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0 skipped: 0488ddb980 am: 147da61cb8  -s ours
am: 5c37e7f55e  -s ours

Change-Id: I92119dcc397c342bc673ae219773e0db5ae2a8f4

6 years ago[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_...
Jakub Pawlowski [Sat, 26 May 2018 03:51:41 +0000 (20:51 -0700)]
[automerger skipped] [automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0 skipped: 0488ddb980
am: 147da61cb8  -s ours

Change-Id: Ie6defc0efc49dc58d3e2f7d262f2277a617d77c3

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:56:23 +0000 (02:56 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0 skipped: 0488ddb980

Change-Id: Id6fbc4d73a7b922ff9224850000a4a1f10b81050

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:31 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71 am: 2f5acf66b0

Change-Id: I55b0755496a55a6f1c5a84227104f6478f05d0b4

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:30 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9 am: 42d53a8c71

Change-Id: I5516d1c6ec683898b459bf9ba9c57299404aa42f

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:28 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed am: 13a24d8cc9

Change-Id: Id9651d76b8cd1ab201f5f3024ea8f7b2d57de521

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:26 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742 am: 1e0d3bafed

Change-Id: If52d04ab58a88e517a559d11d4f876a2ba56d70f

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:25 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8 am: 0f69ef1742

Change-Id: I274a46dd9edf3810f47daf791e1dc69c6ba0504b

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:23 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d am: c8a02c4bd8

Change-Id: Ib296956f3e5ff59ed7f02d61dcc6bf93e572c58f

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d...
Android Build Merger (Role) [Sat, 26 May 2018 02:50:21 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d am: ab7f755c9d

Change-Id: Ib45cb979df156f9871bbe845dcd12d291681035e

6 years ago[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d
Android Build Merger (Role) [Sat, 26 May 2018 02:50:19 +0000 (02:50 +0000)]
[automerger] Add PDU size checks in process_service_search_attr_rsp am: 3181bdee7d

Change-Id: Ib457d90751151790f92abe23b38596c02f0a69af

6 years agoHFP: Only advance BTIF queue for outgoing connections am: f1466605c3
Jack He [Sat, 26 May 2018 01:29:31 +0000 (18:29 -0700)]
HFP: Only advance BTIF queue for outgoing connections am: f1466605c3
am: 8c94661b02

Change-Id: Id6b636c070950573fc4931d3a4623d610726ff7a

6 years agoHFP: Only advance BTIF queue for outgoing connections
Jack He [Sat, 26 May 2018 01:24:57 +0000 (18:24 -0700)]
HFP: Only advance BTIF queue for outgoing connections
am: f1466605c3

Change-Id: Ieb3922a34c8d73d23ade442a56d6ad91dc82c7c6

6 years agoHFP: Only advance BTIF queue for outgoing connections am: 5d0728dcf9 am: a10cdb3ccd
Jack He [Sat, 26 May 2018 01:18:46 +0000 (18:18 -0700)]
HFP: Only advance BTIF queue for outgoing connections am: 5d0728dcf9 am: a10cdb3ccd
am: 59852752a6

Change-Id: Id0d984f7512c3a260ccd344035254967be6d122b

6 years agoHFP: Fix ACL collision handling and WBS update am: 1c2fdca5d7 am: ac609e1cc5
Jack He [Sat, 26 May 2018 01:18:32 +0000 (18:18 -0700)]
HFP: Fix ACL collision handling and WBS update am: 1c2fdca5d7 am: ac609e1cc5
am: db2c055925

Change-Id: I4fe6e5687fccefaaf6eec23dc6a5ee508c58c589

6 years agoHFP: Only advance BTIF queue for outgoing connections am: 5d0728dcf9
Jack He [Sat, 26 May 2018 01:14:08 +0000 (18:14 -0700)]
HFP: Only advance BTIF queue for outgoing connections am: 5d0728dcf9
am: a10cdb3ccd

Change-Id: I4fc6c89e32327b9aa2256ea4c8c7bacf069be675

6 years agoHFP: Fix ACL collision handling and WBS update am: 1c2fdca5d7
Jack He [Sat, 26 May 2018 01:13:58 +0000 (18:13 -0700)]
HFP: Fix ACL collision handling and WBS update am: 1c2fdca5d7
am: ac609e1cc5

Change-Id: I3df3454845da38a252525d9f0ee8d02ffad80729

6 years agoHFP: Only advance BTIF queue for outgoing connections
Jack He [Sat, 26 May 2018 01:09:01 +0000 (18:09 -0700)]
HFP: Only advance BTIF queue for outgoing connections
am: 5d0728dcf9

Change-Id: I4fd7faa5385bc44f3e85d979a2aca4657a8077ec

6 years agoHFP: Fix ACL collision handling and WBS update
Jack He [Sat, 26 May 2018 01:08:54 +0000 (18:08 -0700)]
HFP: Fix ACL collision handling and WBS update
am: 1c2fdca5d7

Change-Id: I842425cb0e91368577f4c547aeec024f3cefbd54

6 years agoMerge "HFP: Fix ACL collision handling and WBS update" into pi-dev am: c9a04d0a3e
Jack He [Fri, 25 May 2018 23:59:59 +0000 (16:59 -0700)]
Merge "HFP: Fix ACL collision handling and WBS update" into pi-dev am: c9a04d0a3e
am: 81369679a3

Change-Id: Ifb586d19140d37cde7b29ce26a828270c19a9f08

6 years agoMerge "HFP: Fix ACL collision handling and WBS update" into pi-dev
Jack He [Fri, 25 May 2018 23:55:30 +0000 (16:55 -0700)]
Merge "HFP: Fix ACL collision handling and WBS update" into pi-dev
am: c9a04d0a3e

Change-Id: I466aaac2ff4adb9d318616dffec9c0472367e1de

6 years agoHFP: Only advance BTIF queue for outgoing connections
Jack He [Thu, 24 May 2018 22:53:27 +0000 (15:53 -0700)]
HFP: Only advance BTIF queue for outgoing connections

* Modify HFP btif layer to only advance queue when there is a
  connection outcome for outgoing connections
* During an ACL collision, incoming connection may preempt outgoing
  connection and come back to the upper layer in a separate control
  block. In this case, we should not advance the btif queue until the
  outgoing connection sends callback to the btif layer
* When RFCOMM connection is successful, but SLC connection failed, we
  should also send callback to Java layer and advance the queue. We
  should only do this when transition from RFCOMM connected to
  Disconnected, not from SLC connected to Disconnected
* We should only advance the queue after sending connection state update
  to Java layer
* This prevents the crash in connect_int() where we check for any
  control block that is left in connecting state

Bug: 80251999
Test: connect HFP devices rapidly to trigger ACL collision
      testplans/details/166812/3975
Change-Id: Iba3736c77d8ef4a4701896461042466c26bc4820
(cherry picked from commit 8ced3dfacba328b1260096b93b9e9e6f65929fe3)

6 years agoMerge "HFP: Fix ACL collision handling and WBS update" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 23:36:36 +0000 (23:36 +0000)]
Merge "HFP: Fix ACL collision handling and WBS update" into pi-dev

6 years agoHFP: Only advance BTIF queue for outgoing connections
Jack He [Thu, 24 May 2018 22:53:27 +0000 (15:53 -0700)]
HFP: Only advance BTIF queue for outgoing connections

* Modify HFP btif layer to only advance queue when there is a
  connection outcome for outgoing connections
* During an ACL collision, incoming connection may preempt outgoing
  connection and come back to the upper layer in a separate control
  block. In this case, we should not advance the btif queue until the
  outgoing connection sends callback to the btif layer
* When RFCOMM connection is successful, but SLC connection failed, we
  should also send callback to Java layer and advance the queue. We
  should only do this when transition from RFCOMM connected to
  Disconnected, not from SLC connected to Disconnected
* We should only advance the queue after sending connection state update
  to Java layer
* This prevents the crash in connect_int() where we check for any
  control block that is left in connecting state

Bug: 80251999
Test: connect HFP devices rapidly to trigger ACL collision
      testplans/details/166812/3975
Change-Id: Iba3736c77d8ef4a4701896461042466c26bc4820

6 years agoHFP: Fix ACL collision handling and WBS update
Jack He [Fri, 25 May 2018 01:59:13 +0000 (18:59 -0700)]
HFP: Fix ACL collision handling and WBS update

* Correctly set control block handle when passing WBS event data to
  upstream
* Correctly reject local outgoing connection when a colliding incoming
  connection is connected to RFCOMM
* Add more logging to help with future debugging

Bug: 80251999
Test: connect HFP devices rapidly and toggle Bluetooth rapidly
      testplans/details/166812/3975
Change-Id: I90616d70335ca68c40251fb722146924c4801cbe

6 years agoHFP: Fix ACL collision handling and WBS update
Jack He [Fri, 25 May 2018 01:59:13 +0000 (18:59 -0700)]
HFP: Fix ACL collision handling and WBS update

* Correctly set control block handle when passing WBS event data to
  upstream
* Correctly reject local outgoing connection when a colliding incoming
  connection is connected to RFCOMM
* Add more logging to help with future debugging

Bug: 80251999
Test: connect HFP devices rapidly and toggle Bluetooth rapidly
      testplans/details/166812/3975
Change-Id: I90616d70335ca68c40251fb722146924c4801cbe
(cherry picked from commit 275df40271331e3d1f11167c961890f2dfdc3eda)

6 years agoMerge "Inform AVRCP Controller before cleaning up." into pi-dev am: d51883c1f4
Joseph Pirozzo [Fri, 25 May 2018 23:10:25 +0000 (16:10 -0700)]
Merge "Inform AVRCP Controller before cleaning up." into pi-dev am: d51883c1f4
am: 7e84ff44ef

Change-Id: Ibe1b217c4bb1a72bad19d04f14113aff9969cc7c

6 years agoMerge "A2DP Offload: Avoid Offload_start/stop from remote" into pi-dev am: 050dccdc0b
Sunny Kapdi [Fri, 25 May 2018 23:09:37 +0000 (16:09 -0700)]
Merge "A2DP Offload: Avoid Offload_start/stop from remote" into pi-dev am: 050dccdc0b
am: 9f7f5b4771

Change-Id: Ia94a3089ee70ee254030828bcb2a344495f56a45

6 years agoMerge "Inform AVRCP Controller before cleaning up." into pi-dev
Joseph Pirozzo [Fri, 25 May 2018 23:02:21 +0000 (16:02 -0700)]
Merge "Inform AVRCP Controller before cleaning up." into pi-dev
am: d51883c1f4

Change-Id: Ie7160c610d2fc42b918fc84d1a35bcb92c1ad70a

6 years agoMerge "A2DP Offload: Avoid Offload_start/stop from remote" into pi-dev
Sunny Kapdi [Fri, 25 May 2018 23:01:35 +0000 (16:01 -0700)]
Merge "A2DP Offload: Avoid Offload_start/stop from remote" into pi-dev
am: 050dccdc0b

Change-Id: I99d71538d25e2d1ed8c1b7b57deed53a8d0cdaa2

6 years agoMerge "Inform AVRCP Controller before cleaning up." into pi-dev
TreeHugger Robot [Fri, 25 May 2018 23:00:24 +0000 (23:00 +0000)]
Merge "Inform AVRCP Controller before cleaning up." into pi-dev

6 years agoMerge "A2DP Offload: Avoid Offload_start/stop from remote" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 22:55:57 +0000 (22:55 +0000)]
Merge "A2DP Offload: Avoid Offload_start/stop from remote" into pi-dev

6 years ago[automerger skipped] Add PDU size checks in process_service_search_attr_rsp am: 980f6...
Jakub Pawlowski [Fri, 25 May 2018 22:42:46 +0000 (15:42 -0700)]
[automerger skipped] Add PDU size checks in process_service_search_attr_rsp am: 980f6427b1 am: b7de2e7afb am: 4dceea74c6  -s ours am: 98c8048b86  -s ours
am: ad16ef5639  -s ours

Change-Id: Id7bca434b843676af00e238e706b568141dc14cb

6 years ago[automerger skipped] Add PDU size checks in process_service_search_attr_rsp am: 980f6...
Jakub Pawlowski [Fri, 25 May 2018 22:35:22 +0000 (15:35 -0700)]
[automerger skipped] Add PDU size checks in process_service_search_attr_rsp am: 980f6427b1 am: b7de2e7afb am: 4dceea74c6  -s ours
am: 98c8048b86  -s ours

Change-Id: I75d7588cf4e998d954009af5fcf882a345e54ef0

6 years ago[automerger skipped] Add PDU size checks in process_service_search_attr_rsp am: 980f6...
Jakub Pawlowski [Fri, 25 May 2018 22:30:49 +0000 (15:30 -0700)]
[automerger skipped] Add PDU size checks in process_service_search_attr_rsp am: 980f6427b1 am: b7de2e7afb
am: 4dceea74c6  -s ours

Change-Id: Ib74d2f95105d7c2c9c9a3605d0873c216d3cf1ea

6 years agoAdd PDU size checks in process_service_search_attr_rsp am: 980f6427b1
Jakub Pawlowski [Fri, 25 May 2018 22:26:44 +0000 (15:26 -0700)]
Add PDU size checks in process_service_search_attr_rsp am: 980f6427b1
am: b7de2e7afb

Change-Id: Iefba89565fe0c2088498ce0faff09c1a39f8afc3

6 years agoAdd PDU size checks in process_service_search_attr_rsp
Jakub Pawlowski [Fri, 25 May 2018 22:21:11 +0000 (15:21 -0700)]
Add PDU size checks in process_service_search_attr_rsp
am: 980f6427b1

Change-Id: I08d0a722f3421a59ed81c1324062d35ebe5057bd

6 years agoMerge "Linux build fix" am: a0f3fa4b38 am: 1037ac9f66
Jakub Pawlowski [Fri, 25 May 2018 21:24:33 +0000 (14:24 -0700)]
Merge "Linux build fix" am: a0f3fa4b38 am: 1037ac9f66
am: b361ad3d82

Change-Id: Ia9e7a10e7604cb1c07c531ea0a77473d60c8be5a

6 years agoMerge "Linux build fix" am: a0f3fa4b38
Jakub Pawlowski [Fri, 25 May 2018 21:19:59 +0000 (14:19 -0700)]
Merge "Linux build fix" am: a0f3fa4b38
am: 1037ac9f66

Change-Id: Id6f058f1cd78128116dfb70e9860d8fdc0f23131

6 years agoFix log level - requesting MTU is not error am: bb956ab96a am: fc67ab0799
Jakub Pawlowski [Fri, 25 May 2018 21:15:54 +0000 (14:15 -0700)]
Fix log level - requesting MTU is not error am: bb956ab96a am: fc67ab0799
am: c35cb1002c

Change-Id: Id9eb446bb8c48281eb93aff1929363e1acbf5442

6 years agoMerge "Linux build fix"
Jakub Pawlowski [Fri, 25 May 2018 21:15:25 +0000 (14:15 -0700)]
Merge "Linux build fix"
am: a0f3fa4b38

Change-Id: I78f0771341beaf344460ace0ec44ddf7702376df

6 years agoFix log level - requesting MTU is not error am: bb956ab96a
Jakub Pawlowski [Fri, 25 May 2018 21:10:31 +0000 (14:10 -0700)]
Fix log level - requesting MTU is not error am: bb956ab96a
am: fc67ab0799

Change-Id: I0176ec625514226c482f606d0fa2c830c09d4599

6 years agoMerge "Linux build fix"
Treehugger Robot [Fri, 25 May 2018 21:09:38 +0000 (21:09 +0000)]
Merge "Linux build fix"

6 years agoFix log level - requesting MTU is not error
Jakub Pawlowski [Fri, 25 May 2018 21:06:10 +0000 (14:06 -0700)]
Fix log level - requesting MTU is not error
am: bb956ab96a

Change-Id: I6636695bfdcf1fb4c123ea8ff0b1bc6810fff3cf

6 years agoFix log level - requesting MTU is not error
Jakub Pawlowski [Thu, 24 May 2018 19:27:10 +0000 (12:27 -0700)]
Fix log level - requesting MTU is not error

Test: compilation
Change-Id: Idf99af22cf4d29f6fb3da08e86e36b3394617c4f

6 years agoInform AVRCP Controller before cleaning up.
Joseph Pirozzo [Fri, 25 May 2018 19:31:06 +0000 (12:31 -0700)]
Inform AVRCP Controller before cleaning up.

Move the JNI callback earlier in the procedure before the device info is
zeroed out such that the higher levels know which device disconnected.

Bug: 80265765
Test: Disconnect AVRCP and verify bluetooth_manager reports it is
disconnected.

Change-Id: I1c69341227f4c1c1662022a4a77e1752f6306d2e
(cherry picked from commit 3ee0329420f1c26cbd37653f982b8cdc67d0cb35)

6 years agoA2DP Offload: Avoid Offload_start/stop from remote
Sunny Kapdi [Fri, 25 May 2018 16:29:16 +0000 (09:29 -0700)]
A2DP Offload: Avoid Offload_start/stop from remote

When DUT is A2DP Source, and remote initiates start
we suspend it immediately. There is no need to do
Offload_start/stop in this case. Also, the offload
start/stop was coming out of sync here.

Bug: 80284000
Test: Manual
Change-Id: If54c28188e7432ebcba639cd2fbfe81536c2f2e6
Merged-In: If54c28188e7432ebcba639cd2fbfe81536c2f2e6
(cherry picked from commit c2b928c8893ee376578769b64c5be332f03a9806)

6 years agoLinux build fix
Jakub Pawlowski [Fri, 25 May 2018 16:31:26 +0000 (09:31 -0700)]
Linux build fix

Test: compile on linux
Change-Id: I831df72da8bdec17c4d9c87ebdfb333024eb964c

6 years ago[automerger skipped] A2DP Offload: Don't crash on repeated endSession am: 1335d540f2...
Sunny Kapdi [Fri, 25 May 2018 13:24:25 +0000 (06:24 -0700)]
[automerger skipped] A2DP Offload: Don't crash on repeated endSession am: 1335d540f2  -s ours
am: ad8e0b0d98  -s ours

Change-Id: Ief5e4288c95507cdcb999dcaa785adf2ce7f3d55

6 years agoMerge "GATT: Fix GATT error response for execute write" into pi-dev am: 576631d792
Subramanian Srinivasan [Fri, 25 May 2018 13:23:46 +0000 (06:23 -0700)]
Merge "GATT: Fix GATT error response for execute write" into pi-dev am: 576631d792
am: 2c96f2bfb8

Change-Id: I4ad6aa11b276a80ad6c1fa51e911bf4d11cf6059

6 years agoMerge "Add separate sniff mode settings for gamepads" am: c372f42e22 am: 3dd82fc86c
Kim Low [Fri, 25 May 2018 13:22:48 +0000 (06:22 -0700)]
Merge "Add separate sniff mode settings for gamepads" am: c372f42e22 am: 3dd82fc86c
am: ef435ad4fe

Change-Id: Id174695920c55733fd3efc4d9a8c7d7dadebc82f

6 years agoMerge changes from topic "ds4-support" am: 4fa06fe06d am: 25447adb6e
Kim Low [Fri, 25 May 2018 13:22:33 +0000 (06:22 -0700)]
Merge changes from topic "ds4-support" am: 4fa06fe06d am: 25447adb6e
am: 1933884da7

Change-Id: I918bc5a031b02ff945f0ea7eb275f0f33700f21c

6 years agoA2DP Offload: Don't crash on repeated endSession am: 7a2110d666 am: bb8d5e287c
Sunny Kapdi [Fri, 25 May 2018 13:20:18 +0000 (06:20 -0700)]
A2DP Offload: Don't crash on repeated endSession am: 7a2110d666 am: bb8d5e287c
am: d256014557

Change-Id: I28e009f02060218343adcc22dc4e1ed224c3b2c8

6 years agoMerge "GATT: Fix GATT error response for execute write" am: 89f92dbdc4 am: cfe66c38bc
Subramanian Srinivasan [Fri, 25 May 2018 13:19:23 +0000 (06:19 -0700)]
Merge "GATT: Fix GATT error response for execute write" am: 89f92dbdc4 am: cfe66c38bc
am: 7e9a3dae8f

Change-Id: I22b35bfb636014fcd11d9bbcb346af93e8e7610c

6 years agoMerge "Increase LE connection interval with bonded Hearing Aids" am: 7dea19a6cc am...
Stanley Tng [Fri, 25 May 2018 13:15:46 +0000 (06:15 -0700)]
Merge "Increase LE connection interval with bonded Hearing Aids" am: 7dea19a6cc am: b39f829886
am: 44a7e50dfa

Change-Id: I55adfcb739702912e2e8f3bdc85569bc851b46d1

6 years agoMerge "[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am...
Ajay Panicker [Fri, 25 May 2018 13:13:42 +0000 (06:13 -0700)]
Merge "[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am: 1a4403bdc8 am: 18b8ad39a9  -s ours" into pi-dev-plus-aosp
am: 862efb7021  -s ours

Change-Id: I26e732c544601826b104e921ffbe9b98454b77af

6 years ago[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am: 1a4403bdc8...
Ajay Panicker [Fri, 25 May 2018 13:04:41 +0000 (06:04 -0700)]
[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am: 1a4403bdc8 am: 18b8ad39a9  -s ours
am: c165558f50  -s ours

Change-Id: I6423af4276f923a48d7d446636d9f3e7bfd1e493

6 years agoMerge "AVRCP: Narrow the scope of the lock in Init and Cleanup" into pi-dev am: a5e59...
Ajay Panicker [Fri, 25 May 2018 13:03:31 +0000 (06:03 -0700)]
Merge "AVRCP: Narrow the scope of the lock in Init and Cleanup" into pi-dev am: a5e59584df
am: 3dc8d2b8c9

Change-Id: I594e9e4935dae163282ffb5d0394b853ce99d7fc

6 years agoAdd PDU size checks in process_service_search_attr_rsp am: 49399b5243
Jakub Pawlowski [Fri, 25 May 2018 13:03:13 +0000 (06:03 -0700)]
Add PDU size checks in process_service_search_attr_rsp am: 49399b5243
am: 9f4cc911e3

Change-Id: I027172664afb835583bc7f513422fd9af8a712b1

6 years agoMerge "Increase LE connection interval with bonded Hearing Aids" into pi-dev am:...
Stanley Tng [Fri, 25 May 2018 13:02:58 +0000 (06:02 -0700)]
Merge "Increase LE connection interval with bonded Hearing Aids" into pi-dev am: daa0656702
am: d7bd241c5d

Change-Id: I0be136db8e2b457e292209fdf46526cfa809dd77

6 years agoMerge "GATT: Handle too short Error Response PDU" into pi-dev am: ccf208e4fc
Jakub Pawlowski [Fri, 25 May 2018 13:02:40 +0000 (06:02 -0700)]
Merge "GATT: Handle too short Error Response PDU" into pi-dev am: ccf208e4fc
am: 22c850373e

Change-Id: Ib168129d2f5bb0b85752c7e61306d10bd65273d5

6 years agoMerge "HFP: Ignore DISCONNECTED state in PhoneStateChange" into pi-dev am: b90857655b
Jack He [Fri, 25 May 2018 13:02:21 +0000 (06:02 -0700)]
Merge "HFP: Ignore DISCONNECTED state in PhoneStateChange" into pi-dev am: b90857655b
am: 758c9a315e

Change-Id: I382761cd7e38951044c2cb30d2b5209c56969ee5

6 years agoMerge "AVRCP: Cancel all pending messages and prevent future messages after cleanup...
Andre Eisenbach [Fri, 25 May 2018 13:02:03 +0000 (06:02 -0700)]
Merge "AVRCP: Cancel all pending messages and prevent future messages after cleanup" into pi-dev am: 389fdbdab4
am: 73fef811a9

Change-Id: I40fcb9f50d82bfcd73a35e50418170f71edd6afe

6 years agoMerge "HFP: Ignore DISCONNECTED state in PhoneStateChange" am: 78eed90d9a am: f48b7b15d8
Jack He [Fri, 25 May 2018 13:01:44 +0000 (06:01 -0700)]
Merge "HFP: Ignore DISCONNECTED state in PhoneStateChange" am: 78eed90d9a am: f48b7b15d8
am: 28641a9e7c

Change-Id: I54d77069909c2b5f6b3c403f5afe5a580754f39d

6 years agoReduce A2DP/AVDTP related dumpsys output am: 8757bc7ab0 am: 4ad5addcdc
Pavlin Radoslavov [Fri, 25 May 2018 13:01:23 +0000 (06:01 -0700)]
Reduce A2DP/AVDTP related dumpsys output am: 8757bc7ab0 am: 4ad5addcdc
am: ebb82bf7de

Change-Id: Ic75ad11ef06eda5bd3ac28d77dc1bbf0a5945b78

6 years agoExplicitly stop the stream when the A2DP session ends am: 6d493bdc7b am: 89a63dd115
Pavlin Radoslavov [Fri, 25 May 2018 12:58:50 +0000 (05:58 -0700)]
Explicitly stop the stream when the A2DP session ends am: 6d493bdc7b am: 89a63dd115
am: b8bb6ea959

Change-Id: I7ee0bd5123492aef44e338e67cbc691fce7ba4d1

6 years agoMerge "Explicitly stop the stream when the A2DP session ends" into pi-dev am: 28984bf496
Pavlin Radoslavov [Fri, 25 May 2018 12:55:48 +0000 (05:55 -0700)]
Merge "Explicitly stop the stream when the A2DP session ends" into pi-dev am: 28984bf496
am: b1db1e006d

Change-Id: Ieb8ee2a5d477ad856e690660d310633748b91e01

6 years ago[automerger skipped] A2DP Offload: Don't crash on repeated endSession
Sunny Kapdi [Fri, 25 May 2018 02:08:55 +0000 (19:08 -0700)]
[automerger skipped] A2DP Offload: Don't crash on repeated endSession
am: 1335d540f2  -s ours

Change-Id: I5c086a174b4c9c96bd4c544d4208c572a4e13ad2

6 years agoA2DP Offload: Don't crash on repeated endSession
Sunny Kapdi [Wed, 23 May 2018 22:14:35 +0000 (15:14 -0700)]
A2DP Offload: Don't crash on repeated endSession

AudioOffload endSession is called from multiple places.
Do not crash if session has already ended.

Also, added/enabled extra log messages to help debug similar issues.

Bug: 80148693
Test: Manual
Change-Id: I409c0146f9629cee6bdabf16e52e88201ee02267
Merged-In: I409c0146f9629cee6bdabf16e52e88201ee02267
(cherry picked from commit 7a2110d6660b080b0242fc385cce3c9748c49090)

6 years agoMerge "GATT: Fix GATT error response for execute write" into pi-dev
Subramanian Srinivasan [Thu, 24 May 2018 23:28:32 +0000 (16:28 -0700)]
Merge "GATT: Fix GATT error response for execute write" into pi-dev
am: 576631d792

Change-Id: Id4190fdb64435cadb234d272919f53472e3c2081

6 years agoMerge "Add separate sniff mode settings for gamepads" am: c372f42e22
Kim Low [Thu, 24 May 2018 23:19:33 +0000 (16:19 -0700)]
Merge "Add separate sniff mode settings for gamepads" am: c372f42e22
am: 3dd82fc86c

Change-Id: I5c7420db39120835e734b2daf282f04ab5db8614

6 years agoMerge changes from topic "ds4-support" am: 4fa06fe06d
Kim Low [Thu, 24 May 2018 23:19:23 +0000 (16:19 -0700)]
Merge changes from topic "ds4-support" am: 4fa06fe06d
am: 25447adb6e

Change-Id: Ic9a213e9eda0cb37b23d0cf890169382d9b1acb4

6 years agoA2DP Offload: Don't crash on repeated endSession am: 7a2110d666
Sunny Kapdi [Thu, 24 May 2018 23:10:30 +0000 (16:10 -0700)]
A2DP Offload: Don't crash on repeated endSession am: 7a2110d666
am: bb8d5e287c

Change-Id: I06b2e8b847abc4c5b6d179752603e9e0a9ec2001

6 years agoMerge "GATT: Fix GATT error response for execute write" am: 89f92dbdc4
Subramanian Srinivasan [Thu, 24 May 2018 23:09:52 +0000 (16:09 -0700)]
Merge "GATT: Fix GATT error response for execute write" am: 89f92dbdc4
am: cfe66c38bc

Change-Id: I7ebd2fd05692dbb7994c84bdd5c2a7d58a80903b

6 years agoMerge "Increase LE connection interval with bonded Hearing Aids" am: 7dea19a6cc
Stanley Tng [Thu, 24 May 2018 23:08:48 +0000 (16:08 -0700)]
Merge "Increase LE connection interval with bonded Hearing Aids" am: 7dea19a6cc
am: b39f829886

Change-Id: Ie4dcf00ac4a3d799289d6ae68a919529b0388f29

6 years agoMerge "Add separate sniff mode settings for gamepads"
Kim Low [Thu, 24 May 2018 23:07:06 +0000 (16:07 -0700)]
Merge "Add separate sniff mode settings for gamepads"
am: c372f42e22

Change-Id: Ibaff9b731e224c20b7f5336c74d02570904cf00e

6 years agoMerge changes from topic "ds4-support"
Kim Low [Thu, 24 May 2018 23:06:57 +0000 (16:06 -0700)]
Merge changes from topic "ds4-support"
am: 4fa06fe06d

Change-Id: I813d0763520ccaac02e900e5ff1cf5b48a87ff19

6 years agoMerge "[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am...
Android Build Merger (Role) [Thu, 24 May 2018 23:01:52 +0000 (23:01 +0000)]
Merge "[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am: 1a4403bdc8 am: 18b8ad39a9  -s ours" into pi-dev-plus-aosp

6 years ago[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am: 1a4403bdc8
Ajay Panicker [Thu, 24 May 2018 23:01:40 +0000 (16:01 -0700)]
[automerger skipped] Merge "Enable the AVRCP Service by default (2/2)" am: 1a4403bdc8
am: 18b8ad39a9  -s ours

Change-Id: I88afc7328b599c79933e937f70792749b7054569

6 years agoMerge "AVRCP: Narrow the scope of the lock in Init and Cleanup" into pi-dev
Ajay Panicker [Thu, 24 May 2018 23:01:22 +0000 (16:01 -0700)]
Merge "AVRCP: Narrow the scope of the lock in Init and Cleanup" into pi-dev
am: a5e59584df

Change-Id: Id58707332d8aeea7d4806a3efc3eeff3e45f941e

6 years agoAdd PDU size checks in process_service_search_attr_rsp
Jakub Pawlowski [Thu, 24 May 2018 23:00:01 +0000 (16:00 -0700)]
Add PDU size checks in process_service_search_attr_rsp
am: 49399b5243

Change-Id: I3fd72aa398a35456e9062db1b9e448a29951cbc0

6 years agoMerge "Increase LE connection interval with bonded Hearing Aids" into pi-dev
Stanley Tng [Thu, 24 May 2018 22:53:11 +0000 (15:53 -0700)]
Merge "Increase LE connection interval with bonded Hearing Aids" into pi-dev
am: daa0656702

Change-Id: I8e8f7888de41ebbd49958da31ccd5b903d684738

6 years agoMerge "Add separate sniff mode settings for gamepads"
Treehugger Robot [Thu, 24 May 2018 22:52:05 +0000 (22:52 +0000)]
Merge "Add separate sniff mode settings for gamepads"

6 years agoMerge changes from topic "ds4-support"
Treehugger Robot [Thu, 24 May 2018 22:52:05 +0000 (22:52 +0000)]
Merge changes from topic "ds4-support"

* changes:
  Add UHID GET_REPORT functionality
  Option to send data report through BTA_HhSetReport

6 years agoA2DP Offload: Don't crash on repeated endSession
Sunny Kapdi [Thu, 24 May 2018 22:49:28 +0000 (15:49 -0700)]
A2DP Offload: Don't crash on repeated endSession
am: 7a2110d666

Change-Id: I8cdd3690128e6bb4652beedfe4e84440a5b8dc33

6 years agoAdd separate sniff mode settings for gamepads
Kim Low [Wed, 20 Dec 2017 23:11:08 +0000 (15:11 -0800)]
Add separate sniff mode settings for gamepads

For gamepads, the sniff intervals need to be much shorter. The
min is set to 14 slots (8.75ms) and max is set to 18 slots
(11.25ms).

Test: Load >=4.10 hid-sony driver, connect a DualShock4, check its
      responsiveness.
      Wait for 5 minutes, wake it up (if it went into PARK mode)
      and check that it's still as responsive.
      Furthermore, use a Bluetooth sniffer to confirm the sniff
      interval.
Bug: 38511270
Change-Id: I27e2e0c8e88ab51800c4976e0971c92a3793f8d2

6 years agoAdd UHID GET_REPORT functionality
Kim Low [Thu, 6 Apr 2017 20:16:26 +0000 (13:16 -0700)]
Add UHID GET_REPORT functionality

GET_REPORT wasn't supported previously. >=4.10 hid-sony driver
requires this feature to get the calibration data for DualShock4.

To be backwards compatible with kernel 3.10, UHID_FEATURE and
UHID_FEATURE_ANSWER are used instead of UHID_GET_REPORT and
UHID_GET_REPORT_REPLY. Also, UHID_SET_REPORT functionality cannot
be supported since it's not implemented in kernel 3.10.

Test: Load >=4.10 hid-sony driver, connect a DualShock4, and check
      that the DualShock4 LED turns blue, which confirms both
      get feature report and output data report working.
Bug: 38511270
Change-Id: Ic28760f423cc09754fd32a107a499be6677ca747

6 years agoOption to send data report through BTA_HhSetReport
Kim Low [Thu, 6 Apr 2017 19:33:14 +0000 (12:33 -0700)]
Option to send data report through BTA_HhSetReport

Drivers may send SET_FEATURE_REPORT by using type UHID_OUTPUT
and output.rtype UHID_FEATURE_REPORT, or send OUTPUT_DATA_REPORT
by using type UHID_OUTPUT and output.rtype UHID_OUTPUT_REPORT.

For type UHID_OUTPUT, the Fluoride stack calls btif_hh_setreport()
which then calls BTA_HhSetReport() correspondingly. Hence it is
necessary for BTA_HhSetReport() to handle both the output.type
UHID_FEATURE_REPORT (BTA_HH_RPTT_FEATURE) and UHID_DATA_REPORT
(BTA_HH_RPTT_OUTPUT).

Test: No stand-alone test.
Bug: 38511270
Change-Id: I210f6338d3152dad100920dc8a1eb69b563b70ae

6 years agoMerge "GATT: Fix GATT error response for execute write" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:25:22 +0000 (20:25 +0000)]
Merge "GATT: Fix GATT error response for execute write" into pi-dev

6 years agoMerge "AVRCP: Narrow the scope of the lock in Init and Cleanup" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:00:58 +0000 (20:00 +0000)]
Merge "AVRCP: Narrow the scope of the lock in Init and Cleanup" into pi-dev

6 years agoAVRCP: Narrow the scope of the lock in Init and Cleanup
Ajay Panicker [Thu, 24 May 2018 18:26:15 +0000 (11:26 -0700)]
AVRCP: Narrow the scope of the lock in Init and Cleanup

Bug: 80227904
Test: Disable Bluetooth while connected to a device
Change-Id: I6c77e38ebaa84e4a075ef4636d6b519d4ccfb8c5

6 years agoMerge "GATT: Fix GATT error response for execute write"
Subramanian Srinivasan [Thu, 24 May 2018 19:07:14 +0000 (12:07 -0700)]
Merge "GATT: Fix GATT error response for execute write"
am: 89f92dbdc4

Change-Id: Ic2df885dd38a709846d0c1f113063647ce915a28

6 years agoMerge "Increase LE connection interval with bonded Hearing Aids"
Stanley Tng [Thu, 24 May 2018 19:05:29 +0000 (12:05 -0700)]
Merge "Increase LE connection interval with bonded Hearing Aids"
am: 7dea19a6cc

Change-Id: Icb735302b529311ef991800315866d0cac4ddbd6