OSDN Git Service

android-x86/system-bt.git
6 years agoHFP: Add APIs for set and get active device (3/3) am: 9761185772 am: 3b45afe246
Jack He [Mon, 8 Jan 2018 22:22:06 +0000 (22:22 +0000)]
HFP: Add APIs for set and get active device (3/3) am: 9761185772 am: 3b45afe246
am: a42ee4d5bd

Change-Id: Ibf7c957811b0aba774475005362054cca668a6d8

6 years agoHFP: Add APIs for set and get active device (3/3) am: 9761185772
Jack He [Mon, 8 Jan 2018 21:14:02 +0000 (21:14 +0000)]
HFP: Add APIs for set and get active device (3/3) am: 9761185772
am: 3b45afe246

Change-Id: Ic41a49abff6ff0049a0eb28bd384798672a102b6

6 years agoAdded internal API to get/set the A2DP Active Device am: 5fd3e62821 am: 676734bd45
Pavlin Radoslavov [Mon, 8 Jan 2018 21:11:48 +0000 (21:11 +0000)]
Added internal API to get/set the A2DP Active Device am: 5fd3e62821 am: 676734bd45
am: 0f179d94f6

Change-Id: Ic7ff9b4e4f4b0938e4913691a0c1537eb22e04a1

6 years agoAdded internal API to get/set the A2DP Active Device am: 5fd3e62821
Pavlin Radoslavov [Mon, 8 Jan 2018 21:02:18 +0000 (21:02 +0000)]
Added internal API to get/set the A2DP Active Device am: 5fd3e62821
am: 676734bd45

Change-Id: I3fc5dd1119584a9aebcd361dd8402b7ff07f5e80

6 years agoHFP: Use disableinbandringing instead of enableinbandringing am: 72804890b6 am: 985ce...
Jack He [Mon, 8 Jan 2018 20:35:07 +0000 (20:35 +0000)]
HFP: Use disableinbandringing instead of enableinbandringing am: 72804890b6 am: 985ce35907
am: 4085e4a74d  -s ours

Change-Id: I06e8972c1cbe50f28fd1bc2b7b854206a54fc7cd

6 years agoHFP: Use disableinbandringing instead of enableinbandringing am: 72804890b6
Jack He [Mon, 8 Jan 2018 20:21:00 +0000 (20:21 +0000)]
HFP: Use disableinbandringing instead of enableinbandringing am: 72804890b6
am: 985ce35907

Change-Id: I1f17a7fda94728e43d4b6b19448db787f6275a7c

6 years agoHFP: Add APIs for set and get active device (3/3)
Jack He [Sat, 6 Jan 2018 17:52:41 +0000 (17:52 +0000)]
HFP: Add APIs for set and get active device (3/3)
am: 9761185772

Change-Id: I1dc0936d87b7e42f68ab7919f6b8bb245fff905b

6 years agoAdded internal API to get/set the A2DP Active Device
Pavlin Radoslavov [Sat, 6 Jan 2018 17:41:24 +0000 (17:41 +0000)]
Added internal API to get/set the A2DP Active Device
am: 5fd3e62821

Change-Id: Ie5ee734f1e471eebcaa4ce07abe35999a068736e

6 years agoHFP: Use disableinbandringing instead of enableinbandringing
Jack He [Sat, 6 Jan 2018 17:33:13 +0000 (17:33 +0000)]
HFP: Use disableinbandringing instead of enableinbandringing
am: 72804890b6

Change-Id: Ia9187da1a44978410bfcac41eb1b48eb86e2cfaf

6 years agoHFP: Add APIs for set and get active device (3/3)
Jack He [Thu, 7 Dec 2017 02:35:11 +0000 (18:35 -0800)]
HFP: Add APIs for set and get active device (3/3)

* Add set active device APIs to set active device from Java layer
* Set active device to the first connected device if no one set it
  before
* Clear active device on RFCOMM disconnection if active device is the
  one getting disconnected
* Currently, the active device value is not used in any functional code

Bug: 68951996
Test: runtest -j40 bluetooth
Change-Id: Id0c00e89178b0f963ed8642e72c7010160dd1d68

6 years agoAdded internal API to get/set the A2DP Active Device
Pavlin Radoslavov [Tue, 19 Dec 2017 21:26:22 +0000 (13:26 -0800)]
Added internal API to get/set the A2DP Active Device

1. Call BluetoothA2dp.setActiveDevice(BluetoothDevice device) to set
   a connected A2DP device as active.
2. Listen for BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED intent
   that will contain the latest active device (in EXTRA_DEVICE field).
   If the active device could not be changed, the EXTRA_DEVICE
   field could be null.
3. If setActiveDevice() is NOT in-progress, BluetoothA2dp.getActiveDevice()
   can be used. If setActiveDevice() is in-progress, the result is undefined.
4. BluetoothA2dp.setActiveDevice() could be called by some other parts of
   the system, so interested parties should always listen for
   BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED intents and prepared
   for active device updates.

Bug: 71555243
Test: Manual
Change-Id: Ia25465e17a4539e940d09523cb621b230abd31e3

6 years agoHFP: Use disableinbandringing instead of enableinbandringing
Jack He [Thu, 7 Dec 2017 23:15:56 +0000 (15:15 -0800)]
HFP: Use disableinbandringing instead of enableinbandringing

* Use disableinbandringing system property as in-band ringing is enabled
  by default so an active user choice would disable it instead of
  enabling it

Bug: 65383086
Test: make, try toggling the preference and verify in-band ringing
      behavior

Change-Id: I9b10743960c933b223481d2efb68af538689c507
Merged-In: I9b10743960c933b223481d2efb68af538689c507
(cherry picked from commit 71de85091506eeeaab6e73cccf0ebd5bb06f2af1)

6 years agoRevert "Use vector instead of raw pointer in l2cap socket write handling" am: a32cfc9...
Jakub Pawlowski [Fri, 5 Jan 2018 11:26:50 +0000 (11:26 +0000)]
Revert "Use vector instead of raw pointer in l2cap socket write handling" am: a32cfc9406 am: ef27326ed4
am: 204a4783fe

Change-Id: Ia0286683d9b778077f8985dd383b139c0607bddd

6 years agoRevert "Use vector instead of raw pointer in l2cap socket write handling" am: a32cfc9406
Jakub Pawlowski [Fri, 5 Jan 2018 11:24:18 +0000 (11:24 +0000)]
Revert "Use vector instead of raw pointer in l2cap socket write handling" am: a32cfc9406
am: ef27326ed4

Change-Id: I28400f163fad55b413a91ad79482f0749a3e84d0

6 years agoRevert "Use vector instead of raw pointer in l2cap socket write handling"
Jakub Pawlowski [Fri, 5 Jan 2018 11:22:16 +0000 (11:22 +0000)]
Revert "Use vector instead of raw pointer in l2cap socket write handling"
am: a32cfc9406

Change-Id: I82bcb6ba5934527716f86347ab66a924af7d0de7

6 years agoRevert "Use vector instead of raw pointer in l2cap socket write handling"
Jakub Pawlowski [Fri, 5 Jan 2018 09:36:44 +0000 (09:36 +0000)]
Revert "Use vector instead of raw pointer in l2cap socket write handling"

This reverts commit 4da2ff53e694c5bee2973c55bb14eb40f74a9d3d.

Change-Id: Id8a399ec6f7474b92579c4647899e424feeb0d33

6 years agoUse vector instead of raw pointer in l2cap socket write handling am: 4da2ff53e6 am...
Jakub Pawlowski [Fri, 5 Jan 2018 07:33:46 +0000 (07:33 +0000)]
Use vector instead of raw pointer in l2cap socket write handling am: 4da2ff53e6 am: 599477c4c8
am: 37b3e7c945

Change-Id: Ia0e96794b87aeb1a72e1c6c1e774b8b79bbb6cbe

6 years agoUse vector instead of raw pointer in l2cap socket write handling am: 4da2ff53e6
Jakub Pawlowski [Fri, 5 Jan 2018 07:31:16 +0000 (07:31 +0000)]
Use vector instead of raw pointer in l2cap socket write handling am: 4da2ff53e6
am: 599477c4c8

Change-Id: I2cfcf4e886237a0c2964a28adb0fd6f041fd42d4

6 years agoUse vector instead of raw pointer in l2cap socket write handling
Jakub Pawlowski [Fri, 5 Jan 2018 07:29:10 +0000 (07:29 +0000)]
Use vector instead of raw pointer in l2cap socket write handling
am: 4da2ff53e6

Change-Id: If0bfaed0ee4d1221f9075c94c00c0ef87e756ee9

6 years agoUse vector instead of raw pointer in l2cap socket write handling
Jakub Pawlowski [Tue, 31 Oct 2017 06:15:43 +0000 (23:15 -0700)]
Use vector instead of raw pointer in l2cap socket write handling

Currently, when we receive data from upper layers for LE CoC socket,
we store it in memory and pass a raw pointer around, keeping memory
until the write is acknowledged by controller and event is sent back to
btif layer in on_l2cap_write*_done. If anything goes wrong, we might
loose the pointer to the data and have a memory leak.

From now on, we store the data in std::vector and pass its ownership
down the stack. The moment the data is copied into lower layer buffer,
vector is automatically freed. We no longer pass the data back to
on_l2cap_write*_done callback.

Bug: 68359837
Test: compilation test
Change-Id: If34c0fba8d4a040a242b8c655491b8967a03b96a

6 years agoAdd to receive BTHF_CALL_STATE_DISCONNECTED at HFP am: c8da011a74 am: 60ccd1d0b4
Yasuyoshi Terui [Fri, 5 Jan 2018 05:54:49 +0000 (05:54 +0000)]
Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP am: c8da011a74 am: 60ccd1d0b4
am: 5a6d14da00

Change-Id: I1af94b45a2383e6bda061bbed8a15c81dd3fbe7e

6 years agoAdd to receive BTHF_CALL_STATE_DISCONNECTED at HFP am: c8da011a74
Yasuyoshi Terui [Fri, 5 Jan 2018 05:52:24 +0000 (05:52 +0000)]
Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP am: c8da011a74
am: 60ccd1d0b4

Change-Id: I809580e699f8fa9f740b5dba78f5cd696a072793

6 years agoAdd to receive BTHF_CALL_STATE_DISCONNECTED at HFP
Yasuyoshi Terui [Fri, 5 Jan 2018 05:50:20 +0000 (05:50 +0000)]
Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP
am: c8da011a74

Change-Id: I5d0282479a5129150721baf6c389fafc5a26f9e1

6 years agoHFP: Use disableinbandringing instead of enableinbandringing
Jack He [Thu, 7 Dec 2017 23:15:56 +0000 (15:15 -0800)]
HFP: Use disableinbandringing instead of enableinbandringing

* Use disableinbandringing system property as in-band ringing is enabled
  by default so an active user choice would disable it instead of
  enabling it

Bug: 65383086
Test: make, try toggling the preference and verify in-band ringing
      behavior

Change-Id: I9b10743960c933b223481d2efb68af538689c507

6 years agoAdd to receive BTHF_CALL_STATE_DISCONNECTED at HFP
Yasuyoshi Terui [Fri, 14 Feb 2014 06:07:35 +0000 (15:07 +0900)]
Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP

When the call is disconnected, the BTHF state is changed to IDLE and
SCO connection is disconnected before playing disconnect tone. So the
disconnect tone can't be sound from BTHS.

Add DISCONNECTED state for HFP and keep the state until disconnect tone
sounds from BT.

Test: manual - Checked whether the disconnect tone is sound from the BTHS
Bug: 69645337

Change-Id: Id96385e4ce35cfe7d0d4e14b74a2fc1a63165f82

6 years agoHFP: Use objects for shared library interface and callbacks (1/2) am: 12a576dc5f...
Jack He [Thu, 4 Jan 2018 19:37:44 +0000 (19:37 +0000)]
HFP: Use objects for shared library interface and callbacks (1/2) am: 12a576dc5f am: 9ab7749251
am: 7288b770f0

Change-Id: I9fe97ef3ba713db66c5f8253f50464df32a831ba

6 years agoHFP: Use objects for shared library interface and callbacks (1/2) am: 12a576dc5f
Jack He [Thu, 4 Jan 2018 19:33:16 +0000 (19:33 +0000)]
HFP: Use objects for shared library interface and callbacks (1/2) am: 12a576dc5f
am: 9ab7749251

Change-Id: I2474b07ba76d03e046b2344ad5ac5e87694b5a11

6 years agoHFP: Use objects for shared library interface and callbacks (1/2)
Jack He [Thu, 4 Jan 2018 19:29:45 +0000 (19:29 +0000)]
HFP: Use objects for shared library interface and callbacks (1/2)
am: 12a576dc5f

Change-Id: I065fcf449afce66b2f10ab75d3aba7a349d4c350

6 years agoHFP: Use objects for shared library interface and callbacks (1/2)
Jack He [Thu, 14 Dec 2017 23:00:39 +0000 (15:00 -0800)]
HFP: Use objects for shared library interface and callbacks (1/2)

* Declare bluetooth::headset::Interface and
  bluetooth::headset::Callbacks instead of using structs
* Put HFP related methods and types into bluetooth::headset namespace
* Rename those methods into CamelStyle according to Google C++ style
  guide
* Remove the usage of HAL_CBACK in HFP as we only need to check if the
  callback object is null and all its methods must be implemented as
  mandated by rules of the pure virtual function
* These classes can be mocked during test to isolate behaviors
* Improved effort handling in btif_hf.cc to log error messages during
  failures

Bug: 70538124
Test: unit tests, testplans/135585
Change-Id: Iba120ef9d0a9701aececd300395b7b18d2d44e7d

6 years agoAdded RawAddress::FromOctets method to copy address from uint8_t pointer am: c57d93a3...
Pavlin Radoslavov [Thu, 4 Jan 2018 03:15:13 +0000 (03:15 +0000)]
Added RawAddress::FromOctets method to copy address from uint8_t pointer am: c57d93a35f am: bf454b7e75
am: 0aa83b8e0e

Change-Id: I3866513288fc6986af516d5530b7beeec56a73a8

6 years agoAdded RawAddress::FromOctets method to copy address from uint8_t pointer am: c57d93a35f
Pavlin Radoslavov [Thu, 4 Jan 2018 02:56:26 +0000 (02:56 +0000)]
Added RawAddress::FromOctets method to copy address from uint8_t pointer am: c57d93a35f
am: bf454b7e75

Change-Id: I1b4eed0118c71b7fad05d14d5e8859b8942a135c

6 years agoAdded RawAddress::FromOctets method to copy address from uint8_t pointer
Pavlin Radoslavov [Thu, 4 Jan 2018 02:53:18 +0000 (02:53 +0000)]
Added RawAddress::FromOctets method to copy address from uint8_t pointer
am: c57d93a35f

Change-Id: Id48a1ed16b0150f8c42e2737531c75e8fa1733b5

6 years agoAdded RawAddress::FromOctets method to copy address from uint8_t pointer
Pavlin Radoslavov [Sun, 26 Nov 2017 04:51:36 +0000 (20:51 -0800)]
Added RawAddress::FromOctets method to copy address from uint8_t pointer

Also, added missing unit test for existing constructor

Test: Unit test added
Change-Id: Id642aaf2651c59b87af344c78aafc87aba2898d1

6 years agoAdvertising Filtering: send all filters in one batch (2/2) am: 0ddfae721a am: 77a04d4b62
Jakub Pawlowski [Wed, 3 Jan 2018 22:43:01 +0000 (22:43 +0000)]
Advertising Filtering: send all filters in one batch (2/2) am: 0ddfae721a am: 77a04d4b62
am: 01ca45284c

Change-Id: I44c1de9b3afe44743b9ea162830556fd5f89971f

6 years agoAdvertising Filtering: send all filters in one batch (2/2) am: 0ddfae721a
Jakub Pawlowski [Wed, 3 Jan 2018 22:39:27 +0000 (22:39 +0000)]
Advertising Filtering: send all filters in one batch (2/2) am: 0ddfae721a
am: 77a04d4b62

Change-Id: I581859e8e234e24a034906e2fc47b241c6bae0a8

6 years agoAdvertising Filtering: send all filters in one batch (2/2)
Jakub Pawlowski [Wed, 3 Jan 2018 22:35:52 +0000 (22:35 +0000)]
Advertising Filtering: send all filters in one batch (2/2)
am: 0ddfae721a

Change-Id: I36dca21c52968fc4ddb2ef3b1cfd4b7d6106391b

6 years agoAdvertising Filtering: send all filters in one batch (2/2)
Jakub Pawlowski [Tue, 3 Oct 2017 19:31:48 +0000 (12:31 -0700)]
Advertising Filtering: send all filters in one batch (2/2)

Bug: 67371480
Test: sl4a FilteringTest
Change-Id: I93595b5ed4e7cf25cdb6a8b1f9413a7f05e61774

6 years agoMerge "Temporarily remove broken SCO-over-HCI implementation" am: 3d4e3b5861 am:...
Hansong Zhang [Wed, 3 Jan 2018 18:47:03 +0000 (18:47 +0000)]
Merge "Temporarily remove broken SCO-over-HCI implementation" am: 3d4e3b5861 am: 7685e2fbc9
am: 2253aa7b39

Change-Id: I8156fc8a0ef5e043988f32e0720b6f695d6b7d9a

6 years agoMerge "Temporarily remove broken SCO-over-HCI implementation" am: 3d4e3b5861
Hansong Zhang [Wed, 3 Jan 2018 18:42:54 +0000 (18:42 +0000)]
Merge "Temporarily remove broken SCO-over-HCI implementation" am: 3d4e3b5861
am: 7685e2fbc9

Change-Id: I6b566d2a07595f4f6371cb0c00424ebe887a7963

6 years agoMerge "Temporarily remove broken SCO-over-HCI implementation"
Hansong Zhang [Wed, 3 Jan 2018 18:39:19 +0000 (18:39 +0000)]
Merge "Temporarily remove broken SCO-over-HCI implementation"
am: 3d4e3b5861

Change-Id: Id420d440f7692eb37547c01437b387d3b1935113

6 years agoMerge "Temporarily remove broken SCO-over-HCI implementation"
Treehugger Robot [Wed, 3 Jan 2018 18:35:35 +0000 (18:35 +0000)]
Merge "Temporarily remove broken SCO-over-HCI implementation"

6 years agoRemove bytes after first zero length field in legacy advertisements am: 5a290f877f...
Jakub Pawlowski [Wed, 3 Jan 2018 12:45:07 +0000 (12:45 +0000)]
Remove bytes after first zero length field in legacy advertisements am: 5a290f877f am: 750da04807
am: 6328bd1ddd

Change-Id: Ibceb4e06109180acc045e578b82efad474db3ab8

6 years agoRemove bytes after first zero length field in legacy advertisements am: 5a290f877f
Jakub Pawlowski [Wed, 3 Jan 2018 12:41:33 +0000 (12:41 +0000)]
Remove bytes after first zero length field in legacy advertisements am: 5a290f877f
am: 750da04807

Change-Id: Ib4d2af62bfd3546624ef125ae8ef1e0d24e5b10c

6 years agoRemove bytes after first zero length field in legacy advertisements
Jakub Pawlowski [Wed, 3 Jan 2018 12:38:01 +0000 (12:38 +0000)]
Remove bytes after first zero length field in legacy advertisements
am: 5a290f877f

Change-Id: Ie75a131a635e9e9e471ad3e4fdc8781d1127b5a2

6 years agoRemove bytes after first zero length field in legacy advertisements
Jakub Pawlowski [Wed, 3 Jan 2018 09:49:41 +0000 (01:49 -0800)]
Remove bytes after first zero length field in legacy advertisements

This is for compatibility with many existing old devices, that have
non-zero bytes after zero length field. This is currently causing
advertisements to be dropped, rendering those devices invisible.

Bug: 68907583
Test: AdvertiseDataParserTest.RemoveTrailingZerosMalformed
Change-Id: Ib51950f7e0c6a2771f56c6f69108fa10f2517f38

6 years agoMinor style fixes in l2c_main.cc am: 4883a8cbb2 am: 3c3dce49c7
Jakub Pawlowski [Wed, 3 Jan 2018 08:53:08 +0000 (08:53 +0000)]
Minor style fixes in l2c_main.cc am: 4883a8cbb2 am: 3c3dce49c7
am: 1463e3bea1

Change-Id: Ic8002f4cc1cbdff83a7277b2648652a4cd3677f8

6 years agoMinor style fixes in l2c_main.cc am: 4883a8cbb2
Jakub Pawlowski [Wed, 3 Jan 2018 08:49:34 +0000 (08:49 +0000)]
Minor style fixes in l2c_main.cc am: 4883a8cbb2
am: 3c3dce49c7

Change-Id: I5bc41ae88ff588a81be1f0148cd6ca770aff9419

6 years agoMinor style fixes in l2c_main.cc
Jakub Pawlowski [Wed, 3 Jan 2018 08:45:30 +0000 (08:45 +0000)]
Minor style fixes in l2c_main.cc
am: 4883a8cbb2

Change-Id: Id9415750cb309163f81320f3638e962aa8db9420

6 years agoTemporarily remove broken SCO-over-HCI implementation
Hansong Zhang [Tue, 2 Jan 2018 21:48:42 +0000 (13:48 -0800)]
Temporarily remove broken SCO-over-HCI implementation

This is currently not used on known Android platforms and currently does
not compile. To be re-visited when SCO-over-HCI can be re-implemented
based on the new HAL.

Test: make
Bug: 70965527
Change-Id: Iefff5b3fb1599a0cdb2c7fb90b463f3643a2a47e

6 years agoMinor style fixes in l2c_main.cc
Jakub Pawlowski [Thu, 7 Dec 2017 09:21:48 +0000 (01:21 -0800)]
Minor style fixes in l2c_main.cc

Bug: 69623109
Test: compilation
Change-Id: Ie5d744bced1e392d9cfa57ae6c9b4a4664c021c8

6 years agoMerge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)" am: 983c79f643...
Hansong Zhang [Thu, 21 Dec 2017 22:41:59 +0000 (22:41 +0000)]
Merge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)" am: 983c79f643 am: 7066f03690
am: bf72029cf5  -s ours

Change-Id: I9428cdb3a093559f060522dd0a35c98765420e6f

6 years agoMerge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)" am: 983c79f643
Hansong Zhang [Thu, 21 Dec 2017 22:32:18 +0000 (22:32 +0000)]
Merge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)" am: 983c79f643
am: 7066f03690

Change-Id: I3a29531116620d3ab1bd2dab3470951e4110f644

6 years agoMerge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)"
Hansong Zhang [Thu, 21 Dec 2017 22:08:42 +0000 (22:08 +0000)]
Merge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)"
am: 983c79f643

Change-Id: Ia5adefe6cff4338b2ebf6b4a043ca77fdd9e5231

6 years agoMerge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)"
Treehugger Robot [Thu, 21 Dec 2017 21:56:11 +0000 (21:56 +0000)]
Merge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)"

6 years agoIncrease MPS for LE CoC to one LE Buffer Size am: f18b31e1e3 am: b7b046755a
Jakub Pawlowski [Thu, 21 Dec 2017 21:07:17 +0000 (21:07 +0000)]
Increase MPS for LE CoC to one LE Buffer Size am: f18b31e1e3 am: b7b046755a
am: 8b516237a1

Change-Id: Ic4fa2d85632e25a3e4096dd2e31058aa14c83abf

6 years agoMerge "Increase default SDP_MTU_SIZE to 1024" am: 94559ee329 am: 5a6f0b700f
Kim Low [Thu, 21 Dec 2017 21:06:53 +0000 (21:06 +0000)]
Merge "Increase default SDP_MTU_SIZE to 1024" am: 94559ee329 am: 5a6f0b700f
am: 3e9e827ed6

Change-Id: I55376b3cb983b99df1dec7eb3f2848c0e4fae4fe

6 years agoIncrease MPS for LE CoC to one LE Buffer Size am: f18b31e1e3
Jakub Pawlowski [Thu, 21 Dec 2017 20:59:01 +0000 (20:59 +0000)]
Increase MPS for LE CoC to one LE Buffer Size am: f18b31e1e3
am: b7b046755a

Change-Id: I3e72dfd516fc9994a0d413bfecfbc5b80b41623b

6 years agoIncrease MPS for LE CoC to one LE Buffer Size
Jakub Pawlowski [Thu, 21 Dec 2017 20:54:27 +0000 (20:54 +0000)]
Increase MPS for LE CoC to one LE Buffer Size
am: f18b31e1e3

Change-Id: I8837cbb289d9138ec21088b9aecc84b4864ab7d8

6 years agoMerge "Increase default SDP_MTU_SIZE to 1024" am: 94559ee329
Kim Low [Thu, 21 Dec 2017 20:13:00 +0000 (20:13 +0000)]
Merge "Increase default SDP_MTU_SIZE to 1024" am: 94559ee329
am: 5a6f0b700f

Change-Id: I5b2d1618bfbb8ddb55a4cb0f7ba8449245d9f31d

6 years agoMerge "Increase default SDP_MTU_SIZE to 1024"
Kim Low [Thu, 21 Dec 2017 19:37:39 +0000 (19:37 +0000)]
Merge "Increase default SDP_MTU_SIZE to 1024"
am: 94559ee329

Change-Id: I1c922824d6b6c8a82f69a5584fb023c304d4477e

6 years agoIncrease MPS for LE CoC to one LE Buffer Size
Jakub Pawlowski [Tue, 19 Dec 2017 21:22:27 +0000 (13:22 -0800)]
Increase MPS for LE CoC to one LE Buffer Size

This should improve throughtput, and reduce number of LE-U PDUs needed
to send message over LE channel.

Test: compilation
Change-Id: Ic1e203eaec0b8012984f27d3c488ea6eb0945399

6 years agoMerge "Increase default SDP_MTU_SIZE to 1024"
Treehugger Robot [Thu, 21 Dec 2017 15:11:56 +0000 (15:11 +0000)]
Merge "Increase default SDP_MTU_SIZE to 1024"

6 years agoBluetoothHidDevice: rename onIntrData to onInterruptData (2/5)
Hansong Zhang [Mon, 18 Dec 2017 23:22:22 +0000 (15:22 -0800)]
BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)

Bug: 63384609
Test: make
Merged-In: I76a149f1c7f30ac3eec31d57053231f7f6dac01d
Change-Id: I76a149f1c7f30ac3eec31d57053231f7f6dac01d
(cherry picked from commit 0fa9df6938dfe7dafa10601ea904cd6f1d2e95c2)

6 years agoMerge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)"
TreeHugger Robot [Wed, 20 Dec 2017 19:02:49 +0000 (19:02 +0000)]
Merge "BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)"

6 years agoMinor GATT logging fixes am: fdae46505f am: bc9adf4f24
Jakub Pawlowski [Wed, 20 Dec 2017 12:24:56 +0000 (12:24 +0000)]
Minor GATT logging fixes am: fdae46505f am: bc9adf4f24
am: 33a9133e6a

Change-Id: I92ddd659f359b14befa18b03e319b6db63c53388

6 years agoMinor GATT logging fixes am: fdae46505f
Jakub Pawlowski [Wed, 20 Dec 2017 12:22:21 +0000 (12:22 +0000)]
Minor GATT logging fixes am: fdae46505f
am: bc9adf4f24

Change-Id: Id5528e6c34ccc38e2cc4fba147612a92ad7a1325

6 years agoMinor GATT logging fixes
Jakub Pawlowski [Wed, 20 Dec 2017 12:19:50 +0000 (12:19 +0000)]
Minor GATT logging fixes
am: fdae46505f

Change-Id: Ic2d7530c2650139a0c648e90aa716b691feb9768

6 years agoIncrease default SDP_MTU_SIZE to 1024
Kim Low [Mon, 11 Dec 2017 22:38:01 +0000 (14:38 -0800)]
Increase default SDP_MTU_SIZE to 1024

This fixes a problem where older DualShock4 controllers would
not connect with SDP_MTU_SIZE < 1024.

Fixes: 70356237
Change-Id: I96a6ee0536547b93f2ae411eb1d8860292855c31

6 years agoBluetoothHidDevice: rename onIntrData to onInterruptData (2/5)
Hansong Zhang [Mon, 18 Dec 2017 23:22:22 +0000 (15:22 -0800)]
BluetoothHidDevice: rename onIntrData to onInterruptData (2/5)

Bug: 63384609
Test: make
Change-Id: I76a149f1c7f30ac3eec31d57053231f7f6dac01d

6 years agoMinor GATT logging fixes
Jakub Pawlowski [Wed, 13 Dec 2017 18:12:39 +0000 (10:12 -0800)]
Minor GATT logging fixes

Test: compilation
Bug: 70297056
Change-Id: If71bbb19a08abbbb30b5ce5027aed97e03b3baaa

6 years agoHFP: Add interface to disable in-band ringing through BSIR (1/2) am: b55bc83c9e am...
Jack He [Mon, 18 Dec 2017 23:26:55 +0000 (23:26 +0000)]
HFP: Add interface to disable in-band ringing through BSIR (1/2) am: b55bc83c9e am: c55d0cf34d
am: d3027bae52

Change-Id: I759ee3f9f57984d111fdf8e811f2626cda4f899b

6 years agoHFP: Add interface to disable in-band ringing through BSIR (1/2) am: b55bc83c9e
Jack He [Mon, 18 Dec 2017 23:22:20 +0000 (23:22 +0000)]
HFP: Add interface to disable in-band ringing through BSIR (1/2) am: b55bc83c9e
am: c55d0cf34d

Change-Id: I85201ffb6f18cdeb1dcafe4b83078fe590e496da

6 years agoHFP: Add interface to disable in-band ringing through BSIR (1/2)
Jack He [Mon, 18 Dec 2017 23:18:02 +0000 (23:18 +0000)]
HFP: Add interface to disable in-band ringing through BSIR (1/2)
am: b55bc83c9e

Change-Id: I352b392a83f14bdd07a318b451a5426601cebf3d

6 years agoHFP: Add interface to disable in-band ringing through BSIR (1/2)
Jack He [Mon, 4 Dec 2017 22:13:01 +0000 (14:13 -0800)]
HFP: Add interface to disable in-band ringing through BSIR (1/2)

* Add send_bsir(bool, RawAddress*) to turn
  in-band ringtone feature ON and OFF dynamically during a service
  level connection with a headset

Bug: 70173881
Test: make
Change-Id: I358e39a9176d75dfb8682e77cf567f87eb417d1a

6 years agobt: Update libchrome APIS to r456626. am: aeca7aa7a7 am: a6eb6e86bd
Hidehiko Abe [Mon, 18 Dec 2017 10:43:13 +0000 (10:43 +0000)]
bt: Update libchrome APIS to r456626. am: aeca7aa7a7 am: a6eb6e86bd
am: 57988cf208  -s ours

Change-Id: Ib6ee9bd86cec1f13ba3f3f661b982b69226125ae

6 years agobt: Update libchrome APIS to r456626. am: aeca7aa7a7
Hidehiko Abe [Mon, 18 Dec 2017 10:37:49 +0000 (10:37 +0000)]
bt: Update libchrome APIS to r456626. am: aeca7aa7a7
am: a6eb6e86bd

Change-Id: I09c4739d3ee7635d0cbdedc398393dc2de735282

6 years agobt: Update libchrome APIS to r456626.
Hidehiko Abe [Mon, 18 Dec 2017 10:34:35 +0000 (10:34 +0000)]
bt: Update libchrome APIS to r456626.
am: aeca7aa7a7

Change-Id: I9b90c9be75ae4e7d1ed3f3602298eb29d6407e35

6 years agobt: Update libchrome APIS to r456626.
Hidehiko Abe [Wed, 13 Dec 2017 09:57:10 +0000 (18:57 +0900)]
bt: Update libchrome APIS to r456626.

The new libchrome has been ported from Chromium and some APIs
have changed. Make necessary changes at call sites.

Test: Build.
Change-Id: I4c904a9e8b76f1ee72e14d62740cb0d88963b270
Merged-In: I0cc2cf8521caf5f6f69346bb3ce3dc1c59b95cc6

6 years agoMerge "Add extra log message to print output codec config" am: 12389b46c9 am: 0fd99f4ea8
Pavlin Radoslavov [Sat, 16 Dec 2017 00:34:34 +0000 (00:34 +0000)]
Merge "Add extra log message to print output codec config" am: 12389b46c9 am: 0fd99f4ea8
am: 2cb872b7f4

Change-Id: I809a73687075be838fd20099ff4d01eff8f23d21

6 years agoMerge "Add extra log message to print output codec config" am: 12389b46c9
Pavlin Radoslavov [Sat, 16 Dec 2017 00:24:10 +0000 (00:24 +0000)]
Merge "Add extra log message to print output codec config" am: 12389b46c9
am: 0fd99f4ea8

Change-Id: I65e32750787564202ae4f1105cc94a4773c4ab6f

6 years agoMerge "Add extra log message to print output codec config"
Pavlin Radoslavov [Sat, 16 Dec 2017 00:20:15 +0000 (00:20 +0000)]
Merge "Add extra log message to print output codec config"
am: 12389b46c9

Change-Id: I11ba8ff9116754794153bd2d70436b7332259f54

6 years agoMerge "Add extra log message to print output codec config"
Treehugger Robot [Sat, 16 Dec 2017 00:09:34 +0000 (00:09 +0000)]
Merge "Add extra log message to print output codec config"

6 years agoMerge "HFP: Use do_in_jni_thread to avoid btif_transfer_context" am: 193c654fef am...
Jack He [Fri, 15 Dec 2017 19:23:26 +0000 (19:23 +0000)]
Merge "HFP: Use do_in_jni_thread to avoid btif_transfer_context" am: 193c654fef am: d6f7cbc080
am: 0f5855c262

Change-Id: Ia4d0085110030b3d9b6278afc0a98774fcf3e6f9

6 years agoMerge "HFP: Use do_in_jni_thread to avoid btif_transfer_context" am: 193c654fef
Jack He [Fri, 15 Dec 2017 19:20:54 +0000 (19:20 +0000)]
Merge "HFP: Use do_in_jni_thread to avoid btif_transfer_context" am: 193c654fef
am: d6f7cbc080

Change-Id: I6e1a9ac032fd2df387c2a61153a23f4d848da4dd

6 years agoMerge "HFP: Use do_in_jni_thread to avoid btif_transfer_context"
Jack He [Fri, 15 Dec 2017 19:17:50 +0000 (19:17 +0000)]
Merge "HFP: Use do_in_jni_thread to avoid btif_transfer_context"
am: 193c654fef

Change-Id: I765ef7fcb7dd358563f77a1f76058657297c54b6

6 years agoMerge "HFP: Use do_in_jni_thread to avoid btif_transfer_context"
Treehugger Robot [Fri, 15 Dec 2017 19:09:36 +0000 (19:09 +0000)]
Merge "HFP: Use do_in_jni_thread to avoid btif_transfer_context"

6 years agoHCI: Fix use after free in hci_transmit am: 199dee1f8c am: 396c0004b7
Myles Watson [Fri, 15 Dec 2017 02:30:02 +0000 (02:30 +0000)]
HCI: Fix use after free in hci_transmit am: 199dee1f8c am: 396c0004b7
am: 7c51911eb8

Change-Id: I0bd7f7513ba991956959df4cf35a1e39b1467f83

6 years agoHCI: Fix use after free in hci_transmit am: 199dee1f8c
Myles Watson [Fri, 15 Dec 2017 02:19:20 +0000 (02:19 +0000)]
HCI: Fix use after free in hci_transmit am: 199dee1f8c
am: 396c0004b7

Change-Id: I7d232248ed52210cb49407bab2cdb302f10cdaa2

6 years agoHCI: Fix use after free in hci_transmit
Myles Watson [Fri, 15 Dec 2017 02:07:20 +0000 (02:07 +0000)]
HCI: Fix use after free in hci_transmit
am: 199dee1f8c

Change-Id: I8e325585fb2b90246ed90db7797adab48d70530a

6 years agoAdd extra log message to print output codec config
Pavlin Radoslavov [Fri, 15 Dec 2017 00:35:28 +0000 (16:35 -0800)]
Add extra log message to print output codec config

Test: Code compilation and log observation
Change-Id: Iee41fe0566b1d635431a9535099a3601c8de11b6

6 years agoHCI: Fix use after free in hci_transmit
Myles Watson [Thu, 14 Dec 2017 20:20:40 +0000 (12:20 -0800)]
HCI: Fix use after free in hci_transmit

Bug: 70626623
Test: Sanity Bluetooth on/off
Change-Id: Ie8c857f8bdf3897fd3776772a4198bab823c6115

6 years agoHFP: Use do_in_jni_thread to avoid btif_transfer_context
Jack He [Tue, 12 Dec 2017 04:21:36 +0000 (20:21 -0800)]
HFP: Use do_in_jni_thread to avoid btif_transfer_context

* Use do_in_jni_thread and base::Bind() to pass callbacks to JNI thread
* Remove unnecessary code after the refactoring

Bug: 70538124
Test: make, conntect to HFP-enabled car kits
Change-Id: Iea8f19732d40bf40b056fea760ee5cf785a5812b

6 years agoMerge "btif_sock_rfc: Use %u for uint32_t" am: c30ff64348 am: 7efbdaf0dd
Yi Kong [Thu, 14 Dec 2017 21:54:07 +0000 (21:54 +0000)]
Merge "btif_sock_rfc: Use %u for uint32_t" am: c30ff64348 am: 7efbdaf0dd
am: d79e253306

Change-Id: Ic42e20f1deabb4ea597da9f019716edb96c2d91d

6 years agoMerge "btif_sock_rfc: Use %u for uint32_t" am: c30ff64348
Yi Kong [Thu, 14 Dec 2017 21:42:38 +0000 (21:42 +0000)]
Merge "btif_sock_rfc: Use %u for uint32_t" am: c30ff64348
am: 7efbdaf0dd

Change-Id: I2468a22c1ca37fde3b2d40f2df78fe48b1b3db03

6 years agoMerge "btif_sock_rfc: Use %u for uint32_t"
Yi Kong [Thu, 14 Dec 2017 21:40:06 +0000 (21:40 +0000)]
Merge "btif_sock_rfc: Use %u for uint32_t"
am: c30ff64348

Change-Id: I93406b27af75662f0d5f58b9438eeffa1c547f07

6 years agoMerge "btif_sock_rfc: Use %u for uint32_t"
Treehugger Robot [Thu, 14 Dec 2017 21:27:12 +0000 (21:27 +0000)]
Merge "btif_sock_rfc: Use %u for uint32_t"

6 years agoMerge "Fix Bluetooth crash on user switching" am: 7dba951c61 am: 0fdf1d9e45
Jakub Pawlowski [Thu, 14 Dec 2017 20:14:06 +0000 (20:14 +0000)]
Merge "Fix Bluetooth crash on user switching" am: 7dba951c61 am: 0fdf1d9e45
am: 646e27426c

Change-Id: I5c738b8218b284267f53029ae91cee65a3ec83a9

6 years agoFix GATT discovery service fail over BR/EDR am: b00872797a am: a2e11ccd58
Chao Quan [Thu, 14 Dec 2017 20:13:37 +0000 (20:13 +0000)]
Fix GATT discovery service fail over BR/EDR am: b00872797a am: a2e11ccd58
am: d81717e1e1

Change-Id: I93e6be464bf38889e1e26e0d0c9c23f0a50f5efb

6 years agoMerge "Fix Bluetooth crash on user switching" am: 7dba951c61
Jakub Pawlowski [Thu, 14 Dec 2017 20:04:02 +0000 (20:04 +0000)]
Merge "Fix Bluetooth crash on user switching" am: 7dba951c61
am: 0fdf1d9e45

Change-Id: Ie2cd358e7dc7762953e5562d0542876f0cb9215e

6 years agoFix GATT discovery service fail over BR/EDR am: b00872797a
Chao Quan [Thu, 14 Dec 2017 20:03:18 +0000 (20:03 +0000)]
Fix GATT discovery service fail over BR/EDR am: b00872797a
am: a2e11ccd58

Change-Id: Icfdc12c1b57e13852027be563a152990b3b4d599