OSDN Git Service

android-x86/system-bt.git
7 years agoFix HID crashing on reconnect am: 0afaaa41b5 am: 3d296192d5 -s ours
Jakub Pawlowski [Thu, 1 Sep 2016 21:24:28 +0000 (21:24 +0000)]
Fix HID crashing on reconnect am: 0afaaa41b5 am: 3d296192d5  -s ours
am: 2e9e126406

Change-Id: If008ffe7773239ad9fbb1d703c1fd75aa0375ce6

7 years agoFix HID crashing on reconnect am: 0afaaa41b5
Jakub Pawlowski [Thu, 1 Sep 2016 21:21:24 +0000 (21:21 +0000)]
Fix HID crashing on reconnect am: 0afaaa41b5
am: 3d296192d5  -s ours

Change-Id: I1b57d65698e69bde19143cb1d8defc0958071a3e

7 years agoFix HID crashing on reconnect
Jakub Pawlowski [Thu, 1 Sep 2016 21:08:50 +0000 (21:08 +0000)]
Fix HID crashing on reconnect
am: 0afaaa41b5

Change-Id: I04188383c9a7dc73b4988fd5e791c2ad625080f5

7 years agoFix HID crashing on reconnect
Jakub Pawlowski [Thu, 1 Sep 2016 10:29:51 +0000 (03:29 -0700)]
Fix HID crashing on reconnect

This patch fixes crashes on reconnection to HID device.
All those issues are already fixed in AOSP.

Bug: 31221398
Change-Id: I43b64d0b11b1f548cb373332777ea92d8a075466

7 years agoAdded A2DP codec-related APIs am: 7e5862624f am: d162323cbc am: 9cf1b9f648
Pavlin Radoslavov [Thu, 1 Sep 2016 01:55:38 +0000 (01:55 +0000)]
Added A2DP codec-related APIs am: 7e5862624f am: d162323cbc am: 9cf1b9f648
am: b5f9cadb0c

Change-Id: I26979aad1c44d064078f78ca6ca58f1e63cbe92d

7 years agoSeparate advertiser from GATT client (4/4) am: 67d5a25233 am: 93f37868fa am: 1ff79bd349
Jakub Pawlowski [Thu, 1 Sep 2016 01:27:12 +0000 (01:27 +0000)]
Separate advertiser from GATT client (4/4) am: 67d5a25233 am: 93f37868fa am: 1ff79bd349
am: 1cd30070f5

Change-Id: Ie5b70232b81324a363ac506393e16215d708be9b

7 years agoAdded A2DP codec-related APIs am: 7e5862624f am: d162323cbc
Pavlin Radoslavov [Wed, 31 Aug 2016 20:41:46 +0000 (20:41 +0000)]
Added A2DP codec-related APIs am: 7e5862624f am: d162323cbc
am: 9cf1b9f648

Change-Id: Ic377665f3d7830d78bd9d8f69f1fb1c8968cc60f

7 years agoAdded A2DP codec-related APIs am: 7e5862624f
Pavlin Radoslavov [Wed, 31 Aug 2016 20:38:45 +0000 (20:38 +0000)]
Added A2DP codec-related APIs am: 7e5862624f
am: d162323cbc

Change-Id: I19ebc778c84b1b722b962b9ba52a97c016fbada6

7 years agoAdded A2DP codec-related APIs
Pavlin Radoslavov [Wed, 31 Aug 2016 20:36:19 +0000 (20:36 +0000)]
Added A2DP codec-related APIs
am: 7e5862624f

Change-Id: I4841099c07df6353cf9bfd16bc845d2b0ea01b18

7 years agoSeparate advertiser from GATT client (4/4) am: 67d5a25233 am: 93f37868fa
Jakub Pawlowski [Wed, 31 Aug 2016 18:28:49 +0000 (18:28 +0000)]
Separate advertiser from GATT client (4/4) am: 67d5a25233 am: 93f37868fa
am: 1ff79bd349

Change-Id: I9b9c1810c2ad87b30c21b2c5af7c273e662cc5e8

7 years agoAdded A2DP codec-related APIs
Pavlin Radoslavov [Sun, 28 Aug 2016 23:59:51 +0000 (16:59 -0700)]
Added A2DP codec-related APIs

Those APIs can be used to check various codec-related characterictics,
and minimize the codec-specific knowledge in the rest of the code.

The added APIs are:
 - A2D_GetCodecType()
 - A2D_IsCodecSupported()
 - A2D_UsesRtpHeader()
 - A2D_IsVendorCodecSupported()
 - A2D_VendorCodecGetVendorId()
 - A2D_VendorCodecGetCodecId()
 - A2D_VendorUsesRtpHeader()

Also:
 - Added unit tests for the new API calls
 - Removed redundant definition of BTA_AV_CODEC_TYPE_IDX
 - Removed unused A2D_MEDIA_CT_* codec type defines

Bug: 30958229
Change-Id: Id9ab01fd93b0b0a9b55a0af9bfb482310ae0ade4

7 years agoSeparate advertiser from GATT client (4/4) am: 67d5a25233
Jakub Pawlowski [Wed, 31 Aug 2016 18:21:05 +0000 (18:21 +0000)]
Separate advertiser from GATT client (4/4) am: 67d5a25233
am: 93f37868fa

Change-Id: Iaec886c54568b2392efcc6e5286a7cb5d854d42d

7 years agoSeparate advertiser from GATT client (4/4)
Jakub Pawlowski [Wed, 31 Aug 2016 18:14:48 +0000 (18:14 +0000)]
Separate advertiser from GATT client (4/4)
am: 67d5a25233

Change-Id: I1640cd73003ab4d37b751ecb8e47f7da5bbf4588

7 years agoSeparate advertiser from GATT client (4/4)
Jakub Pawlowski [Wed, 13 Jul 2016 18:55:16 +0000 (11:55 -0700)]
Separate advertiser from GATT client (4/4)

Bug: 30622771
Change-Id: I761f0bff09aec1047bd512915960021e4fbdc0c8

7 years agoUse closures in advertising related code am: 5b12a83ba9 am: 8b4db1a134 am: 8b16e42141
Jakub Pawlowski [Tue, 30 Aug 2016 22:33:14 +0000 (22:33 +0000)]
Use closures in advertising related code am: 5b12a83ba9 am: 8b4db1a134 am: 8b16e42141
am: 3e37400bee

Change-Id: Icc885e6fd39b3464f2833fa0a2f4d288b0781db1

7 years agoUse closures in advertising related code am: 5b12a83ba9 am: 8b4db1a134
Jakub Pawlowski [Tue, 30 Aug 2016 21:26:12 +0000 (21:26 +0000)]
Use closures in advertising related code am: 5b12a83ba9 am: 8b4db1a134
am: 8b16e42141

Change-Id: Ib2ba3a8a4017c20b9c19553fe9381c8e4fc21798

7 years agoUse closures in advertising related code am: 5b12a83ba9
Jakub Pawlowski [Tue, 30 Aug 2016 21:23:41 +0000 (21:23 +0000)]
Use closures in advertising related code am: 5b12a83ba9
am: 8b4db1a134

Change-Id: Ia93ee57dd132e3795feee06775d15072d2647303

7 years agoUse closures in advertising related code
Jakub Pawlowski [Tue, 30 Aug 2016 21:20:43 +0000 (21:20 +0000)]
Use closures in advertising related code
am: 5b12a83ba9

Change-Id: I2ad76a71fc3af35c5c60a5d44be6eff5cc827d6c

7 years agoUse closures in advertising related code
Jakub Pawlowski [Thu, 11 Aug 2016 10:30:47 +0000 (03:30 -0700)]
Use closures in advertising related code

This patch is a preparation to get rid of BTA layer for advertising, and
for further refactoring required to keep this code maintainable.

Tests: SL4A/ConcurrentBleAdvertisingTest
Bug: 30622771
Change-Id: I574b57159390d090b16d264d3c1fba2f07b70d4c

7 years agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am...
Andre Eisenbach [Tue, 30 Aug 2016 04:53:59 +0000 (04:53 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am: 88cc389d84 am: d810039327 am: 164aa217b2
am: 5a140ff8d3

Change-Id: I57192a9d6506525218a2a0cf2d692bbb48105854

7 years agoDisable auto-pairing for hands-free devices am: d2a37effc2 am: f7d632a29d am: d3b760a...
Andre Eisenbach [Tue, 30 Aug 2016 04:53:58 +0000 (04:53 +0000)]
Disable auto-pairing for hands-free devices am: d2a37effc2 am: f7d632a29d am: d3b760ac45 am: f6186c818f
am: 0e83aca8d4

Change-Id: I52bfd6b0d4d16438afd3e1bb3b726704a1a53661

7 years agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am...
Andre Eisenbach [Tue, 30 Aug 2016 04:53:56 +0000 (04:53 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am: db8197db5c
am: f8083f31d9

Change-Id: I4cc0720e447783909338fad1ec2690a1622aee0b

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 agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am...
Andre Eisenbach [Mon, 29 Aug 2016 22:38:44 +0000 (22:38 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am: 88cc389d84 am: d810039327
am: 164aa217b2

Change-Id: Id974fde4b1a8094576bc8d8682326abe20a9f0c1

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

Change-Id: Ia371e522ef8cab4f604644dca7dd6dd6dadda68e

7 years agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am...
Andre Eisenbach [Mon, 29 Aug 2016 22:23:24 +0000 (22:23 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7 am: 88cc389d84
am: d810039327

Change-Id: I8f8921f7930a877c2dd7cbf5af24856ad7398e3a

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

Change-Id: Ia6057d521cb2e64d53e67400543607aef375e3cf

7 years agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7
Andre Eisenbach [Mon, 29 Aug 2016 22:12:50 +0000 (22:12 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7
am: db8197db5c

Change-Id: If199026b864bc429df2f605b63dd0b36e96913cb

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 agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev
Andre Eisenbach [Mon, 29 Aug 2016 22:09:49 +0000 (22:09 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev
am: fb309b3ce7

Change-Id: Ie6a548d7d0bdcad3a30ef7be3868df1b2a264873

7 years agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7
Andre Eisenbach [Mon, 29 Aug 2016 22:09:48 +0000 (22:09 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev am: fb309b3ce7
am: 88cc389d84

Change-Id: I6c325fa710adfefbbe3e448ebc28a0777253d5d3

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

Change-Id: I6cf3f7c2579e0ef395142aa3165c1e608e7e2fbc

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 agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev
Andre Eisenbach [Mon, 29 Aug 2016 22:05:26 +0000 (22:05 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev
am: fb309b3ce7

Change-Id: Ib7494cc47ff0e93f7f20a12dc79695697d2eecf0

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

Change-Id: I87c0ba767d7dcf91cfd6cb4903fea4efd6df392b

7 years agoMerge "Disable auto-pairing for hands-free devices" into nyc-dev
TreeHugger Robot [Mon, 29 Aug 2016 21:51:21 +0000 (21:51 +0000)]
Merge "Disable auto-pairing for hands-free devices" into nyc-dev

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