OSDN Git Service

android-x86/system-bt.git
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 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 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

7 years agoPrint the LDAC adaptive bit rate adjustments
Pavlin Radoslavov [Wed, 19 Apr 2017 17:50:16 +0000 (10:50 -0700)]
Print the LDAC adaptive bit rate adjustments

A2DP LDAC State:
  ...
  LDAC quality mode                                       : ABR
  LDAC transmission bitrate (Kbps)                        : 990
  LDAC saved transmit queue length                        : 0
  LDAC adaptive bit rate encode quality mode index        : 0
  LDAC adaptive bit rate adjustments                      : 4

Test: A2DP streaming to headsets that support LDAC
Bug: 37287785
Change-Id: Ife8017ca129fa9b06ea85f6029c553a52a306cc2
(cherry picked from commit a825f565504fa17d5458c57092f4c0ec0e539128)

7 years agoPrint the LDAC adaptive bit rate adjustments
Pavlin Radoslavov [Wed, 19 Apr 2017 17:50:16 +0000 (10:50 -0700)]
Print the LDAC adaptive bit rate adjustments

A2DP LDAC State:
  ...
  LDAC quality mode                                       : ABR
  LDAC transmission bitrate (Kbps)                        : 990
  LDAC saved transmit queue length                        : 0
  LDAC adaptive bit rate encode quality mode index        : 0
  LDAC adaptive bit rate adjustments                      : 4

Test: A2DP streaming to headsets that support LDAC
Bug: 37287785
Change-Id: Ife8017ca129fa9b06ea85f6029c553a52a306cc2

7 years agoFix/update the computation of the total dropped packets for LDAC and AAC
Pavlin Radoslavov [Wed, 19 Apr 2017 03:05:39 +0000 (20:05 -0700)]
Fix/update the computation of the total dropped packets for LDAC and AAC

Also:
 * Print the "LDAC transmission bitrate (Kbps)"
 * Print the "LDAC adaptive bit rate encode quality mode index"
   when the LDAC quality mode is ABR

A2DP LDAC State:
  ...
  LDAC quality mode                                       : ABR
  LDAC transmission bitrate (Kbps)                        : 990
  LDAC saved transmit queue length                        : 0
  LDAC adaptive bit rate encode quality mode index        : 0

Test: A2DP streaming to headsets that support LDAC
Bug: 37287785
Change-Id: I83b22090b087eb8a1e49d1853468b7dbbf9d9ad3

7 years agoFix/update the computation of the total dropped packets for LDAC and AAC
Pavlin Radoslavov [Wed, 19 Apr 2017 16:59:44 +0000 (16:59 +0000)]
Fix/update the computation of the total dropped packets for LDAC and AAC
am: 9434886ffb

Change-Id: I9b85f5327b145f45b50de5f6192f61fdbafc37c3

7 years agoManually merge commit '08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp...
Jakub Pawlowski [Wed, 19 Apr 2017 16:04:43 +0000 (16:04 +0000)]
Manually merge commit '08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp-master am: 1e79289a3d
am: a93d037037

Change-Id: I6bafee58c5d1073c679e929386dfa698a58350d7

7 years agoManually merge commit '08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp...
Jakub Pawlowski [Wed, 19 Apr 2017 16:02:47 +0000 (16:02 +0000)]
Manually merge commit '08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp-master
am: 1e79289a3d

Change-Id: Id6e840155d3717eaa63d04f4f876bae78288e9a0

7 years agoManually merge commit '08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp...
The Android Automerger [Wed, 19 Apr 2017 15:35:44 +0000 (15:35 +0000)]
Manually merge commit '08215a3375a1e79fc9c1b2d12eba2ff26298910d' into stage-aosp-master

7 years agoFix/update the computation of the total dropped packets for LDAC and AAC
Pavlin Radoslavov [Wed, 19 Apr 2017 03:05:39 +0000 (20:05 -0700)]
Fix/update the computation of the total dropped packets for LDAC and AAC

Also:
 * Print the "LDAC transmission bitrate (Kbps)"
 * Print the "LDAC adaptive bit rate encode quality mode index"
   when the LDAC quality mode is ABR

A2DP LDAC State:
  ...
  LDAC quality mode                                       : ABR
  LDAC transmission bitrate (Kbps)                        : 990
  LDAC saved transmit queue length                        : 0
  LDAC adaptive bit rate encode quality mode index        : 0

Test: A2DP streaming to headsets that support LDAC
Bug: 37287785
Change-Id: I83b22090b087eb8a1e49d1853468b7dbbf9d9ad3
(cherry picked from commit 648ea508c95ade2d8cb8b2928c70ae123fab8334)

7 years agoRead by UUID for PTS tests (4/5)
Jakub Pawlowski [Fri, 14 Apr 2017 14:27:49 +0000 (07:27 -0700)]
Read by UUID for PTS tests (4/5)

Add a hidden api for reading characteristic by UUID for PTS.

Bug: 35150313
Test: sl4a GattReadTest.byUuid
Change-Id: I072473c5f7b761707774efd89f8a22bfdf012135

7 years agoMerge "Read by UUID for PTS tests (4/5)"
Treehugger Robot [Wed, 19 Apr 2017 06:08:48 +0000 (06:08 +0000)]
Merge "Read by UUID for PTS tests (4/5)"

7 years agobta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0
Bailey Forrest [Wed, 19 Apr 2017 04:04:10 +0000 (21:04 -0700)]
bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0

Previously this value was uninitialized. Attribute permissions are not
discovable via the attribute protocol.

Bug: None
Test: Build. permissions are 0.
Change-Id: I5fdac3b90683245a0af0d6e27a2873499ca90e6c

7 years agoMerge "AVRCP TG: Get Item Attribute command not working" am: d2aa2fc95b am: cb7f8c70b5
Hemant Gupta [Wed, 19 Apr 2017 00:51:52 +0000 (00:51 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working" am: d2aa2fc95b am: cb7f8c70b5
am: d4a2a01ec7

Change-Id: I6b9df5b14d770e0cc0bb179abfe581c34eec3fbd

7 years agoMerge "AVRCP TG: Get Item Attribute command not working" am: d2aa2fc95b
Hemant Gupta [Wed, 19 Apr 2017 00:49:49 +0000 (00:49 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working" am: d2aa2fc95b
am: cb7f8c70b5

Change-Id: I65110974cf2836bceda165e80f7318cb2e44a261

7 years agoMerge "AVRCP TG: Get Item Attribute command not working"
Hemant Gupta [Wed, 19 Apr 2017 00:48:18 +0000 (00:48 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working"
am: d2aa2fc95b

Change-Id: I674de144b19bc97c540d7f806c16cb3f29cb3f95

7 years agoMerge "AVRCP TG: Get Item Attribute command not working"
Treehugger Robot [Wed, 19 Apr 2017 00:41:26 +0000 (00:41 +0000)]
Merge "AVRCP TG: Get Item Attribute command not working"

7 years agostack: AVRCP: add missing debug arguments
Hemant Gupta [Wed, 19 Apr 2017 00:38:08 +0000 (00:38 +0000)]
stack: AVRCP: add missing debug arguments
am: 48a6e63aef

Change-Id: If0b180c097079265b5c96bfb2feca17da947ab3f

7 years agostack: AVRCP: add missing debug arguments
Hemant Gupta [Fri, 14 Apr 2017 06:37:37 +0000 (12:07 +0530)]
stack: AVRCP: add missing debug arguments

Fixes a crash while sending AVRCP Get Item Attribute response due to missing
function arguments.

Test: test with BMW kit, Crysler kit which trigger this bug

Bug: 37334553
Fixes: 37474772
Change-Id: Ie129e22e427896028a50e6b0ae8c2cdd151b0ea1
(cherry picked from commit 2dc048b0ed2684d8e538f0eaf67cd2b7ea79ce96)

7 years agostack: AVRCP: add missing debug arguments am: 2dc048b0ed am: b40f1ad083
Hemant Gupta [Tue, 18 Apr 2017 22:24:38 +0000 (22:24 +0000)]
stack: AVRCP: add missing debug arguments am: 2dc048b0ed am: b40f1ad083
am: 3baa7f7667

Change-Id: I7b513614a3f5b3f6abc718392494994b2d8b4d7e

7 years agostack: AVRCP: add missing debug arguments am: 2dc048b0ed
Hemant Gupta [Tue, 18 Apr 2017 22:19:35 +0000 (22:19 +0000)]
stack: AVRCP: add missing debug arguments am: 2dc048b0ed
am: b40f1ad083

Change-Id: Ifeaf62250d7d9b5ec4788c4ef7843dfa4d28da1e

7 years agostack: AVRCP: add missing debug arguments
Hemant Gupta [Tue, 18 Apr 2017 22:15:03 +0000 (22:15 +0000)]
stack: AVRCP: add missing debug arguments
am: 2dc048b0ed

Change-Id: I11e19332f16c577353f811ab87bcc384d9cdfcac

7 years agostack: AVRCP: add missing debug arguments
Hemant Gupta [Fri, 14 Apr 2017 06:37:37 +0000 (12:07 +0530)]
stack: AVRCP: add missing debug arguments

Fixes a crash while sending AVRCP Get Item Attribute response due to missing
function arguments.

Test: test with BMW kit, Crysler kit which trigger this bug

Bug: 37334553
Fixes: 37474772
Change-Id: Ie129e22e427896028a50e6b0ae8c2cdd151b0ea1

7 years agoMerge "AVRCP CT: Only call handle_rc_features if target registered" into oc-dev
Bailey Forrest [Tue, 18 Apr 2017 13:50:47 +0000 (13:50 +0000)]
Merge "AVRCP CT: Only call handle_rc_features if target registered" into oc-dev
am: 2a0f9f8fca

Change-Id: I9df8a4a703ed5c8af8f93e505a9e38cd2f513b02

7 years agoMerge "AVRCP CT: Only call handle_rc_features if target registered" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 13:42:18 +0000 (13:42 +0000)]
Merge "AVRCP CT: Only call handle_rc_features if target registered" into oc-dev