OSDN Git Service

android-x86/system-bt.git
7 years agoFix LE disconnecting right after pairing am: 7c8bab2313 am: 30c04f0ed5
Jakub Pawlowski [Thu, 27 Apr 2017 20:00:13 +0000 (20:00 +0000)]
Fix LE disconnecting right after pairing am: 7c8bab2313 am: 30c04f0ed5
am: 454d12a409

Change-Id: I5fe6c2155eb11ec6850ed5014f9ed9c060072cc9

7 years agoFix LE disconnecting right after pairing am: 7c8bab2313
Jakub Pawlowski [Thu, 27 Apr 2017 19:35:57 +0000 (19:35 +0000)]
Fix LE disconnecting right after pairing am: 7c8bab2313
am: 30c04f0ed5

Change-Id: Ic0990a742fd44c84d181ff31d4f85b2b5cf52ec9

7 years agoFix LE disconnecting right after pairing
Jakub Pawlowski [Thu, 27 Apr 2017 19:30:24 +0000 (19:30 +0000)]
Fix LE disconnecting right after pairing
am: 7c8bab2313

Change-Id: I22b794624d6f3b51d1e0089802cbf53c64305b51

7 years agoFix LE disconnecting right after pairing
Jakub Pawlowski [Thu, 27 Apr 2017 11:52:34 +0000 (04:52 -0700)]
Fix LE disconnecting right after pairing

When a device connect to android over LE, the default policy is to keep
this connection. If any app "claims" this connnection, and then stop
using it, we'll disconnect from the device after a short timeout.

If pairing is triggered to such device, that is connected but not used
by any app, it will cause disconnect after the pairing is finished. This
is because using SMP over fixed LE L2CAP channel is conseidered as
connecting, using, and disconnecting a channel by the stack. This is
obvious logic error - using fixed channels should not require
"connecting" to them.

As a temporary workaround, do not trigger a timeout when a fixed SMP
channel is closed over LE.

For LE only devices, this means they will stay connected after the
pairing until some app starts using them or they disconnect. For dual
mode devices, Classic connection will be established and SDP will be
performed. The classic connection will be disconnected if no app will
use it, and the LE connection to the device will stay up.

Bug: 37352720
Test: manual
Change-Id: Ic9d688aacf84e0267277b12b28dfa7cc57fdcea6

7 years agoLimit btsnoop file size (5/8) am: 99c3422442 am: 7f51bd9833
Ajay Panicker [Thu, 27 Apr 2017 18:21:22 +0000 (18:21 +0000)]
Limit btsnoop file size (5/8) am: 99c3422442 am: 7f51bd9833
am: 8f59f129d5

Change-Id: Icbbf94d3d3092dc0b8d60dfed7f8c1ca3d213b51

7 years agoLimit btsnoop file size (5/8) am: 99c3422442
Ajay Panicker [Thu, 27 Apr 2017 17:49:49 +0000 (17:49 +0000)]
Limit btsnoop file size (5/8) am: 99c3422442
am: 7f51bd9833

Change-Id: I44d59395bd33f9a7ac54cf228c2c0b2a5a7f5f73

7 years agoLimit btsnoop file size (5/8)
Ajay Panicker [Thu, 27 Apr 2017 17:39:55 +0000 (17:39 +0000)]
Limit btsnoop file size (5/8)
am: 99c3422442

Change-Id: I015663966b19215d7ea4c3add0ed93948430df64

7 years agoLimit btsnoop file size (5/8)
Ajay Panicker [Tue, 18 Apr 2017 03:53:24 +0000 (20:53 -0700)]
Limit btsnoop file size (5/8)

Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: Ia8741223cb31b2c20d9ef5607e9204cc3946b165
Change-Id: Ia8741223cb31b2c20d9ef5607e9204cc3946b165

7 years agoFix issue with BLE advertising not started when local privacy is not enabled am:...
Jacky Cheung [Wed, 26 Apr 2017 22:42:08 +0000 (22:42 +0000)]
Fix issue with BLE advertising not started when local privacy is not enabled am: afdd081b4b am: 4545519e16
am: 3fd70c6fb3

Change-Id: If4c60d670c91845abfa4b17fa12e12fa8bffe86c

7 years agoFix issue with BLE advertising not started when local privacy is not enabled am:...
Jacky Cheung [Wed, 26 Apr 2017 22:31:58 +0000 (22:31 +0000)]
Fix issue with BLE advertising not started when local privacy is not enabled am: afdd081b4b
am: 4545519e16

Change-Id: I879c74e752290665526af3b7933e4ddedabe2552

7 years agoFix issue with BLE advertising not started when local privacy is not enabled
Jacky Cheung [Wed, 26 Apr 2017 22:27:57 +0000 (22:27 +0000)]
Fix issue with BLE advertising not started when local privacy is not enabled
am: afdd081b4b

Change-Id: I22817c79ffc0d7749261b18bcbd608fad70c20d3

7 years agoMake Bluetooth audio threads use RT scheduling
Philip Cuadra [Wed, 26 Apr 2017 21:28:30 +0000 (21:28 +0000)]
Make Bluetooth audio threads use RT scheduling
am: eaa42774f3

Change-Id: Id0bf13a5f129fd8eda8134debe9ed996c613e8c2

7 years agoMake Bluetooth audio threads use RT scheduling
Philip Cuadra [Thu, 23 Mar 2017 17:10:34 +0000 (10:10 -0700)]
Make Bluetooth audio threads use RT scheduling

Bluetooth threads that are used in audio have deadline
requirements for glitchless playback.  Those threads need to be
scheduled as RT tasks to ensure that they can meet the deadline even if
there is high system load.

Bug 37518404

Test:  play Bluetooth audio, check for RT with systrace
Merged-In: I4505fbce55e5a4fe18d00dbda23646a60e482efd
Change-Id: I4505fbce55e5a4fe18d00dbda23646a60e482efd
(cherry picked from commit 96c42e70f5c6a74a737739aa9c297cd93540f43e)

7 years agoFix issue with BLE advertising not started when local privacy is not enabled
Jacky Cheung [Wed, 26 Apr 2017 17:27:41 +0000 (10:27 -0700)]
Fix issue with BLE advertising not started when local privacy is not enabled

Bug: 37282500
Test: manual
Change-Id: I44657d0b3315bc241373c8cbaf6a2b6a6e49f31d

7 years agoMake Bluetooth audio threads use RT scheduling am: 96c42e70f5 am: dc45bd8315
Philip Cuadra [Wed, 26 Apr 2017 17:10:39 +0000 (17:10 +0000)]
Make Bluetooth audio threads use RT scheduling am: 96c42e70f5 am: dc45bd8315
am: 521a4d3acf

Change-Id: I0a60346bd9d9521c77d52dda4f838da84c8d8d74

7 years agoMake Bluetooth audio threads use RT scheduling am: 96c42e70f5
Philip Cuadra [Wed, 26 Apr 2017 17:06:09 +0000 (17:06 +0000)]
Make Bluetooth audio threads use RT scheduling am: 96c42e70f5
am: dc45bd8315

Change-Id: Ib0475baf75c0a963c074e0f9bbb2d9da3e09e86b

7 years agoMake Bluetooth audio threads use RT scheduling
Philip Cuadra [Wed, 26 Apr 2017 17:02:11 +0000 (17:02 +0000)]
Make Bluetooth audio threads use RT scheduling
am: 96c42e70f5

Change-Id: Idcea625a9ca29fe5f5b4c0cc81e74e28d3670b04

7 years agoMake Bluetooth audio threads use RT scheduling
Philip Cuadra [Thu, 23 Mar 2017 17:10:34 +0000 (10:10 -0700)]
Make Bluetooth audio threads use RT scheduling

Bluetooth threads that are used in audio have deadline
requirements for glitchless playback.  Those threads need to be
scheduled as RT tasks to ensure that they can meet the deadline even if
there is high system load.

Bug 37518404

Test:  play Bluetooth audio, check for RT with systrace
Change-Id: I4505fbce55e5a4fe18d00dbda23646a60e482efd

7 years agoMerge "Add missing library dependency when compiling the unit tests" into oc-dev
Pavlin Radoslavov [Tue, 25 Apr 2017 18:04:47 +0000 (18:04 +0000)]
Merge "Add missing library dependency when compiling the unit tests" into oc-dev
am: fc9f1bcd77

Change-Id: I117881b8d06d77b02b6a5e9c82b5eaba19b23b73

7 years agoMerge "Add missing library dependency when compiling the unit tests" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:39:47 +0000 (17:39 +0000)]
Merge "Add missing library dependency when compiling the unit tests" into oc-dev

7 years agoAVRCP 1.6: Limit GetFolderItemResponse
Hemant Gupta [Tue, 25 Apr 2017 17:00:04 +0000 (17:00 +0000)]
AVRCP 1.6: Limit GetFolderItemResponse
am: 900c29e0f1

Change-Id: Id1168bea36eabde194320782b02912d70ba5f6bc

7 years agoMerge "Handle remote not supporting LL_SLAVE_FEATURE_REQ" am: e3caefe394 am: e8eb07a442
Jakub Pawlowski [Tue, 25 Apr 2017 10:45:29 +0000 (10:45 +0000)]
Merge "Handle remote not supporting LL_SLAVE_FEATURE_REQ" am: e3caefe394 am: e8eb07a442
am: 81afe08a4c

Change-Id: Ic274b92bb2356217d13c47eef91f6a81f0b84035

7 years agoMerge "Handle remote not supporting LL_SLAVE_FEATURE_REQ" am: e3caefe394
Jakub Pawlowski [Tue, 25 Apr 2017 10:42:59 +0000 (10:42 +0000)]
Merge "Handle remote not supporting LL_SLAVE_FEATURE_REQ" am: e3caefe394
am: e8eb07a442

Change-Id: Icd7c41ef5e8e4992973ad1d211d9c9d27e449e35

7 years agoMerge "Handle remote not supporting LL_SLAVE_FEATURE_REQ"
Jakub Pawlowski [Tue, 25 Apr 2017 10:40:29 +0000 (10:40 +0000)]
Merge "Handle remote not supporting LL_SLAVE_FEATURE_REQ"
am: e3caefe394

Change-Id: I15ab18d2f7aec748287c0420f143c4a57e8a0e4f

7 years agoMerge "Handle remote not supporting LL_SLAVE_FEATURE_REQ"
Treehugger Robot [Tue, 25 Apr 2017 10:35:03 +0000 (10:35 +0000)]
Merge "Handle remote not supporting LL_SLAVE_FEATURE_REQ"

7 years agoAdd missing library dependency when compiling the unit tests
Pavlin Radoslavov [Tue, 25 Apr 2017 00:37:20 +0000 (17:37 -0700)]
Add missing library dependency when compiling the unit tests

This fixes a compilation issue when compiling with ASAN enabled.

Bug: 37624756
Test: make -j 40  SANITIZE_TARGET='address coverage' tests
Change-Id: I9caa3d404e60ee105435539744ed2b8ccf353700
(cherry picked from commit 044921b223868595a6f96709020b46349b05fa45)

7 years agoAdd missing library dependency when compiling the unit tests am: 044921b223 am: 464a0...
Pavlin Radoslavov [Tue, 25 Apr 2017 05:10:07 +0000 (05:10 +0000)]
Add missing library dependency when compiling the unit tests am: 044921b223 am: 464a06af0b
am: 584e0f9d67

Change-Id: Ie986de26ad43fecd6062fe70bc7efafe658aa8b0

7 years agoAdd missing library dependency when compiling the unit tests am: 044921b223
Pavlin Radoslavov [Tue, 25 Apr 2017 05:08:37 +0000 (05:08 +0000)]
Add missing library dependency when compiling the unit tests am: 044921b223
am: 464a06af0b

Change-Id: Ib2486084fb69d73c897635cfbe7c3c0252a2a419

7 years agoAdd missing library dependency when compiling the unit tests
Pavlin Radoslavov [Tue, 25 Apr 2017 05:06:37 +0000 (05:06 +0000)]
Add missing library dependency when compiling the unit tests
am: 044921b223

Change-Id: I491edb09f445b5aca0948c134cb78a0334804043

7 years agoAVRCP 1.6: Limit GetFolderItemResponse
Hemant Gupta [Wed, 12 Apr 2017 18:26:15 +0000 (23:56 +0530)]
AVRCP 1.6: Limit GetFolderItemResponse

Usecase:
1) Connect from AVRCP Controller supporting browsing
   having low L2CAP MTU eg 672.
2) Request for get folder items with large request items,
   response for which will exceed MTU size.

Expected Result:
As per AVRCP 1.6 Spec, section 29.20 pg 178, response should be
limited to number of completed get folder items that can fit in
single AVCTP Browsing channel MTU even if the completed items
are less than actually requested by AVRCP Controller.

Observation:
DUT responding with Internal Error.

Root Cause:
When there is no space to fill complete Get Folder Item response
within MTU size, DUT was returning error.

Fix:
Send max completed items which can fit in single MTU packet.

Test: Checked if the remote device can receive the truncated
response and get folder items succeeds when remote device
reissues get folder item request with updated start list count.

Frequency: 5/5

Bug: 37304477
Change-Id: I1963f97075382fc8333038e3efffaf61a9d84a28
(cherry picked from commit a7c7437bbffe133f9192b9ca82b5b4e1f6d9835a)

7 years agoAdd missing library dependency when compiling the unit tests
Pavlin Radoslavov [Tue, 25 Apr 2017 00:37:20 +0000 (17:37 -0700)]
Add missing library dependency when compiling the unit tests

This fixes a compilation issue when compiling with ASAN enabled.

Bug: 37624756
Test: make -j 40  SANITIZE_TARGET='address coverage' tests
Change-Id: I9caa3d404e60ee105435539744ed2b8ccf353700

7 years agoAVRCP 1.6: Limit GetFolderItemResponse am: a7c7437bbf am: 0940c18aef
Hemant Gupta [Tue, 25 Apr 2017 00:12:47 +0000 (00:12 +0000)]
AVRCP 1.6: Limit GetFolderItemResponse am: a7c7437bbf am: 0940c18aef
am: c8c71c24bf

Change-Id: I24eba7b3270e82186f8d4c62ddf2fd4bd69c2812

7 years agoAVRCP 1.6: Limit GetFolderItemResponse am: a7c7437bbf
Hemant Gupta [Tue, 25 Apr 2017 00:10:46 +0000 (00:10 +0000)]
AVRCP 1.6: Limit GetFolderItemResponse am: a7c7437bbf
am: 0940c18aef

Change-Id: Ib239a2d16b5f89998cd92b0891217eda88b1ce3b

7 years agoAVRCP 1.6: Limit GetFolderItemResponse
Hemant Gupta [Tue, 25 Apr 2017 00:08:46 +0000 (00:08 +0000)]
AVRCP 1.6: Limit GetFolderItemResponse
am: a7c7437bbf

Change-Id: I6e0eedf6a7486aadcb6fabf214f1bafa2efd2233

7 years agoHandle remote not supporting LL_SLAVE_FEATURE_REQ
Jakub Pawlowski [Mon, 24 Apr 2017 13:34:11 +0000 (06:34 -0700)]
Handle remote not supporting LL_SLAVE_FEATURE_REQ

Test: for PTS
Change-Id: I3030a068c1c4980fa7cbb23b478afbe441584869

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (3/3)
Stanley Tng [Sat, 22 Apr 2017 00:24:06 +0000 (00:24 +0000)]
Allow the Bluetooth MAC address to be updated asynchronously (3/3)
am: 514274c60b

Change-Id: I135b400c34abe5a5a1a403cc23600f5a73f05aa4

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (3/3)
Stanley Tng [Tue, 18 Apr 2017 05:38:38 +0000 (22:38 -0700)]
Allow the Bluetooth MAC address to be updated asynchronously (3/3)

There are intermittent issues where either the returned Bluetooth
MAC address to Java framework is uninitialized or this address update
arrives too late. This fix will do 2 things:
(1) Returns error when MAC address is unavailable in the native code.
(2) Updates the MAC address later by adding a new broadcast event.

Test: Check address for these cases: factory reset, system reboot, and
Bluetooth re-enable.
Bug: 36709382

Change-Id: I7b1c526ee227897c003ac921078f317f96b92604
(cherry picked from commit 7dc0525365025e17e289869288b1b7d5146306cc)

7 years agoMerge "Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into...
Android Build Merger (Role) [Fri, 21 Apr 2017 21:10:14 +0000 (21:10 +0000)]
Merge "Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev am: b53535d61b  -s ours am: 1238329f28  -s ours am: 0e4602c0c9  -s ours" into oc-dev-plus-aosp

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f...
Zach Johnson [Fri, 21 Apr 2017 21:10:05 +0000 (21:10 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev am: b53535d61b  -s ours am: 1238329f28  -s ours
am: 0e4602c0c9  -s ours

Change-Id: Ic7c84d88c7b4a04091e223f2cee37d738a721ba1

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f...
Zach Johnson [Fri, 21 Apr 2017 21:10:02 +0000 (21:10 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev am: b53535d61b  -s ours am: 1238329f28  -s ours
am: 22d3abd790  -s ours

Change-Id: I903fbf8d2a2606adc467ee3d07089dde935492ed

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79...
Android Build Merger (Role) [Fri, 21 Apr 2017 21:09:51 +0000 (21:09 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79  -s ours am: 31dfa53ba0  -s ours am: 02838b69d8  -s ours" into oc-dev-plus-aosp

7 years agoDO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79 -s...
Zach Johnson [Fri, 21 Apr 2017 21:09:25 +0000 (21:09 +0000)]
DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79  -s ours am: 31dfa53ba0  -s ours
am: 06dbac754e  -s ours

Change-Id: I5b6871e2fda632c29550888f8c2ce477b5afff38

7 years agoDO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79 -s...
Zach Johnson [Fri, 21 Apr 2017 21:09:25 +0000 (21:09 +0000)]
DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79  -s ours am: 31dfa53ba0  -s ours
am: 02838b69d8  -s ours

Change-Id: I87f969d52b79203d1e4f9f3321b2de7a48b83400

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f...
Zach Johnson [Fri, 21 Apr 2017 21:07:06 +0000 (21:07 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev am: b53535d61b  -s ours
am: 1238329f28  -s ours

Change-Id: I5995614654f92977a6118ea365f1575e97acfbc1

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f...
Zach Johnson [Fri, 21 Apr 2017 21:07:04 +0000 (21:07 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev am: b53535d61b  -s ours
am: 1238329f28  -s ours

Change-Id: Iac0e37a325ecfda313ed0f333873b33b80713f0a

7 years agoDO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79 -s...
Zach Johnson [Fri, 21 Apr 2017 21:06:23 +0000 (21:06 +0000)]
DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79  -s ours
am: 31dfa53ba0  -s ours

Change-Id: Ic94d0bb3152b25c3d4c4b4d033c9a80a358727f3

7 years agoDO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79 -s...
Zach Johnson [Fri, 21 Apr 2017 21:06:23 +0000 (21:06 +0000)]
DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy am: c61ef79a79  -s ours
am: 31dfa53ba0  -s ours

Change-Id: Ie93beab51ec5e03d58c3df28c9d117450e8a8a5f

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev
Zach Johnson [Fri, 21 Apr 2017 21:04:06 +0000 (21:04 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev
am: b53535d61b  -s ours

Change-Id: I2399d1832fe643ef0057c2c4d0b0fa4bf860e760

7 years agoDO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy
Zach Johnson [Fri, 21 Apr 2017 21:03:23 +0000 (21:03 +0000)]
DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy
am: c61ef79a79  -s ours

Change-Id: I9704dd064ab5f37ca0ecb310be1cf73826737665

7 years agoMerge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev
Zach Johnson [Fri, 21 Apr 2017 20:58:11 +0000 (20:58 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy" into cw-f-dev

7 years agoDO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy
Zach Johnson [Wed, 19 Apr 2017 04:03:07 +0000 (21:03 -0700)]
DO NOT MERGE ANYWHERE Allow blocking AG SCO connects by policy

Needed for devices that support both HFP AG and HFP HF.

btsnoop logs show the sequence of events leading to failure:
(corroborated by bt logcat)

1. ACL connection with remote phone established on handle 0x01
2. ACL connection with remote headset established on handle 0x02
3. Incoming call in HF role from phone
4. Phone call locally published to telecom
5. Answer incoming call
6. SCO connection established with phone in HF role
7. AG role with headset picks up on call state change to answered
   via BTA_AG_IN_CALL_CONN_RES
8. Inside handler for BTA_AG_IN_CALL_CONN_RES, bta_ag_sco_open called
   to establish the SCO connection in the AG role with the headset,
   stomping on the previous (wanted) SCO connection with the phone.

Fix is to publish the SCO audio route policy to fluoride, so we can
stop 8 from happening.

Bug: 32958838
Test: manual:
      received incoming call in HF role, audio worked both ways;
      recieved incoming MT call, headset audio in AG role worked both ways
Change-Id: I12961598e8200bd1d5adb46ee8ec3a802114b80a

7 years agoAVRCP 1.6: Limit GetFolderItemResponse
Hemant Gupta [Wed, 12 Apr 2017 18:26:15 +0000 (23:56 +0530)]
AVRCP 1.6: Limit GetFolderItemResponse

Usecase:
1) Connect from AVRCP Controller supporting browsing
   having low L2CAP MTU eg 672.
2) Request for get folder items with large request items,
   response for which will exceed MTU size.

Expected Result:
As per AVRCP 1.6 Spec, section 29.20 pg 178, response should be
limited to number of completed get folder items that can fit in
single AVCTP Browsing channel MTU even if the completed items
are less than actually requested by AVRCP Controller.

Observation:
DUT responding with Internal Error.

Root Cause:
When there is no space to fill complete Get Folder Item response
within MTU size, DUT was returning error.

Fix:
Send max completed items which can fit in single MTU packet.

Test: Checked if the remote device can receive the truncated
response and get folder items succeeds when remote device
reissues get folder item request with updated start list count.

Frequency: 5/5

Bug: 37304477
Change-Id: I1963f97075382fc8333038e3efffaf61a9d84a28

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (3/3) am: 7dc0525365...
Stanley Tng [Fri, 21 Apr 2017 01:39:06 +0000 (01:39 +0000)]
Allow the Bluetooth MAC address to be updated asynchronously (3/3) am: 7dc0525365 am: 196ffbec29
am: ae75f83f0e

Change-Id: Ic95d8611a6ff6e692a291fafc6df2b4c06a42971

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (3/3) am: 7dc0525365
Stanley Tng [Fri, 21 Apr 2017 01:30:27 +0000 (01:30 +0000)]
Allow the Bluetooth MAC address to be updated asynchronously (3/3) am: 7dc0525365
am: 196ffbec29

Change-Id: I1261534f65412e45b33242f35608f7852daa4cbb

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (3/3)
Stanley Tng [Fri, 21 Apr 2017 01:25:06 +0000 (01:25 +0000)]
Allow the Bluetooth MAC address to be updated asynchronously (3/3)
am: 7dc0525365

Change-Id: Ia26ccf1307446e2ea3dc9cbe3d90fc07fa7b168c

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (3/3)
Stanley Tng [Tue, 18 Apr 2017 05:38:38 +0000 (22:38 -0700)]
Allow the Bluetooth MAC address to be updated asynchronously (3/3)

There are intermittent issues where either the returned Bluetooth
MAC address to Java framework is uninitialized or this address update
arrives too late. This fix will do 2 things:
(1) Returns error when MAC address is unavailable in the native code.
(2) Updates the MAC address later by adding a new broadcast event.

Test: Check address for these cases: factory reset, system reboot, and
Bluetooth re-enable.
Bug: 36709382

Change-Id: I7b1c526ee227897c003ac921078f317f96b92604

7 years agoMerge "AVRC: Configure absolute volume to false if remove device not support it"...
Tsuyoshi Kamata [Thu, 20 Apr 2017 01:51:21 +0000 (01:51 +0000)]
Merge "AVRC: Configure absolute volume to false if remove device not support it" into oc-dev
am: b132626123

Change-Id: I8425a4bcd959a9be66c28a0b07456804bb497a11

7 years agoMerge "AVRC: Configure absolute volume to false if remove device not support it"...
TreeHugger Robot [Thu, 20 Apr 2017 01:47:33 +0000 (01:47 +0000)]
Merge "AVRC: Configure absolute volume to false if remove device not support it" into oc-dev

7 years agoMerge "Add default AVRCP version to prevent confusing log message" into oc-dev
Ajay Panicker [Thu, 20 Apr 2017 00:20:43 +0000 (00:20 +0000)]
Merge "Add default AVRCP version to prevent confusing log message" into oc-dev
am: 3969dbfc7b

Change-Id: I25c31279beaae92bb1478f070a06e385de1c7b65

7 years agoMerge "Add default AVRCP version to prevent confusing log message" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 00:07:09 +0000 (00:07 +0000)]
Merge "Add default AVRCP version to prevent confusing log message" into oc-dev

7 years agoAVRC: Configure absolute volume to false if remove device not support it
Tsuyoshi Kamata [Tue, 7 Mar 2017 06:46:34 +0000 (15:46 +0900)]
AVRC: Configure absolute volume to false if remove device not support it

Some AVRCP(ver>1.4) devices don't support absolute volume, when connected
to such device, volume control doesn't work properly on phone.

This patch fix the problem as bellow:
 - check category of remote device
     when add absolute volume feature flag.
 - remove absolute volume feature flag
     if remote device responses REJECT or NOT_IMPLEMENT.

Bug: 33441894
Test: manual
Change-Id: Icfd6f61699490efd937fa6d2383f333eb0f0144a
(cherry picked from commit a4fcd238aedee87384fa164e9465302aa4b69035)

7 years agoMerge "test_vendor: Remove unused libbt-vendor files" into oc-dev
Myles Watson [Wed, 19 Apr 2017 22:43:50 +0000 (22:43 +0000)]
Merge "test_vendor: Remove unused libbt-vendor files" into oc-dev
am: f94986f03f

Change-Id: Iaeb1c52a8df7922cd5cca647d5e6cd9a4e11a30a

7 years agoMerge "test_vendor: Remove unused libbt-vendor files" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 22:40:13 +0000 (22:40 +0000)]
Merge "test_vendor: Remove unused libbt-vendor files" into oc-dev

7 years agoAdd default AVRCP version to prevent confusing log message
Ajay Panicker [Fri, 31 Mar 2017 16:53:12 +0000 (09:53 -0700)]
Add default AVRCP version to prevent confusing log message

Bug: 37509042
Test: Log message shows more info
Change-Id: Ic042d1cf1489e391fe6e9cc3d6239acb79917b01

7 years agoDo not GATT_ERROR on MTU change am: a365626943 am: f21c3dede7 -s ours
Jacky Cheung [Wed, 19 Apr 2017 21:58:55 +0000 (21:58 +0000)]
Do not GATT_ERROR on MTU change am: a365626943 am: f21c3dede7  -s ours
am: 1e0b4ff999

Change-Id: I34da681e36b3ad2596bb8eb6220dd37041c979ea

7 years agoExpose LE advertiser address for easier PTS tests (4/6) am: 779b4fd786 am: e4bb6e8f83
Jakub Pawlowski [Wed, 19 Apr 2017 21:50:56 +0000 (21:50 +0000)]
Expose LE advertiser address for easier PTS tests (4/6) am: 779b4fd786 am: e4bb6e8f83
am: 394495d12b

Change-Id: I28979f7fa4ee0e9429e6782100f0a4416f5e4b9b

7 years agoExpose LE advertiser address for easier PTS tests (4/6) am: 779b4fd786
Jakub Pawlowski [Wed, 19 Apr 2017 21:45:03 +0000 (21:45 +0000)]
Expose LE advertiser address for easier PTS tests (4/6) am: 779b4fd786
am: e4bb6e8f83

Change-Id: I5d254f14d669ba474b0a613ff5d2076199c4bbf6

7 years agoDo not GATT_ERROR on MTU change am: a365626943 am: f21c3dede7 -s ours
Jacky Cheung [Wed, 19 Apr 2017 21:42:33 +0000 (21:42 +0000)]
Do not GATT_ERROR on MTU change am: a365626943 am: f21c3dede7  -s ours
am: 4430d8418b

Change-Id: Ia96ed6183fc77eb79a6b6329b264e43fde25cb51

7 years agoDo not GATT_ERROR on MTU change am: a365626943
Jacky Cheung [Wed, 19 Apr 2017 21:40:33 +0000 (21:40 +0000)]
Do not GATT_ERROR on MTU change am: a365626943
am: f21c3dede7  -s ours

Change-Id: I34f636613c211a859da4e2a095e02ca801944b61

7 years agoDo not GATT_ERROR on MTU change am: a365626943
Jacky Cheung [Wed, 19 Apr 2017 21:40:33 +0000 (21:40 +0000)]
Do not GATT_ERROR on MTU change am: a365626943
am: f21c3dede7  -s ours

Change-Id: Ib5a4fa265f4a3b8d5556fe11fcfceaa76e3198e5

7 years agoMerge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count...
Pavlin Radoslavov [Wed, 19 Apr 2017 21:38:34 +0000 (21:38 +0000)]
Merge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count' am: 71cb1b834e am: 0fcf12030e
am: 745436f955

Change-Id: Ic13c92fb4171fc3f90f845846859d52921c40559

7 years agoExpose LE advertiser address for easier PTS tests (4/6)
Jakub Pawlowski [Wed, 19 Apr 2017 21:38:22 +0000 (21:38 +0000)]
Expose LE advertiser address for easier PTS tests (4/6)
am: 779b4fd786

Change-Id: Ic8fc5e79e6f74aaf778b0c5e39e2308dceb583be

7 years agoMerge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count...
Pavlin Radoslavov [Wed, 19 Apr 2017 21:37:03 +0000 (21:37 +0000)]
Merge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count' am: 71cb1b834e
am: 0fcf12030e

Change-Id: I827aa5b6a26e5ea73fe743964c1d93e273502677

7 years agoMerge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count'
Pavlin Radoslavov [Wed, 19 Apr 2017 21:35:10 +0000 (21:35 +0000)]
Merge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count'
am: 71cb1b834e

Change-Id: If9fd4741055889e2c81720cdceb65889570a66c3

7 years agoDo not GATT_ERROR on MTU change
Jacky Cheung [Wed, 19 Apr 2017 21:35:03 +0000 (21:35 +0000)]
Do not GATT_ERROR on MTU change
am: a365626943

Change-Id: I956c4ca2e31d5c98e986738be0890c17e21b1186

7 years agoExpose LE advertiser address for easier PTS tests (4/6)
Jakub Pawlowski [Wed, 19 Apr 2017 14:05:00 +0000 (07:05 -0700)]
Expose LE advertiser address for easier PTS tests (4/6)

This patchset adds a hidden method getOwnAddress, that lets app with
BLUETOOTH_PRIVILEGED permission to lear their own addreess. This is done
exclusively for PTS tests.

Bug: 35147497
Test: manual
Change-Id: I5ad554d872f2b772f2bf91642a9648c4018d935c

7 years agoMerge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count'
Pavlin Radoslavov [Wed, 19 Apr 2017 21:27:56 +0000 (21:27 +0000)]
Merge changes from topics 'bt-a2dp-ldac-abr-adjustments', 'bt-a2dp-ldac-dropped-count'

* changes:
  Print the LDAC adaptive bit rate adjustments
  Fix/update the computation of the total dropped packets for LDAC and AAC

7 years agoAVRCP TG: Get Item Attribute command not working
Hemant Gupta [Wed, 19 Apr 2017 20:59:05 +0000 (20:59 +0000)]
AVRCP TG: Get Item Attribute command not working
am: e4b63ad376

Change-Id: I387f79f210a70479305585e4d6e48e44a8ba0659

7 years agoRemove libbt-vendor from system/bt/main/Android.bp
Myles Watson [Wed, 19 Apr 2017 20:58:54 +0000 (20:58 +0000)]
Remove libbt-vendor from system/bt/main/Android.bp
am: f6286798fb

Change-Id: I943e1dd00ec4d79dba74a75d9d070791a3fc4b9f

7 years agoAVRCP TG: Get Item Attribute command not working
Hemant Gupta [Thu, 13 Apr 2017 14:34:36 +0000 (20:04 +0530)]
AVRCP TG: Get Item Attribute command not working

Usecase:
1) Connect from carkit supporting AVRCP 1.4/1.5 CT to DUT
2) Issue get item attribute command with valid attribute list.

Expected behaviour:
Get item attribute command succeeds and returns the requested
attributes of particular item

Observed result:
Get Item attribute command fails with BAD Param Error

Root Cause:
Wrong structure from tAVRC_COMMAND was being passed to fill_attribute_id_array
which was leading to error being returned.

Fix:
Use get_attrs of type tAVRC_GET_ATTRS_CMD instead of get_elem_attrs of type
tAVRC_GET_ELEM_ATTRS_CMD when remote device requests for get item attributes.

Test: Checked that now bad param error is not returned in response for
get item attribute command from remote device.

Bug: 37302234
Bug: 36055995
Change-Id: I9245f726f37ffd666d143d2232dac868a2cc3268
(cherry picked from commit 6510a471696f24a051b79ca9fd7a210bf7e293bc)

7 years agoMerge "Remove libbt-vendor from system/bt/main/Android.bp" am: 285b7035f5 am: aa097ccd58
Myles Watson [Wed, 19 Apr 2017 20:42:27 +0000 (20:42 +0000)]
Merge "Remove libbt-vendor from system/bt/main/Android.bp" am: 285b7035f5 am: aa097ccd58
am: 9219d43f75

Change-Id: I69bc290cfeefad3ec337e734989b91aa261b20f6

7 years agotest_vendor: Remove unused libbt-vendor files am: 10b43d2fa0 am: da84611a5d
Myles Watson [Wed, 19 Apr 2017 20:42:14 +0000 (20:42 +0000)]
test_vendor: Remove unused libbt-vendor files am: 10b43d2fa0 am: da84611a5d
am: 062781b798

Change-Id: I178c65c1cb665114e1beefaf8d94ef155362c274

7 years agoMerge "Remove libbt-vendor from system/bt/main/Android.bp" am: 285b7035f5
Myles Watson [Wed, 19 Apr 2017 20:40:55 +0000 (20:40 +0000)]
Merge "Remove libbt-vendor from system/bt/main/Android.bp" am: 285b7035f5
am: aa097ccd58

Change-Id: I8ae80018fa7a9ad2d8c2032c76a8dcf7f70ef265

7 years agotest_vendor: Remove unused libbt-vendor files am: 10b43d2fa0
Myles Watson [Wed, 19 Apr 2017 20:40:44 +0000 (20:40 +0000)]
test_vendor: Remove unused libbt-vendor files am: 10b43d2fa0
am: da84611a5d

Change-Id: Ibdb7960040974c7830da81cec3f3809d138878e8

7 years agoMerge "Remove libbt-vendor from system/bt/main/Android.bp"
Myles Watson [Wed, 19 Apr 2017 20:36:37 +0000 (20:36 +0000)]
Merge "Remove libbt-vendor from system/bt/main/Android.bp"
am: 285b7035f5

Change-Id: I5dc76c1ca7c6fa7a5124707242aa80d9b8394fe4

7 years agotest_vendor: Remove unused libbt-vendor files
Myles Watson [Mon, 17 Apr 2017 20:43:05 +0000 (13:43 -0700)]
test_vendor: Remove unused libbt-vendor files

Bug: 36810308
Test: builds
Change-Id: I50b4a3efaac622959dbf25c0f854d455057e6f3e
(cherry picked from commit 10b43d2fa0f408dbe465febb27aace0e111b01ff)

7 years agotest_vendor: Remove unused libbt-vendor files
Myles Watson [Wed, 19 Apr 2017 20:36:24 +0000 (20:36 +0000)]
test_vendor: Remove unused libbt-vendor files
am: 10b43d2fa0

Change-Id: I657ea0ebe5ed278c543d6bad6fa924332df32092

7 years agoMerge "Remove libbt-vendor from system/bt/main/Android.bp"
Treehugger Robot [Wed, 19 Apr 2017 20:31:45 +0000 (20:31 +0000)]
Merge "Remove libbt-vendor from system/bt/main/Android.bp"

7 years agotest_vendor: Remove unused libbt-vendor files
Myles Watson [Mon, 17 Apr 2017 20:43:05 +0000 (13:43 -0700)]
test_vendor: Remove unused libbt-vendor files

Bug: 36810308
Test: builds
Change-Id: I50b4a3efaac622959dbf25c0f854d455057e6f3e

7 years agoRemove libbt-vendor from system/bt/main/Android.bp
Myles Watson [Tue, 7 Mar 2017 12:57:03 +0000 (04:57 -0800)]
Remove libbt-vendor from system/bt/main/Android.bp

Platforms that need libbt-vendor, which is deprecated, should include the
build dependency in device.mk.

Bug: 36810308
Test: Angler Bluetooth starts/stops
Change-Id: I0e37bf48536ca134493aaa3a496bafb3b80cd882

7 years agoRemove libbt-vendor from system/bt/main/Android.bp
Myles Watson [Tue, 7 Mar 2017 12:57:03 +0000 (04:57 -0800)]
Remove libbt-vendor from system/bt/main/Android.bp

Platforms that need libbt-vendor, which is deprecated, should include the
build dependency in device.mk.

Bug: 36810308
Test: Angler Bluetooth starts/stops
Change-Id: I0e37bf48536ca134493aaa3a496bafb3b80cd882

7 years agoMerge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0" am: 27a9864f...
Bailey Forrest [Wed, 19 Apr 2017 20:15:28 +0000 (20:15 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0" am: 27a9864f9f am: 150583af9a
am: 917dfde06f

Change-Id: Ia16c02a0310589e6059816da4e8932bc9deaae74

7 years agoMerge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0" am: 27a9864f9f
Bailey Forrest [Wed, 19 Apr 2017 20:13:29 +0000 (20:13 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0" am: 27a9864f9f
am: 150583af9a

Change-Id: I02ce7bac14342ca017f85cc2a043887b883779eb

7 years agoMerge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0"
Bailey Forrest [Wed, 19 Apr 2017 20:11:28 +0000 (20:11 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0"
am: 27a9864f9f

Change-Id: I57a83cb501da230abaabacb35c3c6562f6c3a1f3

7 years agoMerge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0"
Treehugger Robot [Wed, 19 Apr 2017 20:07:46 +0000 (20:07 +0000)]
Merge "bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0"

7 years agoPrint the LDAC adaptive bit rate adjustments
Pavlin Radoslavov [Wed, 19 Apr 2017 20:01:26 +0000 (20:01 +0000)]
Print the LDAC adaptive bit rate adjustments
am: 3c53aa771f

Change-Id: I916d0e35c90f6b4ab9cb80a9f6d9f0d65fbb4f3e

7 years agoFix line formatting per clang-format am: ce48fc7525 am: 35d372cf0d
Pavlin Radoslavov [Wed, 19 Apr 2017 19:24:25 +0000 (19:24 +0000)]
Fix line formatting per clang-format am: ce48fc7525 am: 35d372cf0d
am: e2a25a1311

Change-Id: I36d7c4f0f49d199dd7fe036c46e9aeaf510d4e86

7 years agoFix line formatting per clang-format am: ce48fc7525
Pavlin Radoslavov [Wed, 19 Apr 2017 19:22:55 +0000 (19:22 +0000)]
Fix line formatting per clang-format am: ce48fc7525
am: 35d372cf0d

Change-Id: I92512f68b228c4a8346212d56ca3a991ca2c439a

7 years agoFix line formatting per clang-format
Pavlin Radoslavov [Wed, 19 Apr 2017 19:20:23 +0000 (19:20 +0000)]
Fix line formatting per clang-format
am: ce48fc7525

Change-Id: I4a8916a40ca92b6baaee1199f7d568fb597d6783

7 years agoFix line formatting per clang-format
Pavlin Radoslavov [Wed, 19 Apr 2017 18:44:19 +0000 (11:44 -0700)]
Fix line formatting per clang-format

The fix is needed to resolve a merge conflict.

Test: Code compilation
Change-Id: I41cd79db1750b526fafa33e097c56a7cb46ba6af