OSDN Git Service

android-x86/system-bt.git
4 years ago[automerger skipped] DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463...
Xin Li [Wed, 14 Aug 2019 21:42:41 +0000 (14:42 -0700)]
[automerger skipped] DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463) in stage-aosp-master am: 26329923da -s ours am: e5b3d7a0a2
am: 214bf09b02

Change-Id: I6670ed16e1963e1e955d65f01eb122f24e1c12dc

4 years ago[automerger skipped] DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463...
Xin Li [Wed, 14 Aug 2019 21:08:43 +0000 (14:08 -0700)]
[automerger skipped] DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463) in stage-aosp-master am: 26329923da -s ours
am: e5b3d7a0a2

Change-Id: I83f9a3593b2a2fd846a5faa5595feb939e1522f4

4 years ago[automerger skipped] DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463...
Xin Li [Wed, 14 Aug 2019 20:39:31 +0000 (13:39 -0700)]
[automerger skipped] DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463) in stage-aosp-master
am: 26329923da -s ours
am skip reason: subject contains skip directive

Change-Id: Ie37ae5a9d68cfa60547d464c4d5f6be838158d2a

4 years agoDO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463) in stage-aosp-master
Xin Li [Wed, 14 Aug 2019 18:35:23 +0000 (11:35 -0700)]
DO NOT MERGE - Skip qt-dev-plus-aosp-without-vendor (5713463) in stage-aosp-master

Bug: 134405016
Change-Id: I513b6ae3eae7b6224d1b7a02ce6323642518f8e4

4 years agoL2CAP: ClassicFixedChannelAllocator am: 4eb5631e26 am: 6f5d1b2041 am: f2477ae3d9
Chris Manton [Wed, 14 Aug 2019 09:13:18 +0000 (02:13 -0700)]
L2CAP: ClassicFixedChannelAllocator am: 4eb5631e26 am: 6f5d1b2041 am: f2477ae3d9
am: 9ecf0c793b

Change-Id: I7f63dbe33c567efbd95ec4d48cc0a711ba480431

4 years agoL2CAP: ClassicFixedChannelAllocator am: 4eb5631e26 am: 6f5d1b2041
Chris Manton [Wed, 14 Aug 2019 08:58:10 +0000 (01:58 -0700)]
L2CAP: ClassicFixedChannelAllocator am: 4eb5631e26 am: 6f5d1b2041
am: f2477ae3d9

Change-Id: I58cf0a6b6d865f552954a274d8f5575b919f1bd3

4 years agoL2CAP: ClassicFixedChannelAllocator am: 4eb5631e26
Chris Manton [Wed, 14 Aug 2019 08:45:15 +0000 (01:45 -0700)]
L2CAP: ClassicFixedChannelAllocator am: 4eb5631e26
am: 6f5d1b2041

Change-Id: Ibfb83bb475ff7f096c08f8c141dfdc785733405e

4 years agoL2CAP: ClassicFixedChannelAllocator
Chris Manton [Wed, 14 Aug 2019 08:41:13 +0000 (01:41 -0700)]
L2CAP: ClassicFixedChannelAllocator
am: 4eb5631e26

Change-Id: Iaeb5cda4b61b25a414ffd5a0c6d8e8a5727712c6

4 years agoL2CAP classic fixed service manager am: 7be4ea7b3a am: 143db1f82a am: 1dd73f40ab
Chris Manton [Wed, 14 Aug 2019 02:01:50 +0000 (19:01 -0700)]
L2CAP classic fixed service manager am: 7be4ea7b3a am: 143db1f82a am: 1dd73f40ab
am: 6765cd7fe4

Change-Id: I5141744230803492493898c58a91b93e0c371416

4 years agoL2CAP classic fixed service manager am: 7be4ea7b3a am: 143db1f82a
Chris Manton [Wed, 14 Aug 2019 01:49:25 +0000 (18:49 -0700)]
L2CAP classic fixed service manager am: 7be4ea7b3a am: 143db1f82a
am: 1dd73f40ab

Change-Id: I49f0ac617b5038aa8a2d1e5f7b3259a1fb1b45ea

4 years agoL2CAP classic fixed service manager am: 7be4ea7b3a
Chris Manton [Wed, 14 Aug 2019 01:38:09 +0000 (18:38 -0700)]
L2CAP classic fixed service manager am: 7be4ea7b3a
am: 143db1f82a

Change-Id: I4731d17522722526532d1c5cf66e5fe9d2c99816

4 years agoL2CAP classic fixed service manager
Chris Manton [Wed, 14 Aug 2019 01:24:36 +0000 (18:24 -0700)]
L2CAP classic fixed service manager
am: 7be4ea7b3a

Change-Id: Ia1311b22d24c7589102983aab64f6d0048cb33e6

4 years agoL2CAP: ClassicFixedChannelAllocator
Chris Manton [Tue, 13 Aug 2019 21:45:06 +0000 (14:45 -0700)]
L2CAP: ClassicFixedChannelAllocator

This is a utility class for L2CAP link to manage channels

Test: bluetooth_test_gd
Bug: 138261142
Change-Id: I1adaaf29817371bb3f0e68d64f6aec3d3eea2c85

4 years agoL2CAP classic fixed service manager
Chris Manton [Tue, 30 Jul 2019 01:26:27 +0000 (18:26 -0700)]
L2CAP classic fixed service manager

Implement classic fixed channel service registration

Test: bluetooth_test_gd
Change-Id: Ic5d5b4543e88a0e4b9918f4583c5d115ef021cf0

4 years agoPDL: Save copies in packet builders am: c5fda6b45d am: 04d8f1cd3d am: 46ddb1ef37
Myles Watson [Mon, 12 Aug 2019 11:36:13 +0000 (04:36 -0700)]
PDL: Save copies in packet builders am: c5fda6b45d am: 04d8f1cd3d am: 46ddb1ef37
am: 42ce84340e

Change-Id: I8b17eb47f9f05bf17e5c91921ad6e8a3c2400151

4 years agoPDL: Save copies in packet builders am: c5fda6b45d am: 04d8f1cd3d
Myles Watson [Mon, 12 Aug 2019 11:27:35 +0000 (04:27 -0700)]
PDL: Save copies in packet builders am: c5fda6b45d am: 04d8f1cd3d
am: 46ddb1ef37

Change-Id: I40a86c100d52e0cbcdc6ac3ba78db4f2941d4920

4 years agoPDL: Save copies in packet builders am: c5fda6b45d
Myles Watson [Mon, 12 Aug 2019 11:20:03 +0000 (04:20 -0700)]
PDL: Save copies in packet builders am: c5fda6b45d
am: 04d8f1cd3d

Change-Id: I2d04a39e5ab1626b912a1d8f75f6de20eede7d9f

4 years agoPDL: Save copies in packet builders
Myles Watson [Mon, 12 Aug 2019 11:12:20 +0000 (04:12 -0700)]
PDL: Save copies in packet builders
am: c5fda6b45d

Change-Id: I71e8a0b35656af9b61a28de52b45882b79757bad

4 years agoPDL: Save copies in packet builders
Myles Watson [Mon, 12 Aug 2019 07:19:41 +0000 (00:19 -0700)]
PDL: Save copies in packet builders

Test: bluetooth_packet_parser_test
Change-Id: Ibf673a73109d003819445cb980d0fc85b1b7557c

4 years agoL2CAP: Add Classic Fixed Channel APIs am: b4b4a37ae1 am: 5fe483800d am: 0c3afec3d9
Jack He [Sat, 10 Aug 2019 03:28:45 +0000 (20:28 -0700)]
L2CAP: Add Classic Fixed Channel APIs am: b4b4a37ae1 am: 5fe483800d am: 0c3afec3d9
am: c32495ac8a

Change-Id: Ifa27e9e9505e52146c7a6d5bc0b7c0ec1285c7b3

4 years agoL2CAP: Add Classic Fixed Channel APIs am: b4b4a37ae1 am: 5fe483800d
Jack He [Sat, 10 Aug 2019 03:18:42 +0000 (20:18 -0700)]
L2CAP: Add Classic Fixed Channel APIs am: b4b4a37ae1 am: 5fe483800d
am: 0c3afec3d9

Change-Id: I18384932b90781cc50a38d51e8f2189065270605

4 years agoL2CAP: Add Classic Fixed Channel APIs am: b4b4a37ae1
Jack He [Sat, 10 Aug 2019 03:08:43 +0000 (20:08 -0700)]
L2CAP: Add Classic Fixed Channel APIs am: b4b4a37ae1
am: 5fe483800d

Change-Id: I7588e0514195790cd1ed551ab04c8936b9cec8a8

4 years agoL2CAP: Add Classic Fixed Channel APIs
Jack He [Sat, 10 Aug 2019 02:58:43 +0000 (19:58 -0700)]
L2CAP: Add Classic Fixed Channel APIs
am: b4b4a37ae1

Change-Id: Ie40b5210c2951e3350045495dc17eb00fcc8fb1e

4 years agoL2CAP: Add Classic Fixed Channel APIs
Jack He [Fri, 9 Aug 2019 22:10:44 +0000 (15:10 -0700)]
L2CAP: Add Classic Fixed Channel APIs

* Add ClassicFixedChannelManager
* Add ClassicFixedChannelService
* Add ClassicFixedChannel
* Modify cid and constants definition

Bug: 138261142
Test: bluetooth_test_gd
Change-Id: Iae4e398e938436c74d16b49834a4bd5146b03873

4 years agoMerge "PDL: Test fixed-size struct fields" am: b818515d99 am: 7cf4409eb7 am: 1c3a1a3688
Myles Watson [Thu, 8 Aug 2019 04:10:49 +0000 (21:10 -0700)]
Merge "PDL: Test fixed-size struct fields" am: b818515d99 am: 7cf4409eb7 am: 1c3a1a3688
am: b74faac4f6

Change-Id: I65ac551d28167d15833c2d313fe067d73090f245

4 years agoMerge "PDL: Test fixed-size struct fields" am: b818515d99 am: 7cf4409eb7
Myles Watson [Thu, 8 Aug 2019 03:58:45 +0000 (20:58 -0700)]
Merge "PDL: Test fixed-size struct fields" am: b818515d99 am: 7cf4409eb7
am: 1c3a1a3688

Change-Id: I476f744ffb9e8f7c60fcdc38da0fe6444009a67b

4 years agoMerge "PDL: Test fixed-size struct fields" am: b818515d99
Myles Watson [Thu, 8 Aug 2019 03:48:45 +0000 (20:48 -0700)]
Merge "PDL: Test fixed-size struct fields" am: b818515d99
am: 7cf4409eb7

Change-Id: Ie4cd4fd5adefd67859c21b5257775bc98661b4df

4 years agoMerge "PDL: Test fixed-size struct fields"
Myles Watson [Thu, 8 Aug 2019 03:38:45 +0000 (20:38 -0700)]
Merge "PDL: Test fixed-size struct fields"
am: b818515d99

Change-Id: I45eb5bd636e6b6cea778f539cdb0e241009566d4

4 years agoMerge "PDL: Test fixed-size struct fields"
Treehugger Robot [Thu, 8 Aug 2019 03:12:09 +0000 (03:12 +0000)]
Merge "PDL: Test fixed-size struct fields"

4 years agoMerge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent...
Cheney Ni [Thu, 8 Aug 2019 01:58:42 +0000 (18:58 -0700)]
Merge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent" am: 606974ddc8 am: e76a32b5da am: c6ce41e1c0
am: fb7b600d92

Change-Id: Ieb0b6854f4a3ec128c647bb78986ab7886d31bf0

4 years agoMerge "Do not config A2DP codec priorities before retrieving all capabilities" am...
Ugo Yu [Thu, 8 Aug 2019 01:58:08 +0000 (18:58 -0700)]
Merge "Do not config A2DP codec priorities before retrieving all capabilities" am: 1131fd98ba am: 9f421bfbe2 am: c66cc49ea7
am: 1805cb67e8

Change-Id: I87ee0d21ad22c546d1c05a242a58e6c01893e98c

4 years agoMerge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent...
Cheney Ni [Thu, 8 Aug 2019 01:50:18 +0000 (18:50 -0700)]
Merge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent" am: 606974ddc8 am: e76a32b5da
am: c6ce41e1c0

Change-Id: Ie78241d0d6b29cdee1f592eb8478dc8216931118

4 years agoMerge "Do not config A2DP codec priorities before retrieving all capabilities" am...
Ugo Yu [Thu, 8 Aug 2019 01:49:49 +0000 (18:49 -0700)]
Merge "Do not config A2DP codec priorities before retrieving all capabilities" am: 1131fd98ba am: 9f421bfbe2
am: c66cc49ea7

Change-Id: I7b35640c35ee00c91dd1bed5bd4486317adef94a

4 years agoMerge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent...
Cheney Ni [Thu, 8 Aug 2019 01:47:49 +0000 (18:47 -0700)]
Merge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent" am: 606974ddc8
am: e76a32b5da

Change-Id: Ib8dcda84973853bd237346c58767eaad06daf8a1

4 years agoMerge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent"
Cheney Ni [Thu, 8 Aug 2019 01:36:46 +0000 (18:36 -0700)]
Merge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent"
am: 606974ddc8

Change-Id: I2fc6c800687ed564bdaf611d53abc79f9d98b7ac

4 years agoMerge "Do not config A2DP codec priorities before retrieving all capabilities" am...
Ugo Yu [Thu, 8 Aug 2019 01:36:46 +0000 (18:36 -0700)]
Merge "Do not config A2DP codec priorities before retrieving all capabilities" am: 1131fd98ba
am: 9f421bfbe2

Change-Id: Ieffe8198fed4a961b06ea28472b5720fdc4a3ad7

4 years agoMerge "Do not config A2DP codec priorities before retrieving all capabilities"
Ugo Yu [Thu, 8 Aug 2019 01:26:48 +0000 (18:26 -0700)]
Merge "Do not config A2DP codec priorities before retrieving all capabilities"
am: 1131fd98ba

Change-Id: I0e7592d855f0f2d7fc97a19e8e23dfbb260169e6

4 years agoMerge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent"
Treehugger Robot [Thu, 8 Aug 2019 01:25:19 +0000 (01:25 +0000)]
Merge "BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent"

4 years agoMerge "Do not config A2DP codec priorities before retrieving all capabilities"
Treehugger Robot [Thu, 8 Aug 2019 00:51:32 +0000 (00:51 +0000)]
Merge "Do not config A2DP codec priorities before retrieving all capabilities"

4 years agoMerge "Fix the test case HCT BV-01-C" am: e28586ea5b am: 3af701229f am: 80cb85eee6
Zwei.chen [Wed, 7 Aug 2019 11:54:10 +0000 (04:54 -0700)]
Merge "Fix the test case HCT  BV-01-C" am: e28586ea5b am: 3af701229f am: 80cb85eee6
am: f558307b5f

Change-Id: I4c953cdc9c8d673faffc8c4034be56d6f50d012b

4 years agoMerge "Fix the test case HCT BV-01-C" am: e28586ea5b am: 3af701229f
Zwei.chen [Wed, 7 Aug 2019 11:43:08 +0000 (04:43 -0700)]
Merge "Fix the test case HCT  BV-01-C" am: e28586ea5b am: 3af701229f
am: 80cb85eee6

Change-Id: Ie726aa6969c9fb3131b1f22194146d76f9740ec3

4 years agoMerge "Fix the test case HCT BV-01-C" am: e28586ea5b
Zwei.chen [Wed, 7 Aug 2019 11:31:07 +0000 (04:31 -0700)]
Merge "Fix the test case HCT  BV-01-C" am: e28586ea5b
am: 3af701229f

Change-Id: Idff7070090cde4913675eea2f1b41bd92f39e118

4 years agoMerge "Fix the test case HCT BV-01-C"
Zwei.chen [Wed, 7 Aug 2019 11:20:24 +0000 (04:20 -0700)]
Merge "Fix the test case HCT  BV-01-C"
am: e28586ea5b

Change-Id: I1289d8c4802f673bfff967fbd38050ae8fbbd9ed

4 years agoMerge "Fix the test case HCT BV-01-C"
Treehugger Robot [Wed, 7 Aug 2019 10:35:28 +0000 (10:35 +0000)]
Merge "Fix the test case HCT  BV-01-C"

4 years agoPDL: Test fixed-size struct fields
Myles Watson [Wed, 7 Aug 2019 06:07:52 +0000 (23:07 -0700)]
PDL: Test fixed-size struct fields

Add an end_index for bounds checking fields, and use that instead
of subviews, to support extraction in struct Parse() functions.

Bug: 138260498
Test: bluetooth_packet_parser_test --gtest_filter=*FixedTypesStruct*
Change-Id: I1e6819aafdd31d53de046299e7d17fe7dd2de197

4 years agoBluetoothAudioHAL: Fix the latency and the number of frames were inconsistent
Cheney Ni [Thu, 1 Aug 2019 11:21:39 +0000 (19:21 +0800)]
BluetoothAudioHAL: Fix the latency and the number of frames were inconsistent

The Bluetooth Audio HAL uses 3 APIs to share the audio latency to
audioserver, so they can do the audio / video synchronization. Those
API's results have to be consistent in the presented number of frames,
and should be reset only when the output was re-opened. Because the HAL
queried information from the Bluetooth which might be reset after the
Bluetooth session restarted, and caused a conflict between current and
previous results. The media frameworks needed more works to be A/V
synchronous again, and users would see the video was frozen.

This CL checks the stack data, and there must be no big delta between
the stack and HAL, or one of them was ever reset, and needs to use local
counters instead.

Bug: 137978401
Test: Switch active device and codec manually
Change-Id: I35bffa834c0de2e8b36e99a96b4a70738cc2b639

4 years agoDo not config A2DP codec priorities before retrieving all capabilities
Ugo Yu [Fri, 15 Feb 2019 14:42:39 +0000 (22:42 +0800)]
Do not config A2DP codec priorities before retrieving all capabilities

* In current A2DP design, if Java A2DP service disabled optional
  codec and invoke native SetCodecUserConfig() while our get codec
  capabilities process is not finished, stack would raise SBC
  priority to 1000000 without notifying the remote device. This
  behavior would cause phone and the remote headset using different
  codec while A2DP streaming and lead to no sound problem.
* We should always check the codec capabilities status before changing
  the codec priority.

Bug: 124254557
Test: manual

Change-Id: I19693ecdd581836829c15ae37d579a4cb3ac0200

4 years agoFix the test case HCT BV-01-C
Zwei.chen [Wed, 5 Jun 2019 05:57:57 +0000 (13:57 +0800)]
Fix the test case HCT  BV-01-C

the value of p_dev->get_rpt_snt may become 255 after p_dev->get_rpt_snt--
if it happens to be 0

Bug: 138261469

4 years agoGD HCI: register events for gd test on device am: aa235aad54 am: 69dd908de8 am: 8f36c...
Chienyuan [Tue, 6 Aug 2019 16:51:13 +0000 (09:51 -0700)]
GD HCI: register events for gd test on device am: aa235aad54 am: 69dd908de8 am: 8f36cbdd59
am: 41dcb90546

Change-Id: I35670d04e3caf2ffafb014bf494a74f4a6fd47a5

4 years agoGD HCI: register events for gd test on device am: aa235aad54 am: 69dd908de8
Chienyuan [Tue, 6 Aug 2019 16:37:24 +0000 (09:37 -0700)]
GD HCI: register events for gd test on device am: aa235aad54 am: 69dd908de8
am: 8f36cbdd59

Change-Id: Icb11091e67e491444a6c03a60849f4376536358f

4 years agoGD HCI: register events for gd test on device am: aa235aad54
Chienyuan [Tue, 6 Aug 2019 16:30:20 +0000 (09:30 -0700)]
GD HCI: register events for gd test on device am: aa235aad54
am: 69dd908de8

Change-Id: Icd4a5bb124ef052d5a1a6a9d074b209a9dc2bf63

4 years agoGD HCI: register events for gd test on device
Chienyuan [Tue, 6 Aug 2019 16:21:49 +0000 (09:21 -0700)]
GD HCI: register events for gd test on device
am: aa235aad54

Change-Id: Ief033e7015a0d0ddcab5446ef1f64f9ad306b4e2

4 years agoGD HCI: register events for gd test on device
Chienyuan [Tue, 6 Aug 2019 08:39:20 +0000 (16:39 +0800)]
GD HCI: register events for gd test on device

Bug: 138260216
Test: run run_cert.sh
Change-Id: I7838fec1a7cfcc9a6e82830e81b7f9308f3654ce

4 years agoFix CoC not being able to establish first connection am: 3118cdcb90 am: a60959dac0...
Jakub Pawlowski [Tue, 6 Aug 2019 01:13:23 +0000 (18:13 -0700)]
Fix CoC not being able to establish first connection am: 3118cdcb90 am: a60959dac0 am: b7075f57c4
am: 78f4dc5960

Change-Id: I4734819aa807378e42c25deded246cab778c0930

4 years agoFix CoC not being able to establish first connection am: 3118cdcb90 am: a60959dac0
Jakub Pawlowski [Tue, 6 Aug 2019 01:06:53 +0000 (18:06 -0700)]
Fix CoC not being able to establish first connection am: 3118cdcb90 am: a60959dac0
am: b7075f57c4

Change-Id: I97b35b22ba8e16fe84d03caac1b86b2515be89ec

4 years agoFix CoC not being able to establish first connection am: 3118cdcb90
Jakub Pawlowski [Tue, 6 Aug 2019 00:59:50 +0000 (17:59 -0700)]
Fix CoC not being able to establish first connection am: 3118cdcb90
am: a60959dac0

Change-Id: I3a323934f0b2fc3454338d37b0d4009d71f567cd

4 years agoFix CoC not being able to establish first connection
Jakub Pawlowski [Tue, 6 Aug 2019 00:52:53 +0000 (17:52 -0700)]
Fix CoC not being able to establish first connection
am: 3118cdcb90

Change-Id: I3bfcb361c026808282780a179f14b529495cc6f6

4 years agoFix CoC not being able to establish first connection
Jakub Pawlowski [Mon, 5 Aug 2019 18:28:22 +0000 (20:28 +0200)]
Fix CoC not being able to establish first connection

When establishing conenction, we must know address type of the device we
connect to. We learn it during scan. We store this information in BTIF
layer, and later copy it into BTM if someone tries to make connection.

CoC code was not copying address type information between layers. This
caused us to use bad address type, which resulted in no connection being
created.

This patch fixes the issue, by making sure address type is properly
copied from BTIF into BTM

Test: acts BleCocTest
Bug: 133444088
Change-Id: I08609d92df245649882ad0b186a6080bff61a96e

4 years agoMerge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio...
Cheney Ni [Mon, 5 Aug 2019 09:34:21 +0000 (02:34 -0700)]
Merge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks by no devices" am: 8df3472243 am: 81b50f6b98 am: 5f5e3cbf09
am: 96561f701f

Change-Id: Iaf1a2fbd3ad751fa0aa89510fbcf54cc958e57b8

4 years agoMerge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio...
Cheney Ni [Mon, 5 Aug 2019 09:16:30 +0000 (02:16 -0700)]
Merge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks by no devices" am: 8df3472243 am: 81b50f6b98
am: 5f5e3cbf09

Change-Id: I2aae0452331cd3db078754c6c4b0284b30e32ddc

4 years agoMerge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio...
Cheney Ni [Mon, 5 Aug 2019 08:57:06 +0000 (01:57 -0700)]
Merge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks by no devices" am: 8df3472243
am: 81b50f6b98

Change-Id: Id812d975be82b687b166e122636d2634e6e50961

4 years agoMerge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio...
Cheney Ni [Mon, 5 Aug 2019 08:38:26 +0000 (01:38 -0700)]
Merge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks by no devices"
am: 8df3472243

Change-Id: I37d7dde72aaf66d7ca791c30d66a608eebac7c8a

4 years agoMerge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio...
Treehugger Robot [Mon, 5 Aug 2019 06:06:39 +0000 (06:06 +0000)]
Merge "Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks by no devices"

4 years agoModify log format am: 02d91afc68 am: 2b6c8c2ed4 am: dbdeaa5c2f
Jakub Pawlowski [Thu, 1 Aug 2019 22:15:45 +0000 (15:15 -0700)]
Modify log format am: 02d91afc68 am: 2b6c8c2ed4 am: dbdeaa5c2f
am: 8eb58ef6f9

Change-Id: Ia08852c5879c825276e61593deeb502d42cb8149

4 years agoModify log format am: 02d91afc68 am: 2b6c8c2ed4
Jakub Pawlowski [Thu, 1 Aug 2019 21:55:56 +0000 (14:55 -0700)]
Modify log format am: 02d91afc68 am: 2b6c8c2ed4
am: dbdeaa5c2f

Change-Id: I970236bd56eb334a4d14cba6e268a2f0e8d0a209

4 years agoModify log format am: 02d91afc68
Jakub Pawlowski [Thu, 1 Aug 2019 21:44:23 +0000 (14:44 -0700)]
Modify log format am: 02d91afc68
am: 2b6c8c2ed4

Change-Id: I17f860ffda43624dfbe081c95f262eddfc995a2e

4 years agoModify log format
Jakub Pawlowski [Thu, 1 Aug 2019 21:35:53 +0000 (14:35 -0700)]
Modify log format
am: 02d91afc68

Change-Id: I06af07140653cf7ddb04c48baf70b9607fca7aca

4 years agoModify log format
Jakub Pawlowski [Thu, 1 Aug 2019 17:39:50 +0000 (19:39 +0200)]
Modify log format

Always log file name and line number.
Instead of __PRETTY_FUNC_ use __func__ and log just the function name.
Logging full name with namespace, return value and parameters produces
unreadable gibberish.

This makes it easier to map log line to line that produced it.

Test: compile, look through the logs.
Change-Id: I3a72e8e498ded604fe61179191f1bc98b44c6a5c

4 years agoRootcanal: Allow using TCP port when TIME_WAIT am: 33a39edd25 am: c609a6e402 am:...
Hansong Zhang [Thu, 1 Aug 2019 05:07:06 +0000 (22:07 -0700)]
Rootcanal: Allow using TCP port when TIME_WAIT am: 33a39edd25 am: c609a6e402 am: 1aa297a2a7
am: 5f077f22b4

Change-Id: If7c4e18797a3203392b6991218f35dec68cf96ae

4 years agoRootcanal: Allow using TCP port when TIME_WAIT am: 33a39edd25 am: c609a6e402
Hansong Zhang [Thu, 1 Aug 2019 04:55:00 +0000 (21:55 -0700)]
Rootcanal: Allow using TCP port when TIME_WAIT am: 33a39edd25 am: c609a6e402
am: 1aa297a2a7

Change-Id: I2c578fa3dfcdc0884421fd7a6d660183d9998c58

4 years agoL2CAP: Add L2CAP Module am: fcb2bbfa76 am: 82e1e4ac57 am: 6ea41dda15
Jack He [Thu, 1 Aug 2019 04:54:59 +0000 (21:54 -0700)]
L2CAP: Add L2CAP Module am: fcb2bbfa76 am: 82e1e4ac57 am: 6ea41dda15
am: cdae3aad7e

Change-Id: Iec16cdde11b207d50b78c654e44b6f839c1406b6

4 years agoRootcanal: Allow using TCP port when TIME_WAIT am: 33a39edd25
Hansong Zhang [Thu, 1 Aug 2019 04:45:32 +0000 (21:45 -0700)]
Rootcanal: Allow using TCP port when TIME_WAIT am: 33a39edd25
am: c609a6e402

Change-Id: I6e6c245ca5d4f8e1e92d0341ff475edccf6e210d

4 years agoL2CAP: Add L2CAP Module am: fcb2bbfa76 am: 82e1e4ac57
Jack He [Thu, 1 Aug 2019 04:44:29 +0000 (21:44 -0700)]
L2CAP: Add L2CAP Module am: fcb2bbfa76 am: 82e1e4ac57
am: 6ea41dda15

Change-Id: Icb5df6aab0b2d3fb2078a0636e622e792341d33f

4 years agoRootcanal: Allow using TCP port when TIME_WAIT
Hansong Zhang [Thu, 1 Aug 2019 04:33:28 +0000 (21:33 -0700)]
Rootcanal: Allow using TCP port when TIME_WAIT
am: 33a39edd25

Change-Id: If56e88c68ed6bb7bc4a45b52d7fa9027c9972e4a

4 years agoL2CAP: Add L2CAP Module am: fcb2bbfa76
Jack He [Thu, 1 Aug 2019 04:33:28 +0000 (21:33 -0700)]
L2CAP: Add L2CAP Module am: fcb2bbfa76
am: 82e1e4ac57

Change-Id: I1985d9ae5e38330e48f4639a595ab60af0943306

4 years agoL2CAP: Add L2CAP Module
Jack He [Thu, 1 Aug 2019 04:22:26 +0000 (21:22 -0700)]
L2CAP: Add L2CAP Module
am: fcb2bbfa76

Change-Id: I794fb1e289ac44a5badb07a46f0afe2f716fb25b

4 years agoRootcanal: Allow using TCP port when TIME_WAIT
Hansong Zhang [Thu, 1 Aug 2019 01:04:25 +0000 (18:04 -0700)]
Rootcanal: Allow using TCP port when TIME_WAIT

Test: cert/run_cert.sh
Change-Id: I473add448fcd167f6e33b34281298c69a831d733

4 years agoL2CAP: Add L2CAP Module
Jack He [Wed, 31 Jul 2019 22:44:05 +0000 (15:44 -0700)]
L2CAP: Add L2CAP Module

* Add an empty L2CAP module
* Add facades for L2CAP module
* Add cert facades for L2CAP module
* Add SimpleL2CapTest to run_cert.sh

Test: cert/run_cert.h
Change-Id: I00b3fe1bfb6e72dbbf1ca441ceed7dd4d62afb26

4 years agoMerge "AVRCP Controller Shuffle/Repeat support" am: 8074a57ca9 am: a90cc09a01 am...
Joseph Pirozzo [Wed, 31 Jul 2019 23:09:17 +0000 (16:09 -0700)]
Merge "AVRCP Controller Shuffle/Repeat support" am: 8074a57ca9 am: a90cc09a01 am: 2b7b3fecdf
am: cb0d3781fd

Change-Id: I27165b4bfc4abead2db6c6eb6024fa8b11be1bc5

4 years agoMerge "AVRCP Controller Shuffle/Repeat support" am: 8074a57ca9 am: a90cc09a01
Joseph Pirozzo [Wed, 31 Jul 2019 22:51:21 +0000 (15:51 -0700)]
Merge "AVRCP Controller Shuffle/Repeat support" am: 8074a57ca9 am: a90cc09a01
am: 2b7b3fecdf

Change-Id: I9a7d8239587d3e39e544d69756ee70c88faf3035

4 years agoMerge "AVRCP Controller Shuffle/Repeat support" am: 8074a57ca9
Joseph Pirozzo [Wed, 31 Jul 2019 22:42:52 +0000 (15:42 -0700)]
Merge "AVRCP Controller Shuffle/Repeat support" am: 8074a57ca9
am: a90cc09a01

Change-Id: Ic37c0bdc7e42e0f8f62d67ecb1685031c9cbdbca

4 years agoMerge "AVRCP Controller Shuffle/Repeat support"
Joseph Pirozzo [Wed, 31 Jul 2019 22:18:59 +0000 (15:18 -0700)]
Merge "AVRCP Controller Shuffle/Repeat support"
am: 8074a57ca9

Change-Id: Ia812910183625cc3c9628d55951df291de405cd1

4 years agoMerge "AVRCP Controller Shuffle/Repeat support"
Joseph Pirozzo [Wed, 31 Jul 2019 21:27:26 +0000 (21:27 +0000)]
Merge "AVRCP Controller Shuffle/Repeat support"

4 years agoHCI: Use futures to wait for packets in tests am: cad5ded518 am: 8b286382b8 am: a87e9...
Myles Watson [Wed, 31 Jul 2019 01:01:52 +0000 (18:01 -0700)]
HCI: Use futures to wait for packets in tests am: cad5ded518 am: 8b286382b8 am: a87e95d8bd
am: cc337fdd4f

Change-Id: Iea14c1bbb8d6f8beff35f586936e49652acdee5b

4 years agoHCI: Use futures to wait for packets in tests am: cad5ded518 am: 8b286382b8
Myles Watson [Wed, 31 Jul 2019 00:51:55 +0000 (17:51 -0700)]
HCI: Use futures to wait for packets in tests am: cad5ded518 am: 8b286382b8
am: a87e95d8bd

Change-Id: Ie1910ac4ed6511d0bac5aa08ab3a6134552b9ca2

4 years agoHCI: Use futures to wait for packets in tests am: cad5ded518
Myles Watson [Wed, 31 Jul 2019 00:40:16 +0000 (17:40 -0700)]
HCI: Use futures to wait for packets in tests am: cad5ded518
am: 8b286382b8

Change-Id: I61a44843024f48f01d630f3abb596ba5d90f7d24

4 years agoHCI: Use futures to wait for packets in tests
Myles Watson [Wed, 31 Jul 2019 00:24:57 +0000 (17:24 -0700)]
HCI: Use futures to wait for packets in tests
am: cad5ded518

Change-Id: I23f6b1b1cd6e48a077aaedf2fb697dc497dd5653

4 years agoHCI: Use futures to wait for packets in tests
Myles Watson [Thu, 25 Jul 2019 23:28:35 +0000 (16:28 -0700)]
HCI: Use futures to wait for packets in tests

Test: bluetooth_gd_test on a device
Change-Id: I3e61b83df47204380398646350b90c3f63734bca

4 years agoAVRCP Controller Shuffle/Repeat support
Joseph Pirozzo [Fri, 26 Jul 2019 19:26:01 +0000 (12:26 -0700)]
AVRCP Controller Shuffle/Repeat support

Fetch player settings when the addressed player changes.

Bug: 72495707
Test: AvrcpControllerStateMachineTest#testShuffle
      AvrcpControllerStateMachineTest#testRepeat

Change-Id: I4df1f130dafb96708ec7a0a2c13c776affcc6318

4 years agoMerge "HCI: Print unhandled event type" am: b9211ab38d am: f439a7d6ff am: 427cdfc1c0
Myles Watson [Fri, 26 Jul 2019 05:57:52 +0000 (22:57 -0700)]
Merge "HCI: Print unhandled event type" am: b9211ab38d am: f439a7d6ff am: 427cdfc1c0
am: 8de5fa3316

Change-Id: Idb52292042d50e23f8f27948a36865554bf9c868

4 years agoMerge "HCI: Print unhandled event type" am: b9211ab38d am: f439a7d6ff
Myles Watson [Fri, 26 Jul 2019 05:46:52 +0000 (22:46 -0700)]
Merge "HCI: Print unhandled event type" am: b9211ab38d am: f439a7d6ff
am: 427cdfc1c0

Change-Id: I9924a23a0ced9c94a5c0418efe77f2daf1ec3eb2

4 years agoMerge "HCI: Print unhandled event type" am: b9211ab38d
Myles Watson [Fri, 26 Jul 2019 05:35:52 +0000 (22:35 -0700)]
Merge "HCI: Print unhandled event type" am: b9211ab38d
am: f439a7d6ff

Change-Id: I023df00980ff30e1482455007d2086b49db30182

4 years agoMerge "HCI: Print unhandled event type"
Myles Watson [Fri, 26 Jul 2019 05:25:11 +0000 (22:25 -0700)]
Merge "HCI: Print unhandled event type"
am: b9211ab38d

Change-Id: Iffaca77ec0edbe2d645645e69850c1e48892bffd

4 years agoMerge "HCI: Print unhandled event type"
Treehugger Robot [Fri, 26 Jul 2019 05:07:25 +0000 (05:07 +0000)]
Merge "HCI: Print unhandled event type"

4 years agoCert: Run on device am: 486b6a72a5 am: f0a400f398 am: cf1cbf3117
Hansong Zhang [Fri, 26 Jul 2019 01:59:03 +0000 (18:59 -0700)]
Cert: Run on device am: 486b6a72a5 am: f0a400f398 am: cf1cbf3117
am: 064f71c4aa

Change-Id: I83ff9f2484bc092462f986448b88fe0996725151

4 years agoCert: Run on device am: 486b6a72a5 am: f0a400f398
Hansong Zhang [Fri, 26 Jul 2019 01:35:10 +0000 (18:35 -0700)]
Cert: Run on device am: 486b6a72a5 am: f0a400f398
am: cf1cbf3117

Change-Id: I983a070be6021770b9da0e8c2c0ed3aab19bbb6c

4 years agoCert: Run on device am: 486b6a72a5
Hansong Zhang [Fri, 26 Jul 2019 01:24:06 +0000 (18:24 -0700)]
Cert: Run on device am: 486b6a72a5
am: f0a400f398

Change-Id: I01414dc7be852788479a6bd62eddaf6a4f9c09ad

4 years agoCert: Run on device
Hansong Zhang [Fri, 26 Jul 2019 01:01:04 +0000 (18:01 -0700)]
Cert: Run on device
am: 486b6a72a5

Change-Id: Iadf4731f08166f9bce0e25ff77fe05854bea9acc

4 years agoHCI: Print unhandled event type
Myles Watson [Thu, 25 Jul 2019 22:52:55 +0000 (15:52 -0700)]
HCI: Print unhandled event type

Test: send unhandled event
Change-Id: Iafdf004609cae4e15861664eb8e430e263655250

4 years agoMerge "HCI: Wait for commands using std::future" am: 3388ba9bbc am: 0e744410a1 am...
Myles Watson [Thu, 25 Jul 2019 20:23:53 +0000 (13:23 -0700)]
Merge "HCI: Wait for commands using std::future" am: 3388ba9bbc am: 0e744410a1 am: 686e8e5d77
am: 5cf7b26b23

Change-Id: I5e4fb0d22ae3a6a67e80f02975540c74ee448f4b