OSDN Git Service

android-x86/system-bt.git
8 years agoDon\'t process pair request when controller is not ready am: b534453b1b
Srinu Jella [Tue, 17 May 2016 17:14:40 +0000 (17:14 +0000)]
Don\'t process pair request when controller is not ready am: b534453b1b
am: 635d104342

* commit '635d1043420b935c27741be2fbed8cdf1eaec845':
  Don't process pair request when controller is not ready

Change-Id: Ia5ad79f1bdba21df929aaf8c190e02a91cd4649f

8 years agoDon\'t process pair request when controller is not ready
Srinu Jella [Tue, 17 May 2016 17:12:21 +0000 (17:12 +0000)]
Don\'t process pair request when controller is not ready
am: b534453b1b

* commit 'b534453b1b573995b19e9c12c846290d0789375b':
  Don't process pair request when controller is not ready

Change-Id: If2c8167b73cc3d0809912a5c88e58c3f9d49cfe0

8 years agoGAP: Save pin code length for incoming legacy SAP connection am: 0008f9e147
venkata Jagadeesh [Tue, 17 May 2016 17:09:33 +0000 (17:09 +0000)]
GAP: Save pin code length for incoming legacy SAP connection am: 0008f9e147
am: 80596634ea

* commit '80596634ea55ee142ffc130c1a71f10a5dfdb1d3':
  GAP: Save pin code length for incoming legacy SAP connection

Change-Id: Ic774ec3f938fafcd7785b5306ff9c80b5fcf06ad

8 years agoPrevent crash due to second attempt to clean up eager_reader am: 71300bf3bd
Srinu Jella [Tue, 17 May 2016 17:09:33 +0000 (17:09 +0000)]
Prevent crash due to second attempt to clean up eager_reader am: 71300bf3bd
am: 78a29ccdab

* commit '78a29ccdab9dcd85744bf4e7b18cf954f69385d3':
  Prevent crash due to second attempt to clean up eager_reader

Change-Id: I62c7b84175722a3356a47fc38abde23b07001d1f

8 years agoGAP: Save pin code length for incoming legacy SAP connection
venkata Jagadeesh [Tue, 17 May 2016 17:07:01 +0000 (17:07 +0000)]
GAP: Save pin code length for incoming legacy SAP connection
am: 0008f9e147

* commit '0008f9e14753cb2885cf9438fe0c41f29c2cfa6e':
  GAP: Save pin code length for incoming legacy SAP connection

Change-Id: Ic950cc3611b48b489b8bae057b016a6eb45708bc

8 years agoPrevent crash due to second attempt to clean up eager_reader
Srinu Jella [Tue, 17 May 2016 17:07:00 +0000 (17:07 +0000)]
Prevent crash due to second attempt to clean up eager_reader
am: 71300bf3bd

* commit '71300bf3bd58fbdfb8a440d89e10a8ae9884ad0b':
  Prevent crash due to second attempt to clean up eager_reader

Change-Id: I04bfb68a63363a05a05bd6d7152ec6f63795db19

8 years agoDon't process pair request when controller is not ready
Srinu Jella [Thu, 24 Sep 2015 07:53:36 +0000 (13:23 +0530)]
Don't process pair request when controller is not ready

Use case: when one application is trying to pair and
other application is turning off Bluetooth.

Steps: when one application is trying to pair and
other application is turning off Bluetooth.

Failure: Bluetooth process crashed.

Root Cause: Bluetooth process crashed due to assertion,
as controller module is not ready.

Fix: Made a checks for controller module is ready or not, If
it is ready then only go for pairing.

Change-Id: I72c72f6b5545c845e79874212359854023ffad98

8 years agoGAP: Save pin code length for incoming legacy SAP connection
venkata Jagadeesh [Wed, 2 Sep 2015 13:55:33 +0000 (19:25 +0530)]
GAP: Save pin code length for incoming legacy SAP connection

Use case: Carkit cannot reconnect to DUT in Sim Access Profile mode

Steps:
1. Pair with a car-kit (Agree all SAP, MAP, PBAP requests)
2. Initiate disconnection on DUT
3. Initiate re-connection on the car-kit.

Failure: SAP profile reconnection failing as dut gives negetive
linkkey reply.

Root Cause: sec_flags not getting updated without pin len and stack
triggering negative link key reply even linkkey is proper for 16 digit
authentication of SAP.

Fix: Save pin length during BTM_PINCodeReply.

Change-Id: I8300dd3ff497058291143313b169190910e0a7c5

8 years agoPrevent crash due to second attempt to clean up eager_reader
Srinu Jella [Tue, 29 Sep 2015 14:37:42 +0000 (20:07 +0530)]
Prevent crash due to second attempt to clean up eager_reader

Null out the eager readers once they are cleaned up, so we
don't try to clean them up later if an error occurs opening
the HAL again later.

Change-Id: I07df1010a1a619cb67b306d64e274d450234a002

8 years agoAdd missing arguments to log messages
Pavlin Radoslavov [Tue, 17 May 2016 15:51:01 +0000 (15:51 +0000)]
Add missing arguments to log messages
am: 180b9725ee

* commit '180b9725ee4f5d342b72d5f718762db64201e8b8':
  Add missing arguments to log messages

Change-Id: Ie229f006f096273148e597b16e72230beb6ae045

8 years agobtif: Remove dead code from btif_storage am: d1d0f1b514
Marie Janssen [Tue, 17 May 2016 15:40:45 +0000 (15:40 +0000)]
btif: Remove dead code from btif_storage am: d1d0f1b514
am: 916c96bd54

* commit '916c96bd54e520ec1f3cb2230b9fdf16d88ee2bb':
  btif: Remove dead code from btif_storage

Change-Id: I7ddbde0e6d860a93114a9ae22819b9292a7e8e57

8 years agobtif: Remove dead code from btif_storage
Marie Janssen [Tue, 17 May 2016 15:38:07 +0000 (15:38 +0000)]
btif: Remove dead code from btif_storage
am: d1d0f1b514

* commit 'd1d0f1b51469e908bb94750753367de9425a075b':
  btif: Remove dead code from btif_storage

Change-Id: I42fe519b599555b6621e12fd737277b189979d01

8 years agobtif: Remove dead code from btif_storage
Marie Janssen [Mon, 16 May 2016 20:51:31 +0000 (13:51 -0700)]
btif: Remove dead code from btif_storage

Change-Id: I3ee4d8fd3a7697e0113d955982b21db123354a86

8 years agoAdd missing arguments to log messages
Pavlin Radoslavov [Sat, 14 May 2016 04:10:22 +0000 (21:10 -0700)]
Add missing arguments to log messages

Bug: 28769522
Change-Id: I37c2b8400619646a8711099cf0bd369c3cf8eb51

8 years agoAdd missing arguments to log messages am: 65fc269a87
Pavlin Radoslavov [Tue, 17 May 2016 04:28:37 +0000 (04:28 +0000)]
Add missing arguments to log messages am: 65fc269a87
am: 0ba15458e4

* commit '0ba15458e48fcc5676350381da0eed99167ba0b4':
  Add missing arguments to log messages

Change-Id: Ibf747ed988c572e43bf4a4b62a78633f17d7ee85

8 years agoAdd missing arguments to log messages
Pavlin Radoslavov [Tue, 17 May 2016 04:25:56 +0000 (04:25 +0000)]
Add missing arguments to log messages
am: 65fc269a87

* commit '65fc269a87f330a3bbc8209b088fc08e15f871b9':
  Add missing arguments to log messages

Change-Id: Ifd55e085127c45c990fe93d628b5395dc2926f2b

8 years agoAdd missing arguments to log messages
Pavlin Radoslavov [Sat, 14 May 2016 04:10:22 +0000 (21:10 -0700)]
Add missing arguments to log messages

Bug: 28769522
Change-Id: I37c2b8400619646a8711099cf0bd369c3cf8eb51

8 years agoAdd missing include for OSI_NO_INTR am: c1e60c6317
Stefan Stanacar [Mon, 16 May 2016 18:50:37 +0000 (18:50 +0000)]
Add missing include for OSI_NO_INTR am: c1e60c6317
am: 7708c79a0a

* commit '7708c79a0a2bf9bc46b5a10d939a733dc86862b4':
  Add missing include for OSI_NO_INTR

Change-Id: If85673922de21741232b87cd4786cc48b1b03403

8 years agoAdd missing include for OSI_NO_INTR
Stefan Stanacar [Mon, 16 May 2016 18:48:25 +0000 (18:48 +0000)]
Add missing include for OSI_NO_INTR
am: c1e60c6317

* commit 'c1e60c6317d967eecc8c04f9eed2223d2005b03a':
  Add missing include for OSI_NO_INTR

Change-Id: I7774059590f38a712d15c2974d8ffb07954e9aba

8 years agoDO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f am: d47ab963e1...
Marie Janssen [Mon, 16 May 2016 18:06:42 +0000 (18:06 +0000)]
DO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f am: d47ab963e1 am: 6f6949ff93 am: fae8da3f76  -s ours
am: cc5bab19bd

* commit 'cc5bab19bdd7c16b2c75418b5dc87adca4a0ef3a':
  DO NOT MERGE btif: check overflow on create_pbuf size

Change-Id: I9106d966514466c60a1c4a9076b9b79ebeeed42f

8 years agoDO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f am: d47ab963e1...
Marie Janssen [Mon, 16 May 2016 18:04:27 +0000 (18:04 +0000)]
DO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f am: d47ab963e1 am: 6f6949ff93
am: fae8da3f76  -s ours

* commit 'fae8da3f76947e30f4e65baddf8867956eb5dc45':
  DO NOT MERGE btif: check overflow on create_pbuf size

Change-Id: I050ce836c311c54efab4f7e495f42901cd0a0d4e

8 years agoDO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f am: d47ab963e1
Marie Janssen [Mon, 16 May 2016 18:02:02 +0000 (18:02 +0000)]
DO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f am: d47ab963e1
am: 6f6949ff93

* commit '6f6949ff93d3e370cf72b0e18673a7749bfdfa0f':
  DO NOT MERGE btif: check overflow on create_pbuf size

Change-Id: I1ed5ea4b978e5f9b6628a5443a0acc3e61c297d7

8 years agoDO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f
Marie Janssen [Mon, 16 May 2016 17:59:28 +0000 (17:59 +0000)]
DO NOT MERGE btif: check overflow on create_pbuf size am: ad31ee0f0f
am: d47ab963e1

* commit 'd47ab963e1b6afd164bcfb051fe55ec47c1d211d':
  DO NOT MERGE btif: check overflow on create_pbuf size

Change-Id: I839427756e92067e8c54822988648a85e537cc27

8 years agoDO NOT MERGE btif: check overflow on create_pbuf size
Marie Janssen [Mon, 16 May 2016 17:57:02 +0000 (17:57 +0000)]
DO NOT MERGE btif: check overflow on create_pbuf size
am: ad31ee0f0f

* commit 'ad31ee0f0f03953064cc503314d5e39d687af50a':
  DO NOT MERGE btif: check overflow on create_pbuf size

Change-Id: I77748f8ce26e15cf87f53cf3a34a11ecc19471f5

8 years agoAdd missing include for OSI_NO_INTR
Stefan Stanacar [Mon, 16 May 2016 11:25:39 +0000 (14:25 +0300)]
Add missing include for OSI_NO_INTR

Fixes building bt_vendor_linux since
OSI_NO_INTR is defined in osi.h

Change-Id: Ib95a3126ed4a7b8f0bdc7db3dd2ef162825f2cbe
Signed-off-by: Stefan Stanacar <stefan.stanacar@intel.com>
8 years agoAdd sync to write the backup file to the filesystem
Ajay Panicker [Fri, 13 May 2016 23:04:40 +0000 (23:04 +0000)]
Add sync to write the backup file to the filesystem
am: b7e9cb4c35

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

Change-Id: I1ed0eff59456903a1854f4ed06d38506a4f1e64c

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 agoFail gracioulsy when GATT_MAX_APPS reached am: db4ec762f0
Jakub Pawlowski [Fri, 13 May 2016 21:26:10 +0000 (21:26 +0000)]
Fail gracioulsy when GATT_MAX_APPS reached am: db4ec762f0
am: 761b0a60cd  -s ours

* commit '761b0a60cd8280d6703943651b42dbcda825ad37':
  Fail gracioulsy when GATT_MAX_APPS reached

Change-Id: Ia5d28b4f5271e62c24b629bf7062545a35c65d4c

8 years agoFail gracioulsy when GATT_MAX_APPS reached
Jakub Pawlowski [Fri, 13 May 2016 21:21:00 +0000 (21:21 +0000)]
Fail gracioulsy when GATT_MAX_APPS reached
am: ae5066bc32

* commit 'ae5066bc3293c9ca6953659fe661316c750f631d':
  Fail gracioulsy when GATT_MAX_APPS reached

Change-Id: I79fc0f58718524624e8c7bebdfa8fe4993438bc5

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 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 am: 7a599b44bf
Eric Laurent [Fri, 13 May 2016 20:28:05 +0000 (20:28 +0000)]
audio HAL: improve control socket error handling am: 7a599b44bf
am: afb22626a6

* commit 'afb22626a6b8ca6907a4fe29bbf4d825395ca881':
  audio HAL: improve control socket error handling

Change-Id: I189e08200d40d771607254b0d1d7e14badcd8531

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 agoMerge "Merge commit '9eb556804ae753b6fabc66329952dae596f378b7' into manual_merge_27cd...
Ajay Panicker [Fri, 13 May 2016 19:39:03 +0000 (19:39 +0000)]
Merge "Merge commit '9eb556804ae753b6fabc66329952dae596f378b7' into manual_merge_27cdeb9" into nyc-dev-plus-aosp

8 years agoMerge commit '9eb556804ae753b6fabc66329952dae596f378b7' into manual_merge_27cdeb9
Ajay Panicker [Fri, 13 May 2016 19:34:37 +0000 (12:34 -0700)]
Merge commit '9eb556804ae753b6fabc66329952dae596f378b7' into manual_merge_27cdeb9

Change-Id: I71046e0f0c4bfb24fc7ddf32a45e515d6cb21b24

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 agoresolve merge conflicts of 2810aed to nyc-dev-plus-aosp
Pavlin Radoslavov [Fri, 13 May 2016 19:14:13 +0000 (12:14 -0700)]
resolve merge conflicts of 2810aed to nyc-dev-plus-aosp

Change-Id: I18d9434f0921a1297436859a0b2b284b5750f9b1

8 years agoDO NOT MERGE btif: check overflow on create_pbuf size
Marie Janssen [Thu, 12 May 2016 22:30:16 +0000 (15:30 -0700)]
DO NOT MERGE btif: check overflow on create_pbuf size

Bug: 27930580
Change-Id: Ieb1f23f9a8a937b21f7c5eca92da3b0b821400e6

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 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 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 agoaudio HAL: improve control socket error handling
Eric Laurent [Fri, 13 May 2016 01:46:07 +0000 (01:46 +0000)]
audio HAL: improve control socket error handling
am: f56308e42d

* commit 'f56308e42dc38699111b416fe68da300bf41dfbf':
  audio HAL: improve control socket error handling

Change-Id: I170a29804c26477fa4ed9fa754cb41b9618c8c9d

8 years agoMerge "resolve merge conflicts of 49196d0 to nyc-dev-plus-aosp" into nyc-dev-plus...
TreeHugger Robot [Thu, 12 May 2016 23:59:39 +0000 (23:59 +0000)]
Merge "resolve merge conflicts of 49196d0 to nyc-dev-plus-aosp" into nyc-dev-plus-aosp

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

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

Change-Id: I7c72679e04ceeed8bf4cea32b43622e2e3fd58dc

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 agoresolve merge conflicts of 49196d0 to nyc-dev-plus-aosp
Pavlin Radoslavov [Thu, 12 May 2016 23:53:17 +0000 (16:53 -0700)]
resolve merge conflicts of 49196d0 to nyc-dev-plus-aosp

Change-Id: I10f8ad6eb5584c6d381afd1fbafd66a4fb57246d

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 agoMerge "Restart failed system calls interrupted with errno of EINTR" into nyc-dev
TreeHugger Robot [Thu, 12 May 2016 23:30:32 +0000 (23:30 +0000)]
Merge "Restart failed system calls interrupted with errno of EINTR" into nyc-dev

8 years agobtif: only save config when bonded devices change
Marie Janssen [Thu, 12 May 2016 23:02:31 +0000 (23:02 +0000)]
btif: only save config when bonded devices change
am: 86453b65c6

* commit '86453b65c60aec465f8e32cf515944f3f69db809':
  btif: only save config when bonded devices change

Change-Id: I9397b87927fdc9d11e3de5c1175049a90caa3c2d

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 am: aa39d20a60
Jakub Pawlowski [Thu, 12 May 2016 22:12:17 +0000 (22:12 +0000)]
Build fix for feldspar-dev am: aa39d20a60
am: 68f6491572

* commit '68f6491572a83c14d2a41d2a3d35a8b3f5ede90b':
  Build fix for feldspar-dev

Change-Id: I981e30dd336a108e0c52c8abaed9f49e3c5ed590

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 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 config logging, make parsing stricter, and move sync am: 72a183d00c
Ajay Panicker [Thu, 12 May 2016 21:17:01 +0000 (21:17 +0000)]
Add config logging, make parsing stricter, and move sync am: 72a183d00c
am: db617bae20

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

Change-Id: I2194f3b4d03b2662db35b4048730d95c55c63153

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 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 agoMerge "btif: only save config when bonded devices change" am: c12ef5607a
Marie Janssen [Thu, 12 May 2016 21:00:48 +0000 (21:00 +0000)]
Merge "btif: only save config when bonded devices change" am: c12ef5607a
am: c0a6e61726

* commit 'c0a6e61726abbefb8f1720676b2dde9dd782bf81':
  btif: only save config when bonded devices change

Change-Id: Iac4f18c4102d06acc734d9875fb479ff71d64c67

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 am: c3fe5a04a9
Jakub Pawlowski [Thu, 12 May 2016 20:11:17 +0000 (20:11 +0000)]
Remove dead HID code am: c3fe5a04a9
am: 47c618e2eb

* commit '47c618e2eb3bd1b8793b2f649f3261e806fe0c0d':
  Remove dead HID code

Change-Id: I3110cccd417ef0ac7bea6266e57be58281b35af1

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 am: e6d1202990
Jakub Pawlowski [Thu, 12 May 2016 20:00:15 +0000 (20:00 +0000)]
Rename all *.cpp files to *.cc to follow new style am: e6d1202990
am: e9d39784e7

* commit 'e9d39784e7b47b8d6ecf189e4b29ce74a23e3d47':
  Rename all *.cpp files to *.cc to follow new style

Change-Id: I2d98b9a0fdc5f8e89d5981ea8f78cc35631f8812

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 agoDO NOT MERGE ANYWHERE SMP: Delay authorization complete. am: 8c519caec3 -s ours...
Jacky Cheung [Thu, 12 May 2016 18:43:21 +0000 (18:43 +0000)]
DO NOT MERGE ANYWHERE SMP: Delay authorization complete. am: 8c519caec3  -s ours am: 731684b29a  -s ours
am: 42e54009d7  -s ours

* commit '42e54009d789b5cae6df4599013852a52c1079a1':
  DO NOT MERGE ANYWHERE SMP: Delay authorization complete.

Change-Id: I53d95ce7d347cb1d11a0107e052ce70f68f8b0b1

8 years agoDO NOT MERGE ANYWHERE SMP: Delay authorization complete. am: 8c519caec3 -s ours
Jacky Cheung [Thu, 12 May 2016 18:40:44 +0000 (18:40 +0000)]
DO NOT MERGE ANYWHERE SMP: Delay authorization complete. am: 8c519caec3  -s ours
am: 731684b29a  -s ours

* commit '731684b29a6603e3c6b22e80229d49f46c44a56c':
  DO NOT MERGE ANYWHERE SMP: Delay authorization complete.

Change-Id: I01ba378fc44a2e273ef2cd53787ddc6504de38b8

8 years agoDO NOT MERGE ANYWHERE SMP: Delay authorization complete.
Jacky Cheung [Thu, 12 May 2016 18:38:06 +0000 (18:38 +0000)]
DO NOT MERGE ANYWHERE SMP: Delay authorization complete.
am: 8c519caec3  -s ours

* commit '8c519caec3908ce20832ce4c756f2514158da132':
  DO NOT MERGE ANYWHERE SMP: Delay authorization complete.

Change-Id: I1dbfbc0b3f5cddecd18f604f5d4d0271777ce02a

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 am: d71bc1732f
Jakub Pawlowski [Thu, 12 May 2016 17:33:29 +0000 (17:33 +0000)]
Rewrite btif_gatts_register_app to new style am: d71bc1732f
am: bf23d07033

* commit 'bf23d070335acd88d570f5d5a44a95f5a551091c':
  Rewrite btif_gatts_register_app to new style

Change-Id: I25c650ea67cc07a3027628a45f49cba1e1f82f5e

8 years agoRewrite btif_gatts_open to new style am: 3c79a3b7ca
Jakub Pawlowski [Thu, 12 May 2016 17:33:28 +0000 (17:33 +0000)]
Rewrite btif_gatts_open to new style am: 3c79a3b7ca
am: e40283136f

* commit 'e40283136f35a6ef3343d19365cab0213f25ec52':
  Rewrite btif_gatts_open to new style

Change-Id: Ia70fc9e07b2390844770b8de46a4fc68b9fc29c2

8 years agoRewrite btif_gatts_close to new style am: b333ae2e69
Jakub Pawlowski [Thu, 12 May 2016 17:33:28 +0000 (17:33 +0000)]
Rewrite btif_gatts_close to new style am: b333ae2e69
am: 0ba23c5e7a

* commit '0ba23c5e7a8c77f78fdc1daa4f47ea5e46e60158':
  Rewrite btif_gatts_close to new style

Change-Id: I0678cea0f73a080f9c5237b00ec3688af0b8249b

8 years agoRewrite btif_gatts_add_included_service to new style am: 0cd448fe8f
Jakub Pawlowski [Thu, 12 May 2016 17:33:27 +0000 (17:33 +0000)]
Rewrite btif_gatts_add_included_service to new style am: 0cd448fe8f
am: 2720f51e34

* commit '2720f51e34eae6f210ef7f4fc9329c85cf2ebc51':
  Rewrite btif_gatts_add_included_service to new style

Change-Id: I7f382ab002534261071ac75a0c48f119e0a15967

8 years agoRewrite btif_gatts_start_service to new style am: b14f76be6e
Jakub Pawlowski [Thu, 12 May 2016 17:33:26 +0000 (17:33 +0000)]
Rewrite btif_gatts_start_service to new style am: b14f76be6e
am: de2d622e30

* commit 'de2d622e304b376d5e16fc944574737cf2b284bc':
  Rewrite btif_gatts_start_service to new style

Change-Id: Ie9c4342b1d54219091ba67be0231db59def2a476

8 years agoRewrite btif_gatts_stop_service to new style am: 7ce14cc65e
Jakub Pawlowski [Thu, 12 May 2016 17:33:25 +0000 (17:33 +0000)]
Rewrite btif_gatts_stop_service to new style am: 7ce14cc65e
am: 76747a9f5d

* commit '76747a9f5db9274817ddaafa46868fb9346b5b82':
  Rewrite btif_gatts_stop_service to new style

Change-Id: I0162276c76e684eb3649695bb51ba3c01a7344df

8 years agoRewrite btif_gatts_send_indication to new style am: 858cf9468b
Jakub Pawlowski [Thu, 12 May 2016 17:33:24 +0000 (17:33 +0000)]
Rewrite btif_gatts_send_indication to new style am: 858cf9468b
am: 6b41d1dc31

* commit '6b41d1dc316e51333396c0337949bbdaf239319a':
  Rewrite btif_gatts_send_indication to new style

Change-Id: If97f1266ef55bd5c95aca724a503fec419520096

8 years agoRewrite btif_gatts_send_response to new style am: 757109e314
Jakub Pawlowski [Thu, 12 May 2016 17:33:23 +0000 (17:33 +0000)]
Rewrite btif_gatts_send_response to new style am: 757109e314
am: fcca32f467

* commit 'fcca32f4675d4fdc1c346319b114699b47a30b59':
  Rewrite btif_gatts_send_response to new style

Change-Id: I33ea2d9965dfbdc5bce7e334d89d069248aa5575

8 years agoUse unnamed namespace in btif_gatt_client am: 44be0690a1
Jakub Pawlowski [Thu, 12 May 2016 17:33:22 +0000 (17:33 +0000)]
Use unnamed namespace in btif_gatt_client am: 44be0690a1
am: 8bff214047

* commit '8bff2140472eedf58bdb789f514ecb0436b7b14d':
  Use unnamed namespace in btif_gatt_client

Change-Id: Idd459399f77c88407378fbc6dbc560028184567f

8 years agoUse unordered_set to keep p_dev_cb am: ce7d46a263
Jakub Pawlowski [Thu, 12 May 2016 17:33:21 +0000 (17:33 +0000)]
Use unordered_set to keep p_dev_cb am: ce7d46a263
am: ef7987750e

* commit 'ef7987750ea7df5d582ac5d39147aecd0a4144d0':
  Use unordered_set to keep p_dev_cb

Change-Id: If293506d303d6e438a3efae23b3e76c51879a60d

8 years agoRemove unused structures from btif_gatt_client am: d635ab3102
Jakub Pawlowski [Thu, 12 May 2016 17:33:20 +0000 (17:33 +0000)]
Remove unused structures from btif_gatt_client am: d635ab3102
am: 9d0f1ba41f

* commit '9d0f1ba41f60c430c6f70c72e26e3bb0a6195347':
  Remove unused structures from btif_gatt_client

Change-Id: Id834cbfdfb3b44bde1ac4cdc81e3d4c90f3487ed

8 years agoRewrite bta_scan_results_cb to new style am: 92519cc7f1
Jakub Pawlowski [Thu, 12 May 2016 17:31:03 +0000 (17:31 +0000)]
Rewrite bta_scan_results_cb to new style am: 92519cc7f1
am: c453d18033

* commit 'c453d18033fd9fb4561490edbf3988f4b14dbb22':
  Rewrite bta_scan_results_cb to new style

Change-Id: I2266b10d9a35b200d9503cd8f893eec22b35686e

8 years agoRewrite multi adv callbacks to new style am: 845b49d255
Jakub Pawlowski [Thu, 12 May 2016 17:31:03 +0000 (17:31 +0000)]
Rewrite multi adv callbacks to new style am: 845b49d255
am: 75116bcbb1

* commit '75116bcbb1c606699fa306a4cd7dc27cb4a70cf5':
  Rewrite multi adv callbacks to new style

Change-Id: I7eefac1b4e2bb9094a274a07f21ca4312b900185

8 years agoRewrite batch scan related functions to new style am: 5f848b4d24
Jakub Pawlowski [Thu, 12 May 2016 17:31:02 +0000 (17:31 +0000)]
Rewrite batch scan related functions to new style am: 5f848b4d24
am: cbe9161db6

* commit 'cbe9161db631d07dbe426cc8340df942b5013a22':
  Rewrite batch scan related functions to new style

Change-Id: I6d4fd896223f85ccae8ce2d0c47a692441c925aa

8 years agoRewrite bta_track_adv_event_cb to new style am: 4ed8924e9d
Jakub Pawlowski [Thu, 12 May 2016 17:31:02 +0000 (17:31 +0000)]
Rewrite bta_track_adv_event_cb to new style am: 4ed8924e9d
am: fe7fecbc9d

* commit 'fe7fecbc9d870cb5196602194347b8b9d0102bc5':
  Rewrite bta_track_adv_event_cb to new style

Change-Id: Iea8d294853f0f5a96a2c53ac3a0633965a209ba4

8 years agoRewrite btm_read_rssi_cb to new style am: c171ac407c
Jakub Pawlowski [Thu, 12 May 2016 17:31:01 +0000 (17:31 +0000)]
Rewrite btm_read_rssi_cb to new style am: c171ac407c
am: bd8db6f6cd

* commit 'bd8db6f6cd191abbfc5f20575dd8cc8b683c2b84':
  Rewrite btm_read_rssi_cb to new style

Change-Id: Iebbcbda7521d199acf9c417180640686b0b62246

8 years agoRewrite scan filter related callbacks to new style am: da5b59b5bf
Jakub Pawlowski [Thu, 12 May 2016 17:31:00 +0000 (17:31 +0000)]
Rewrite scan filter related callbacks to new style am: da5b59b5bf
am: 064f330b38

* commit '064f330b383296daf495527624e00cf2ef30ee5e':
  Rewrite scan filter related callbacks to new style

Change-Id: I4d36ac453f19894cb9835212a0afa5dfae4bae86

8 years agoRewrite btif_gattc_scan_filter_add_remove to new style am: 904aefe1a9
Jakub Pawlowski [Thu, 12 May 2016 17:31:00 +0000 (17:31 +0000)]
Rewrite btif_gattc_scan_filter_add_remove to new style am: 904aefe1a9
am: d6499fd55b

* commit 'd6499fd55ba04f12fb5e44b5cfdb0c7ea54e217a':
  Rewrite btif_gattc_scan_filter_add_remove to new style

Change-Id: Id3c5d0a17e9d836800d375e889e38ebcadaca308

8 years agoRewrite register/unregister app to new style am: c8b5185a5d
Jakub Pawlowski [Thu, 12 May 2016 17:30:59 +0000 (17:30 +0000)]
Rewrite register/unregister app to new style am: c8b5185a5d
am: 170a381bc6

* commit '170a381bc64c97a66f372e17c64f7de1a7eeeb1d':
  Rewrite register/unregister app to new style

Change-Id: I8867fc17d6add5d6eacfd15b34c715b65cf31435

8 years agoRewrite scan start/stop to new style am: 955ff4e88e
Jakub Pawlowski [Thu, 12 May 2016 17:30:58 +0000 (17:30 +0000)]
Rewrite scan start/stop to new style am: 955ff4e88e
am: b166b55e8e

* commit 'b166b55e8e8b83613eaa5df81f757cba499f343b':
  Rewrite scan start/stop to new style

Change-Id: I47287018f7d5eeebe14ed9a05660b75f95c103b3

8 years agoRewrite btif_gattc_open to new style am: 26e51cb185
Jakub Pawlowski [Thu, 12 May 2016 17:30:58 +0000 (17:30 +0000)]
Rewrite btif_gattc_open to new style am: 26e51cb185
am: 116c2505ae

* commit '116c2505ae05cf4e1468ac26c7d737b198fd08b0':
  Rewrite btif_gattc_open to new style

Change-Id: Iaefb5604f992acecd1cbf20382f7010b9cbb9250

8 years agoRewrite btif_gattc_close to new style am: b454953bb6
Jakub Pawlowski [Thu, 12 May 2016 17:30:57 +0000 (17:30 +0000)]
Rewrite btif_gattc_close to new style am: b454953bb6
am: 9a2b7dd12a

* commit '9a2b7dd12a8ed691430d5f5b3bb38ba98161b976':
  Rewrite btif_gattc_close to new style

Change-Id: Iafda7dfed0c1fa092788724713bfebf926975699

8 years agoRewrite btif_gattc_search_service to new style am: d05e50e7df
Jakub Pawlowski [Thu, 12 May 2016 17:30:56 +0000 (17:30 +0000)]
Rewrite btif_gattc_search_service to new style am: d05e50e7df
am: fca26015e8

* commit 'fca26015e881b3cb9beb10703a2ad812fddb1a1b':
  Rewrite btif_gattc_search_service to new style

Change-Id: I921a1ab160a5ecebeb2b186090112de665bcb52d

8 years agoRewrite btif_gattc_execute_write to new style am: a684a52231
Jakub Pawlowski [Thu, 12 May 2016 17:30:55 +0000 (17:30 +0000)]
Rewrite btif_gattc_execute_write to new style am: a684a52231
am: 3a3f19df0c

* commit '3a3f19df0c9834383c421a964ad73d6f694f9913':
  Rewrite btif_gattc_execute_write to new style

Change-Id: Idd059d905310b3ece4e5d984603fe8ae0189fc76

8 years agoRewrite btif_gattc_write_char to new style am: 39a3361288
Jakub Pawlowski [Thu, 12 May 2016 17:30:54 +0000 (17:30 +0000)]
Rewrite btif_gattc_write_char to new style am: 39a3361288
am: 62a6dca052

* commit '62a6dca0522fd1ce9a93f6bc27c3abf9604fcf52':
  Rewrite btif_gattc_write_char to new style

Change-Id: I2faee40de20e962cefb17b49ab0f9fdc7b7c0290

8 years agoRewrite btif_gattc_reg_for_notification to new style am: ca9d889000
Jakub Pawlowski [Thu, 12 May 2016 17:30:53 +0000 (17:30 +0000)]
Rewrite btif_gattc_reg_for_notification to new style am: ca9d889000
am: f83575636b

* commit 'f83575636b4f8eeddfb373086435f0882022a480':
  Rewrite btif_gattc_reg_for_notification to new style

Change-Id: I326569e6fc228e17efe1bd8ae7ab98f6cc1bdfa8

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