OSDN Git Service
Marie Janssen [Thu, 12 May 2016 20:58:11 +0000 (20:58 +0000)]
Merge "btif: only save config when bonded devices change"
am:
c12ef5607a
* commit '
c12ef5607a2a78201f282d551e8dfe7ee5763942':
btif: only save config when bonded devices change
Change-Id: I33f8d9a69e60e1f10230c903b070b67c67e07acf
Treehugger Robot [Thu, 12 May 2016 20:51:59 +0000 (20:51 +0000)]
Merge "btif: only save config when bonded devices change"
Jakub Pawlowski [Thu, 12 May 2016 20:08:48 +0000 (20:08 +0000)]
Remove dead HID code
am:
c3fe5a04a9
* commit '
c3fe5a04a926672d3b363d88e6bd67eb46ba230c':
Remove dead HID code
Change-Id: I2b2838c8d17b80242724fd6e3617f971650807df
Jakub Pawlowski [Thu, 12 May 2016 16:24:38 +0000 (09:24 -0700)]
Remove dead HID code
This patch removes dead code in HID related to setting scan parameters
on remote device.
Change-Id: I96e0036b65d2ebb3b099d817683ed3d5a11b6bb7
Jakub Pawlowski [Thu, 12 May 2016 19:57:12 +0000 (19:57 +0000)]
Rename all *.cpp files to *.cc to follow new style
am:
e6d1202990
* commit '
e6d1202990e0ede65db4470b4eaa20fc4b1f791e':
Rename all *.cpp files to *.cc to follow new style
Change-Id: I6075f783e4bc7d708aa83f07d3be8b21f7a5401c
Marie Janssen [Wed, 11 May 2016 21:58:48 +0000 (14:58 -0700)]
btif: only save config when bonded devices change
Bug:
27354612
Change-Id: I15f816c85d3ab1991abf076f7c1ae2914d773d54
Jakub Pawlowski [Thu, 12 May 2016 18:16:46 +0000 (11:16 -0700)]
Rename all *.cpp files to *.cc to follow new style
Change-Id: Ia79ee09348e67ff4a1712ee11a1e8480180a2623
Jakub Pawlowski [Thu, 12 May 2016 17:30:09 +0000 (17:30 +0000)]
Rewrite btif_gatts_register_app to new style
am:
d71bc1732f
* commit '
d71bc1732fc0ed095a95dd625ff4080a0a1b44f3':
Rewrite btif_gatts_register_app to new style
Change-Id: Id387cb8e9ba5ef05f55e96e5957bddfa5f0e91c4
Jakub Pawlowski [Thu, 12 May 2016 17:30:06 +0000 (17:30 +0000)]
Rewrite btif_gatts_open to new style
am:
3c79a3b7ca
* commit '
3c79a3b7caf12d9b182afc2da071be3a5615a0dd':
Rewrite btif_gatts_open to new style
Change-Id: I0be50ae5dc763554665f901a236fbebcd5fdb0c2
Jakub Pawlowski [Thu, 12 May 2016 17:30:04 +0000 (17:30 +0000)]
Rewrite btif_gatts_close to new style
am:
b333ae2e69
* commit '
b333ae2e69d652b42a7c02500f35ec781df4178c':
Rewrite btif_gatts_close to new style
Change-Id: I9dd7bcda53f618828d00c6d4c70e6fb10100ffb5
Jakub Pawlowski [Thu, 12 May 2016 17:30:01 +0000 (17:30 +0000)]
Rewrite btif_gatts_add_included_service to new style
am:
0cd448fe8f
* commit '
0cd448fe8f7bf57bb1530d0216b2e18e322e3b3c':
Rewrite btif_gatts_add_included_service to new style
Change-Id: I676dd5a6b9b10db3eddce2ffacad20f25ec07597
Jakub Pawlowski [Thu, 12 May 2016 17:29:59 +0000 (17:29 +0000)]
Rewrite btif_gatts_start_service to new style
am:
b14f76be6e
* commit '
b14f76be6e859a796d64d083b78e6816f415de20':
Rewrite btif_gatts_start_service to new style
Change-Id: I95917a0243aac10250d740d819d29d5174e3c7a6
Jakub Pawlowski [Thu, 12 May 2016 17:29:56 +0000 (17:29 +0000)]
Rewrite btif_gatts_stop_service to new style
am:
7ce14cc65e
* commit '
7ce14cc65ea3796da3e12811e7bc07b529a2f9fa':
Rewrite btif_gatts_stop_service to new style
Change-Id: Ib39f38544c5fb34d090c4e73562db52511b01720
Jakub Pawlowski [Thu, 12 May 2016 17:29:54 +0000 (17:29 +0000)]
Rewrite btif_gatts_send_indication to new style
am:
858cf9468b
* commit '
858cf9468bb402ddf806087461aed5f4ea865f6b':
Rewrite btif_gatts_send_indication to new style
Change-Id: Iac5c2a93f5c52f805e204c5dc0a473eb12ffe1ea
Jakub Pawlowski [Thu, 12 May 2016 17:29:52 +0000 (17:29 +0000)]
Rewrite btif_gatts_send_response to new style
am:
757109e314
* commit '
757109e31404689f1769522637425bcc11edc074':
Rewrite btif_gatts_send_response to new style
Change-Id: I1fe226e89603e826f72e1595f2c3af26579cb747
Jakub Pawlowski [Thu, 12 May 2016 17:29:50 +0000 (17:29 +0000)]
Use unnamed namespace in btif_gatt_client
am:
44be0690a1
* commit '
44be0690a1d15d1ffc97e4c7560d8aee5bb86062':
Use unnamed namespace in btif_gatt_client
Change-Id: I3323ea4938ea4f82fadaf7923161ab345d57a662
Jakub Pawlowski [Thu, 12 May 2016 17:29:48 +0000 (17:29 +0000)]
Use unordered_set to keep p_dev_cb
am:
ce7d46a263
* commit '
ce7d46a263d8e0e7877b62b99b046c7e08ee75f8':
Use unordered_set to keep p_dev_cb
Change-Id: I6e93bf2f0d215c9208a7b4978098f9dcb19674fd
Jakub Pawlowski [Thu, 12 May 2016 17:29:47 +0000 (17:29 +0000)]
Remove unused structures from btif_gatt_client
am:
d635ab3102
* commit '
d635ab31023396ed2a33634303c4aa5d074f890c':
Remove unused structures from btif_gatt_client
Change-Id: Ie635eae8cc0200d6d0f824da6c0b0624e508cfb9
Jakub Pawlowski [Thu, 12 May 2016 17:27:55 +0000 (17:27 +0000)]
Rewrite bta_scan_results_cb to new style
am:
92519cc7f1
* commit '
92519cc7f18867e9e1897f63f212c8e0a221bdf7':
Rewrite bta_scan_results_cb to new style
Change-Id: Id862aec6bf50b30206f7068fe0910952ca267aaf
Jakub Pawlowski [Thu, 12 May 2016 17:27:53 +0000 (17:27 +0000)]
Rewrite multi adv callbacks to new style
am:
845b49d255
* commit '
845b49d2559bae6e8084672c6b7020f2820aea9e':
Rewrite multi adv callbacks to new style
Change-Id: Ibb571b3834166abce6b0940d3e718d0e3b1a5caf
Jakub Pawlowski [Thu, 12 May 2016 17:27:50 +0000 (17:27 +0000)]
Rewrite batch scan related functions to new style
am:
5f848b4d24
* commit '
5f848b4d24f596d56da335ee07dd976b3101cfd2':
Rewrite batch scan related functions to new style
Change-Id: I1b783c927eff45c0255403a7a79701725044a4bc
Jakub Pawlowski [Thu, 12 May 2016 17:27:47 +0000 (17:27 +0000)]
Rewrite bta_track_adv_event_cb to new style
am:
4ed8924e9d
* commit '
4ed8924e9d820df37f03230dece6fd68eb1fc4df':
Rewrite bta_track_adv_event_cb to new style
Change-Id: I18f0d83f99e1daf5e2713770523edbbc0ac6de37
Jakub Pawlowski [Thu, 12 May 2016 17:27:45 +0000 (17:27 +0000)]
Rewrite btm_read_rssi_cb to new style
am:
c171ac407c
* commit '
c171ac407cfc6d30a11af6b12ead39688eb897f7':
Rewrite btm_read_rssi_cb to new style
Change-Id: I08c5364b5112ade6a660a0d36bfeec45a5bf8655
Jakub Pawlowski [Thu, 12 May 2016 17:27:41 +0000 (17:27 +0000)]
Rewrite scan filter related callbacks to new style
am:
da5b59b5bf
* commit '
da5b59b5bf9cb34574c16ba784c1484055fcb1e3':
Rewrite scan filter related callbacks to new style
Change-Id: Ifeb575fd0310c1d57ec60f50a449ff667f7ee896
Jakub Pawlowski [Thu, 12 May 2016 17:27:39 +0000 (17:27 +0000)]
Rewrite btif_gattc_scan_filter_add_remove to new style
am:
904aefe1a9
* commit '
904aefe1a9c2808a7460ebb9896391acdaa39f4e':
Rewrite btif_gattc_scan_filter_add_remove to new style
Change-Id: Ied31fc699158e732404a4b0784b84c47310af96f
Jakub Pawlowski [Thu, 12 May 2016 17:27:37 +0000 (17:27 +0000)]
Rewrite register/unregister app to new style
am:
c8b5185a5d
* commit '
c8b5185a5d4c4c9c15f3ec5df4acd37c1d46f1f1':
Rewrite register/unregister app to new style
Change-Id: Iefb9ce04cf30bcf1615f3bd3c744856d1f65c83c
Jakub Pawlowski [Thu, 12 May 2016 17:27:34 +0000 (17:27 +0000)]
Rewrite scan start/stop to new style
am:
955ff4e88e
* commit '
955ff4e88ef7391632e19d1b0234cae40b6f42c1':
Rewrite scan start/stop to new style
Change-Id: I19b1cc577701849d2d86b8d54f21b791d869ba17
Jakub Pawlowski [Thu, 12 May 2016 17:27:31 +0000 (17:27 +0000)]
Rewrite btif_gattc_open to new style
am:
26e51cb185
* commit '
26e51cb18509e7e04755b4fa4250c60f105ab9d2':
Rewrite btif_gattc_open to new style
Change-Id: I3545e59f8913cd69703e311d327d49f58636b87b
Jakub Pawlowski [Thu, 12 May 2016 17:27:29 +0000 (17:27 +0000)]
Rewrite btif_gattc_close to new style
am:
b454953bb6
* commit '
b454953bb6620cbafba86351b91d58b47dda107d':
Rewrite btif_gattc_close to new style
Change-Id: If0be0f67d14230a2ee0886ad7f8d033a211657bc
Jakub Pawlowski [Thu, 12 May 2016 17:27:26 +0000 (17:27 +0000)]
Rewrite btif_gattc_search_service to new style
am:
d05e50e7df
* commit '
d05e50e7df462c928041bf565821d77fb493bc28':
Rewrite btif_gattc_search_service to new style
Change-Id: I2fda5393fc407799f2e3b025fcd8f3a5609d7ed9
Jakub Pawlowski [Thu, 12 May 2016 17:27:23 +0000 (17:27 +0000)]
Rewrite btif_gattc_execute_write to new style
am:
a684a52231
* commit '
a684a52231bf0422d991fb16e4dcfc88e4584680':
Rewrite btif_gattc_execute_write to new style
Change-Id: Ib01994744d50b6b2bf737ad95f0d2fb4f7a78776
Jakub Pawlowski [Thu, 12 May 2016 17:27:21 +0000 (17:27 +0000)]
Rewrite btif_gattc_write_char to new style
am:
39a3361288
* commit '
39a33612889a562da5c919f14df24707ba3e6007':
Rewrite btif_gattc_write_char to new style
Change-Id: I8bbead7e38bb8755663ce48b924244814dbe3a28
Jakub Pawlowski [Thu, 12 May 2016 17:27:19 +0000 (17:27 +0000)]
Rewrite btif_gattc_reg_for_notification to new style
am:
ca9d889000
* commit '
ca9d889000b087ddb9bedaa716176be986be158f':
Rewrite btif_gattc_reg_for_notification to new style
Change-Id: I171687aa0f7398317f4c34aae624c7192de610ab
Jakub Pawlowski [Thu, 12 May 2016 17:26:01 +0000 (17:26 +0000)]
Rewrite btif_gattc_listen to new style
am:
144998f689
* commit '
144998f68990205ba711e701be6be8325dd6e820':
Rewrite btif_gattc_listen to new style
Change-Id: I151ca8a21d468adcd0180373337c4774ccd84506
Jakub Pawlowski [Thu, 12 May 2016 17:26:00 +0000 (17:26 +0000)]
Rewrite btif_gattc_set_adv_data to new style
am:
1ce0819a83
* commit '
1ce0819a83f47f3bec3c16c46befd1e7faddf0ff':
Rewrite btif_gattc_set_adv_data to new style
Change-Id: I45c99c023d75a7af08b54db0a650c73981b43fa0
Jakub Pawlowski [Thu, 12 May 2016 17:25:59 +0000 (17:25 +0000)]
Rewrite read RSSI and set MTU to new style
am:
c9fe4b6f62
* commit '
c9fe4b6f62c95b195fa99c4fbb75863e547929bf':
Rewrite read RSSI and set MTU to new style
Change-Id: Iea321bd4e8aa6462564a323797cded2e10c4ef9c
Jakub Pawlowski [Thu, 12 May 2016 17:25:58 +0000 (17:25 +0000)]
Rewrite btif_gattc_conn_parameter_update to new style
am:
7cb29a3802
* commit '
7cb29a38027f9cb24fc30eefb389f848cfc17082':
Rewrite btif_gattc_conn_parameter_update to new style
Change-Id: Ifad5e8babdc6eff78f0c532aa5a924062ce3a310
Jakub Pawlowski [Thu, 12 May 2016 17:25:56 +0000 (17:25 +0000)]
Rewrite btif_gattc_scan_filter_param_setup to new style
am:
1a9e2ac4da
* commit '
1a9e2ac4dab5a74139613f4ff5dde1b979522f0e':
Rewrite btif_gattc_scan_filter_param_setup to new style
Change-Id: I054ccfefa0e12d55305dba0e0c25c745fcb54bb4
Jakub Pawlowski [Thu, 12 May 2016 17:25:55 +0000 (17:25 +0000)]
Rewrite scan filter related methods to new style
am:
71d4e33a08
* commit '
71d4e33a08a5eaf458c4cd3de1ca65a542be81e3':
Rewrite scan filter related methods to new style
Change-Id: I9da69f4300b888b0cc4f21c855f64df3fa8f60f9
Jakub Pawlowski [Thu, 12 May 2016 17:25:54 +0000 (17:25 +0000)]
Rewrite btif_gattc_multi_adv_enable to new style
am:
3a70173f66
* commit '
3a70173f66b9ca3c5ad6260ca963180c479c5d0d':
Rewrite btif_gattc_multi_adv_enable to new style
Change-Id: I2b27b9a8691b8db10026c6d6f82e194f1d6fe38a
Jakub Pawlowski [Thu, 12 May 2016 17:25:53 +0000 (17:25 +0000)]
Rewrite btif_gattc_multi_adv_update to new style
am:
5dfe8ba500
* commit '
5dfe8ba500ad0594c787a0b905369f36de7da38b':
Rewrite btif_gattc_multi_adv_update to new style
Change-Id: I37dd5cd7a3605ee621352228ad73d6cd2033b002
Jakub Pawlowski [Thu, 12 May 2016 17:25:51 +0000 (17:25 +0000)]
Rewrite multi adv set data to new style.
am:
ed8aefe613
* commit '
ed8aefe6134359cc70b127a23bac3a6d4c24065e':
Rewrite multi adv set data to new style.
Change-Id: Iea27f1f0c783a2f74bf487e265358fe5c97fd338
Jakub Pawlowski [Thu, 12 May 2016 17:25:50 +0000 (17:25 +0000)]
Rewrite btif_gattc_multi_adv_disable to new style
am:
772fc669dc
* commit '
772fc669dcf1221df03377e5c16507f2f7caa91b':
Rewrite btif_gattc_multi_adv_disable to new style
Change-Id: I82f7092afc59bf24e21ebccb2ecef95636741ac7
Jakub Pawlowski [Thu, 12 May 2016 17:25:49 +0000 (17:25 +0000)]
Rewrite btif batch scan methods to new style.
am:
2af2129df7
* commit '
2af2129df720baee246d4ff9a0f1a02884da856e':
Rewrite btif batch scan methods to new style.
Change-Id: I9280ad6c5b4417c0c0262ea668a04f93d1cf56e6
Jakub Pawlowski [Thu, 12 May 2016 17:25:48 +0000 (17:25 +0000)]
Rewrite btif_get_gatt_db to new style
am:
61a98132c3
* commit '
61a98132c39d3181a0ea23988ac36fbfef8194b4':
Rewrite btif_get_gatt_db to new style
Change-Id: I0431c64890aa823f679c33fe98260b3c3d2450e2
Jakub Pawlowski [Thu, 12 May 2016 17:25:47 +0000 (17:25 +0000)]
Rewrite btif_gattc_set_scan_parameters to new style
am:
4c634eeafc
* commit '
4c634eeafc79e68b40ff1ade0d96ba7b1c34f85f':
Rewrite btif_gattc_set_scan_parameters to new style
Change-Id: I51ea085022cba4ff8c9aa221d6cb523a1b6cb5bc
Jakub Pawlowski [Thu, 12 May 2016 17:25:45 +0000 (17:25 +0000)]
Rewrite GATT read operations to use new style
am:
61a112e488
* commit '
61a112e488a7686e5cc9680434c42895ef9db878':
Rewrite GATT read operations to use new style
Change-Id: I981bfd27a7010da48b204f22f7854055665497e4
Jakub Pawlowski [Thu, 12 May 2016 17:25:44 +0000 (17:25 +0000)]
Use MessageLoop in bt_jni_workqueue thread
am:
140645f6b8
* commit '
140645f6b8d87464c08f082bd14740eecab23f71':
Use MessageLoop in bt_jni_workqueue thread
Change-Id: I0d60049b62c4295bea9f2fa5f12bcbee81a5c962
Jakub Pawlowski [Thu, 5 May 2016 18:16:00 +0000 (11:16 -0700)]
Rewrite btif_gatts_register_app to new style
Bug:
28485365
Change-Id: I5b9bd5a807492b254a5486c80dfb56769e95943f
Jakub Pawlowski [Thu, 5 May 2016 18:09:12 +0000 (11:09 -0700)]
Rewrite btif_gatts_open to new style
Bug:
28485365
Change-Id: I20fdb5ffe6d52db291e9862f7e24fb43e060950f
Jakub Pawlowski [Thu, 5 May 2016 18:03:32 +0000 (11:03 -0700)]
Rewrite btif_gatts_close to new style
Bug:
28485365
Change-Id: Ib8d7ed81cf958ab3dd5403c46409cbd506ac3dc1
Jakub Pawlowski [Thu, 5 May 2016 17:47:14 +0000 (10:47 -0700)]
Rewrite btif_gatts_add_included_service to new style
Bug:
28485365
Change-Id: I4465493532578942045b979e542608972c5fa2ec
Jakub Pawlowski [Thu, 5 May 2016 17:40:17 +0000 (10:40 -0700)]
Rewrite btif_gatts_start_service to new style
Bug:
28485365
Change-Id: I2c8b02ce42fd2bde3a4c448f6fb19ef8e3eb169a
Jakub Pawlowski [Thu, 5 May 2016 17:17:02 +0000 (10:17 -0700)]
Rewrite btif_gatts_stop_service to new style
Bug:
28485365
Change-Id: I79aaaa57139dca373fdf7c0424353cd5de0cb48f
Jakub Pawlowski [Thu, 5 May 2016 17:09:44 +0000 (10:09 -0700)]
Rewrite btif_gatts_send_indication to new style
Bug:
28485365
Change-Id: I1d3221be272e53245e09077dad9d291829350b45
Jakub Pawlowski [Thu, 5 May 2016 17:03:35 +0000 (10:03 -0700)]
Rewrite btif_gatts_send_response to new style
Bug:
28485365
Change-Id: Id0dbfe28b0f77f542cd6961c041e70f90d0aa78b
Jakub Pawlowski [Thu, 5 May 2016 21:23:00 +0000 (14:23 -0700)]
Use unnamed namespace in btif_gatt_client
Instead of marking each function as const, we can enclose them in
namespace, which will have same effect.
This patch also format rest of the file to follow cc style guide.
Change-Id: I5e07d80558de06851c8b5f696d8a239fd4de73e2
Jakub Pawlowski [Wed, 4 May 2016 23:53:42 +0000 (16:53 -0700)]
Use unordered_set to keep p_dev_cb
Bug:
28485365
Change-Id: I5c6c45153c04b1ac9215addf436c7731f376dd15
Jakub Pawlowski [Wed, 4 May 2016 23:26:28 +0000 (16:26 -0700)]
Remove unused structures from btif_gatt_client
Bug:
28485365
Change-Id: If1a4c0d721966255038381b3a0f045910fa923dd
Jakub Pawlowski [Wed, 4 May 2016 23:24:25 +0000 (16:24 -0700)]
Rewrite bta_scan_results_cb to new style
Bug:
28485365
Change-Id: I1029053c9417e6224e365c42aaeba09759e85ff2
Jakub Pawlowski [Wed, 4 May 2016 23:02:05 +0000 (16:02 -0700)]
Rewrite multi adv callbacks to new style
Bug:
28485365
Change-Id: I94e8378515543135b51d0d27c988f6dc2ffb6a70
Jakub Pawlowski [Wed, 4 May 2016 20:44:24 +0000 (13:44 -0700)]
Rewrite batch scan related functions to new style
Bug:
28485365
Change-Id: Id82aa6abb0cf9f809567ee8f728ccd8256d43096
Jakub Pawlowski [Wed, 4 May 2016 20:31:51 +0000 (13:31 -0700)]
Rewrite bta_track_adv_event_cb to new style
Bug:
28485365
Change-Id: Iebf02592cb279a4aca48c9593923b67ddeabf428
Jakub Pawlowski [Wed, 4 May 2016 20:29:28 +0000 (13:29 -0700)]
Rewrite btm_read_rssi_cb to new style
Bug:
28485365
Change-Id: Iec6114714d0201556bee27a8311356168c7afcac
Jakub Pawlowski [Wed, 4 May 2016 20:23:07 +0000 (13:23 -0700)]
Rewrite scan filter related callbacks to new style
Bug:
28485365
Change-Id: Icd5c3529ed2938e095dacc53df716dcd0e69a56d
Jakub Pawlowski [Wed, 4 May 2016 19:32:18 +0000 (12:32 -0700)]
Rewrite btif_gattc_scan_filter_add_remove to new style
Bug:
28485365
Change-Id: I618644b08ecffbb8d22186a7dc70189fb8e50a53
Jakub Pawlowski [Tue, 3 May 2016 23:00:08 +0000 (16:00 -0700)]
Rewrite register/unregister app to new style
Bug:
28485365
Change-Id: I9e709cc54990769bb5e3cee4328ce36ee992927d
Jakub Pawlowski [Tue, 3 May 2016 22:49:53 +0000 (15:49 -0700)]
Rewrite scan start/stop to new style
Bug:
28485365
Change-Id: I1b659d063181adef85cc835a350717bbb7bfe483
Jakub Pawlowski [Tue, 3 May 2016 22:47:50 +0000 (15:47 -0700)]
Rewrite btif_gattc_open to new style
Bug:
28485365
Change-Id: Idc0e12a00f155a128806b1c2a7f3f71daf6cd23f
Jakub Pawlowski [Tue, 3 May 2016 22:44:44 +0000 (15:44 -0700)]
Rewrite btif_gattc_close to new style
Bug:
28485365
Change-Id: Ic82a28cc3659b4ac9936861310578ee07f46ee31
Jakub Pawlowski [Tue, 3 May 2016 21:34:57 +0000 (14:34 -0700)]
Rewrite btif_gattc_search_service to new style
Bug:
28485365
Change-Id: I80ad14db9cfa69cbbfeee3cf362017ca0da70c8e
Jakub Pawlowski [Tue, 3 May 2016 21:33:06 +0000 (14:33 -0700)]
Rewrite btif_gattc_execute_write to new style
Bug:
28485365
Change-Id: Id93cf6e3ee1d2c9eded20d98ba791c462ff0b5af
Jakub Pawlowski [Tue, 3 May 2016 21:23:37 +0000 (14:23 -0700)]
Rewrite btif_gattc_write_char to new style
Bug:
28485365
Change-Id: Ibe0c1386befb77ddb55d20effd7ba1fda6135d7b
Jakub Pawlowski [Tue, 3 May 2016 21:08:45 +0000 (14:08 -0700)]
Rewrite btif_gattc_reg_for_notification to new style
Bug:
28485365
Change-Id: I227634b11be381977135f7c6668c4d15b7cca31b
Jakub Pawlowski [Tue, 3 May 2016 21:00:12 +0000 (14:00 -0700)]
Rewrite btif_gattc_listen to new style
Bug:
28485365
Change-Id: I63c677262b316210ab5f59908fd2e30fb9d5eebc
Jakub Pawlowski [Tue, 3 May 2016 20:48:20 +0000 (13:48 -0700)]
Rewrite btif_gattc_set_adv_data to new style
Bug:
28485365
Change-Id: Id3868d321226bc3c251bb15f3176c6e2d4b66e82
Jakub Pawlowski [Tue, 3 May 2016 20:43:58 +0000 (13:43 -0700)]
Rewrite read RSSI and set MTU to new style
Bug:
28485365
Change-Id: Ife20d1ce569a1feff561a1b7b3e7b22560a4f108
Jakub Pawlowski [Tue, 3 May 2016 19:06:36 +0000 (12:06 -0700)]
Rewrite btif_gattc_conn_parameter_update to new style
Bug:
28485365
Change-Id: Ibc5e085d381855ec139383545cfbec2750efb33f
Jakub Pawlowski [Tue, 3 May 2016 18:59:28 +0000 (11:59 -0700)]
Rewrite btif_gattc_scan_filter_param_setup to new style
Bug:
28485365
Change-Id: I290af35e0de35f4fbb7fa18ffc40eb5349027343
Jakub Pawlowski [Tue, 3 May 2016 18:50:08 +0000 (11:50 -0700)]
Rewrite scan filter related methods to new style
Bug:
28485365
Change-Id: I68e270e4d7bceee6a9a67ef2a7c50a047cf2d574
Jakub Pawlowski [Tue, 3 May 2016 18:33:36 +0000 (11:33 -0700)]
Rewrite btif_gattc_multi_adv_enable to new style
Bug:
28485365
Change-Id: I7e055c4930fc39dd3b83ea0086f0c0e12f7d815f
Jakub Pawlowski [Tue, 3 May 2016 18:20:01 +0000 (11:20 -0700)]
Rewrite btif_gattc_multi_adv_update to new style
Bug:
28485365
Change-Id: I59a908560856eff0b46b2bf5040c2ecb990ae350
Jakub Pawlowski [Tue, 3 May 2016 18:12:49 +0000 (11:12 -0700)]
Rewrite multi adv set data to new style.
Bug:
28485365
Change-Id: I28f1fd875998b039b5df969771e7b07c08d7fd3e
Jakub Pawlowski [Tue, 3 May 2016 16:11:29 +0000 (09:11 -0700)]
Rewrite btif_gattc_multi_adv_disable to new style
Bug:
28485365
Change-Id: Ifa5e4b4812ec236cc9a41a2129eaa43c328fa28f
Jakub Pawlowski [Tue, 3 May 2016 16:03:11 +0000 (09:03 -0700)]
Rewrite btif batch scan methods to new style.
Bug:
28485365
Change-Id: I62dfa6911ca0e26d490a9702d391aa30a09829a9
Jakub Pawlowski [Tue, 3 May 2016 15:55:11 +0000 (08:55 -0700)]
Rewrite btif_get_gatt_db to new style
Bug:
28485365
Change-Id: Iec63e595bfb82a4ac33564f3095cf0e7c4c37e39
Jakub Pawlowski [Tue, 3 May 2016 01:12:11 +0000 (18:12 -0700)]
Rewrite btif_gattc_set_scan_parameters to new style
Bug:
28485365
Change-Id: I29cb2e11b3e407676e312fe83248fc8b551e60ad
Jakub Pawlowski [Tue, 3 May 2016 00:50:25 +0000 (17:50 -0700)]
Rewrite GATT read operations to use new style
Bug:
28485365
Change-Id: I3c5918abdf79da7d6b566506ad53fa38656bcb65
Jakub Pawlowski [Sat, 30 Apr 2016 21:37:40 +0000 (14:37 -0700)]
Use MessageLoop in bt_jni_workqueue thread
Up till now, to execute anyting on bt_jni_workqueue thread, we were
sending events to workqueue associated with this thread. Flow was:
btif_transfer_context -> btif_sendmsg -> thread_post.
Events were containing defined action, i.e. BTIF_GATTC_SCAN_START and
pointer to struct that contained all required data to execute it.
This was very cumbersome - figuring out what is executed when event is
send was hard. Also everything have to be packed into structure which
means that
we have to define lots of structures, or have one big super-structure
holding data for all events (like in btif_gatt_client.cc). Event sending
and receiving
logic is a huge percent of all code.
From now on, there will be a MessageLoop running inside bt_jni_workqueue
that will execute all tasks that will be posted with PostTask. The
benefit of having PostTask method, is that we can simply create Closure
that will be run in bt_jni_workqueue thread. It will take care of
transferring all associated values, and their cleanup. It will also do
compile-time check of all parameters. We no longer have to create
events, structs, and separate call logic from execution logic.
Bug:
28485365
Change-Id: I5014ef680757c0d3c6c69781aadc5139c8e1c3c4
Andre Eisenbach [Wed, 11 May 2016 20:34:13 +0000 (20:34 +0000)]
Add additional VW car kits to absolute volume blacklist
am:
29e7944184
* commit '
29e794418452c8b35c2d42fe0cda81acd86bbf43':
Add additional VW car kits to absolute volume blacklist
Change-Id: If5c53e050f667e1042748809d04c48d5c7bb108d
Andre Eisenbach [Wed, 11 May 2016 19:20:23 +0000 (12:20 -0700)]
Add additional VW car kits to absolute volume blacklist
Change-Id: I8b0b73595e9183b9c1540b06e9e0378312c6a63d
Fixes:
25613423
Andre Eisenbach [Wed, 11 May 2016 18:34:08 +0000 (18:34 +0000)]
Fix double mutex unlock and if() condition
am:
0403dcd262
* commit '
0403dcd262980110ef2a24ac9c0a72d0dc3d96bb':
Fix double mutex unlock and if() condition
Change-Id: Ib81d74eb8940060149509bcae7c8f289b3bf0f9c
Andre Eisenbach [Wed, 11 May 2016 03:27:20 +0000 (20:27 -0700)]
Fix double mutex unlock and if() condition
Commit "L2CAP and SDP Search API for BT profiles (2/2)" introduced two
separate issues in btsock_rfc_signaled():
1. The "slot_lock" potentially gets unlocked twice, causing
undefined behaviour.
2. The call to BTA_JvRfcommWrite() was incorrectly taken outside
of the conditional if() block that only executes the code if
data is available.
This patch reverts the relevant locking change and fixes the if()
condition.
Bug:
27204458
Change-Id: I63b1257d21ca7bdd248858ec67e28f64e37a7895
Bryce Lee [Wed, 11 May 2016 18:23:10 +0000 (18:23 +0000)]
Move extern "C" to top of headers and remove tBTA_HF_CLIENT_HDR.
am:
3d6accfcc0
* commit '
3d6accfcc0bdc5c7a8713320c9bb069cbf253348':
Move extern "C" to top of headers and remove tBTA_HF_CLIENT_HDR.
Change-Id: I0850e31cd573afb2ef6d625cbe8c6ae78ab3a000
Bryce Lee [Wed, 11 May 2016 00:10:09 +0000 (17:10 -0700)]
Move extern "C" to top of headers and remove tBTA_HF_CLIENT_HDR.
Previously, extern "C" was placed in various locations within the header
files, sometimes below actual struct declarations. Doing so would lead to
alignment issues between C and C++ code.
tBTA_HF_CLIENT_HDR was removed from bta_hf_client_api since it was
extraneous and empty - leading to alignment issues.
Change-Id: Icdd338f1affe4c3a70c7bbd716249be6a16443d2
Jakub Pawlowski [Wed, 11 May 2016 16:42:16 +0000 (16:42 +0000)]
Change initial order of commands after establishing an LE connection
am:
9376f77974
* commit '
9376f7797412447a7a00aabafafc53f06232405f':
Change initial order of commands after establishing an LE connection
Change-Id: I3cbf6a6f338085f6cf71ebbd757f24af17e51357
Jakub Pawlowski [Wed, 11 May 2016 16:42:14 +0000 (16:42 +0000)]
Change initial order of commands after establishing an LE connection
am:
272c9711bc
* commit '
272c9711bc6363f0b32c48a86d71726bdd9abfd9':
Change initial order of commands after establishing an LE connection
Change-Id: Ia1d2d01da3f34efeefe17f61d7f82cb4d32f6cb3
Jakub Pawlowski [Tue, 10 May 2016 23:43:41 +0000 (16:43 -0700)]
Change initial order of commands after establishing an LE connection
This patch changes order of commands send to LE device after connecting.
This will cause update connection parameters to be send after read
remote version. Having it other way around cause some problems with
broadcom chips, even though it should work both ways.
Bug:
28435172
Change-Id: I8ecf76217b036842e1d9ec7df714da94a99df7d5
Jakub Pawlowski [Tue, 10 May 2016 20:29:59 +0000 (13:29 -0700)]
Change initial order of commands after establishing an LE connection
This patch changes order of commands send to LE device after connecting.
This will cause update connection parameters to be send after read
remote features. Having it other way around cause some problems with
broadcom chips, even though it should work both ways.
Bug:
28435172
Change-Id: I280993d40b63d41729f5a8ccf246809c3abf617d
AnubhavGupta [Tue, 10 May 2016 19:25:42 +0000 (19:25 +0000)]
A2DP_SINK: create avrcp connection only if a2dp is successful
am:
71461b979a
* commit '
71461b979a25adc0c30eae899837575e1d95490d':
A2DP_SINK: create avrcp connection only if a2dp is successful
Change-Id: I66a2e42b6b491266eb6dd21d73b7409f0eade41d