OSDN Git Service

android-x86/system-bt.git
7 years agoDisable auto-pairing for hands-free devices am: d2a37effc2 am: 3692043b15
Andre Eisenbach [Tue, 30 Aug 2016 04:53:54 +0000 (04:53 +0000)]
Disable auto-pairing for hands-free devices am: d2a37effc2 am: 3692043b15
am: 17efdab85a

Change-Id: Ic16fc4e980c8bff6556a0cb65f69fea513b08159

7 years agoaudio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: 12851e1b46...
Andy Hung [Tue, 30 Aug 2016 02:31:23 +0000 (02:31 +0000)]
audio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: 12851e1b46 am: 9cc786805b am: 1a4a7c28ad
am: 26a8c853f7

Change-Id: Iced473548f4bf70f595224082b88a5a43c599475

7 years agoaudio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: c2fb704838
Andy Hung [Tue, 30 Aug 2016 02:31:19 +0000 (02:31 +0000)]
audio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: c2fb704838
am: 6f60153c52

Change-Id: I1343427f3aa11b256b699f11e28d213ee63780ef

7 years agoDisable auto-pairing for hands-free devices am: d2a37effc2
Andre Eisenbach [Mon, 29 Aug 2016 22:12:50 +0000 (22:12 +0000)]
Disable auto-pairing for hands-free devices am: d2a37effc2
am: 3692043b15

Change-Id: I388c022a74931cdb750a68d0da3815656a8f832c

7 years agoDisable auto-pairing for hands-free devices
Andre Eisenbach [Mon, 29 Aug 2016 22:09:48 +0000 (22:09 +0000)]
Disable auto-pairing for hands-free devices
am: d2a37effc2

Change-Id: If399b79af277ec9c7c99934ff4b320de4daf903f

7 years agoaudio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: 12851e1b46...
Andy Hung [Mon, 29 Aug 2016 21:29:08 +0000 (21:29 +0000)]
audio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: 12851e1b46 am: 9cc786805b
am: 1a4a7c28ad

Change-Id: I906c44a91d6118a39247fe7c7ca885eec0ebcab4

7 years agoaudio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: 12851e1b46
Andy Hung [Mon, 29 Aug 2016 21:20:21 +0000 (21:20 +0000)]
audio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31 am: 12851e1b46
am: 9cc786805b

Change-Id: I66972340a617f44d4d9ca993f9ab394065947a8e

7 years agoaudio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31
Andy Hung [Mon, 29 Aug 2016 21:15:53 +0000 (21:15 +0000)]
audio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31
am: c2fb704838

Change-Id: I24d2a8eb6f6d508211e10938f6b55afaddde8bbd

7 years agoaudio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31
Andy Hung [Mon, 29 Aug 2016 21:15:52 +0000 (21:15 +0000)]
audio_a2dp_hw: Always update frame counter in out_write am: 5274ab7a31
am: 12851e1b46

Change-Id: I16468c6316fc48923e63f9a52276a2307ce0ae56

7 years agoaudio_a2dp_hw: Always update frame counter in out_write
Andy Hung [Mon, 29 Aug 2016 21:12:22 +0000 (21:12 +0000)]
audio_a2dp_hw: Always update frame counter in out_write
am: 5274ab7a31

Change-Id: I6f40e0c813cbc7fe9801903f8c2cbfb08e05f6c0

7 years agoaudio_a2dp_hw: Always update frame counter in out_write
Andy Hung [Mon, 29 Aug 2016 21:12:21 +0000 (21:12 +0000)]
audio_a2dp_hw: Always update frame counter in out_write
am: 5274ab7a31

Change-Id: I1749b616522346a733b2bcfc0273851b7babe437

7 years agoCleanup and removed BTIF-related unused code am: a62c5a302e am: 7a84515916 am: 1a1f0c1184
Pavlin Radoslavov [Mon, 29 Aug 2016 20:17:17 +0000 (20:17 +0000)]
Cleanup and removed BTIF-related unused code am: a62c5a302e am: 7a84515916 am: 1a1f0c1184
am: 4a61e2d1df

Change-Id: I3cebf03fdb855a6fef147ddc48c7fd67be377521

7 years agoaudio_a2dp_hw: Always update frame counter in out_write
Andy Hung [Thu, 28 Jul 2016 17:45:54 +0000 (10:45 -0700)]
audio_a2dp_hw: Always update frame counter in out_write

Required now that we always return success.

Bug: 30025777
Change-Id: I7db51321672c128039545cc0fb604c615f169bc3
(cherry picked from commit f4a37b255d1d6fa4cf7cefe2aeb1c3f4fdf33f3c)

7 years agoCleanup and removed BTIF-related unused code am: a62c5a302e am: 7a84515916
Pavlin Radoslavov [Mon, 29 Aug 2016 18:02:32 +0000 (18:02 +0000)]
Cleanup and removed BTIF-related unused code am: a62c5a302e am: 7a84515916
am: 1a1f0c1184

Change-Id: I5157ce8d506f31c28daa69d642ace5e5cda7e84d

7 years agoCleanup and removed BTIF-related unused code am: a62c5a302e
Pavlin Radoslavov [Mon, 29 Aug 2016 17:59:01 +0000 (17:59 +0000)]
Cleanup and removed BTIF-related unused code am: a62c5a302e
am: 7a84515916

Change-Id: Ia7a15974a43929b3e73dba0cf380aa7cac87f1a2

7 years agoCleanup and removed BTIF-related unused code
Pavlin Radoslavov [Mon, 29 Aug 2016 17:56:42 +0000 (17:56 +0000)]
Cleanup and removed BTIF-related unused code
am: a62c5a302e

Change-Id: I449704fafd17f331fac8c201eabdf9f3af30fc4e

7 years agoCleanup and removed BTIF-related unused code
Pavlin Radoslavov [Thu, 25 Aug 2016 22:34:57 +0000 (15:34 -0700)]
Cleanup and removed BTIF-related unused code

* Removed field tBTIF_MEDIA_CB.av_sm_hdl, because it is never used
  after an assignment.
* Removed the corresponding function btif_av_get_sm_handle() which
  is not used/needed anymore.
* Declared btif_hf_is_call_idle() function in a new header file
  "btif_hf.h"
* Removed tBTIF_STATUS, BTIF_SUCCESS and BTIF_ERROR_SRV_* error codes
  which are never used.
* Removed duplicate conditional define of BTA_AV_CO_CP_SCMS_T
* Removed unused typedef tBTA_AV_AUDIO_CODEC_INFO, and unused
  BTA_AV_CO_* defines and enums.

Change-Id: I7bb49957fad94073d474fea6ea0d466f36df37fb

7 years agoMerge "Update linux BUILD.gn files" am: c143b4a3fa am: 0c3164c963 am: 9ac66e0186
Jakub Pawlowski [Thu, 25 Aug 2016 23:55:15 +0000 (23:55 +0000)]
Merge "Update linux BUILD.gn files" am: c143b4a3fa am: 0c3164c963 am: 9ac66e0186
am: f0908c45f0

Change-Id: I27501ffef53f417f0c516434b8d7627fb09d50a2

7 years agoMerge "Update linux BUILD.gn files" am: c143b4a3fa am: 0c3164c963
Jakub Pawlowski [Thu, 25 Aug 2016 23:00:55 +0000 (23:00 +0000)]
Merge "Update linux BUILD.gn files" am: c143b4a3fa am: 0c3164c963
am: 9ac66e0186

Change-Id: I9c7eba4b1c51e46e4a7a03fc17f8d0e485d829b8

7 years agoFree av_open_on_rc_timer on cleanup am: 8981fb2f35 am: 5a79d6da20 am: 290b4ca86b
Pavlin Radoslavov [Thu, 25 Aug 2016 22:27:04 +0000 (22:27 +0000)]
Free av_open_on_rc_timer on cleanup am: 8981fb2f35 am: 5a79d6da20 am: 290b4ca86b
am: 9a061aebdd

Change-Id: If610959039020fa06b2ca6f3615ba435a9cbebf4

7 years agoMerge "Update linux BUILD.gn files" am: c143b4a3fa
Jakub Pawlowski [Thu, 25 Aug 2016 22:26:14 +0000 (22:26 +0000)]
Merge "Update linux BUILD.gn files" am: c143b4a3fa
am: 0c3164c963

Change-Id: I0d9dd8ac08e6e20eb0078240000898611f3cf839

7 years agoMerge "Update linux BUILD.gn files"
Jakub Pawlowski [Thu, 25 Aug 2016 22:20:50 +0000 (22:20 +0000)]
Merge "Update linux BUILD.gn files"
am: c143b4a3fa

Change-Id: Iad689fa7313868a072f7e1836d39d47ca4e471aa

7 years agoMerge "Update linux BUILD.gn files"
Treehugger Robot [Thu, 25 Aug 2016 22:11:07 +0000 (22:11 +0000)]
Merge "Update linux BUILD.gn files"

7 years agoFree av_open_on_rc_timer on cleanup am: 8981fb2f35 am: 5a79d6da20
Pavlin Radoslavov [Thu, 25 Aug 2016 21:06:15 +0000 (21:06 +0000)]
Free av_open_on_rc_timer on cleanup am: 8981fb2f35 am: 5a79d6da20
am: 290b4ca86b

Change-Id: I819e1574c32a24c334cbdc14eb781d2d5bdb2a0f

7 years agoFree av_open_on_rc_timer on cleanup am: 8981fb2f35
Pavlin Radoslavov [Thu, 25 Aug 2016 21:03:45 +0000 (21:03 +0000)]
Free av_open_on_rc_timer on cleanup am: 8981fb2f35
am: 5a79d6da20

Change-Id: I3f8f9724c571afcb10b98123b8cffdd795701fdd

7 years agoFree av_open_on_rc_timer on cleanup
Pavlin Radoslavov [Thu, 25 Aug 2016 21:00:17 +0000 (21:00 +0000)]
Free av_open_on_rc_timer on cleanup
am: 8981fb2f35

Change-Id: I4a429c099df2ca47c1759499127aeb267bb22937

7 years agoUpdate linux BUILD.gn files
Jakub Pawlowski [Thu, 25 Aug 2016 20:14:26 +0000 (13:14 -0700)]
Update linux BUILD.gn files

Change-Id: Iccec195d35b5a62d7b45834670229a68deeb4add

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 agoFree av_open_on_rc_timer on cleanup
Pavlin Radoslavov [Wed, 16 Mar 2016 22:28:07 +0000 (15:28 -0700)]
Free av_open_on_rc_timer on cleanup

Bug: 27602473
Change-Id: I4b0f1563952be75a6dee238607e6674ce98ea623

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