OSDN Git Service

android-x86/system-bt.git
8 years agoFail gracioulsy when GATT_MAX_APPS reached
Jakub Pawlowski [Fri, 13 May 2016 21:20:28 +0000 (21:20 +0000)]
Fail gracioulsy when GATT_MAX_APPS reached
am: db4ec762f0

* commit 'db4ec762f0825a944923bd3a4ff69d3147b68dfa':
  Fail gracioulsy when GATT_MAX_APPS reached

Change-Id: I6e880dfddea326a02058165fe7fc724badcb4449

8 years agoFail gracioulsy when GATT_MAX_APPS reached
Jakub Pawlowski [Fri, 13 May 2016 20:09:08 +0000 (13:09 -0700)]
Fail gracioulsy when GATT_MAX_APPS reached

Bug: 28677905
Change-Id: I092494ab3f9e9ae4330d5d2a6f6ef010c61fe2a4

8 years agoaudio HAL: improve control socket error handling
Eric Laurent [Fri, 13 May 2016 20:25:23 +0000 (20:25 +0000)]
audio HAL: improve control socket error handling
am: 7a599b44bf

* commit '7a599b44bfd5ccc751445989807692bad78d9491':
  audio HAL: improve control socket error handling

Change-Id: I5988d5d0249d98746d2cf4d0be69a2043348df5a

8 years agoaudio HAL: improve control socket error handling
Eric Laurent [Thu, 12 May 2016 01:18:54 +0000 (18:18 -0700)]
audio HAL: improve control socket error handling

Implement retry upon control socket receive error
in a2dp_ctrl_receive() if EAGAIN or EINTR.

Implement recovery from previous socket error in
a2dp_command().

Increase socket receive timeout to account for
headsets will long activation time.

Fixed state update error in start_audio_datapath()
in case the data socket is already opened.

Added missing mutex around state updated in oput_write()
and in_read()

Made read and write code symmetric.

Bug: 28727517
Change-Id: I68d7fe63f298bbd1e387ec42fdb1277b2dcdfef5

8 years agoRestart failed system calls interrupted with errno of EINTR
Pavlin Radoslavov [Fri, 13 May 2016 18:34:48 +0000 (18:34 +0000)]
Restart failed system calls interrupted with errno of EINTR
am: d6121a37c5

* commit 'd6121a37c579731b89348e618a823c53b938449a':
  Restart failed system calls interrupted with errno of EINTR

Change-Id: Ia6348e07b24bb22c03ed07cace2b4614a66bfcae

8 years agoRestart failed system calls interrupted with errno of EINTR
Pavlin Radoslavov [Thu, 12 May 2016 18:36:44 +0000 (11:36 -0700)]
Restart failed system calls interrupted with errno of EINTR

In number of places we don't handle properly system calls failures
when the errno is EINTR (i.e., the system call was interrupted
by a signal). In all our use cases, the system calls should be
restarted. The handling of the following system calls (as used in the code)
has been updated/fixed:

  poll, send, recv, sendmsg, nanosleep, epoll_wait
  read - mostly (e.g., socket-like fds)
  write - mostly (e.g., socket-like fds)
  select, accept, connect

Bug: 28471477
Bug: 28658141
Change-Id: I03e6f0f67e33876780fb6d02c33eb84547ba8f95

8 years agoAdd sync to write the backup file to the filesystem
Ajay Panicker [Thu, 12 May 2016 23:55:27 +0000 (23:55 +0000)]
Add sync to write the backup file to the filesystem
am: f24f5eff41

* commit 'f24f5eff41968dda6f97333c9b4c09ec4c5a8597':
  Add sync to write the backup file to the filesystem

Change-Id: Ifc375fd3443ef07def960cd702f3cf5c4f20bb3d

8 years agoAdd sync to write the backup file to the filesystem
Ajay Panicker [Thu, 12 May 2016 22:52:01 +0000 (15:52 -0700)]
Add sync to write the backup file to the filesystem

Bug: 27354612
Change-Id: I5a7751b6f08831d43647391774501f211336e9eb

8 years agoBuild fix for feldspar-dev
Jakub Pawlowski [Thu, 12 May 2016 22:09:52 +0000 (22:09 +0000)]
Build fix for feldspar-dev
am: aa39d20a60

* commit 'aa39d20a60a56a1528af0ed726e2effa90e08fb5':
  Build fix for feldspar-dev

Change-Id: I48fbf993a87aefd245e14a6e765955212017a4af

8 years agoBuild fix for feldspar-dev
Jakub Pawlowski [Thu, 12 May 2016 22:02:55 +0000 (15:02 -0700)]
Build fix for feldspar-dev

Bug: 28485365
Change-Id: I25db2fe7577e98715eb10e105176c536fddb043a

8 years agoAdd config logging, make parsing stricter, and move sync
Ajay Panicker [Thu, 12 May 2016 21:14:17 +0000 (21:14 +0000)]
Add config logging, make parsing stricter, and move sync
am: 72a183d00c

* commit '72a183d00c7534c80a4deb9fb41d38fd9e9455f6':
  Add config logging, make parsing stricter, and move sync

Change-Id: I45b6ee7a6956a0359ebe9ccfa9d9023096893b09

8 years agoAdd config logging, make parsing stricter, and move sync
Ajay Panicker [Thu, 12 May 2016 18:03:39 +0000 (11:03 -0700)]
Add config logging, make parsing stricter, and move sync

The functions that parse the config file will report failure if
the config file is improperly formatted or is missing the necessary
Adapter section. Also moved sync to sync the filesystem after the
config file is saved.

Bug: 27354612
Change-Id: Ia75ff628d83bdc933c4bc16761d6c55eef19b757

8 years agoMerge "btif: only save config when bonded devices change"
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

8 years agoMerge "btif: only save config when bonded devices change"
Treehugger Robot [Thu, 12 May 2016 20:51:59 +0000 (20:51 +0000)]
Merge "btif: only save config when bonded devices change"

8 years agoRemove dead HID code
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

8 years agoRemove dead HID code
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

8 years agoRename all *.cpp files to *.cc to follow new style
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

8 years agobtif: only save config when bonded devices change
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

8 years agoRename all *.cpp files to *.cc to follow new style
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

8 years agoRewrite btif_gatts_register_app to new style
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

8 years agoRewrite btif_gatts_open to new style
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

8 years agoRewrite btif_gatts_close to new style
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

8 years agoRewrite btif_gatts_add_included_service to new style
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

8 years agoRewrite btif_gatts_start_service to new style
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

8 years agoRewrite btif_gatts_stop_service to new style
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

8 years agoRewrite btif_gatts_send_indication to new style
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

8 years agoRewrite btif_gatts_send_response to new style
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

8 years agoUse unnamed namespace in btif_gatt_client
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

8 years agoUse unordered_set to keep p_dev_cb
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

8 years agoRemove unused structures from btif_gatt_client
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

8 years agoRewrite bta_scan_results_cb to new style
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

8 years agoRewrite multi adv callbacks to new style
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

8 years agoRewrite batch scan related functions to new style
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

8 years agoRewrite bta_track_adv_event_cb to new style
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

8 years agoRewrite btm_read_rssi_cb to new style
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

8 years agoRewrite scan filter related callbacks to new style
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

8 years agoRewrite btif_gattc_scan_filter_add_remove to new style
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

8 years agoRewrite register/unregister app to new style
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

8 years agoRewrite scan start/stop to new style
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

8 years agoRewrite btif_gattc_open to new style
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

8 years agoRewrite btif_gattc_close to new style
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

8 years agoRewrite btif_gattc_search_service to new style
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

8 years agoRewrite btif_gattc_execute_write to new style
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

8 years agoRewrite btif_gattc_write_char to new style
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

8 years agoRewrite btif_gattc_reg_for_notification to new style
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

8 years agoRewrite btif_gattc_listen to new style
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

8 years agoRewrite btif_gattc_set_adv_data to new style
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

8 years agoRewrite read RSSI and set MTU to new style
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

8 years agoRewrite btif_gattc_conn_parameter_update to new style
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

8 years agoRewrite btif_gattc_scan_filter_param_setup to new style
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

8 years agoRewrite scan filter related methods to new style
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

8 years agoRewrite btif_gattc_multi_adv_enable to new style
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

8 years agoRewrite btif_gattc_multi_adv_update to new style
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

8 years agoRewrite multi adv set data to new style.
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

8 years agoRewrite btif_gattc_multi_adv_disable to new style
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

8 years agoRewrite btif batch scan methods to new style.
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

8 years agoRewrite btif_get_gatt_db to new style
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

8 years agoRewrite btif_gattc_set_scan_parameters to new style
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

8 years agoRewrite GATT read operations to use new style
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

8 years agoUse MessageLoop in bt_jni_workqueue thread
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

8 years agoRewrite btif_gatts_register_app to new style
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

8 years agoRewrite btif_gatts_open to new style
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

8 years agoRewrite btif_gatts_close to new style
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

8 years agoRewrite btif_gatts_add_included_service to new style
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

8 years agoRewrite btif_gatts_start_service to new style
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

8 years agoRewrite btif_gatts_stop_service to new style
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

8 years agoRewrite btif_gatts_send_indication to new style
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

8 years agoRewrite btif_gatts_send_response to new style
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

8 years agoUse unnamed namespace in btif_gatt_client
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

8 years agoUse unordered_set to keep p_dev_cb
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

8 years agoRemove unused structures from btif_gatt_client
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

8 years agoRewrite bta_scan_results_cb to new style
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

8 years agoRewrite multi adv callbacks to new style
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

8 years agoRewrite batch scan related functions to new style
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

8 years agoRewrite bta_track_adv_event_cb to new style
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

8 years agoRewrite btm_read_rssi_cb to new style
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

8 years agoRewrite scan filter related callbacks to new style
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

8 years agoRewrite btif_gattc_scan_filter_add_remove to new style
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

8 years agoRewrite register/unregister app to new style
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

8 years agoRewrite scan start/stop to new style
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

8 years agoRewrite btif_gattc_open to new style
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

8 years agoRewrite btif_gattc_close to new style
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

8 years agoRewrite btif_gattc_search_service to new style
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

8 years agoRewrite btif_gattc_execute_write to new style
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

8 years agoRewrite btif_gattc_write_char to new style
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

8 years agoRewrite btif_gattc_reg_for_notification to new style
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

8 years agoRewrite btif_gattc_listen to new style
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

8 years agoRewrite btif_gattc_set_adv_data to new style
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

8 years agoRewrite read RSSI and set MTU to new style
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

8 years agoRewrite btif_gattc_conn_parameter_update to new style
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

8 years agoRewrite btif_gattc_scan_filter_param_setup to new style
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

8 years agoRewrite scan filter related methods to new style
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

8 years agoRewrite btif_gattc_multi_adv_enable to new style
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

8 years agoRewrite btif_gattc_multi_adv_update to new style
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

8 years agoRewrite multi adv set data to new style.
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

8 years agoRewrite btif_gattc_multi_adv_disable to new style
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

8 years agoRewrite btif batch scan methods to new style.
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

8 years agoRewrite btif_get_gatt_db to new style
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

8 years agoRewrite btif_gattc_set_scan_parameters to new style
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

8 years agoRewrite GATT read operations to use new style
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