OSDN Git Service

android-x86/system-bt.git
8 years agoosi: add metrics API am: aa11644f76
Marie Janssen [Thu, 21 Apr 2016 00:59:06 +0000 (00:59 +0000)]
osi: add metrics API am: aa11644f76
am: 176a25cb38

* commit '176a25cb389d774dc57d5a9d3d3269fe2847ac30':
  osi: add metrics API

Change-Id: Ibad3ce24b7120ba5059a441d2be45bc789626785

8 years agoValidates the PDU length of GATT Prepare Write attribute requests am: 0acfd13d69
Subramanian Srinivasan [Thu, 21 Apr 2016 00:58:52 +0000 (00:58 +0000)]
Validates the PDU length of GATT Prepare Write attribute requests am: 0acfd13d69
am: 3bf10567b3

* commit '3bf10567b337be6989b45d97385214b2f6c78e77':

Change-Id: I87864eec7e9e19e029f72a99b72c7d3a2ca4ab92

8 years agoCreate backup for bt_config.conf am: 79b294d7cb
Ajay Panicker [Thu, 21 Apr 2016 00:58:26 +0000 (00:58 +0000)]
Create backup for bt_config.conf am: 79b294d7cb
am: 201820aad0

* commit '201820aad02313ea6ad8740d67ee1261a614f4d0':

Change-Id: I1080bf318833b07a80da68a3523e2bd9b9e0413c

8 years agoRemoved function bte_load_ble_conf am: 64a0328b5f
Ajay Panicker [Thu, 21 Apr 2016 00:57:53 +0000 (00:57 +0000)]
Removed function bte_load_ble_conf am: 64a0328b5f
am: 2c36a37ba2

* commit '2c36a37ba2523c3faa8f724b0e0cbce753336762':

Change-Id: I44e673d5257fca22a57472408b8ebb85e9f04671

8 years agoAdd handle range to BTA_GATTC_GetGattDb am: 9fd552b1f5
Jakub Pawlowski [Thu, 21 Apr 2016 00:57:38 +0000 (00:57 +0000)]
Add handle range to BTA_GATTC_GetGattDb am: 9fd552b1f5
am: 7ec2240ce7

* commit '7ec2240ce73b84d323ac0d5d82e6a3150e301aac':

Change-Id: I1fca495e0ee89848f1b5f61b7dd3ddbd106fdcc4

8 years agoRemoved checks for NULL returns after osi_calloc() / osi_malloc() am: 717a4a9f3a
Pavlin Radoslavov [Thu, 21 Apr 2016 00:57:24 +0000 (00:57 +0000)]
Removed checks for NULL returns after osi_calloc() / osi_malloc() am: 717a4a9f3a
am: 488cf6242e

* commit '488cf6242ea2034279aeeb7896c7670b4ada0e94':

Change-Id: Ibcf41655bba3ad4b873ecd58d280ff0b435e0000

8 years agoosi: Don\'t use -std=c99 to compile am: 00f6f0647f
Marie Janssen [Thu, 21 Apr 2016 00:57:09 +0000 (00:57 +0000)]
osi: Don\'t use -std=c99 to compile am: 00f6f0647f
am: e72406a198

* commit 'e72406a198a9a9405c2f417e143dc2817db294df':

Change-Id: Ifb85609cb8b9f692aa757cf8e937750b6086e6d9

8 years agoRemove code related to legacy config file am: 1eacb3d893
Ajay Panicker [Thu, 21 Apr 2016 00:56:55 +0000 (00:56 +0000)]
Remove code related to legacy config file am: 1eacb3d893
am: 77d8859444

* commit '77d88594444c988d55acf5b3888a637ba4863ac0':

Change-Id: I583b74b5839c032a4946caeae7b1a5020e5080ea

8 years agoAdd Privacy 1.0/1.1 check for BG connection am: 6ed1548be2
Satya Calloji [Thu, 21 Apr 2016 00:56:40 +0000 (00:56 +0000)]
Add Privacy 1.0/1.1 check for BG connection am: 6ed1548be2
am: 5f619b2896

* commit '5f619b2896b9a1729ba74aa7bf63ea6291378a29':

Change-Id: I9851352d0c4ca01b0d094143d6a1a2cff056fcbd

8 years agobinder: fix possible stack corruption am: 2fdc1a1f90
Marie Janssen [Thu, 21 Apr 2016 00:55:23 +0000 (00:55 +0000)]
binder: fix possible stack corruption am: 2fdc1a1f90
am: 83f2feb8c6

* commit '83f2feb8c63e39e4c572078028d42cb9cf43c150':

Change-Id: I1c9560f8f46b63187b85308803676d178e79fa89

8 years agoosi: add metrics API am: 77f579f825
Marie Janssen [Thu, 21 Apr 2016 00:55:07 +0000 (00:55 +0000)]
osi: add metrics API am: 77f579f825
am: 5783e11d27

* commit '5783e11d27758014349f4d513be7296ac621fbff':

Change-Id: I9704233cf4b9e6223a7f19e83f6d93b0d101fb59

8 years agoFix possible memory leak am: c2ea2f6723
Jakub Pawlowski [Thu, 21 Apr 2016 00:54:52 +0000 (00:54 +0000)]
Fix possible memory leak am: c2ea2f6723
am: c62f879625

* commit 'c62f8796255e1ca7b77e41437daf0e4e45674bab':

Change-Id: I3f5fb65d982e1e45e99de6c71a5df2d3e49bc682

8 years agoFix auto disconnect right after connecting am: 6b0798a32d
Jakub Pawlowski [Thu, 21 Apr 2016 00:54:38 +0000 (00:54 +0000)]
Fix auto disconnect right after connecting am: 6b0798a32d
am: 99c76bca1d

* commit '99c76bca1d0e9c39d42230efe916b19c4b9ec2f7':

Change-Id: Ibde7cc2b2ad1b651e39e3b5c07d45ca4c5defc71

8 years agoSet GATT link inactivity timer to 1 am: c12b2c0bb6
Priti Aghera [Thu, 21 Apr 2016 00:54:24 +0000 (00:54 +0000)]
Set GATT link inactivity timer to 1 am: c12b2c0bb6
am: 11c32bb9e1

* commit '11c32bb9e13c04bdfa29d8790b64fb8d2fb70183':

Change-Id: If1425d9fe4daab53e11d3c307b002272ef6113fb

8 years agoAdd Developer menu entry to disable Bluetooth absolute volume am: feb9e4d015
Andre Eisenbach [Thu, 21 Apr 2016 00:54:03 +0000 (00:54 +0000)]
Add Developer menu entry to disable Bluetooth absolute volume am: feb9e4d015
am: 6f33fb152a

* commit '6f33fb152a1759c483d24582d020d5141e331945':

Change-Id: I3454f0eceba63125aa413e5a63b47a5e06e08e14

8 years agoReplaced osi_getbuf()/osi_freebuf() with osi_malloc()/osi_free() am: cceb430489
Pavlin Radoslavov [Thu, 21 Apr 2016 00:53:20 +0000 (00:53 +0000)]
Replaced osi_getbuf()/osi_freebuf() with osi_malloc()/osi_free() am: cceb430489
am: 32953089ce

* commit '32953089ce53772dc541bce4a64a6640ff77940c':

Change-Id: I1253d9fd662b1428ef18cfdadf8b9faff2cac31a

8 years agoUse dynamic memory for keeping GATT cache am: 63e500e7cb
Jakub Pawlowski [Thu, 21 Apr 2016 00:53:05 +0000 (00:53 +0000)]
Use dynamic memory for keeping GATT cache am: 63e500e7cb
am: 20295a56ea

* commit '20295a56ea350712b92b701f7b2dd793b3790807':

Change-Id: I2a7716a8ab2fba113c3504c4e1341c3d606e434b

8 years agoRemoved function osi_get_buf_size() am: 0a20dd42a6
Pavlin Radoslavov [Thu, 21 Apr 2016 00:52:50 +0000 (00:52 +0000)]
Removed function osi_get_buf_size() am: 0a20dd42a6
am: 3473ac93ec

* commit '3473ac93ec9be494ab042cee57b6e9c52e159e8a':

Change-Id: Ief2b4b556c37198cb7fa306d91992a8203388198

8 years agoDisable gnu-variable-sized-type-not-at-end warning am: e22c8edb3b
Jakub Pawlowski [Thu, 21 Apr 2016 00:52:35 +0000 (00:52 +0000)]
Disable gnu-variable-sized-type-not-at-end warning am: e22c8edb3b
am: 96cc61de03

* commit '96cc61de03d70292acb00252feba359afced5b89':

Change-Id: I8c3ee02efbbe28179f2b4dbfb658c4df416f1e83

8 years agoOnly initiate codec negotiation if feature is supported am: ecb3b8386f am: 879ec51029...
Chenjie Luo [Thu, 21 Apr 2016 00:52:20 +0000 (00:52 +0000)]
Only initiate codec negotiation if feature is supported am: ecb3b8386f am: 879ec51029 am: 63b432ced6
am: 6c4f387ea4

* commit '6c4f387ea4f5c49819781f72d74a0eee22ca2de3':
  Only initiate codec negotiation if feature is supported

Change-Id: I3d47875a4c9eb2a7340d1c8e044560aee1838abe

8 years agokeep history after reset to mnc-dr-dev(03d171170c7ad4e40454a9575cfd4919d2e1ef2f)...
Baligh Uddin [Thu, 21 Apr 2016 00:52:04 +0000 (00:52 +0000)]
keep history after reset to mnc-dr-dev(03d171170c7ad4e40454a9575cfd4919d2e1ef2f) am: a07c9fecb4  -s ours am: 609a42cdf6
am: acab9f76e0

* commit 'acab9f76e0d24ec51847358d266a08f621f17df2':

Change-Id: I1f40203fa602a93df1bb3014a23a01496ec02cfc

8 years agoMerge "Remove BCM_STR* macros" am: 7794b7c130
Andre Eisenbach [Thu, 21 Apr 2016 00:51:32 +0000 (00:51 +0000)]
Merge "Remove BCM_STR* macros" am: 7794b7c130
am: 32dcf01b84

* commit '32dcf01b841ae69f3eac5ffd0ab958b56d3bcd85':

Change-Id: I4423252f8208c9e32e3f02bec7a6dd075f20cd72

8 years agoAdd missing log tags am: d535ddb82e
Jakub Pawlowski [Thu, 21 Apr 2016 00:50:54 +0000 (00:50 +0000)]
Add missing log tags am: d535ddb82e
am: 01202b7311

* commit '01202b73114394f3ed873752017f750800d9243a':

Change-Id: I024fc21cc38f25f42c6e5b941bdb440df3aa5257

8 years agoAdd list_back_node method to osi list am: 270f86f298
Jakub Pawlowski [Thu, 21 Apr 2016 00:50:39 +0000 (00:50 +0000)]
Add list_back_node method to osi list am: 270f86f298
am: 19d49fb2f0

* commit '19d49fb2f06cf5432198ca4a9fc4c1facafe1be6':

Change-Id: I22567bcd439741797c824c59564da888835cea74

8 years agovendor_libs: create Android.mk am: 6f2ae30
Cristian Iorga [Wed, 20 Apr 2016 20:56:19 +0000 (20:56 +0000)]
vendor_libs: create Android.mk am: 6f2ae30
am: fcc2c62

* commit 'fcc2c62c5e43c7f31cbc3f3d77f42d2ff6873323':
  vendor_libs: create Android.mk

Change-Id: I1d9f50f2f31f00bb9ee389299321aad8b8a4eca6

8 years agovendor_libs: create Android.mk
Cristian Iorga [Wed, 20 Apr 2016 20:52:55 +0000 (20:52 +0000)]
vendor_libs: create Android.mk
am: 6f2ae30

* commit '6f2ae3021d3487ef00dd76f9bfb8ace8b7069b7d':
  vendor_libs: create Android.mk

Change-Id: I4e07e95b8b609cbd5625968c9daa5618edf2ddd7

8 years agovendor_libs: create Android.mk
Cristian Iorga [Tue, 15 Mar 2016 14:33:08 +0000 (16:33 +0200)]
vendor_libs: create Android.mk

all-subdir-makefiles call works for only one
nested sublevels, so we need to add a default
Android.mk in order to be able to build libbt-vendor module.

BUG=28014054

Change-Id: I7cc004d2a4dd6216a80d13c6384d9dcde328323e
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
8 years agoMerge "vendor_libs: test_vendor_lib: fix build" am: 67a29d6
Jakub Pawlowski [Wed, 20 Apr 2016 16:03:28 +0000 (16:03 +0000)]
Merge "vendor_libs: test_vendor_lib: fix build" am: 67a29d6
am: 434889f

* commit '434889fbc8c165c76048e832540cd22245bc76ba':
  vendor_libs: test_vendor_lib: fix build

Change-Id: I2227d9cacbbd7e2897d968fd6f78385187b4c609

8 years agoMerge "vendor_libs: test_vendor_lib: fix build"
Cristian Iorga [Wed, 20 Apr 2016 16:00:24 +0000 (16:00 +0000)]
Merge "vendor_libs: test_vendor_lib: fix build"
am: 67a29d6

* commit '67a29d6259335cd12f6eb7f6daaec1785ed68d03':
  vendor_libs: test_vendor_lib: fix build

Change-Id: I21eef55cf5f3af64de9b0eb44df67b9ba300a683

8 years agoMerge "vendor_libs: test_vendor_lib: fix build"
Jakub Pawlowski [Wed, 20 Apr 2016 15:51:39 +0000 (15:51 +0000)]
Merge "vendor_libs: test_vendor_lib: fix build"

8 years agoAdd guest mode functionality (2/4) am: 7b266be
Ajay Panicker [Tue, 19 Apr 2016 21:49:26 +0000 (21:49 +0000)]
Add guest mode functionality (2/4) am: 7b266be
am: 88c5489

* commit '88c548971df3b09389e7e586a4b74efc1a9d0e55':
  Add guest mode functionality (2/4)

Change-Id: I72664880fa1d2f79922b51447a94051392c8653b

8 years agoAdd guest mode functionality (2/4)
Ajay Panicker [Tue, 19 Apr 2016 21:45:56 +0000 (21:45 +0000)]
Add guest mode functionality (2/4)
am: 7b266be

* commit '7b266be449e4f915c419199c2312eb31f70e63bc':
  Add guest mode functionality (2/4)

Change-Id: I68b38a608df104203ce9007121d3d085bede81b0

8 years agovendor_libs: test_vendor_lib: fix build
Cristian Iorga [Mon, 18 Apr 2016 13:09:31 +0000 (16:09 +0300)]
vendor_libs: test_vendor_lib: fix build

Change-Id: I1ba531c5289adea3fa5d6f9e0f68cf241a127219
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
8 years agoAdd guest mode functionality (2/4)
Ajay Panicker [Fri, 18 Mar 2016 00:09:24 +0000 (17:09 -0700)]
Add guest mode functionality (2/4)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active.

Bug: 27410683
Change-Id: I19ff91d1d7fb8c60230fee7a05d32574b5b2aeda

8 years agoUse base from libchrome am: 9f19410
Jakub Pawlowski [Mon, 18 Apr 2016 17:46:49 +0000 (17:46 +0000)]
Use base from libchrome am: 9f19410
am: 5f23b6f

* commit '5f23b6fa7180f71b7aad728aa87840c619e1204e':
  Use base from libchrome

Change-Id: I59485278079f17d7720a33e55b3cdc2f4cc060dc

8 years agoUse base from libchrome
Jakub Pawlowski [Mon, 18 Apr 2016 17:41:41 +0000 (17:41 +0000)]
Use base from libchrome
am: 9f19410

* commit '9f19410236243d5f631582f4978df27771ff03fb':
  Use base from libchrome

Change-Id: I047ce07c58ba805721f6d4895fe795b520dd7fee

8 years agoUse base from libchrome
Jakub Pawlowski [Mon, 18 Apr 2016 17:00:26 +0000 (10:00 -0700)]
Use base from libchrome

Change-Id: I57230618ef8653a168d69f871f88714ab339408a

8 years agoFix Linux libbt-vendor build am: 8d79346
Cristian Iorga [Mon, 18 Apr 2016 16:32:18 +0000 (16:32 +0000)]
Fix Linux libbt-vendor build am: 8d79346
am: c7d0e75

* commit 'c7d0e75c97f7f18f198ec2f1f3def46ad6629412':
  Fix Linux libbt-vendor build

Change-Id: I9198a21b05e7dc9f8792173049069e5cf57c7811

8 years agoFix Linux libbt-vendor build
Cristian Iorga [Mon, 18 Apr 2016 16:27:10 +0000 (16:27 +0000)]
Fix Linux libbt-vendor build
am: 8d79346

* commit '8d793462d253ccb9ce619074b37f47a968fa8612':
  Fix Linux libbt-vendor build

Change-Id: I501e221f8d25ee038814ccab53ef33dc33dc115d

8 years agoFix Linux libbt-vendor build
Cristian Iorga [Wed, 30 Mar 2016 17:14:36 +0000 (20:14 +0300)]
Fix Linux libbt-vendor build

Fix enumeration values not explicitly handled in switch;
Fix the undefined reference to functions from libosi.

Change-Id: I64ab3d57d1c4879ad47ae1a03f8996287877535d
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
8 years agoAllow A2DP SNK audio track focus gain interface. am: 501d671
Sanket Agarwal [Fri, 15 Apr 2016 20:10:23 +0000 (20:10 +0000)]
Allow A2DP SNK audio track focus gain interface. am: 501d671
am: 6c596f7

* commit '6c596f743ec6cee290e1ea4d53139b546e0771fb':
  Allow A2DP SNK audio track focus gain interface.

Change-Id: Icdbe02f75f77e4af5014a40974cedcf1949cd526

8 years agoAllow A2DP SNK audio track focus gain interface.
Sanket Agarwal [Fri, 15 Apr 2016 20:07:27 +0000 (20:07 +0000)]
Allow A2DP SNK audio track focus gain interface.
am: 501d671

* commit '501d67199bfc5bf9c2d2a32f6eac5600320795fd':
  Allow A2DP SNK audio track focus gain interface.

Change-Id: I62bc0064c9756d1bf615d8a795b3b520d333246e

8 years agoFix LE central device not being able to disconnect am: 6f74d76
Jakub Pawlowski [Fri, 15 Apr 2016 18:56:35 +0000 (18:56 +0000)]
Fix LE central device not being able to disconnect am: 6f74d76
am: 30acd82

* commit '30acd82350466e073429fcf4f8a378178e6378e0':
  Fix LE central device not being able to disconnect

Change-Id: I1209825e9eeeb2925372bdf49507addad1de5e14

8 years agoFix LE central device not being able to disconnect
Jakub Pawlowski [Fri, 15 Apr 2016 18:53:10 +0000 (18:53 +0000)]
Fix LE central device not being able to disconnect
am: 6f74d76

* commit '6f74d76a700e79217b6bba0a40860ba19fe06b3f':
  Fix LE central device not being able to disconnect

Change-Id: I2179ef536d3a849f912665abc376b517e886dc67

8 years agoAllow A2DP SNK audio track focus gain interface.
Sanket Agarwal [Fri, 8 Apr 2016 18:26:04 +0000 (11:26 -0700)]
Allow A2DP SNK audio track focus gain interface.

In order to duck music we need to adjust the gain of the audio track
handled by A2DP SNK. Since SNK is implemented in native we need to add
interface to adjust the gain.

Bug: b/28065071

Change-Id: I60634cfadb502e276596bcb3aafc62ef81d9023a

8 years agoFix LE central device not being able to disconnect
Jakub Pawlowski [Thu, 14 Apr 2016 10:06:54 +0000 (03:06 -0700)]
Fix LE central device not being able to disconnect

This fixes issue introduced in
https://android-review.googlesource.com/#/c/202278

Bug: 28211048
Change-Id: I08e62149358f1c1fc1759a4ca9eb375cb0ad8230

8 years agoAVRCP: Update sdp record correctly for CT or TG. am: a58d7fe
AnubhavGupta [Fri, 15 Apr 2016 18:08:34 +0000 (18:08 +0000)]
AVRCP: Update sdp record correctly for CT or TG. am: a58d7fe
am: 31f54d3

* commit '31f54d343d0f2c9c4a80a7bddf9870543862a594':
  AVRCP: Update sdp record correctly for CT or TG.

Change-Id: I943bf38618e74ca1214726303d3d3d5844a3c9c0

8 years agoAVRCP: Update sdp record correctly for CT or TG.
AnubhavGupta [Fri, 15 Apr 2016 18:05:29 +0000 (18:05 +0000)]
AVRCP: Update sdp record correctly for CT or TG.
am: a58d7fe

* commit 'a58d7fe1cd90d48cea8924a4f2dcaa91e65ff629':
  AVRCP: Update sdp record correctly for CT or TG.

Change-Id: I02f0ec4c009170bf2f76f750dfc1dcaea6b411c8

8 years agoAVRCP: Update sdp record correctly for CT or TG.
AnubhavGupta [Tue, 22 Mar 2016 18:03:33 +0000 (23:33 +0530)]
AVRCP: Update sdp record correctly for CT or TG.

 -Issuses: SDP records are faulty
  - AVRCP versions are faulty
  - Nexus configuration shows browsing supported
  - Both Cat-1 and Cat-2 is supported for Nexus CT

 -Solution
  - pass sdp version as parameter
  - update sdp records for avrcp controller in case of client
    profiles being enabled
  - BTA_AV_FEAT_BROWSE flag was incorrecly set during AV registration
    causing AVRCP TG version to upgrade to 1.4 even though browsing
    feature is not supported.
  - Use AVRC_CTLR_INCLUDED feature flag instead of AVRC_ADV_CTRL_INCLUDED
    for guarding Avrcp controller code in build/parse apis for
    command/response
  - update categories supported for CT properly for mobile phone config

Bug: b/28149547

Change-Id: I3ff4082453a2624a72d8f152d75af83a8efb4937

8 years agovendor_libs: linux: Fix build am: 2c3ce4a
Cristian Iorga [Fri, 15 Apr 2016 15:07:24 +0000 (15:07 +0000)]
vendor_libs: linux: Fix build am: 2c3ce4a
am: c5e026c

* commit 'c5e026c3deae9877b508b4bcea1db688fdf7b93d':
  vendor_libs: linux: Fix build

Change-Id: I05cd040314f1928291d0420106ef9f64e15944ef

8 years agovendor_libs: linux: Fix build
Cristian Iorga [Fri, 15 Apr 2016 15:04:22 +0000 (15:04 +0000)]
vendor_libs: linux: Fix build
am: 2c3ce4a

* commit '2c3ce4ab59a0026e790af078286f82c6975524b9':
  vendor_libs: linux: Fix build

Change-Id: I29286f779abbb456e9f4329a7ce71076b99bbe2a

8 years agovendor_libs: linux: Fix build
Cristian Iorga [Thu, 14 Apr 2016 08:00:28 +0000 (11:00 +0300)]
vendor_libs: linux: Fix build

LOG_DEBUG, LOG_VERBOSE definition changed in libosi.
This triggers:
"error: use of undeclared identifier 'true'" at
build time. Fixed by the inclusion of stdbool.h.

Change-Id: Ie2ed0d6b07bc28c26669b19a2584ea248e2782a9
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
8 years agoMerge "HID: Fix regression caused by commit "3a2c2d61"" am: 153d3e4
Treehugger Robot [Thu, 14 Apr 2016 20:42:10 +0000 (20:42 +0000)]
Merge "HID: Fix regression caused by commit "3a2c2d61"" am: 153d3e4
am: 7a0f573

* commit '7a0f573660989a94e264f56473eafaafc5be5ef2':
  HID: Fix regression caused by commit "3a2c2d61"

Change-Id: Ie0f710fe50e9ae3984fca9ae24438703f33b52b8

8 years agoMerge "HID: Fix regression caused by commit "3a2c2d61""
Hemant Gupta [Thu, 14 Apr 2016 20:38:39 +0000 (20:38 +0000)]
Merge "HID: Fix regression caused by commit "3a2c2d61""
am: 153d3e4

* commit '153d3e448d9797cc1b9841b9a060bed308d5190f':
  HID: Fix regression caused by commit "3a2c2d61"

Change-Id: I264c7ff85d33e03b0edb68075118657e39e69b86

8 years agoMerge "HID: Fix regression caused by commit "3a2c2d61""
Treehugger Robot [Thu, 14 Apr 2016 20:27:53 +0000 (20:27 +0000)]
Merge "HID: Fix regression caused by commit "3a2c2d61""

8 years agoAllow unused private field am: bac99a1
Christopher Wiley [Thu, 14 Apr 2016 18:45:10 +0000 (18:45 +0000)]
Allow unused private field am: bac99a1
am: 5e9669b

* commit '5e9669b709d24dc51712930b9302e8bbce47ba57':
  Allow unused private field

Change-Id: Ibcfddd1a20c8dd2d90786bedb1d50fb7a741f6a1

8 years agoAllow unused private field
Christopher Wiley [Thu, 14 Apr 2016 18:41:56 +0000 (18:41 +0000)]
Allow unused private field
am: bac99a1

* commit 'bac99a18b378364b07c7f82ebf173e2d20fbd900':
  Allow unused private field

Change-Id: I823105282a8c8870a14faebb5371e6755c760024

8 years agoAllow unused private field
Christopher Wiley [Thu, 14 Apr 2016 17:32:56 +0000 (10:32 -0700)]
Allow unused private field

This field is unused when we build unittests for OSX.

Bug: 28117776
Test: Compiles

Change-Id: I6add6946896a8cc2838309e6188812d4c7c497cb

8 years agoEnsure PIN code dialog is shown after remote name request am: f8e3baa
Andre Eisenbach [Thu, 14 Apr 2016 07:18:45 +0000 (07:18 +0000)]
Ensure PIN code dialog is shown after remote name request am: f8e3baa
am: 63da098

* commit '63da09852b01120da19b5d1ca3790b7f21a3c39f':
  Ensure PIN code dialog is shown after remote name request

Change-Id: I8d5ad97edfc1acc8d1d299940c2531d7d7e142d9

8 years agoMove autopair blacklist to interop database am: 7ee02bd
Andre Eisenbach [Thu, 14 Apr 2016 07:18:45 +0000 (07:18 +0000)]
Move autopair blacklist to interop database am: 7ee02bd
am: 2aea2e5

* commit '2aea2e563058a2388a16b0a8980bd763a6f47de6':
  Move autopair blacklist to interop database

Change-Id: I5fa6d8ced24c6c13e779fe48564b7f94c258ddde

8 years agoEnsure PIN code dialog is shown after remote name request
Andre Eisenbach [Thu, 14 Apr 2016 07:15:46 +0000 (07:15 +0000)]
Ensure PIN code dialog is shown after remote name request
am: f8e3baa

* commit 'f8e3baa34e2c3fe021605b2a23b902b44eafc115':
  Ensure PIN code dialog is shown after remote name request

Change-Id: Ibb26c522600071833e17306339e5a6f607a25892

8 years agoMove autopair blacklist to interop database
Andre Eisenbach [Thu, 14 Apr 2016 07:15:46 +0000 (07:15 +0000)]
Move autopair blacklist to interop database
am: 7ee02bd

* commit '7ee02bdb617c7f2c27d03a21112f485ec36371b4':
  Move autopair blacklist to interop database

Change-Id: Ia02c9b9af114be9aad18f1640dd839e4f462ebc6

8 years agoEnsure PIN code dialog is shown after remote name request
Andre Eisenbach [Wed, 13 Apr 2016 16:44:00 +0000 (09:44 -0700)]
Ensure PIN code dialog is shown after remote name request

If pairing is locally initiated and results in a remote name request
being performed before the PIN code is requested, then the PIN code
dialog will not be shown correctly.

This patch removes the check for locally initated pairing to ensure the
dialog is shown in all cases.

Bug: 27347017
Change-Id: I607c1c071af502fb2990b14cce676590e577b4c2

8 years agoMove autopair blacklist to interop database
Andre Eisenbach [Mon, 11 Apr 2016 21:50:41 +0000 (14:50 -0700)]
Move autopair blacklist to interop database

Blacklist by partial name etc. was not working and had no effect; all
BDAs in the config file start with 00:, which is implausible at best, so
deleted...

Added new mechanism to blacklist by BDA only initially and added Subaru
car kit to blacklist.

Bug: 27347017
Change-Id: Ie2941cb1ab663b5444b02c44f85032f13be4ab46

8 years agobtif: add count of devices loaded on startup am: bcfdd0a
Marie Janssen [Wed, 13 Apr 2016 22:50:59 +0000 (22:50 +0000)]
btif: add count of devices loaded on startup am: bcfdd0a
am: ec8f643

* commit 'ec8f643b2d1691e21c4004671d25b5606c1d47af':
  btif: add count of devices loaded on startup

Change-Id: I029893a958de233b698a6c0d930a9073297dd2c3

8 years agobtif: add count of devices loaded on startup
Marie Janssen [Wed, 13 Apr 2016 22:47:21 +0000 (22:47 +0000)]
btif: add count of devices loaded on startup
am: bcfdd0a

* commit 'bcfdd0ab24357c5dd842540e6c0e8f34ba7aac11':
  btif: add count of devices loaded on startup

Change-Id: If7a6fa7e722886f82069dbaafd0d0e46eba9a963

8 years agobtif: add count of devices loaded on startup
Marie Janssen [Wed, 13 Apr 2016 19:43:03 +0000 (12:43 -0700)]
btif: add count of devices loaded on startup

Report devices initially loaded from the config file.

Also removes the config mutex from btif_debug_config_dump as the config
is not modified.

Bug: 27354612
Change-Id: I25033ce28744051412f0d2bd554f0651e807ba7c

8 years agoMerge "Fix use of uninitialized value in btm_acl_update_busy_level" am: 50e7a19
Sharvil Nanavati [Wed, 13 Apr 2016 19:03:16 +0000 (19:03 +0000)]
Merge "Fix use of uninitialized value in btm_acl_update_busy_level" am: 50e7a19
am: 5a7db1d

* commit '5a7db1d00f640e127f14c240ff98faddbcd5c2f8':
  Fix use of uninitialized value in btm_acl_update_busy_level

Change-Id: I04d401ca09e8403b10acaa25c6e5a643b69db372

8 years agoMerge "Fix use of uninitialized value in BTA_PanSetRole" am: 98178e4
Sharvil Nanavati [Wed, 13 Apr 2016 19:03:16 +0000 (19:03 +0000)]
Merge "Fix use of uninitialized value in BTA_PanSetRole" am: 98178e4
am: 07c7006

* commit '07c700627ac38b275aaf7f6599f5a14de3e39d0e':
  Fix use of uninitialized value in BTA_PanSetRole

Change-Id: Icccdac51fe9fc28aa61bb57cd20badfef861c069

8 years agoMerge "Fix use of uninitialized value in btm_acl_update_busy_level"
Sharvil Nanavati [Wed, 13 Apr 2016 18:59:09 +0000 (18:59 +0000)]
Merge "Fix use of uninitialized value in btm_acl_update_busy_level"
am: 50e7a19

* commit '50e7a19cbb09d62282bc109cf269b7d3a3fb9c0a':
  Fix use of uninitialized value in btm_acl_update_busy_level

Change-Id: I403886f7ef003c54bc41ad2b2328d0f2862e2418

8 years agoMerge "Fix use of uninitialized value in BTA_PanSetRole"
Sharvil Nanavati [Wed, 13 Apr 2016 18:59:08 +0000 (18:59 +0000)]
Merge "Fix use of uninitialized value in BTA_PanSetRole"
am: 98178e4

* commit '98178e4d233a828f3f4b68683ce89b8560ecb34d':
  Fix use of uninitialized value in BTA_PanSetRole

Change-Id: Ibe66e6d6a450c6c76b31efc0252ebb8d238c2116

8 years agoMerge "Fix use of uninitialized value in btm_acl_update_busy_level"
Sharvil Nanavati [Wed, 13 Apr 2016 18:53:16 +0000 (18:53 +0000)]
Merge "Fix use of uninitialized value in btm_acl_update_busy_level"

8 years agoMerge "Fix use of uninitialized value in BTA_PanSetRole"
Sharvil Nanavati [Wed, 13 Apr 2016 18:53:12 +0000 (18:53 +0000)]
Merge "Fix use of uninitialized value in BTA_PanSetRole"

8 years agoFix use of uninitialized value in btm_acl_update_busy_level
Sharvil Nanavati [Mon, 11 Apr 2016 00:29:11 +0000 (17:29 -0700)]
Fix use of uninitialized value in btm_acl_update_busy_level

Caught by valgrind:

Thread 7 bt_jni_workqueue:
Conditional jump or move depends on uninitialised value(s)
   at 0x5682870: btif_dm_upstreams_evt (btif_dm.c:1800)
   by 0x56817EF: btif_context_switched (btif_core.c:180)
   by 0x56817EF: bt_jni_msg_ready (btif_core.c:290)
   by 0x571D1D7: work_queue_read_cb (thread.c:233)
   by 0x571C1F9: run_reactor (reactor.c:275)
   by 0x571CF3D: run_thread (thread.c:206)
   by 0x4A5B7B3: __pthread_start(void*) (in /system/lib/libc.so)
 Uninitialised value was created by a stack allocation
   at 0x56D9CC6: btm_acl_update_busy_level (btm_acl.c:503)

Bug: 28113318
Change-Id: I21ffa2f6c48d3bb96dcdc71fee6ab74634e57333

8 years agoHID: Fix regression caused by commit "3a2c2d61"
Hemant Gupta [Wed, 13 Apr 2016 11:12:18 +0000 (16:42 +0530)]
HID: Fix regression caused by commit "3a2c2d61"

uhid_event function returned 0 in normal case and with below
commit polling thread was being exited resulting in user space
not able to read the events sent by uhid kernel driver leading
to IOT issues with HID devices using the vendor hid usb drivers.
Eg: Apple Magic Mouse scroll functionality was not working as
for normal functionality of Apple Magic mouse, output report
needs to be sent to hid device, which was not being sent with
current implemenation.

commit 3a2c2d61f4c8769ea9c1615208a6daf2fa162084
Author: Myles Watson <mylesgw@google.com>
Date:   Tue Nov 10 14:35:57 2015 -0800

    Retry HID Polling when EINTR is returned

    While I'm here
     - use __func__ consistently in btif_hh_poll_event_thread.
     - remove braces around a single line

    BUG: 24647083
    Change-Id: I80b99ff0d3ba6336f5ab7a517269fdf63df59b37
Signed-off-by: Myles Watson <mylesgw@google.com>
Change-Id: If1f69c8d024fd7d03e2d79f19b962653fe2dd8b9

8 years agoMerge "Pull in libmedia\'s exported headers in libbtif" am: cac1eef
Treehugger Robot [Tue, 12 Apr 2016 22:11:47 +0000 (22:11 +0000)]
Merge "Pull in libmedia\'s exported headers in libbtif" am: cac1eef
am: 6591b0d

* commit '6591b0d6a2a17ee47d1aa30e86bd51d41fff3cea':
  Pull in libmedia's exported headers in libbtif

Change-Id: I87d008d73dd7d575cf5bd84e53c549a0afa402dc

8 years agoMerge "Pull in libmedia\'s exported headers in libbtif"
Christopher Wiley [Tue, 12 Apr 2016 21:27:48 +0000 (21:27 +0000)]
Merge "Pull in libmedia\'s exported headers in libbtif"
am: cac1eef

* commit 'cac1eefd3494ef8f8521609b751283486499e2bd':
  Pull in libmedia's exported headers in libbtif

Change-Id: Ifeaded82445f0804097dd41017e0e7693745a185

8 years agoMerge "Pull in libmedia's exported headers in libbtif"
Treehugger Robot [Tue, 12 Apr 2016 21:14:33 +0000 (21:14 +0000)]
Merge "Pull in libmedia's exported headers in libbtif"

8 years agoFix use of uninitialized value in BTA_PanSetRole
Sharvil Nanavati [Mon, 11 Apr 2016 00:15:29 +0000 (17:15 -0700)]
Fix use of uninitialized value in BTA_PanSetRole

Caught by valgrind:

Conditional jump or move depends on uninitialised value(s)
   at 0x57616E8: PAN_SetRole (pan_api.c:170)
   by 0x56C0193: bta_pan_set_role (bta_pan_act.c:370)
   by 0x56BFD65: bta_pan_hdl_event (bta_pan_main.c:387)
   by 0x56D24DD: bta_sys_event (bta_sys_main.c:495)
   by 0x5777029: run_reactor (reactor.c:275)
   by 0x5777D6D: run_thread (thread.c:206)
   by 0x49A77B3: __pthread_start(void*) (in /system/lib/libc.so)
 Uninitialised value was created by a heap allocation
   at 0x495883C: malloc (in /system/lib/valgrind/vgpreload_memcheck-arm-linux.so)
   by 0x5774857: osi_malloc (allocator.c:67)
   by 0x56C07A9: BTA_PanSetRole (bta_pan_api.c:107)
   by 0x56FBF31: btpan_enable (btif_pan.c:226)
   by 0x56DB3AB: btif_enable_bluetooth_evt (btif_core.c:524)
   by 0x56DE3EB: btif_dm_upstreams_evt (btif_dm.c:1742)
   by 0x56DC60F: btif_context_switched (btif_core.c:180)
   by 0x56DC60F: bt_jni_msg_ready (btif_core.c:290)
   by 0x5778007: work_queue_read_cb (thread.c:233)
   by 0x5777029: run_reactor (reactor.c:275)
   by 0x5777D6D: run_thread (thread.c:206)
   by 0x49A77B3: __pthread_start(void*) (in /system/lib/libc.so)

Bug: 28113318
Change-Id: Icdba2b7a557254d29f8c3a62c6d1a7aafa4fdde4

8 years agoRemoved unused functions am: 8e7323e
Pavlin Radoslavov [Tue, 12 Apr 2016 20:55:59 +0000 (20:55 +0000)]
Removed unused functions am: 8e7323e
am: 2e2d6b6

* commit '2e2d6b655094aa05d4f04d17edb78c7e736031f5':
  Removed unused functions

Change-Id: Idaf1c038c56f92d6edd9e44ddd4174e161d4d6b0

8 years agoRemoved unused functions
Pavlin Radoslavov [Tue, 12 Apr 2016 20:49:59 +0000 (20:49 +0000)]
Removed unused functions
am: 8e7323e

* commit '8e7323ea75b8755b6d372115f0c8b1aa7789e96b':
  Removed unused functions

Change-Id: I03714338200aa89c48abda1e9af4ae0422bb3112

8 years agoRemoved unused functions
Pavlin Radoslavov [Thu, 7 Apr 2016 18:47:48 +0000 (11:47 -0700)]
Removed unused functions

Removed unused functions and defines that are not needed:
 - l2c_bcst_msg()
 - GAP_ConnBTWrite()
 - gap_proc_btu_event()
 - AVDT_WriteDataReq()
 - L2CAP_BCST_MIN_OFFSET
 - L2CAP_BCST_OVERHEAD
 - AVDT_MAX_MEDIA_SIZE
 - LOG_NDDEBUG in btif/src/bluetooth.c

Bug: 28068134
Change-Id: If0edda2bf86caf83027db2c897537c82a0d80667

8 years agoFix ambiguous base::TimeDelta reference am: 33bd1b4
Christopher Wiley [Tue, 12 Apr 2016 20:31:05 +0000 (20:31 +0000)]
Fix ambiguous base::TimeDelta reference am: 33bd1b4
am: 58d7189

* commit '58d71890def3b2150c39e8a8dc95f98689a52867':
  Fix ambiguous base::TimeDelta reference

Change-Id: I52ddc78b5a3bb2d7e4757b2dda27bdb0db623261

8 years agoFix ambiguous base::TimeDelta reference
Christopher Wiley [Tue, 12 Apr 2016 20:24:47 +0000 (20:24 +0000)]
Fix ambiguous base::TimeDelta reference
am: 33bd1b4

* commit '33bd1b43bdc88e4ba9018004cc67815915f56615':
  Fix ambiguous base::TimeDelta reference

Change-Id: I784db9edf02854f6cacf3017121df6ab177f1681

8 years agoPull in libmedia's exported headers in libbtif
Christopher Wiley [Mon, 11 Apr 2016 22:14:23 +0000 (15:14 -0700)]
Pull in libmedia's exported headers in libbtif

Do this by listing libmedia as a shared library linked by libbtif.
We won't actually be able to link against libmedia because static
libraries don't work like that, but surrounding logic about headers
is triggered.

Bug: 27804373
Test: libbtif compiles in the presence of a new exported header path
      in libmedia.

Change-Id: Ic1e776966daaf70b7b9ae6ea99af89bc9a0b3885

8 years agoFix ambiguous base::TimeDelta reference
Christopher Wiley [Mon, 11 Apr 2016 22:18:14 +0000 (15:18 -0700)]
Fix ambiguous base::TimeDelta reference

base::TimeDelta cannot be resolved when both libbase's
android::base namespace and libchrome's base:: namespace
are included via transitive header dependencies.

Bug: 27804373
Test: Compiles.

Change-Id: I9854c92763728fb85ad21183f37c94a4d7bd61a5

8 years agoTrigger a compilation error when LOG_TAG is not provided am: 92f0ed3
Jakub Pawlowski [Tue, 12 Apr 2016 19:29:04 +0000 (19:29 +0000)]
Trigger a compilation error when LOG_TAG is not provided am: 92f0ed3
am: 6e986ce

* commit '6e986ce9841ed50ebe22b23b89813af56af42341':
  Trigger a compilation error when LOG_TAG is not provided

Change-Id: Ica10d7da194263079d10ea97bc2a133562fe986d

8 years agoTrigger a compilation error when LOG_TAG is not provided
Jakub Pawlowski [Tue, 12 Apr 2016 19:23:07 +0000 (19:23 +0000)]
Trigger a compilation error when LOG_TAG is not provided
am: 92f0ed3

* commit '92f0ed330a0ae2e52f5a0538041cc54762781ad0':
  Trigger a compilation error when LOG_TAG is not provided

Change-Id: I50af14e4cb8cc1e43400724de2fc3142442d3498

8 years agoLinux build fix am: b4a42e7
Bluetooth Build Test [Tue, 12 Apr 2016 18:53:35 +0000 (18:53 +0000)]
Linux build fix am: b4a42e7
am: 17a4581

* commit '17a45812cc4a29293333ae8d50271e7234d0ef56':
  Linux build fix

Change-Id: I099aad874a957158b38370e0b342bcadec6cd175

8 years agoFix valgrind error am: 431885e
Jakub Pawlowski [Tue, 12 Apr 2016 18:53:35 +0000 (18:53 +0000)]
Fix valgrind error am: 431885e
am: 8269b9f

* commit '8269b9f82110599b925c6d67d6943fd6eb538d35':
  Fix valgrind error

Change-Id: I3284abc2888b522a776f35b29175363cf2155266

8 years agoCleanup unnecessary logs am: 4529f1b
Jakub Pawlowski [Tue, 12 Apr 2016 18:53:34 +0000 (18:53 +0000)]
Cleanup unnecessary logs am: 4529f1b
am: 0cb8bef

* commit '0cb8bef315508d506d9ccc9101d151ee4d372ae0':
  Cleanup unnecessary logs

Change-Id: I7cb090fde80f4b0c4f9ac9a897cbe024597abb20

8 years agoLinux build fix
Bluetooth Build Test [Tue, 12 Apr 2016 18:47:52 +0000 (18:47 +0000)]
Linux build fix
am: b4a42e7

* commit 'b4a42e7b9c277cfd71a575cbdb104013855b80cd':
  Linux build fix

Change-Id: Ie87160ed6279cfcd2eca2cf8dc30f489b44d15a9

8 years agoFix valgrind error
Jakub Pawlowski [Tue, 12 Apr 2016 18:47:52 +0000 (18:47 +0000)]
Fix valgrind error
am: 431885e

* commit '431885e7b6fb0ffc861571b907d3f66963333c2a':
  Fix valgrind error

Change-Id: I5dd51a742a77bfc86bcfb8f269db221862d5679e

8 years agoCleanup unnecessary logs
Jakub Pawlowski [Tue, 12 Apr 2016 18:47:52 +0000 (18:47 +0000)]
Cleanup unnecessary logs
am: 4529f1b

* commit '4529f1bda41a587d03c1d68ce4e9d8ec21920045':
  Cleanup unnecessary logs

Change-Id: I77086ef0cb4934be958655500e4918bd91ca0fef

8 years agoTrigger a compilation error when LOG_TAG is not provided
Jakub Pawlowski [Mon, 11 Apr 2016 08:54:54 +0000 (01:54 -0700)]
Trigger a compilation error when LOG_TAG is not provided

When compiling for OS_GENERIC, lack of LOG_TAG causes a compilation error.
Most developement happens on Android, which compiles this without an
error. This patch triggers a compilation failure on Android when LOG_TAG is not
provided.

Bug: 28118588
Change-Id: I316aa01952fb88d77bbabb197c77e4287a3fc39b

8 years agoLinux build fix
Bluetooth Build Test [Thu, 7 Apr 2016 12:10:40 +0000 (14:10 +0200)]
Linux build fix

* add missing LOG_TAG definition
* add missing LOG_TAG inside LOG statements
* remove unnecessary includes of cutils/*.h files
* update libchrome/BUILD.gn to be on par with latest version of
  library used in Android

Bug: 28094186
Change-Id: I19a07afac20789b42a070995f6aa9da68b1bb940

8 years agoFix valgrind error
Jakub Pawlowski [Tue, 12 Apr 2016 13:44:52 +0000 (06:44 -0700)]
Fix valgrind error

This patch fixes following valgrind error message:
==5000== Thread 6 bt_jni_workqueue:
==5000== Conditional jump or move depends on uninitialised value(s)
==5000==    at 0x4353C7:
bluetooth::LowEnergyClient::ScanResultCallback(bluetooth::hal::BluetoothGattInterface*,
bt_bdaddr_t const&, int, unsigned char*) (low_energy_client.cpp:573)
==5000==    by 0x443BBB: bluetooth::hal::(anonymous
namespace)::ScanResultCallback(bt_bdaddr_t*, int, unsigned char*)
(bluetooth_gatt_interface.cpp:91)

Bug: 28113318
Change-Id: Ide82c6a7f68f6bbe427f12ca353d62f1d999d0ae

8 years agoCleanup unnecessary logs
Jakub Pawlowski [Tue, 12 Apr 2016 12:50:49 +0000 (05:50 -0700)]
Cleanup unnecessary logs

Bug: 27698756
Change-Id: I30b5e4b45d4b06e0264415e85949c7bf828f28c0

8 years agoDo not update sco_state when no matching peer_addr is found am: 2dfcbda
Lianchao Song [Mon, 11 Apr 2016 17:19:39 +0000 (17:19 +0000)]
Do not update sco_state when no matching peer_addr is found am: 2dfcbda
am: 56cc0c3

* commit '56cc0c361644db8d1b5c638ecd11871e38a0a1d4':
  Do not update sco_state when no matching peer_addr is found

Change-Id: I4a443927d06c51eb784a472ea9eb6df8bc46d853

8 years agoDo not update sco_state when no matching peer_addr is found
Lianchao Song [Mon, 11 Apr 2016 17:14:44 +0000 (17:14 +0000)]
Do not update sco_state when no matching peer_addr is found
am: 2dfcbda

* commit '2dfcbda49f694fcf1355955c334926e8641b4dc5':
  Do not update sco_state when no matching peer_addr is found

Change-Id: Ibdf55ed17a816591a2c40c549d4fc8df7e44aba9