OSDN Git Service

android-x86/system-bt.git
7 years agoRemove log spam in btif_gattc_update_properties am: 831bec7af3 am: e678af1282 am...
Andre Eisenbach [Thu, 25 Aug 2016 19:01:39 +0000 (19:01 +0000)]
Remove log spam in btif_gattc_update_properties am: 831bec7af3 am: e678af1282 am: 3b22957389
am: eaef6fe61d

Change-Id: I059f535a01d6652040e403868ed4d1b1930b7371

7 years agoRemove log spam in btif_gattc_update_properties am: 831bec7af3 am: e678af1282
Andre Eisenbach [Thu, 25 Aug 2016 18:35:55 +0000 (18:35 +0000)]
Remove log spam in btif_gattc_update_properties am: 831bec7af3 am: e678af1282
am: 3b22957389

Change-Id: I0c77c3d1103e8128071b06b8e28e87b3f81dce6a

7 years agoRemove log spam in btif_gattc_update_properties am: 831bec7af3
Andre Eisenbach [Thu, 25 Aug 2016 18:33:25 +0000 (18:33 +0000)]
Remove log spam in btif_gattc_update_properties am: 831bec7af3
am: e678af1282

Change-Id: I6bf3ea3065403197f46edef8817a9a8a8b7eaf31

7 years agoRemove log spam in btif_gattc_update_properties
Andre Eisenbach [Thu, 25 Aug 2016 18:30:27 +0000 (18:30 +0000)]
Remove log spam in btif_gattc_update_properties
am: 831bec7af3

Change-Id: I1c967f90cbb87551b9a50ff2cc6da019871afbfc

7 years agoRemove log spam in btif_gattc_update_properties
Andre Eisenbach [Thu, 23 Jun 2016 21:22:35 +0000 (14:22 -0700)]
Remove log spam in btif_gattc_update_properties

Bug: 29601962
Change-Id: Ibcccbe20a4b7c79edcaff162e4f4a19078ffb75d
(cherry picked from commit ffdb33b5fcfa0a652e9fa368f7f8c3bb0654b46e)

7 years agoMerge "Don't set the A2DP sink data callback when registering A2DP source" am: e12118...
Pavlin Radoslavov [Thu, 25 Aug 2016 09:10:15 +0000 (09:10 +0000)]
Merge "Don't set the A2DP sink data callback when registering A2DP source" am: e1211822cc am: 245e7ee851 am: 360523bd48
am: 4b362da257

Change-Id: Ib24d1af5034c510707f1171980e7fb6887c1c90d

7 years agoMerge "Don't set the A2DP sink data callback when registering A2DP source" am: e12118...
Pavlin Radoslavov [Thu, 25 Aug 2016 08:58:19 +0000 (08:58 +0000)]
Merge "Don't set the A2DP sink data callback when registering A2DP source" am: e1211822cc am: 245e7ee851
am: 360523bd48

Change-Id: Iec5368e06680d96e058544e2416848f7e458f59e

7 years agoMerge "Don't set the A2DP sink data callback when registering A2DP source" am: e1211822cc
Pavlin Radoslavov [Thu, 25 Aug 2016 08:55:19 +0000 (08:55 +0000)]
Merge "Don't set the A2DP sink data callback when registering A2DP source" am: e1211822cc
am: 245e7ee851

Change-Id: Ifd9a276afed3d4051ed0d0e54074b8523a543c48

7 years agoMerge "Don't set the A2DP sink data callback when registering A2DP source"
Pavlin Radoslavov [Thu, 25 Aug 2016 08:52:21 +0000 (08:52 +0000)]
Merge "Don't set the A2DP sink data callback when registering A2DP source"
am: e1211822cc

Change-Id: I4f984c5ebdfdb7c5d03f92c05bf98209bbd82a9d

7 years agoMerge "Don't set the A2DP sink data callback when registering A2DP source"
Treehugger Robot [Thu, 25 Aug 2016 08:44:55 +0000 (08:44 +0000)]
Merge "Don't set the A2DP sink data callback when registering A2DP source"

7 years agoRemoved duplicate and unused BTA_AV_ and BTIF_AV_ constants am: 89330a3888 am: cce0a0...
Pavlin Radoslavov [Thu, 25 Aug 2016 08:03:40 +0000 (08:03 +0000)]
Removed duplicate and unused BTA_AV_ and BTIF_AV_ constants am: 89330a3888 am: cce0a0674a am: 38f74645e3
am: 373e31ef60

Change-Id: I86b3bd34e7998bfda2e861102c7827da86ceb773

7 years agoRemoved duplicate and unused BTA_AV_ and BTIF_AV_ constants am: 89330a3888 am: cce0a0674a
Pavlin Radoslavov [Thu, 25 Aug 2016 07:46:45 +0000 (07:46 +0000)]
Removed duplicate and unused BTA_AV_ and BTIF_AV_ constants am: 89330a3888 am: cce0a0674a
am: 38f74645e3

Change-Id: I159049879e03fd256edd7ccde8ecfd135e8d931f

7 years agoRemoved duplicate and unused BTA_AV_ and BTIF_AV_ constants am: 89330a3888
Pavlin Radoslavov [Thu, 25 Aug 2016 07:43:44 +0000 (07:43 +0000)]
Removed duplicate and unused BTA_AV_ and BTIF_AV_ constants am: 89330a3888
am: cce0a0674a

Change-Id: I3bbebe617d401e18467298cfcdf7caf3ea9002a0

7 years agoRemoved duplicate and unused BTA_AV_ and BTIF_AV_ constants
Pavlin Radoslavov [Thu, 25 Aug 2016 07:40:16 +0000 (07:40 +0000)]
Removed duplicate and unused BTA_AV_ and BTIF_AV_ constants
am: 89330a3888

Change-Id: I4d2b8e6816b589d5f83978098a3754f66c6e896c

7 years agoRemoved duplicate and unused BTA_AV_ and BTIF_AV_ constants
Pavlin Radoslavov [Wed, 24 Aug 2016 18:46:58 +0000 (11:46 -0700)]
Removed duplicate and unused BTA_AV_ and BTIF_AV_ constants

* Replaced usage of BTA_AV_CODEC_SBC and BTIF_AV_CODEC_SBC
  with A2D_MEDIA_CT_SBC
* Removed remaining unused BTA_AV_CODEC_* re-defines
* Removed other BTA_* constants and re-defines that are never used
* Removed unused BTIF_AV_ constants and typedefs

Change-Id: I38090acee3dfdcd1196185e0b060cdad7572003a

7 years agoDon't set the A2DP sink data callback when registering A2DP source
Pavlin Radoslavov [Wed, 24 Aug 2016 17:42:22 +0000 (10:42 -0700)]
Don't set the A2DP sink data callback when registering A2DP source

The p_sink_data_cback pointer should be NULL when registering
A2DP source with BTA_AvRegister()

Change-Id: I1a709c4e0d3cfe6faf0368a013b391c6e6a53a82

7 years agoMerge "Removed unused log-related defines and typedefs" am: fc32808f2f am: 1d1f81df8d...
Pavlin Radoslavov [Wed, 24 Aug 2016 21:16:29 +0000 (21:16 +0000)]
Merge "Removed unused log-related defines and typedefs" am: fc32808f2f am: 1d1f81df8d am: 0c16b37b6c
am: a4176ac46d

Change-Id: Ieedf43af088ecb84f3df8a6a1b9a28969d780b04

7 years agoMake it possible to post closures to BTA message queue am: e5c78954fb am: b981c12c3b...
Jakub Pawlowski [Wed, 24 Aug 2016 21:16:28 +0000 (21:16 +0000)]
Make it possible to post closures to BTA message queue am: e5c78954fb am: b981c12c3b am: eb5819d077
am: 2a869b1309

Change-Id: I11220ba6eea1ed946add3f1946499a9a15215380

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: 2cb07a3468 am...
Bill Yi [Wed, 24 Aug 2016 21:16:27 +0000 (21:16 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: 2cb07a3468 am: 66e7938a30 am: 12dd2d65eb
am: 007afc08ec

Change-Id: I8fe5968179ed344ddb9bd0c84833fc8481e3d26f

7 years agotest_vendor: Build independently from the stack am: 8f981328ad am: 735ce72d77 am...
Myles Watson [Wed, 24 Aug 2016 21:16:26 +0000 (21:16 +0000)]
test_vendor: Build independently from the stack am: 8f981328ad am: 735ce72d77 am: 1602be2ec8
am: 2716895e8c

Change-Id: I9a02c0cc1988112408eb43d100abbba81154b433

7 years agotest_vendor: Fix style for UNUSED_ATTR, whitespace am: 98dcd0babf am: 46fedfd9bb...
Myles Watson [Wed, 24 Aug 2016 21:16:24 +0000 (21:16 +0000)]
test_vendor: Fix style for UNUSED_ATTR, whitespace am: 98dcd0babf am: 46fedfd9bb am: a938cb7751
am: 568ef62fd6

Change-Id: I2fd88b561cf3b53b272884f73e35421724a6fbef

7 years agoMerge "Removed unused log-related defines and typedefs" am: fc32808f2f am: 1d1f81df8d
Pavlin Radoslavov [Wed, 24 Aug 2016 21:08:59 +0000 (21:08 +0000)]
Merge "Removed unused log-related defines and typedefs" am: fc32808f2f am: 1d1f81df8d
am: 0c16b37b6c

Change-Id: Id1a1bb90496f850088b932243d42e6519114d962

7 years agoMerge "Removed unused log-related defines and typedefs" am: fc32808f2f
Pavlin Radoslavov [Wed, 24 Aug 2016 21:05:59 +0000 (21:05 +0000)]
Merge "Removed unused log-related defines and typedefs" am: fc32808f2f
am: 1d1f81df8d

Change-Id: I204a6f1f1e270dd84bdfcf4faa0123189a14ed76

7 years agoMerge "Removed unused log-related defines and typedefs"
Pavlin Radoslavov [Wed, 24 Aug 2016 21:03:01 +0000 (21:03 +0000)]
Merge "Removed unused log-related defines and typedefs"
am: fc32808f2f

Change-Id: Ie48e32bafe7a0ba7baedc1138b525062d136127d

7 years agoMerge "Removed unused log-related defines and typedefs"
Treehugger Robot [Wed, 24 Aug 2016 20:55:54 +0000 (20:55 +0000)]
Merge "Removed unused log-related defines and typedefs"

7 years agoMake it possible to post closures to BTA message queue am: e5c78954fb am: b981c12c3b
Jakub Pawlowski [Wed, 24 Aug 2016 20:44:50 +0000 (20:44 +0000)]
Make it possible to post closures to BTA message queue am: e5c78954fb am: b981c12c3b
am: eb5819d077

Change-Id: Id8579a1e39ea980f93e463e42df473be4ad6e1a3

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: 2cb07a3468 am...
Bill Yi [Wed, 24 Aug 2016 20:44:49 +0000 (20:44 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: 2cb07a3468 am: 66e7938a30
am: 12dd2d65eb

Change-Id: I4ecdbfb6dcc7479bed2a3e3f34eda6efde35b056

7 years agotest_vendor: Build independently from the stack am: 8f981328ad am: 735ce72d77
Myles Watson [Wed, 24 Aug 2016 20:44:49 +0000 (20:44 +0000)]
test_vendor: Build independently from the stack am: 8f981328ad am: 735ce72d77
am: 1602be2ec8

Change-Id: Id1eb2e93e268ef0f4edf1fcd14ac42778410377e

7 years agotest_vendor: Fix style for UNUSED_ATTR, whitespace am: 98dcd0babf am: 46fedfd9bb
Myles Watson [Wed, 24 Aug 2016 20:44:47 +0000 (20:44 +0000)]
test_vendor: Fix style for UNUSED_ATTR, whitespace am: 98dcd0babf am: 46fedfd9bb
am: a938cb7751

Change-Id: If183c6881c3f73a8da0fef62bab631667f024583

7 years agoMake it possible to post closures to BTA message queue am: e5c78954fb
Jakub Pawlowski [Wed, 24 Aug 2016 20:25:54 +0000 (20:25 +0000)]
Make it possible to post closures to BTA message queue am: e5c78954fb
am: b981c12c3b

Change-Id: Ia3f3f48479eee6fc0cb6ac177b2b3cc8499b8428

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: 2cb07a3468
Bill Yi [Wed, 24 Aug 2016 20:25:54 +0000 (20:25 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: 2cb07a3468
am: 66e7938a30

Change-Id: Id92e90db29d3692028861bc672e194ee6892d86d

7 years agotest_vendor: Build independently from the stack am: 8f981328ad
Myles Watson [Wed, 24 Aug 2016 20:25:53 +0000 (20:25 +0000)]
test_vendor: Build independently from the stack am: 8f981328ad
am: 735ce72d77

Change-Id: Ib29e7ad0b6fda22e9ea6892060cd91aa4d0fb691

7 years agotest_vendor: Fix style for UNUSED_ATTR, whitespace am: 98dcd0babf
Myles Watson [Wed, 24 Aug 2016 20:25:52 +0000 (20:25 +0000)]
test_vendor: Fix style for UNUSED_ATTR, whitespace am: 98dcd0babf
am: 46fedfd9bb

Change-Id: I3cfc9ba5570ea50596f0f7c58c4b0906d602a35c

7 years agoMake it possible to post closures to BTA message queue
Jakub Pawlowski [Wed, 24 Aug 2016 20:15:25 +0000 (20:15 +0000)]
Make it possible to post closures to BTA message queue
am: e5c78954fb

Change-Id: Ic90c6e430f33949695926f602ed9f801bebed6cc

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Bill Yi [Wed, 24 Aug 2016 20:15:23 +0000 (20:15 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: 2cb07a3468

Change-Id: Idfe3f56752b12a4961c692f2dd33117c0c02a77b

7 years agotest_vendor: Build independently from the stack
Myles Watson [Wed, 24 Aug 2016 20:15:22 +0000 (20:15 +0000)]
test_vendor: Build independently from the stack
am: 8f981328ad

Change-Id: I8635261da07e0ea20a3db3624e776c69d467ec6e

7 years agotest_vendor: Fix style for UNUSED_ATTR, whitespace
Myles Watson [Wed, 24 Aug 2016 20:15:21 +0000 (20:15 +0000)]
test_vendor: Fix style for UNUSED_ATTR, whitespace
am: 98dcd0babf

Change-Id: Idc44d0bc0f1c445d2b08bdd22436c47e062504e4

7 years agoMake it possible to post closures to BTA message queue
Jakub Pawlowski [Wed, 10 Aug 2016 16:07:44 +0000 (09:07 -0700)]
Make it possible to post closures to BTA message queue

Currently, every task executed on bta thread needs a separate event id,
structure holding its parameters, API method, and method that will be
executed in bta thread, which must accept generic tBTA_DM_MSG.

Because of that we end up with lots of boilerplate code, and possibility
to misinterpret bytes in tBTA_DM_MSG struct.

After this patch, we can post closures onto bta thread. Thanks to it we
don't need a struct to hold parameters, and the executed method can have
a meaningful parameters.

First experiments showed over 50% reduction in code size when rewriting
advertising code to new style, not to mention much better readability.

Bug: 30622771
Change-Id: I400839b920c04c67c893899969d07a02d9c1b2e6

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Bill Yi [Wed, 24 Aug 2016 18:18:47 +0000 (11:18 -0700)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD

7 years agoRemoved unused log-related defines and typedefs
Pavlin Radoslavov [Wed, 24 Aug 2016 18:01:42 +0000 (11:01 -0700)]
Removed unused log-related defines and typedefs

Change-Id: I794f07821a653f03e02cb5ad11790dfe2dfaea98

7 years agotest_vendor: Build independently from the stack
Myles Watson [Tue, 21 Jun 2016 23:45:02 +0000 (16:45 -0700)]
test_vendor: Build independently from the stack

Remove the dependency on bluetooth_* flags.
Enable more warnings.

(Based on the build flags in system/bt/Android.mk)

Change-Id: I5f480f15c037955404502a0216b61aa407670163
Signed-off-by: Myles Watson <mylesgw@google.com>
7 years agotest_vendor: Fix style for UNUSED_ATTR, whitespace
Myles Watson [Wed, 24 Aug 2016 16:03:32 +0000 (09:03 -0700)]
test_vendor: Fix style for UNUSED_ATTR, whitespace

Remove "/* args */" and use UNUSED_ATTR.  It's easier to find using grep.

Change-Id: Ic1a95e44b86d019647acafe982cfef5c69e1da1a
Signed-off-by: Myles Watson <mylesgw@google.com>
7 years agoFix a typo: __func_ -> __func__ am: 3e0f253c28 am: 3426fd6085 am: 9dbac643a7
Pavlin Radoslavov [Wed, 24 Aug 2016 09:18:08 +0000 (09:18 +0000)]
Fix a typo: __func_ -> __func__ am: 3e0f253c28 am: 3426fd6085 am: 9dbac643a7
am: 887399bbe0

Change-Id: I0244c98cc95ff08bdf58c4a49189ff42224dcf6e

7 years agoFix a typo: __func_ -> __func__ am: 3e0f253c28 am: 3426fd6085
Pavlin Radoslavov [Wed, 24 Aug 2016 09:07:41 +0000 (09:07 +0000)]
Fix a typo: __func_ -> __func__ am: 3e0f253c28 am: 3426fd6085
am: 9dbac643a7

Change-Id: I42a03d87c136f233201cfc1676552655ccd079bb

7 years agoFix a typo: __func_ -> __func__ am: 3e0f253c28
Pavlin Radoslavov [Wed, 24 Aug 2016 09:05:10 +0000 (09:05 +0000)]
Fix a typo: __func_ -> __func__ am: 3e0f253c28
am: 3426fd6085

Change-Id: Iff5a8701c63ab68e280fd166d899aa58e41ea3d9

7 years agoFix a typo: __func_ -> __func__
Pavlin Radoslavov [Wed, 24 Aug 2016 09:01:30 +0000 (09:01 +0000)]
Fix a typo: __func_ -> __func__
am: 3e0f253c28

Change-Id: I4309954020a7630fa1dc4eca766fc12e982fbefc

7 years agoFix a typo: __func_ -> __func__
Pavlin Radoslavov [Wed, 24 Aug 2016 08:44:41 +0000 (01:44 -0700)]
Fix a typo: __func_ -> __func__

Change-Id: I8b6f0664a96932c35a804541d54a50370d09c022

7 years agoA2DP-related naming refactoring and cleanup am: 7aaf7c6c42 am: 4e89dc5ac8 am: 3bf6494ed7
Pavlin Radoslavov [Wed, 24 Aug 2016 05:40:06 +0000 (05:40 +0000)]
A2DP-related naming refactoring and cleanup am: 7aaf7c6c42 am: 4e89dc5ac8 am: 3bf6494ed7
am: b5489a8547

Change-Id: I3fb11398ed458b06ac67d77b9ef7217e9f70bd97

7 years agoA2DP-related naming refactoring and cleanup am: 7aaf7c6c42 am: 4e89dc5ac8
Pavlin Radoslavov [Wed, 24 Aug 2016 05:22:26 +0000 (05:22 +0000)]
A2DP-related naming refactoring and cleanup am: 7aaf7c6c42 am: 4e89dc5ac8
am: 3bf6494ed7

Change-Id: I561c46ee2026122654de3b1b2f3c13538b676479

7 years agoA2DP-related naming refactoring and cleanup am: 7aaf7c6c42
Pavlin Radoslavov [Wed, 24 Aug 2016 05:19:55 +0000 (05:19 +0000)]
A2DP-related naming refactoring and cleanup am: 7aaf7c6c42
am: 4e89dc5ac8

Change-Id: I40b313ac63ca8092a73901e64a5a80e78e9ffda5

7 years agoA2DP-related naming refactoring and cleanup
Pavlin Radoslavov [Wed, 24 Aug 2016 05:17:32 +0000 (05:17 +0000)]
A2DP-related naming refactoring and cleanup
am: 7aaf7c6c42

Change-Id: I2420388d1335ab2ff9edef957ed0934433e3e63e

7 years agoA2DP-related naming refactoring and cleanup
Pavlin Radoslavov [Tue, 23 Aug 2016 19:24:03 +0000 (12:24 -0700)]
A2DP-related naming refactoring and cleanup

* Renamed A2DP-related function names, types, constants and fields.
  Also, move some of those functions to a better location.
 - tAVDT_DATA_CBACK -> tAVDT_SINK_DATA_CBACK
 - tAVDT_MEDIA_CBACK -> tAVDT_SINK_MEDIA_CBACK
 - p_data_cback -> p_sink_data_cback
 - p_media_cback -> p_sink_media_cback
 - p_app_data_cback -> p_app_sink_data_cback
 - tBTA_AV_DATA_CBACK -> tBTA_AV_SINK_DATA_CBACK
 - BTA_AV_MEDIA_SINK_CFG_EVT -> BTA_AV_SINK_MEDIA_CFG_EVT
 - BTA_AV_MEDIA_DATA_EVT -> BTA_AV_SINK_MEDIA_DATA_EVT
 - bta_av_stream_data_cback() -> bta_av_sink_data_cback()
 - bte_av_media_callback() -> bte_av_sink_media_callback()
 - tBTA_AV_CODEC -> tA2D_CODEC
 - btif_a2dp_get_track_frequency() -> A2D_sbc_get_track_frequency()
 - btif_a2dp_get_track_channel_count() -> A2D_sbc_get_track_channel_count()
 - dump_codec_info() -> A2D_sbc_dump_codec_info()

* Misc. other cleanup:
  - log messages cleanup
  - normalize usage of "+=" in Android.mk files

Change-Id: Ida1528fb5d75cc322533f921daefb65be44562f1

7 years agoMake gatt_attr use opportunistic connection am: 970d9d18ec am: de0eabbc05 am: 6d5eee2116
Jakub Pawlowski [Tue, 23 Aug 2016 21:24:27 +0000 (21:24 +0000)]
Make gatt_attr use opportunistic connection am: 970d9d18ec am: de0eabbc05 am: 6d5eee2116
am: 9d055fea6e

Change-Id: I42bb5b895e528d074cc71bb38117c0c9c7839a86

7 years agoGATT: don't update link status for apps that were never connected am: aab757d3d6...
Jakub Pawlowski [Tue, 23 Aug 2016 21:24:20 +0000 (21:24 +0000)]
GATT: don't update link status for apps that were never connected am: aab757d3d6 am: a7dd707914 am: 72b3b6fdf2
am: d66bb69200

Change-Id: I22fb5434bd25890e29bfe7e2f628af0c3f8d82ed

7 years agoMake gatt_attr use opportunistic connection am: 970d9d18ec am: de0eabbc05
Jakub Pawlowski [Tue, 23 Aug 2016 20:45:29 +0000 (20:45 +0000)]
Make gatt_attr use opportunistic connection am: 970d9d18ec am: de0eabbc05
am: 6d5eee2116

Change-Id: I1da27ef4b5cb5470260f8d0a67c863f52120d95a

7 years agoGATT: don't update link status for apps that were never connected am: aab757d3d6...
Jakub Pawlowski [Tue, 23 Aug 2016 20:45:25 +0000 (20:45 +0000)]
GATT: don't update link status for apps that were never connected am: aab757d3d6 am: a7dd707914
am: 72b3b6fdf2

Change-Id: I499ea347d63f2b6c0c71d663c8845ef5fce41ef5

7 years agoMake gatt_attr use opportunistic connection am: 970d9d18ec
Jakub Pawlowski [Tue, 23 Aug 2016 20:32:50 +0000 (20:32 +0000)]
Make gatt_attr use opportunistic connection am: 970d9d18ec
am: de0eabbc05

Change-Id: Ic84f963c1efa375a643fe4c08ef0716c21e209b6

7 years agoGATT: don't update link status for apps that were never connected am: aab757d3d6
Jakub Pawlowski [Tue, 23 Aug 2016 20:32:48 +0000 (20:32 +0000)]
GATT: don't update link status for apps that were never connected am: aab757d3d6
am: a7dd707914

Change-Id: I9256c0f1ad331bca8b62e01790dcc9d6c5248e87

7 years agoMake gatt_attr use opportunistic connection
Jakub Pawlowski [Tue, 23 Aug 2016 20:27:39 +0000 (20:27 +0000)]
Make gatt_attr use opportunistic connection
am: 970d9d18ec

Change-Id: Iaff1375e619409afe9570b6fb79867070a339902

7 years agoGATT: don't update link status for apps that were never connected
Jakub Pawlowski [Tue, 23 Aug 2016 20:27:38 +0000 (20:27 +0000)]
GATT: don't update link status for apps that were never connected
am: aab757d3d6

Change-Id: Id9397aa59aae3570821c9838d428541cfb6a878a

7 years agoMake gatt_attr use opportunistic connection
Jakub Pawlowski [Mon, 18 Jul 2016 16:06:49 +0000 (09:06 -0700)]
Make gatt_attr use opportunistic connection

This patch creates new connection mode - opportunistic connection. When
such connection is made, no call to gatt_update_app_hold_link_status
will be made when it's started.

This means that connecting and disconnecting in this mode won't trigger
disconnect timer. When other, app creates regular connection and then
disconnects, the physical connection might get disconnected.

Opportunistic connection is used only for code setting CCC right now.

Bug: 30186455
Change-Id: Ia5be7682b6c3dcb4993060f818dee603aef3e19e

7 years agoGATT: don't update link status for apps that were never connected
Jakub Pawlowski [Thu, 16 Jun 2016 15:16:48 +0000 (08:16 -0700)]
GATT: don't update link status for apps that were never connected

Right now, in GATT_Deregister we make a call to
gatt_update_app_use_link_flag, which might result in a call to
GATT_SetIddleTimeout on links that this client was never connected to.

In order to fix that, we must check if gatt_update_app_hold_link_status
made any changes to p_tcb->app_hold_link. If not, then skip updating
the timer.

Bug: 30186455
Change-Id: I6f18ec7fe4e80e048adc9e360cae703b7d64d62a

7 years agotest_vendor: Allow includes from bt_hci_defs am: a11e1c1b71 am: ee0c32d010 am: 66ec15f793
Myles Watson [Tue, 23 Aug 2016 01:30:13 +0000 (01:30 +0000)]
test_vendor: Allow includes from bt_hci_defs am: a11e1c1b71 am: ee0c32d010 am: 66ec15f793
am: 1194dd1977

Change-Id: I9686941c7c7d9ee69d6a66117b7d2fcf2177c8e0

7 years agoRemoved BTA_AV_INCLUDED conditional guard which is always true am: bde45bd653 am...
Pavlin Radoslavov [Tue, 23 Aug 2016 01:30:12 +0000 (01:30 +0000)]
Removed BTA_AV_INCLUDED conditional guard which is always true am: bde45bd653 am: fb8d7890a1 am: b345a8f568
am: e1233f153c

Change-Id: I86e6a19ed4741dac3be6334f5a9f2e86e4dadfa6

7 years agotest_vendor: Allow includes from bt_hci_defs am: a11e1c1b71 am: ee0c32d010
Myles Watson [Tue, 23 Aug 2016 01:23:52 +0000 (01:23 +0000)]
test_vendor: Allow includes from bt_hci_defs am: a11e1c1b71 am: ee0c32d010
am: 66ec15f793

Change-Id: Ic5669a07d495e3c71f2dab69025e3ea1268cc747

7 years agoRemoved BTA_AV_INCLUDED conditional guard which is always true am: bde45bd653 am...
Pavlin Radoslavov [Tue, 23 Aug 2016 01:23:51 +0000 (01:23 +0000)]
Removed BTA_AV_INCLUDED conditional guard which is always true am: bde45bd653 am: fb8d7890a1
am: b345a8f568

Change-Id: Ifd623c4a0f070414999e453ae6d17cdc31683d90

7 years agotest_vendor: Allow includes from bt_hci_defs am: a11e1c1b71
Myles Watson [Tue, 23 Aug 2016 01:17:30 +0000 (01:17 +0000)]
test_vendor: Allow includes from bt_hci_defs am: a11e1c1b71
am: ee0c32d010

Change-Id: Ic41e9fc0f1ce86bcb7cd9dee5594bac9db664c60

7 years agoRemoved BTA_AV_INCLUDED conditional guard which is always true am: bde45bd653
Pavlin Radoslavov [Tue, 23 Aug 2016 01:17:26 +0000 (01:17 +0000)]
Removed BTA_AV_INCLUDED conditional guard which is always true am: bde45bd653
am: fb8d7890a1

Change-Id: Ib05380ae4ecfa4150db9811af051cb754e710302

7 years agotest_vendor: Allow includes from bt_hci_defs
Myles Watson [Tue, 23 Aug 2016 01:10:54 +0000 (01:10 +0000)]
test_vendor: Allow includes from bt_hci_defs
am: a11e1c1b71

Change-Id: Ie3494281cda35263f0b0a259eef045541aba3585

7 years agoRemoved BTA_AV_INCLUDED conditional guard which is always true
Pavlin Radoslavov [Tue, 23 Aug 2016 01:10:53 +0000 (01:10 +0000)]
Removed BTA_AV_INCLUDED conditional guard which is always true
am: bde45bd653

Change-Id: I3e3775b77c304fa5d440fc841bb6c76efbe3ef89

7 years agotest_vendor: Allow includes from bt_hci_defs
Myles Watson [Mon, 13 Jun 2016 19:46:38 +0000 (12:46 -0700)]
test_vendor: Allow includes from bt_hci_defs

Avoid duplicating header files for BT constants.

Update Android.mk to search $(BT_DIR)/include and
$(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)

Change-Id: I1403724c1cf9cda8156a5b65cf55da8178bd910f
Signed-off-by: Myles Watson <mylesgw@google.com>
7 years agoRemoved BTA_AV_INCLUDED conditional guard which is always true
Pavlin Radoslavov [Mon, 22 Aug 2016 21:49:11 +0000 (14:49 -0700)]
Removed BTA_AV_INCLUDED conditional guard which is always true

Change-Id: Idf7063359600b30c007fbde89dde55ef987c0368

7 years agoMerge "Removed unused code related to Audio, A2DP Sink and Video" am: e80e75b4a5...
Pavlin Radoslavov [Mon, 22 Aug 2016 19:54:32 +0000 (19:54 +0000)]
Merge "Removed unused code related to Audio, A2DP Sink and Video" am: e80e75b4a5 am: 216f5e3b0a am: 4cbced3bd4
am: 3146817ef0

Change-Id: I57d32139d110efc953951740adf1330d30e09e8c

7 years agoMerge "Removed unused code related to Audio, A2DP Sink and Video" am: e80e75b4a5...
Pavlin Radoslavov [Mon, 22 Aug 2016 19:50:22 +0000 (19:50 +0000)]
Merge "Removed unused code related to Audio, A2DP Sink and Video" am: e80e75b4a5 am: 216f5e3b0a
am: 4cbced3bd4

Change-Id: I4061522c6b61c7490ede4eed14553850b01065b8

7 years agoMerge "Removed unused code related to Audio, A2DP Sink and Video" am: e80e75b4a5
Pavlin Radoslavov [Mon, 22 Aug 2016 19:46:26 +0000 (19:46 +0000)]
Merge "Removed unused code related to Audio, A2DP Sink and Video" am: e80e75b4a5
am: 216f5e3b0a

Change-Id: Id7d258e5c897b28605ed8bf41358204efef168ca

7 years agoMerge "Removed unused code related to Audio, A2DP Sink and Video"
Pavlin Radoslavov [Mon, 22 Aug 2016 19:42:31 +0000 (19:42 +0000)]
Merge "Removed unused code related to Audio, A2DP Sink and Video"
am: e80e75b4a5

Change-Id: I877e15663150975a102adf692e68e1d27cfc56b8

7 years agoExpose function audio_a2dp_hw_dump_ctrl_event() am: febb1515f9 am: 144b5e7934 am...
Pavlin Radoslavov [Mon, 22 Aug 2016 19:42:26 +0000 (19:42 +0000)]
Expose function audio_a2dp_hw_dump_ctrl_event() am: febb1515f9 am: 144b5e7934 am: eef306f051
am: 73db856b3c

Change-Id: I0b891ca30e003658c36a17c05a9ff7e2aafb2ee4

7 years agoExpose function audio_a2dp_hw_dump_ctrl_event() am: febb1515f9 am: 144b5e7934
Pavlin Radoslavov [Mon, 22 Aug 2016 19:38:22 +0000 (19:38 +0000)]
Expose function audio_a2dp_hw_dump_ctrl_event() am: febb1515f9 am: 144b5e7934
am: eef306f051

Change-Id: If61a656bb60e89fc3dfa1eec49abb80b131625f1

7 years agoMerge "Removed unused code related to Audio, A2DP Sink and Video"
Treehugger Robot [Mon, 22 Aug 2016 19:36:45 +0000 (19:36 +0000)]
Merge "Removed unused code related to Audio, A2DP Sink and Video"

7 years agoExpose function audio_a2dp_hw_dump_ctrl_event() am: febb1515f9
Pavlin Radoslavov [Mon, 22 Aug 2016 19:34:21 +0000 (19:34 +0000)]
Expose function audio_a2dp_hw_dump_ctrl_event() am: febb1515f9
am: 144b5e7934

Change-Id: I96807b9393df5f51a5854dcc2fbfe655fe61e185

7 years agoExpose function audio_a2dp_hw_dump_ctrl_event()
Pavlin Radoslavov [Mon, 22 Aug 2016 19:30:29 +0000 (19:30 +0000)]
Expose function audio_a2dp_hw_dump_ctrl_event()
am: febb1515f9

Change-Id: Ifbaade2d4edb6792e328dc37ae21bd0ac5f24560

7 years agoExpose function audio_a2dp_hw_dump_ctrl_event()
Pavlin Radoslavov [Fri, 19 Aug 2016 22:04:18 +0000 (15:04 -0700)]
Expose function audio_a2dp_hw_dump_ctrl_event()

Renamed function dump_a2dp_ctrl_event() to
audio_a2dp_hw_dump_ctrl_event() and expose it, so it can be used
by outside code to print events.

Change-Id: Ibd9d3171c7d5256f80101ecc1563b472b7f5e92d

7 years agoRemoved unused code related to Audio, A2DP Sink and Video
Pavlin Radoslavov [Sat, 20 Aug 2016 00:46:19 +0000 (17:46 -0700)]
Removed unused code related to Audio, A2DP Sink and Video

* Function BTA_AvEnable_Sink() - never used
  - Event BTA_AV_API_SINK_ENABLE_EVT
  - Processing function bta_av_api_sink_enable()
  - AVDT_SINK_Activate() and AVDT_SINK_Deactivate() : not used anymore

* A2DP SINK related functions that are only declared:
  - btif_queue_focus_request()
  - audio_focus_status()

* Audio-related function that is never used:
  - bta_av_sbc_cfg_for_cap()

* Video-related functions that are only declared:
  - bta_av_co_video_src_data_path()
  - bta_av_co_video_setconfig()
  - bta_av_co_video_open()
  - bta_av_co_video_close()
  - bta_av_co_video_start()
  - bta_av_co_video_report_conn()
  - bta_av_co_video_report_rr()
  - bta_av_co_video_delay()
  - bta_av_co_video_disc_res()
  - bta_av_co_video_getconfig()
  - bta_av_co_video_stop()

Change-Id: I0c0c80578ab2675d2fe23dea3f11b2a0d82283f0

7 years agoMerge "Implement the AVRCP "continue" and "abort continue" responses" am: d3e8a45884...
Ajay Panicker [Sat, 20 Aug 2016 03:27:16 +0000 (03:27 +0000)]
Merge "Implement the AVRCP "continue" and "abort continue" responses" am: d3e8a45884 am: 34895efd54 am: 74e6988cea
am: 231c9bf3b2

Change-Id: Ibc5d9d48e43b73b722a7a14b321a62ff3c5e3ab4

7 years agoMerge "Implement the AVRCP "continue" and "abort continue" responses" am: d3e8a45884...
Ajay Panicker [Sat, 20 Aug 2016 03:06:16 +0000 (03:06 +0000)]
Merge "Implement the AVRCP "continue" and "abort continue" responses" am: d3e8a45884 am: 34895efd54
am: 74e6988cea

Change-Id: I1cd562f7c006fa2ebae003b79fc1a5b914350a39

7 years agoMerge "Implement the AVRCP "continue" and "abort continue" responses" am: d3e8a45884
Ajay Panicker [Sat, 20 Aug 2016 03:03:16 +0000 (03:03 +0000)]
Merge "Implement the AVRCP "continue" and "abort continue" responses" am: d3e8a45884
am: 34895efd54

Change-Id: Ieeddca189aa91cdf9f10d1a194865babe94529a8

7 years agoMerge "Implement the AVRCP "continue" and "abort continue" responses"
Ajay Panicker [Sat, 20 Aug 2016 03:00:12 +0000 (03:00 +0000)]
Merge "Implement the AVRCP "continue" and "abort continue" responses"
am: d3e8a45884

Change-Id: I0c8c22beb6c899cf97ccd87744c8fb27964d0f32

7 years agoMerge "Implement the AVRCP "continue" and "abort continue" responses"
Treehugger Robot [Sat, 20 Aug 2016 02:54:13 +0000 (02:54 +0000)]
Merge "Implement the AVRCP "continue" and "abort continue" responses"

7 years agoMerge "Added new function time_get_os_boottime_us() and unit tests" am: 2637d3cd9d...
Pavlin Radoslavov [Sat, 20 Aug 2016 01:10:48 +0000 (01:10 +0000)]
Merge "Added new function time_get_os_boottime_us() and unit tests" am: 2637d3cd9d am: a94784862f am: 22795bd35e
am: b5e20c3b1d

Change-Id: I2ddf7f875a974d4d61bfe73b189d97259ae88fe9

7 years agoMerge "Added new function time_get_os_boottime_us() and unit tests" am: 2637d3cd9d...
Pavlin Radoslavov [Sat, 20 Aug 2016 01:03:58 +0000 (01:03 +0000)]
Merge "Added new function time_get_os_boottime_us() and unit tests" am: 2637d3cd9d am: a94784862f
am: 22795bd35e

Change-Id: I1bd031167db91e3cd5cbdc5dd112361cf3f96e8f

7 years agoMerge "Added new function time_get_os_boottime_us() and unit tests" am: 2637d3cd9d
Pavlin Radoslavov [Sat, 20 Aug 2016 01:00:08 +0000 (01:00 +0000)]
Merge "Added new function time_get_os_boottime_us() and unit tests" am: 2637d3cd9d
am: a94784862f

Change-Id: Ib5e084595e0027246b056d5120ebdff1582c5010

7 years agoMerge "Added new function time_get_os_boottime_us() and unit tests"
Pavlin Radoslavov [Sat, 20 Aug 2016 00:57:02 +0000 (00:57 +0000)]
Merge "Added new function time_get_os_boottime_us() and unit tests"
am: 2637d3cd9d

Change-Id: Icb7fbbe31234c26efb21166b3ed91e03b07177fd

7 years agoMerge "Added new function time_get_os_boottime_us() and unit tests"
Treehugger Robot [Sat, 20 Aug 2016 00:48:38 +0000 (00:48 +0000)]
Merge "Added new function time_get_os_boottime_us() and unit tests"

7 years agoAdded new function fixed_queue_flush() and the unit test am: 3335cf4e87 am: 8e66aa9af...
Pavlin Radoslavov [Sat, 20 Aug 2016 00:29:30 +0000 (00:29 +0000)]
Added new function fixed_queue_flush() and the unit test am: 3335cf4e87 am: 8e66aa9afd am: 4b27ad3e51
am: 31277f33fa

Change-Id: Ic8c60f6bd1de9bde593a127c1f7c0aebdff8eb35

7 years agoAdded new function fixed_queue_flush() and the unit test am: 3335cf4e87 am: 8e66aa9afd
Pavlin Radoslavov [Sat, 20 Aug 2016 00:21:24 +0000 (00:21 +0000)]
Added new function fixed_queue_flush() and the unit test am: 3335cf4e87 am: 8e66aa9afd
am: 4b27ad3e51

Change-Id: I1982f28ecd6bb25ef14187a86dc95fe722eb7b3f

7 years agoAdded new function fixed_queue_flush() and the unit test am: 3335cf4e87
Pavlin Radoslavov [Sat, 20 Aug 2016 00:17:40 +0000 (00:17 +0000)]
Added new function fixed_queue_flush() and the unit test am: 3335cf4e87
am: 8e66aa9afd

Change-Id: I45bf486b7eaee0379a7e829a09122c20c811d132

7 years agoMerge "GATT: don't update link status for apps that were never connected" into nyc...
Jakub Pawlowski [Sat, 20 Aug 2016 00:15:44 +0000 (00:15 +0000)]
Merge "GATT: don't update link status for apps that were never connected" into nyc-mr1-dev am: fdab496066 am: e09f72982b
am: 44a45cc288

Change-Id: I8df49602f74a9adccfbc9489db3eed1b83650734

7 years agoresolve merge conflicts of e6f74e0 to nyc-mr1-dev-plus-aosp
Andre Eisenbach [Sat, 20 Aug 2016 00:15:42 +0000 (00:15 +0000)]
resolve merge conflicts of e6f74e0 to nyc-mr1-dev-plus-aosp
am: 5563e1ae3d

Change-Id: I4acf4ef5cbab73fe67103a1ad094cfd600ac04a0

7 years agoAdded new function fixed_queue_flush() and the unit test
Pavlin Radoslavov [Sat, 20 Aug 2016 00:14:35 +0000 (00:14 +0000)]
Added new function fixed_queue_flush() and the unit test
am: 3335cf4e87

Change-Id: I69e145c2e2c4afda6ab0c16c5cf3c9e097b8a8e7

7 years agoAdded new function fixed_queue_flush() and the unit test
Pavlin Radoslavov [Fri, 19 Aug 2016 22:32:30 +0000 (15:32 -0700)]
Added new function fixed_queue_flush() and the unit test

Change-Id: Ic90e3ffdcaea9573b135bd26ef102a1740fb2d3d