OSDN Git Service

android-x86/system-bt.git
7 years agoSet the A2DP media channel as a high priority L2CAP link
Ben YoungTae Kim [Wed, 28 Jun 2017 23:05:34 +0000 (23:05 +0000)]
Set the A2DP media channel as a high priority L2CAP link
am: 78444b9246

Change-Id: If8449667cd65def655fc0d8f85167d5d7509e91c

7 years agoMerge "Get rid of BD_ADDR (again)" am: abc4a993c8 am: 7e87dfbb38
Jakub Pawlowski [Wed, 28 Jun 2017 21:51:00 +0000 (21:51 +0000)]
Merge "Get rid of BD_ADDR (again)" am: abc4a993c8 am: 7e87dfbb38
am: 59331847d0

Change-Id: I75291b11a6d8e13bd4edd1b0905dd7e99c962dbe

7 years agoMerge "Get rid of BD_ADDR (again)" am: abc4a993c8
Jakub Pawlowski [Wed, 28 Jun 2017 21:47:31 +0000 (21:47 +0000)]
Merge "Get rid of BD_ADDR (again)" am: abc4a993c8
am: 7e87dfbb38

Change-Id: I6d5525d14483ee16981ba58e46be185ad8cc37d7

7 years agoMerge "Get rid of BD_ADDR (again)"
Jakub Pawlowski [Wed, 28 Jun 2017 21:44:01 +0000 (21:44 +0000)]
Merge "Get rid of BD_ADDR (again)"
am: abc4a993c8

Change-Id: Ic4da09c13391f7b13ce3797b42188c6b9ce1289a

7 years agoMerge "Get rid of BD_ADDR (again)"
Treehugger Robot [Wed, 28 Jun 2017 21:36:09 +0000 (21:36 +0000)]
Merge "Get rid of BD_ADDR (again)"

7 years agoSet the A2DP media channel as a high priority L2CAP link am: 624ba681a6 am: 68aa3209de
Ben YoungTae Kim [Wed, 28 Jun 2017 20:30:23 +0000 (20:30 +0000)]
Set the A2DP media channel as a high priority L2CAP link am: 624ba681a6 am: 68aa3209de
am: 918cb2cf69

Change-Id: Icdf8eb444d4f564ef7955e51674b150ba9ef2df7

7 years agoSet the A2DP media channel as a high priority L2CAP link am: 624ba681a6
Ben YoungTae Kim [Wed, 28 Jun 2017 20:27:54 +0000 (20:27 +0000)]
Set the A2DP media channel as a high priority L2CAP link am: 624ba681a6
am: 68aa3209de

Change-Id: I911c1883b8438ea29fd14b4d38e4edb0c95cc1fb

7 years agoSet the A2DP media channel as a high priority L2CAP link
Ben YoungTae Kim [Wed, 28 Jun 2017 20:23:25 +0000 (20:23 +0000)]
Set the A2DP media channel as a high priority L2CAP link
am: 624ba681a6

Change-Id: Ie43bd0c37d05bbe8ad3072a2918b4a500635bbfd

7 years agoGet rid of BD_ADDR (again)
Jakub Pawlowski [Wed, 28 Jun 2017 19:04:53 +0000 (12:04 -0700)]
Get rid of BD_ADDR (again)

BD_ADDR and BD_ADDR_LEN were defined multiple times. Get rid of the
redefiniton.

Test: compilation test
Change-Id: Ib6e922ce88132045c13ddc28d681a0f673d87407

7 years agoSet the A2DP media channel as a high priority L2CAP link
Ben YoungTae Kim [Tue, 20 Jun 2017 13:56:08 +0000 (19:26 +0530)]
Set the A2DP media channel as a high priority L2CAP link

Use dynamic ACL buffer allocation for high priority links:
1. Ensure dedicated ACL buffers for high priority links
2. Adjust buffer allocation if the priority of the link changes

Test: Manually tested with 4 HID devices and A2DP streaming scenario
Bug: 30787081
Change-Id: Id3c4a76e360aee322e9f8073bd399807e7987990
(cherry picked from commit 624ba681a63fa5ecf778b0b019735359654c6dd0)

7 years agoSet the A2DP media channel as a high priority L2CAP link
Ben YoungTae Kim [Tue, 20 Jun 2017 13:56:08 +0000 (19:26 +0530)]
Set the A2DP media channel as a high priority L2CAP link

Use dynamic ACL buffer allocation for high priority links:
1. Ensure dedicated ACL buffers for high priority links
2. Adjust buffer allocation if the priority of the link changes

Test: Manually tested with 4 HID devices and A2DP streaming scenario
Bug: 30787081
Change-Id: Id3c4a76e360aee322e9f8073bd399807e7987990

7 years agoLE State simplification am: 5e43c8035c am: f61bb914f7
Jakub Pawlowski [Wed, 28 Jun 2017 01:59:47 +0000 (01:59 +0000)]
LE State simplification am: 5e43c8035c am: f61bb914f7
am: 08e60e4ffe

Change-Id: I4e19cbab802c318b8ea093eaf98de8a9f4764ffb

7 years agoLE State simplification am: 5e43c8035c
Jakub Pawlowski [Wed, 28 Jun 2017 01:56:46 +0000 (01:56 +0000)]
LE State simplification am: 5e43c8035c
am: f61bb914f7

Change-Id: Iba5a2455a8cc4000cc954947d81122b10b2561a4

7 years agoLE State simplification
Jakub Pawlowski [Wed, 28 Jun 2017 01:53:15 +0000 (01:53 +0000)]
LE State simplification
am: 5e43c8035c

Change-Id: I61a1cad20efa6eba7ba737458850c0b985eb3725

7 years agoLE State simplification
Jakub Pawlowski [Tue, 27 Jun 2017 00:22:35 +0000 (17:22 -0700)]
LE State simplification

Test: sl4a GattReadTest
Change-Id: I53d9b9a25f39b06e3593311ed9af5b1df10637ed

7 years agoMerge "Fix a inappropriate return of local var address" am: 7aefc01942 am: fa67212c82
Marie Janssen [Tue, 27 Jun 2017 23:06:34 +0000 (23:06 +0000)]
Merge "Fix a inappropriate return of local var address" am: 7aefc01942 am: fa67212c82
am: 92619e3731

Change-Id: I9293204adf48ca274f370355d5f0b205e4054985

7 years agoMerge "Fix a inappropriate return of local var address" am: 7aefc01942
Marie Janssen [Tue, 27 Jun 2017 23:03:34 +0000 (23:03 +0000)]
Merge "Fix a inappropriate return of local var address" am: 7aefc01942
am: fa67212c82

Change-Id: Ibc425fd3cb5976ff09dfb8535b0f964ffb3cd908

7 years agoMerge "Fix a inappropriate return of local var address"
Marie Janssen [Tue, 27 Jun 2017 23:00:35 +0000 (23:00 +0000)]
Merge "Fix a inappropriate return of local var address"
am: 7aefc01942

Change-Id: I6adc54b4d905322e865ea8e455f52c3a2012b944

7 years agoMerge "Fix a inappropriate return of local var address"
Marie Janssen [Tue, 27 Jun 2017 22:51:08 +0000 (22:51 +0000)]
Merge "Fix a inappropriate return of local var address"

7 years agoHCI feature/command support check simplification am: ec9f2f5ed0 am: 643ded0d3e
Jakub Pawlowski [Tue, 27 Jun 2017 22:09:01 +0000 (22:09 +0000)]
HCI feature/command support check simplification am: ec9f2f5ed0 am: 643ded0d3e
am: a5b73565bb

Change-Id: If7521b5ee74b93bbee2c7285d626085a750758f6

7 years agoHCI feature/command support check simplification am: ec9f2f5ed0
Jakub Pawlowski [Tue, 27 Jun 2017 22:06:34 +0000 (22:06 +0000)]
HCI feature/command support check simplification am: ec9f2f5ed0
am: 643ded0d3e

Change-Id: I4f4d091b47cb3b89c779e95500af2d774f0af900

7 years agoHCI feature/command support check simplification
Jakub Pawlowski [Tue, 27 Jun 2017 22:03:30 +0000 (22:03 +0000)]
HCI feature/command support check simplification
am: ec9f2f5ed0

Change-Id: I64cf6631447711660567cfdb8e65ee3f6572ebfd

7 years agoFix a inappropriate return of local var address
liuchao [Fri, 5 May 2017 03:04:33 +0000 (11:04 +0800)]
Fix a inappropriate return of local var address

Local variable address is returned through giving to
"p_db->p_attrs", which needs to be available after
returned from the function.

Test: mm -j8
Change-Id: I68744d0c925e3ea384a07ad6491fe831d59ee2fd

7 years agoHCI feature/command support check simplification
Jakub Pawlowski [Mon, 26 Jun 2017 20:06:17 +0000 (13:06 -0700)]
HCI feature/command support check simplification

Don't use one-time long constants
Test: compilation test

Change-Id: Iaab8039269215b44608193290de4d140e1399e66

7 years agoDon't send the LE Set Privacy Mode command if it's not supported am: ba78601034 am...
Jakub Pawlowski [Tue, 27 Jun 2017 00:39:19 +0000 (00:39 +0000)]
Don't send the LE Set Privacy Mode command if it's not supported am: ba78601034 am: 6406a97f03
am: 0a61ac490e

Change-Id: I06924f5e58db8c14e22aece46ce95d94101b15a9

7 years agoDon't send the LE Set Privacy Mode command if it's not supported am: ba78601034
Jakub Pawlowski [Tue, 27 Jun 2017 00:37:44 +0000 (00:37 +0000)]
Don't send the LE Set Privacy Mode command if it's not supported am: ba78601034
am: 6406a97f03

Change-Id: I91d5ee36013b5f5cd4e423cbb24129a6fb7adafd

7 years agoDon't send the LE Set Privacy Mode command if it's not supported
Jakub Pawlowski [Tue, 27 Jun 2017 00:36:09 +0000 (00:36 +0000)]
Don't send the LE Set Privacy Mode command if it's not supported
am: ba78601034

Change-Id: I18bcdfd58af00a6557871bee702b1ce8ad3bbe0e

7 years agoDon't send the LE Set Privacy Mode command if it's not supported
Jakub Pawlowski [Mon, 26 Jun 2017 18:26:46 +0000 (11:26 -0700)]
Don't send the LE Set Privacy Mode command if it's not supported

LE Set Privacy Mode is currently guarded by LE Privacy feature, which is
enabled on some 4.x controllers, that don't support LE Set Privcay Mode
that was added in 5.0 spec.

Bug: 62809491
Test: Turn Bluetooth on/off with Angler (4.x) and check for
      Set Privacy Mode
Change-Id: Ie9a164d98558db2e1fe76d90eb6ab93e4cec89d0

7 years agobtif: Pass UIDs changed up to the Java layer am: 57e508f56b am: 974a28d314
Marie Janssen [Mon, 26 Jun 2017 22:17:05 +0000 (22:17 +0000)]
btif: Pass UIDs changed up to the Java layer am: 57e508f56b am: 974a28d314
am: 518bc1d6d0

Change-Id: Idca4a6dc0f3a6c4be2d8f3f307e45303e6ee9c8d

7 years agobluetoothtbd common library reconfiguration am: 5f88533feb am: c92a438ce6
Jakub Pawlowski [Mon, 26 Jun 2017 22:16:26 +0000 (22:16 +0000)]
bluetoothtbd common library reconfiguration am: 5f88533feb am: c92a438ce6
am: 68686fdf0b

Change-Id: Ic221965f96c35bf5890c322fbb3657f1de0e3265

7 years agobtif: Pass UIDs changed up to the Java layer am: 57e508f56b
Marie Janssen [Mon, 26 Jun 2017 22:13:20 +0000 (22:13 +0000)]
btif: Pass UIDs changed up to the Java layer am: 57e508f56b
am: 974a28d314

Change-Id: I2ee1d8383819964df3c63216eb5958f1519dac38

7 years agobluetoothtbd common library reconfiguration am: 5f88533feb
Jakub Pawlowski [Mon, 26 Jun 2017 22:12:32 +0000 (22:12 +0000)]
bluetoothtbd common library reconfiguration am: 5f88533feb
am: c92a438ce6

Change-Id: Ic2c06819487ee07ca5efa74e960d3a0c4ae2308d

7 years agobtif: Pass UIDs changed up to the Java layer
Marie Janssen [Mon, 26 Jun 2017 22:01:14 +0000 (22:01 +0000)]
btif: Pass UIDs changed up to the Java layer
am: 57e508f56b

Change-Id: I0db73b5801afe6b72a438c0728273775cb14684b

7 years agobluetoothtbd common library reconfiguration
Jakub Pawlowski [Mon, 26 Jun 2017 22:00:26 +0000 (22:00 +0000)]
bluetoothtbd common library reconfiguration
am: 5f88533feb

Change-Id: I98a21c91355737f09c348f90098640870b507699

7 years agobtif: Pass UIDs changed up to the Java layer
Marie Janssen [Fri, 23 Jun 2017 00:21:10 +0000 (17:21 -0700)]
btif: Pass UIDs changed up to the Java layer

Previously we were simply responding with an INTERIM response and
leaving it at that.

Test: connect to BMW kit and check that interim is sent from Java
Bug: 62775732
Change-Id: Idb7de4417438f0c9697ee5c838b511cdd2223e80

7 years agobluetoothtbd common library reconfiguration
Jakub Pawlowski [Sat, 24 Jun 2017 22:25:07 +0000 (15:25 -0700)]
bluetoothtbd common library reconfiguration

This patch change how code in service/common directory is compiled. Up
till now, .cc files were generated from .aidl, and the .cc files were
build for each target that used them. From now on, static lib is build
from .aidl and .cc files, and it is included into all targets that
require them.

This reduces build steps from around 1240 to 849.

Test: compilation test
Change-Id: Iebaf0c75497bc435dcc013be09a1f82e75547aa3

7 years agoMerge "btif: Pass UIDs changed up to the Java layer am: 39f664e629 am: 1fb2b0651e...
Android Build Merger (Role) [Fri, 23 Jun 2017 20:07:17 +0000 (20:07 +0000)]
Merge "btif: Pass UIDs changed up to the Java layer am: 39f664e629 am: 1fb2b0651e" into oc-dr1-dev-plus-aosp

7 years agobtif: Pass UIDs changed up to the Java layer am: 39f664e629
Marie Janssen [Fri, 23 Jun 2017 20:07:09 +0000 (20:07 +0000)]
btif: Pass UIDs changed up to the Java layer am: 39f664e629
am: 1fb2b0651e

Change-Id: I19759d67ab34e40e6bd0f708ecef098d8b18de6c

7 years agobtif: Pass UIDs changed up to the Java layer am: 39f664e629
Marie Janssen [Fri, 23 Jun 2017 20:07:05 +0000 (20:07 +0000)]
btif: Pass UIDs changed up to the Java layer am: 39f664e629
am: 7b6864ba40

Change-Id: Ib73e93221de8e6682f364fe42da5065311774287

7 years agobtif: Pass UIDs changed up to the Java layer
Marie Janssen [Fri, 23 Jun 2017 20:01:37 +0000 (20:01 +0000)]
btif: Pass UIDs changed up to the Java layer
am: 39f664e629

Change-Id: I7d53647e60644bd52cdc53ccaf22e8e726a6e4c5

7 years agobtif: Pass UIDs changed up to the Java layer
Marie Janssen [Fri, 23 Jun 2017 20:01:35 +0000 (20:01 +0000)]
btif: Pass UIDs changed up to the Java layer
am: 39f664e629

Change-Id: I61d182617ea69cb060fb27e26a3d3b0a24fb07c0

7 years agoFix crashes on stack shutdown am: 6884c4c68b am: 1a1e0fb3c7
Jakub Pawlowski [Fri, 23 Jun 2017 16:13:30 +0000 (16:13 +0000)]
Fix crashes on stack shutdown am: 6884c4c68b am: 1a1e0fb3c7
am: 0dfa2d8363

Change-Id: Id8e498cc83984983fde5e56cd8d02fb520fae2d3

7 years agoFix crashes on stack shutdown am: 6884c4c68b
Jakub Pawlowski [Fri, 23 Jun 2017 16:07:19 +0000 (16:07 +0000)]
Fix crashes on stack shutdown am: 6884c4c68b
am: 1a1e0fb3c7

Change-Id: I6f50e1ba5c8cf1cbe8389931a8892e61771e0fb3

7 years agoFix crashes on stack shutdown
Jakub Pawlowski [Fri, 23 Jun 2017 16:02:48 +0000 (16:02 +0000)]
Fix crashes on stack shutdown
am: 6884c4c68b

Change-Id: Id8a02f8359f6141bca21f17cf09e6a94bad87c72

7 years agoFix crashes on stack shutdown
Jakub Pawlowski [Thu, 22 Jun 2017 19:45:30 +0000 (12:45 -0700)]
Fix crashes on stack shutdown

During stack shutdown, Unregister would sometimes get called after the
stack is already cleaned up, and the AdvertiseManager::Get would crash
on null check assertion. Ensure that stack is initialized before
Unregister call.

Bug: 37888261
Test: none
Change-Id: I7a4bbcd24ec7d24d21d04fe842985baaac899321

7 years agobtif: Pass UIDs changed up to the Java layer
Marie Janssen [Fri, 23 Jun 2017 00:21:10 +0000 (17:21 -0700)]
btif: Pass UIDs changed up to the Java layer

Previously we were simply responding with an INTERIM response and
leaving it at that.

Test: connect to BMW kit and check that interim is sent from Java
Bug: 62775732
Change-Id: Idb7de4417438f0c9697ee5c838b511cdd2223e80
(cherry picked from commit 3d7c99dc6db3f2a0392a0b273140eb03e0050ee5)

7 years agoFix BLE remote address resolution am: 5235a8c4cc
Jacky Cheung [Fri, 23 Jun 2017 02:54:37 +0000 (02:54 +0000)]
Fix BLE remote address resolution am: 5235a8c4cc
am: c1149e4ff1  -s ours

Change-Id: I316c99d05b724eb9dedbeaa310cd21b7224da442

7 years agoFix BLE remote address resolution am: 5235a8c4cc -s ours
Jacky Cheung [Fri, 23 Jun 2017 02:54:20 +0000 (02:54 +0000)]
Fix BLE remote address resolution am: 5235a8c4cc  -s ours
am: 51e20db88f  -s ours

Change-Id: Ifcb8d994edc578ae3a372b3823cbf28790bd4934

7 years agoFix BLE remote address resolution
Jacky Cheung [Fri, 23 Jun 2017 02:50:50 +0000 (02:50 +0000)]
Fix BLE remote address resolution
am: 5235a8c4cc

Change-Id: I533d76ef00b9971c48347362b5092b81471e46d4

7 years agoFix BLE remote address resolution
Jacky Cheung [Fri, 23 Jun 2017 02:50:49 +0000 (02:50 +0000)]
Fix BLE remote address resolution
am: 5235a8c4cc  -s ours

Change-Id: Iaa3a2d1fc9a4e9d10f72c681c1cfef2ab66a3659

7 years agoFix BLE remote address resolution
Jacky Cheung [Wed, 21 Jun 2017 16:44:23 +0000 (09:44 -0700)]
Fix BLE remote address resolution

The hash segment of the resolvable device address needs to be extracted
for comparison.

Bug: 62589903
Test: manual
(cherry picked from commit 7c58ca38433bc923c653c334b712fb05d25cab36)

Merged-In: I979a8ad3074b692503b0c882bd90041ba4fbfb4d
Change-Id: I5db8f266c9ee3022b2a8a882540870e5eecd0736

7 years agoMerge "resolve merge conflicts of e292ea426 to oc-dr1-dev-plus-aosp" into oc-dr1...
Andre Eisenbach [Thu, 22 Jun 2017 20:58:30 +0000 (20:58 +0000)]
Merge "resolve merge conflicts of e292ea426 to oc-dr1-dev-plus-aosp" into oc-dr1-dev-plus-aosp

7 years agoFix BLE remote address resolution am: 7c58ca3843 am: ca1e1b224f
Jacky Cheung [Thu, 22 Jun 2017 20:53:39 +0000 (20:53 +0000)]
Fix BLE remote address resolution am: 7c58ca3843 am: ca1e1b224f
am: 6a2f69286d

Change-Id: I8c0dedffcc2c5b5f660456358497574017910736

7 years agoFix BLE remote address resolution am: 7c58ca3843
Jacky Cheung [Thu, 22 Jun 2017 20:38:40 +0000 (20:38 +0000)]
Fix BLE remote address resolution am: 7c58ca3843
am: ca1e1b224f

Change-Id: I13b56d630b446658df12498dc89dd4d545258e0c

7 years agoFix BLE remote address resolution
Jacky Cheung [Thu, 22 Jun 2017 20:31:50 +0000 (20:31 +0000)]
Fix BLE remote address resolution
am: 7c58ca3843

Change-Id: I55b2929fb6474df3341e3489d44d93e84988c230

7 years agoresolve merge conflicts of e292ea426 to oc-dr1-dev-plus-aosp
Andre Eisenbach [Thu, 22 Jun 2017 19:54:13 +0000 (12:54 -0700)]
resolve merge conflicts of e292ea426 to oc-dr1-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I29048592904335a98857bac252b8143d67cb29ce

7 years agoFix BLE remote address resolution
Jacky Cheung [Wed, 21 Jun 2017 16:44:23 +0000 (09:44 -0700)]
Fix BLE remote address resolution

The hash segment of the resolvable device address needs to be extracted
for comparison.

Bug: 62589903
Test: manual
Change-Id: I979a8ad3074b692503b0c882bd90041ba4fbfb4d

7 years agoMerge "Fix transport quota exhaustion" into oc-dr1-dev
Ruina Liu [Thu, 22 Jun 2017 01:18:21 +0000 (01:18 +0000)]
Merge "Fix transport quota exhaustion" into oc-dr1-dev
am: 59242511f3  -s ours

Change-Id: I01c21371af65fd31000b530050a7fab45e4d7778

7 years agoMerge "Ensure we don't send more packets than firmware allows" into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 01:06:35 +0000 (01:06 +0000)]
Merge "Ensure we don't send more packets than firmware allows" into oc-dr1-dev

7 years agoMerge "Fix transport quota exhaustion" into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 00:39:43 +0000 (00:39 +0000)]
Merge "Fix transport quota exhaustion" into oc-dr1-dev

7 years agoUse references in GATT client/server API (2/3) am: 96ac0a3c16 am: 2371ed343e
Jakub Pawlowski [Thu, 22 Jun 2017 00:05:23 +0000 (00:05 +0000)]
Use references in GATT client/server API (2/3) am: 96ac0a3c16 am: 2371ed343e
am: 1409b4eb05

Change-Id: I900013b3a068f4ce755962fdd7aff6a992c9c50c

7 years agoUse references in GATT client/server API (2/3) am: 96ac0a3c16
Jakub Pawlowski [Wed, 21 Jun 2017 23:58:29 +0000 (23:58 +0000)]
Use references in GATT client/server API (2/3) am: 96ac0a3c16
am: 2371ed343e

Change-Id: Ic507c8da15a19639a540242feb409f040d09d746

7 years agoUse references in GATT client/server API (2/3)
Jakub Pawlowski [Wed, 21 Jun 2017 23:55:52 +0000 (23:55 +0000)]
Use references in GATT client/server API (2/3)
am: 96ac0a3c16

Change-Id: Ib63537b210587e55d37e10f3f7d87a07c7dcb6d3

7 years agoUse references in GATT client/server API (2/3)
Jakub Pawlowski [Wed, 21 Jun 2017 07:00:18 +0000 (00:00 -0700)]
Use references in GATT client/server API (2/3)

This allows to get rid of some unnecessary null checks, and guarantee
proper values are passed.

Test: compilation test
Change-Id: I1b790dba0cfc3ab02984c3911d83a6f413a1e7e6

7 years agoFix peer address type in LE extended create connection command am: 77ecddc3a4
Subramanian Srinivasan [Wed, 21 Jun 2017 23:32:02 +0000 (23:32 +0000)]
Fix peer address type in LE extended create connection command am: 77ecddc3a4
am: 540450d28e

Change-Id: I5b672cb73a4abe3a4bde6e1133bcd2dbf80de2b5

7 years agoFix peer address type in LE extended create connection command am: 77ecddc3a4
Subramanian Srinivasan [Wed, 21 Jun 2017 23:31:12 +0000 (23:31 +0000)]
Fix peer address type in LE extended create connection command am: 77ecddc3a4
am: 13c34fd4a8

Change-Id: Id15181f39fdb6ac25579f29fe437bef2b0ca9b15

7 years agoFix peer address type in LE extended create connection command
Subramanian Srinivasan [Wed, 21 Jun 2017 23:29:05 +0000 (23:29 +0000)]
Fix peer address type in LE extended create connection command
am: 77ecddc3a4

Change-Id: Ida0be85163d5f615e8a2bb286edd372fd67699dd

7 years agoFix peer address type in LE extended create connection command
Subramanian Srinivasan [Wed, 21 Jun 2017 23:28:12 +0000 (23:28 +0000)]
Fix peer address type in LE extended create connection command
am: 77ecddc3a4

Change-Id: Ie894931c63cf8cba238c7d5c4bea477ba8240c69

7 years agoFix peer address type in LE extended create connection command am: 015cbf1d2b am...
Subramanian Srinivasan [Wed, 21 Jun 2017 23:02:34 +0000 (23:02 +0000)]
Fix peer address type in LE extended create connection command am: 015cbf1d2b am: 34253bdd97
am: 978625dcfb

Change-Id: I133d0b056e3a60c6bece269a1db9ac742c6402c6

7 years agoFix peer address type in LE extended create connection command am: 015cbf1d2b
Subramanian Srinivasan [Wed, 21 Jun 2017 22:57:33 +0000 (22:57 +0000)]
Fix peer address type in LE extended create connection command am: 015cbf1d2b
am: 34253bdd97

Change-Id: I15bfdd2fbd031872e99608a4575bbe5f4905b765

7 years agoFix peer address type in LE extended create connection command
Subramanian Srinivasan [Wed, 21 Jun 2017 22:53:58 +0000 (22:53 +0000)]
Fix peer address type in LE extended create connection command
am: 015cbf1d2b

Change-Id: I2c52745bbcecc613e3ef51d70e0b7cd4bb29aa22

7 years agoEnsure we don't send more packets than firmware allows
Yamei Du [Wed, 18 Nov 2015 09:28:07 +0000 (17:28 +0800)]
Ensure we don't send more packets than firmware allows

Make TX complete callback after we've sent the packet
to the lower layers and adjusted our in flight packet
count.

Bug: 26763700
Test: manual
Change-Id: Iaba14a11c1583da2a72769ebd096e0baedf857c3

7 years agoFix transport quota exhaustion
Ruina Liu [Thu, 24 Sep 2015 02:04:16 +0000 (10:04 +0800)]
Fix transport quota exhaustion

BREDR and BLE use round-robin for link quota.

If you have exhausted one transport's quota,
the break will cause traffic for all transports
to cease.

Change to a continue to prevent this.

Change-Id: I7ca739dfbf02acd2e30527c16ca616a7bad70c51
Test: manual
CR-Id: ALPS02303646

7 years agoFix peer address type in LE extended create connection command
Subramanian Srinivasan [Fri, 9 Jun 2017 00:19:05 +0000 (17:19 -0700)]
Fix peer address type in LE extended create connection command

As per BT Spec 5.0, peer address type in LE extended create
connection command can have only either 0x00 or 0x01 as valid
values. This change fixes setting of incorrect peer address
type values in extended create connection command.

Bug: 62578331
Bug: 62358300
Change-Id: I792d48be7637fc571727e7e51de1fc397158b4d5

7 years agoFix peer address type in LE extended create connection command
Subramanian Srinivasan [Fri, 9 Jun 2017 00:19:05 +0000 (17:19 -0700)]
Fix peer address type in LE extended create connection command

As per BT Spec 5.0, peer address type in LE extended create
connection command can have only either 0x00 or 0x01 as valid
values. This change fixes setting of incorrect peer address
type values in extended create connection command.

Bug: 62578331
Bug: 62358300
Change-Id: I792d48be7637fc571727e7e51de1fc397158b4d5

7 years agoMerge "Make GATT client and server assumption about addres type in open identical...
Jakub Pawlowski [Wed, 21 Jun 2017 14:33:46 +0000 (14:33 +0000)]
Merge "Make GATT client and server assumption about addres type in open identical" am: ff32a739e1 am: 6b60d1cf82
am: 970b007870

Change-Id: I0d28d36260e44da63709ac7f2f4b979b07d85a7e

7 years agoUnify the empty and any address usage am: b7b7473692 am: 6de9c97dea
Jakub Pawlowski [Wed, 21 Jun 2017 14:33:31 +0000 (14:33 +0000)]
Unify the empty and any address usage am: b7b7473692 am: 6de9c97dea
am: 06d0558d82

Change-Id: Ief6a5d77ee5956986fcb2e3ccb48b00983730346

7 years agoMerge "Make GATT client and server assumption about addres type in open identical...
Jakub Pawlowski [Wed, 21 Jun 2017 14:31:17 +0000 (14:31 +0000)]
Merge "Make GATT client and server assumption about addres type in open identical" am: ff32a739e1
am: 6b60d1cf82

Change-Id: I13fbb165601a169bb41a228068b4944a8d642db6

7 years agoUnify the empty and any address usage am: b7b7473692
Jakub Pawlowski [Wed, 21 Jun 2017 14:31:01 +0000 (14:31 +0000)]
Unify the empty and any address usage am: b7b7473692
am: 6de9c97dea

Change-Id: I4d0391a32473ca17c61d2f912832b6740cec13d2

7 years agoMerge "Make GATT client and server assumption about addres type in open identical"
Jakub Pawlowski [Wed, 21 Jun 2017 14:28:22 +0000 (14:28 +0000)]
Merge "Make GATT client and server assumption about addres type in open identical"
am: ff32a739e1

Change-Id: Id6b33c411fef62eb49df6516cbf2184c492ba387

7 years agoUnify the empty and any address usage
Jakub Pawlowski [Wed, 21 Jun 2017 14:28:00 +0000 (14:28 +0000)]
Unify the empty and any address usage
am: b7b7473692

Change-Id: Ic53589c69ae4ae25bdfd8c8ea7e8bd8c4a4214b1

7 years agoMerge "Make GATT client and server assumption about addres type in open identical"
Jakub Pawlowski [Wed, 21 Jun 2017 14:24:54 +0000 (14:24 +0000)]
Merge "Make GATT client and server assumption about addres type in open identical"

7 years agoAdd a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices am: b5c932fe13
Pavlin Radoslavov [Wed, 21 Jun 2017 03:08:22 +0000 (03:08 +0000)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices am: b5c932fe13
am: 97a96fcad2  -s ours

Change-Id: I0dbfa3c52b19a0dde4e2f7a419541e91f94f625f

7 years agoAdd a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices am: b5c932fe...
Pavlin Radoslavov [Wed, 21 Jun 2017 02:58:40 +0000 (02:58 +0000)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices am: b5c932fe13  -s ours
am: 81e114208e  -s ours

Change-Id: Icbe9d757e74fea6e678e504f595ee92333a8052e

7 years agoAdd a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
Pavlin Radoslavov [Wed, 21 Jun 2017 02:49:01 +0000 (02:49 +0000)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
am: b5c932fe13

Change-Id: Icf9a802783136090208dbb7eba95a4904e035819

7 years agoAdd a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
Pavlin Radoslavov [Wed, 21 Jun 2017 02:36:35 +0000 (02:36 +0000)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
am: b5c932fe13  -s ours

Change-Id: I21e5f33e805babdae7d5e8e96bebef00a7a8d121

7 years agoMake GATT client and server assumption about addres type in open identical
Jakub Pawlowski [Tue, 20 Jun 2017 18:40:36 +0000 (11:40 -0700)]
Make GATT client and server assumption about addres type in open identical

When attempting to open GATT server to device of unknown type, it should
make same assumption about the type as GATT client, which is LE device.

Test: compilation test
Bug: 62827460
Change-Id: Ic96de97445a843ef3c482fd5b54098b325fb0f9c

7 years agoAdd a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
Pavlin Radoslavov [Mon, 19 Jun 2017 19:44:11 +0000 (12:44 -0700)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices

Some carkits report SUCCESS for AVDTP RECONFIGURE commands when
changing A2DP codec configuration. However, there is no audio coming
from the carkit.

Bug: 37625892
Test: Manual - A2DP Codec reconfiguration while streaming audio
Change-Id: I01f37a2514e490986a20e96ace78c92463403396
Merged-In: I01f37a2514e490986a20e96ace78c92463403396
(cherry picked from commit e91297a4d1a77ae0c367fbe756090b7357e9893a)

7 years agoDisable 48.0kHz sampling rate for AAC - update the unit test am: 78120a1a24
Pavlin Radoslavov [Tue, 20 Jun 2017 16:49:40 +0000 (16:49 +0000)]
Disable 48.0kHz sampling rate for AAC - update the unit test am: 78120a1a24
am: 2a55cffdf4

Change-Id: I0733887483723c6e803a3f21221a0fdd5cdaf6de

7 years agoDisable 48.0kHz sampling rate for AAC - update the unit test am: 78120a1a24
Pavlin Radoslavov [Tue, 20 Jun 2017 16:49:10 +0000 (16:49 +0000)]
Disable 48.0kHz sampling rate for AAC - update the unit test am: 78120a1a24
am: c7ca419cf7

Change-Id: I86adbcc7e275d1dc95d6c97f0c1c818f6efae031

7 years agoDisable 48.0kHz sampling rate for AAC - update the unit test
Pavlin Radoslavov [Tue, 20 Jun 2017 16:46:40 +0000 (16:46 +0000)]
Disable 48.0kHz sampling rate for AAC - update the unit test
am: 78120a1a24

Change-Id: Ieb4ee6ed56ed5be7d797f493ce8c27cbbfd1c3ab

7 years agoDisable 48.0kHz sampling rate for AAC - update the unit test
Pavlin Radoslavov [Tue, 20 Jun 2017 16:46:40 +0000 (16:46 +0000)]
Disable 48.0kHz sampling rate for AAC - update the unit test
am: 78120a1a24

Change-Id: I1960ac4878a46a6e13669070f480a4b4d5243b4e

7 years agoUnify the empty and any address usage
Jakub Pawlowski [Mon, 19 Jun 2017 18:35:07 +0000 (11:35 -0700)]
Unify the empty and any address usage

Test: compilation test
Change-Id: Ic7fae4aa6c6c32e08fbca257dd3629f4f8df92f0

7 years agoMerge "Disable 48.0kHz sampling rate for AAC - update the unit test" am: 8fdac3b3e1...
Pavlin Radoslavov [Tue, 20 Jun 2017 16:30:40 +0000 (16:30 +0000)]
Merge "Disable 48.0kHz sampling rate for AAC - update the unit test" am: 8fdac3b3e1 am: 44e67085eb
am: c60f715a06

Change-Id: I00f4814158556ee52b0941ddc31511a0158cfb8a

7 years agoMerge "Disable 48.0kHz sampling rate for AAC - update the unit test" am: 8fdac3b3e1
Pavlin Radoslavov [Tue, 20 Jun 2017 16:28:23 +0000 (16:28 +0000)]
Merge "Disable 48.0kHz sampling rate for AAC - update the unit test" am: 8fdac3b3e1
am: 44e67085eb

Change-Id: I330b2daa48ecbec24e12286d90b7c381d060006f

7 years agoMerge "Disable 48.0kHz sampling rate for AAC - update the unit test"
Pavlin Radoslavov [Tue, 20 Jun 2017 16:25:10 +0000 (16:25 +0000)]
Merge "Disable 48.0kHz sampling rate for AAC - update the unit test"
am: 8fdac3b3e1

Change-Id: I4bd614d933bd4d14fd45ac878557298104876ee9

7 years agoMerge "Disable 48.0kHz sampling rate for AAC - update the unit test"
Treehugger Robot [Tue, 20 Jun 2017 16:19:38 +0000 (16:19 +0000)]
Merge "Disable 48.0kHz sampling rate for AAC - update the unit test"

7 years agoGet rid of BD_ADDR am: b8a477e9ac am: 61f2657d9c
Jakub Pawlowski [Tue, 20 Jun 2017 05:03:00 +0000 (05:03 +0000)]
Get rid of BD_ADDR am: b8a477e9ac am: 61f2657d9c
am: 6a3185cdc2

Change-Id: Iac527a723a5ed00e14cf9bae54e60b45d29c3d02

7 years agoGet rid of bdcpy, bdcmp and other BD_ADDR helpers am: 78b81c6db0 am: 2c4b02135e
Jakub Pawlowski [Tue, 20 Jun 2017 05:02:54 +0000 (05:02 +0000)]
Get rid of bdcpy, bdcmp and other BD_ADDR helpers am: 78b81c6db0 am: 2c4b02135e
am: 5ab9775ff5

Change-Id: Icf876c0d19a9d2b67886d0c49fc04ae77c7d28cb

7 years agoReplace BT_ADDR with bd_addr_t in bta_sys related code am: c752e135d6 am: 44c207025f
Jakub Pawlowski [Tue, 20 Jun 2017 05:02:51 +0000 (05:02 +0000)]
Replace BT_ADDR with bd_addr_t in bta_sys related code am: c752e135d6 am: 44c207025f
am: 893d31026b

Change-Id: I88d093b6902f976353ec5181d45cd91e0bcf908b