OSDN Git Service

android-x86/system-bt.git
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
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 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
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
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
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
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
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
Myles Watson [Thu, 25 Jul 2019 19:55:42 +0000 (12:55 -0700)]
Merge "HCI: Wait for commands using std::future" am: 3388ba9bbc
am: 0e744410a1

Change-Id: I71d71fabe48952855acff4c7321c212c0fb9599b

4 years agoCert: Run on device
Hansong Zhang [Wed, 24 Jul 2019 22:21:23 +0000 (15:21 -0700)]
Cert: Run on device

Add a sample device_config.json to allow cert testing on device.

1. Fill in Android device serial number in device_config.json.
2. Build device target for libbluetooth_gd, libgrpc++_unsecure,
stack_with_facade, and bluetooth_cert_stack. Push them to the device
under /system/lib64 and /system/bin correspondingly.
3. Set up Android tcp forward and reverse
   - For DUT:
     adb -s <DUT> forward tcp:8899 tcp:8899
     adb -s <DUT> forward tcp:8897 tcp:8897
     adb -s <DUT> reverse tcp:8895 tcp:8895 <- host is the server
   - For CERT:
     adb -s <DUT> forward tcp:8898 tcp:8898
     adb -s <DUT> forward tcp:8896 tcp:8896
     adb -s <DUT> reverse tcp:8894 tcp:8884 <- Host is the server
4. Run cert/run_device_cert.sh

Bug: 138260216
Test: cert/run_device_cert.sh
Change-Id: Ic2921a31910e370d86c4aa4143e92b5b15d8a1e8

4 years agoMerge "HCI: Wait for commands using std::future"
Myles Watson [Thu, 25 Jul 2019 19:47:35 +0000 (12:47 -0700)]
Merge "HCI: Wait for commands using std::future"
am: 3388ba9bbc

Change-Id: Ie314fc89eed1868b01f494b33f5c3f5898483abc

4 years agoMerge "HCI: Wait for commands using std::future"
Treehugger Robot [Thu, 25 Jul 2019 19:23:30 +0000 (19:23 +0000)]
Merge "HCI: Wait for commands using std::future"

4 years agoMerge "HAL cert and facade: Unregister HCI on shutdown" am: 7145059a37
Hansong Zhang [Thu, 25 Jul 2019 18:22:51 +0000 (11:22 -0700)]
Merge "HAL cert and facade: Unregister HCI on shutdown" am: 7145059a37
am: 8b5ae26cc0

Change-Id: I773eaf302d269e32e6399ed182964af5be778630

4 years agoMerge "HAL cert and facade: Unregister HCI on shutdown"
Hansong Zhang [Thu, 25 Jul 2019 18:12:56 +0000 (11:12 -0700)]
Merge "HAL cert and facade: Unregister HCI on shutdown"
am: 7145059a37

Change-Id: I8034f577f6d12a92fc2c433b54fdf2bd1e53c244

4 years agoMerge "HAL cert and facade: Unregister HCI on shutdown"
Treehugger Robot [Thu, 25 Jul 2019 17:27:54 +0000 (17:27 +0000)]
Merge "HAL cert and facade: Unregister HCI on shutdown"

4 years agoHCI: Wait for commands using std::future
Myles Watson [Wed, 24 Jul 2019 19:59:01 +0000 (12:59 -0700)]
HCI: Wait for commands using std::future

Test: bluetooth_test_gd --gtest_filter=*AclMan* on a device
Change-Id: I915242546efdfaf6553e36cbe19a37290435991b

4 years agoMerge "OS: Account for enqueue/dequeue race" am: 0fa25c6e8f
Myles Watson [Thu, 25 Jul 2019 13:55:46 +0000 (06:55 -0700)]
Merge "OS: Account for enqueue/dequeue race" am: 0fa25c6e8f
am: 27aa670e91

Change-Id: I5e726176ad490997c5abb7e18738adc79bb1d1fc

4 years agoMerge "OS: Account for enqueue/dequeue race"
Myles Watson [Thu, 25 Jul 2019 13:44:46 +0000 (06:44 -0700)]
Merge "OS: Account for enqueue/dequeue race"
am: 0fa25c6e8f

Change-Id: I2c139ed7ab8c49ab5ec3c9b56a83333c9a2ef893

4 years agoMerge "OS: Account for enqueue/dequeue race"
Treehugger Robot [Thu, 25 Jul 2019 13:23:38 +0000 (13:23 +0000)]
Merge "OS: Account for enqueue/dequeue race"

4 years agoOS: Account for enqueue/dequeue race
Myles Watson [Wed, 24 Jul 2019 00:17:47 +0000 (17:17 -0700)]
OS: Account for enqueue/dequeue race

Test: on-device: bluetooth_test_gd --gtest_filter=*Queue*
Change-Id: I3429e35ebd9a98f1054e40e9507995daeae35c65

4 years agoMerge "PDL: Use GenBounds for Structs" am: a9a37cf504
Myles Watson [Thu, 25 Jul 2019 07:09:12 +0000 (00:09 -0700)]
Merge "PDL: Use GenBounds for Structs" am: a9a37cf504
am: b37b873e60

Change-Id: I772841d0dc8e91a0c5ccdebf33d4e273bdb2bf30

4 years agoMerge "PDL: Use GenBounds for Structs"
Myles Watson [Thu, 25 Jul 2019 07:00:14 +0000 (00:00 -0700)]
Merge "PDL: Use GenBounds for Structs"
am: a9a37cf504

Change-Id: Ic3cb61103a863b0b7f64202ee1edd25cd5e11986

4 years agoMerge "PDL: Use GenBounds for Structs"
Treehugger Robot [Thu, 25 Jul 2019 06:19:27 +0000 (06:19 +0000)]
Merge "PDL: Use GenBounds for Structs"

5 years agoPDL: Use GenBounds for Structs
Myles Watson [Wed, 24 Jul 2019 22:52:33 +0000 (15:52 -0700)]
PDL: Use GenBounds for Structs

Test: bluetooth_packet_parser_test
Change-Id: Ibb6e7bd441b8fd19f17818dc74ac4aff10b519a4

5 years agoHAL cert and facade: Unregister HCI on shutdown
Hansong Zhang [Wed, 24 Jul 2019 22:33:35 +0000 (15:33 -0700)]
HAL cert and facade: Unregister HCI on shutdown

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

5 years agoMerge "Support vendor AT command and response for Hfp Client in bt stack" am: 5b2eb835ac
Deqiang Chen [Wed, 24 Jul 2019 21:50:26 +0000 (14:50 -0700)]
Merge "Support vendor AT command and response for Hfp Client in bt stack" am: 5b2eb835ac
am: 86736a84fa

Change-Id: I1c2b6d9e24ddd85dd8e5c9196092cef6bed0de4c

5 years agoMerge "Support vendor AT command and response for Hfp Client in bt stack"
Deqiang Chen [Wed, 24 Jul 2019 21:28:15 +0000 (14:28 -0700)]
Merge "Support vendor AT command and response for Hfp Client in bt stack"
am: 5b2eb835ac

Change-Id: Ifd860114ad0c7d76388a146c21c1c9214b0dc9b7

5 years agoMerge "Support vendor AT command and response for Hfp Client in bt stack"
Deqiang Chen [Wed, 24 Jul 2019 21:04:55 +0000 (21:04 +0000)]
Merge "Support vendor AT command and response for Hfp Client in bt stack"

5 years agoCert signal server: Use TCP instead of UNIX socket am: defcdca4ee
Hansong Zhang [Wed, 24 Jul 2019 19:38:45 +0000 (12:38 -0700)]
Cert signal server: Use TCP instead of UNIX socket am: defcdca4ee
am: 8d1e8f334f

Change-Id: Ia2b8c6f8010d564e541552ff397b84d4b46e1c83

5 years agoCert signal server: Use TCP instead of UNIX socket
Hansong Zhang [Wed, 24 Jul 2019 19:27:41 +0000 (12:27 -0700)]
Cert signal server: Use TCP instead of UNIX socket
am: defcdca4ee

Change-Id: I64fc300263102e366d1e7808c457ed5aa7cab22e

5 years agoCert signal server: Use TCP instead of UNIX socket
Hansong Zhang [Wed, 24 Jul 2019 16:29:07 +0000 (09:29 -0700)]
Cert signal server: Use TCP instead of UNIX socket

Since we want to run the stacks on the phone, we need to use TCP socket
and set up TCP forwarding to run the test.

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

5 years agoMerge "PDL: Add Structs" am: df2d6a5ac4
Jakub Pawlowski [Wed, 24 Jul 2019 08:13:53 +0000 (01:13 -0700)]
Merge "PDL: Add Structs" am: df2d6a5ac4
am: c2b170a7a2

Change-Id: I3255424c404ffd269780004368c7319bb79f32a4

5 years agoMerge "PDL: Add Structs"
Jakub Pawlowski [Wed, 24 Jul 2019 07:56:50 +0000 (00:56 -0700)]
Merge "PDL: Add Structs"
am: df2d6a5ac4

Change-Id: I59078b063e01f04e9b87c2248dc4b93115af2d5b

5 years agoMerge "PDL: Add Structs"
Jakub Pawlowski [Wed, 24 Jul 2019 07:40:21 +0000 (07:40 +0000)]
Merge "PDL: Add Structs"

5 years agoMerge "OS: Get promise before registering in tests" am: 3edb0f069e
Myles Watson [Wed, 24 Jul 2019 03:11:18 +0000 (20:11 -0700)]
Merge "OS: Get promise before registering in tests" am: 3edb0f069e
am: 0210bd679a

Change-Id: I0455c9dcd897691ca4313dcf7a94b84434cad707

5 years agoMerge "OS: Get promise before registering in tests"
Myles Watson [Wed, 24 Jul 2019 03:01:25 +0000 (20:01 -0700)]
Merge "OS: Get promise before registering in tests"
am: 3edb0f069e

Change-Id: I518e0a718a4b7b54051b03061d2c50fea0330694

5 years agoMerge "OS: Get promise before registering in tests"
Treehugger Robot [Wed, 24 Jul 2019 02:38:30 +0000 (02:38 +0000)]
Merge "OS: Get promise before registering in tests"

5 years agoMerge "OS: Use LOG_ALWAYS_FATAL for Android" am: ff41bee660
Myles Watson [Wed, 24 Jul 2019 00:19:38 +0000 (17:19 -0700)]
Merge "OS: Use LOG_ALWAYS_FATAL for Android" am: ff41bee660
am: 508c8a11f4

Change-Id: I9cb7068f9e2a61c1a294659a993ccd479bd24f12

5 years agoPDL: Add Structs
Myles Watson [Wed, 6 Feb 2019 22:02:36 +0000 (14:02 -0800)]
PDL: Add Structs

Test: bluetooth_packet_parser_test
Change-Id: I2d0288aa4e62589dd03d93a1b47ce0585584cab5

5 years agoOS: Get promise before registering in tests
Myles Watson [Wed, 24 Jul 2019 00:10:11 +0000 (17:10 -0700)]
OS: Get promise before registering in tests

https://cplusplus.github.io/LWG/issue2412

Test: on-device: bluetooth_test_gd --gtest_filter=*Queue*
Change-Id: I2603763ea6c9197ed56f741b2beb100c1a9b8e19

5 years agoMerge "OS: Use LOG_ALWAYS_FATAL for Android"
Myles Watson [Wed, 24 Jul 2019 00:10:04 +0000 (17:10 -0700)]
Merge "OS: Use LOG_ALWAYS_FATAL for Android"
am: ff41bee660

Change-Id: Ida4de285e9a95edda049e5491f8292af7a4a4c15

5 years agoMerge "OS: Use LOG_ALWAYS_FATAL for Android"
Treehugger Robot [Tue, 23 Jul 2019 23:50:38 +0000 (23:50 +0000)]
Merge "OS: Use LOG_ALWAYS_FATAL for Android"

5 years agoMerge "Split ARRAY into fixed size ARRAY and VECTOR" am: a413eb0d55
Jakub Pawlowski [Tue, 23 Jul 2019 22:53:38 +0000 (15:53 -0700)]
Merge "Split ARRAY into fixed size ARRAY and VECTOR" am: a413eb0d55
am: a4c73062d9

Change-Id: If1315c2e18fb4d22d422b4201ff96aafd3530a89

5 years agoMerge "Split ARRAY into fixed size ARRAY and VECTOR"
Jakub Pawlowski [Tue, 23 Jul 2019 22:41:44 +0000 (15:41 -0700)]
Merge "Split ARRAY into fixed size ARRAY and VECTOR"
am: a413eb0d55

Change-Id: I15a615f553228515bb56ff25eb72dce1f86fcec5

5 years agoMerge "Split ARRAY into fixed size ARRAY and VECTOR"
Treehugger Robot [Tue, 23 Jul 2019 22:24:12 +0000 (22:24 +0000)]
Merge "Split ARRAY into fixed size ARRAY and VECTOR"

5 years agoOS: Use LOG_ALWAYS_FATAL for Android
Myles Watson [Tue, 23 Jul 2019 20:35:40 +0000 (13:35 -0700)]
OS: Use LOG_ALWAYS_FATAL for Android

Test: bluetooth_test_gd --gtest_filter=*Death*
Change-Id: I0aa4e85a7fd000eb90c65c51d3ac372634583c69

5 years agoSplit ARRAY into fixed size ARRAY and VECTOR
Jakub Pawlowski [Fri, 19 Jul 2019 12:51:50 +0000 (14:51 +0200)]
Split ARRAY into fixed size ARRAY and VECTOR

Test: bluetooth_packet_parser_test
Change-Id: I438d7583fdb99054528b99a3a3a12ec58d115cb3

5 years agoRemove unnecessary include_dirs am: 2e78b34dc2
Paul Duffin [Tue, 23 Jul 2019 13:22:35 +0000 (06:22 -0700)]
Remove unnecessary include_dirs am: 2e78b34dc2
am: 7921fb16bf

Change-Id: I22f57fd5ff16b4bb06dcde779ac5a6508cc4127f

5 years agoRemove unnecessary include_dirs
Paul Duffin [Tue, 23 Jul 2019 13:13:33 +0000 (06:13 -0700)]
Remove unnecessary include_dirs
am: 2e78b34dc2

Change-Id: I0f84ab8cf140eca9d19f85d53c8697c88e144801

5 years agoRemove unnecessary include_dirs
Paul Duffin [Tue, 23 Jul 2019 09:36:10 +0000 (10:36 +0100)]
Remove unnecessary include_dirs

The header directory specified in the include_dirs property is already
included via the header_libs property.

Test: m avrcp_headers
Change-Id: Id3af155e64127c5bc14a17780fa77a4c6147e5d8

5 years agoMerge "Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B" am:...
Zongheng Wang [Mon, 22 Jul 2019 23:56:51 +0000 (16:56 -0700)]
Merge "Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B" am: b185bdefe3
am: c173b8d98d

Change-Id: I1b8522118fdfac96a19505b98a362ee4d31a4615

5 years agoMerge "Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B"
Zongheng Wang [Mon, 22 Jul 2019 23:40:34 +0000 (16:40 -0700)]
Merge "Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B"
am: b185bdefe3

Change-Id: Ica5d6128c9bf0a248a257698b9078703ac04cfe9

5 years agoMerge "Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B"
Treehugger Robot [Mon, 22 Jul 2019 23:30:41 +0000 (23:30 +0000)]
Merge "Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B"

5 years agoMerge "L2CAP: Cid, Mtu, SignalId type and constant" am: 5cc572ebe4
Chris Manton [Mon, 22 Jul 2019 22:57:35 +0000 (15:57 -0700)]
Merge "L2CAP: Cid, Mtu, SignalId type and constant" am: 5cc572ebe4
am: 052e2e6b4a

Change-Id: I77ba5716587defa83ff98c6cd79c76b7a5e74db5

5 years agoPDL: Extract CustomFieldFixedSize am: cff15c1724
Myles Watson [Mon, 22 Jul 2019 22:57:00 +0000 (15:57 -0700)]
PDL: Extract CustomFieldFixedSize am: cff15c1724
am: 3788a37fcf

Change-Id: I2b6f2e5fa87836d6265323c4466ec3e833ec5eb4

5 years agoPDL: Add GenExtractor functions to fields am: cbfe6cf599
Myles Watson [Mon, 22 Jul 2019 22:56:54 +0000 (15:56 -0700)]
PDL: Add GenExtractor functions to fields am: cbfe6cf599
am: d6cd3e8401

Change-Id: I5eddc8b76eb6caf6e357c2c7b5b8d74a42f3af1f

5 years agoMerge "L2CAP: Cid, Mtu, SignalId type and constant"
Chris Manton [Mon, 22 Jul 2019 22:47:29 +0000 (15:47 -0700)]
Merge "L2CAP: Cid, Mtu, SignalId type and constant"
am: 5cc572ebe4

Change-Id: I3a63d7a11ebbe98c1b7e278a8e121c73a7ff263f

5 years agoPDL: Extract CustomFieldFixedSize
Myles Watson [Mon, 22 Jul 2019 22:46:47 +0000 (15:46 -0700)]
PDL: Extract CustomFieldFixedSize
am: cff15c1724

Change-Id: Iece7efa42bcad1408dcf38ee271c2cb639d37d6f

5 years agoPDL: Add GenExtractor functions to fields
Myles Watson [Mon, 22 Jul 2019 22:46:43 +0000 (15:46 -0700)]
PDL: Add GenExtractor functions to fields
am: cbfe6cf599

Change-Id: I693c40f07ada6843826b4f98bfa85547bfbb57c0

5 years agoMerge "L2CAP: Cid, Mtu, SignalId type and constant"
Treehugger Robot [Mon, 22 Jul 2019 22:27:55 +0000 (22:27 +0000)]
Merge "L2CAP: Cid, Mtu, SignalId type and constant"

5 years agoPDL: Separate member and parameters for arrays am: 835bf7b516
Myles Watson [Mon, 22 Jul 2019 22:04:56 +0000 (15:04 -0700)]
PDL: Separate member and parameters for arrays am: 835bf7b516
am: 8103b5ea7d

Change-Id: If7d1853ac9f748bb8fa5a4262f09541a27e68bfa

5 years agoPDL: Separate member and parameters for arrays
Myles Watson [Mon, 22 Jul 2019 21:52:56 +0000 (14:52 -0700)]
PDL: Separate member and parameters for arrays
am: 835bf7b516

Change-Id: I87195571cd4c7ca02d959137cbc5c4037e90cc94

5 years agoPDL: Extract CustomFieldFixedSize
Myles Watson [Fri, 19 Jul 2019 23:07:36 +0000 (16:07 -0700)]
PDL: Extract CustomFieldFixedSize

Test: bluetooth_packet_parser_test
Change-Id: Ia93442ca1cc173d0b6c813a45c722f14d2f34fa0

5 years agoPDL: Add GenExtractor functions to fields
Myles Watson [Tue, 16 Jul 2019 16:50:23 +0000 (09:50 -0700)]
PDL: Add GenExtractor functions to fields

Test: bluetooth_packet_parser_test
Change-Id: I6ee3ae82e8e7949f0fd30dfae6f322dcc4769190

5 years agoPDL: Separate member and parameters for arrays
Myles Watson [Wed, 17 Jul 2019 20:17:24 +0000 (13:17 -0700)]
PDL: Separate member and parameters for arrays

Test: bluetooth_packet_parser_test
Change-Id: I7c23d29548d63f7c1e23281585b10fd9f43bdad4

5 years agoPDL: Factor out insert functions am: e7d1e71984
Myles Watson [Mon, 22 Jul 2019 19:03:42 +0000 (12:03 -0700)]
PDL: Factor out insert functions am: e7d1e71984
am: 38477e7138

Change-Id: I3db7c115af631387eead0554f84d92b7d262dafd

5 years agoPDL: Add non-static methods to checkers am: 2569ca78e5
Myles Watson [Mon, 22 Jul 2019 19:03:24 +0000 (12:03 -0700)]
PDL: Add non-static methods to checkers am: 2569ca78e5
am: 00bc4c9d7f

Change-Id: I66d2dd96dcc03f1c5e773aff4b61de8c2c9191f4

5 years agoPDL: GetType->GetDataType, GetFieldType->string am: 6f55d385d0
Myles Watson [Mon, 22 Jul 2019 19:03:13 +0000 (12:03 -0700)]
PDL: GetType->GetDataType, GetFieldType->string am: 6f55d385d0
am: 897632f3e7

Change-Id: I90ef485fd0186350b8d8fcfa4225a7c470cc6df7

5 years agoPDL: Factor out insert functions
Myles Watson [Mon, 22 Jul 2019 18:52:56 +0000 (11:52 -0700)]
PDL: Factor out insert functions
am: e7d1e71984

Change-Id: I1512d0d283f5c14d1450dff119019401b263157b

5 years agoPDL: Add non-static methods to checkers
Myles Watson [Mon, 22 Jul 2019 18:52:47 +0000 (11:52 -0700)]
PDL: Add non-static methods to checkers
am: 2569ca78e5

Change-Id: I85954118348f195d3b33a29d7a7b8925f0558d40

5 years agoPDL: GetType->GetDataType, GetFieldType->string
Myles Watson [Mon, 22 Jul 2019 18:52:38 +0000 (11:52 -0700)]
PDL: GetType->GetDataType, GetFieldType->string
am: 6f55d385d0

Change-Id: Ic90477cc0b2de0e8262ab7f346255e1c72660b91

5 years agoPDL: Factor out insert functions
Myles Watson [Fri, 12 Jul 2019 17:08:34 +0000 (10:08 -0700)]
PDL: Factor out insert functions

Test: bluetooth_packet_parser_test
Change-Id: Ie61fe74705156b3fb6641a001caf070b8deee934

5 years agoPDL: Add non-static methods to checkers
Myles Watson [Mon, 15 Jul 2019 21:39:23 +0000 (14:39 -0700)]
PDL: Add non-static methods to checkers

Test: bluetooth_packet_parser_test
Change-Id: I2c753bce46226b6bd1597293d8077c2cbacc83b1

5 years agoPDL: GetType->GetDataType, GetFieldType->string
Myles Watson [Mon, 15 Jul 2019 22:02:48 +0000 (15:02 -0700)]
PDL: GetType->GetDataType, GetFieldType->string

Test: bluetooth_packet_parser_test
Change-Id: I5891535131778638becd2ef491644c25560ba0a0

5 years agoPDL: Util fixup am: 1d98d6902e
Myles Watson [Mon, 22 Jul 2019 11:37:02 +0000 (04:37 -0700)]
PDL: Util fixup am: 1d98d6902e
am: 6e3b5ce49c

Change-Id: Ic3625f490214a0cd9faad42f594e35338d9142c9

5 years agoPDL: Util fixup
Myles Watson [Mon, 22 Jul 2019 11:28:01 +0000 (04:28 -0700)]
PDL: Util fixup
am: 1d98d6902e

Change-Id: I7ec1aae45b977477028317310afa965e1aeb978f

5 years agoPDL: Move GenSerialize and GenSize to ParentDef am: a7a79069f3
Myles Watson [Mon, 22 Jul 2019 09:21:43 +0000 (02:21 -0700)]
PDL: Move GenSerialize and GenSize to ParentDef am: a7a79069f3
am: e145d0beba

Change-Id: I3b41f979ff33963f20dab004a412e5f77ac6059a

5 years agoPDL: Move GenSerialize and GenSize to ParentDef
Myles Watson [Mon, 22 Jul 2019 09:12:44 +0000 (02:12 -0700)]
PDL: Move GenSerialize and GenSize to ParentDef
am: a7a79069f3

Change-Id: I65a84a7a566764f0fc6cece5250fa30774d196cb

5 years agoPDL: Util fixup
Myles Watson [Fri, 12 Jul 2019 22:19:21 +0000 (15:19 -0700)]
PDL: Util fixup

Test: add a type with a large enum value
enum BadType : 4 {
  ZERO = 0,
  ONE = 1,
  TWO = 2,
  THREE = 0xffffff,
}
ERROR: AddEntry: Value of THREE(16777215) is greater than the max possible value for enum BadType(15)
Change-Id: Ieb9920818723a56c9f05342b895c172ee772a2b0

5 years agoPDL: Move GenSerialize and GenSize to ParentDef
Myles Watson [Wed, 10 Jul 2019 17:45:29 +0000 (10:45 -0700)]
PDL: Move GenSerialize and GenSize to ParentDef

Test: bluetooth_packet_parser_test
Change-Id: Ifa748a874ec5a84dea19eb40093b33ac5b6fd9cb

5 years agoMerge "Reset GATT cache file if connection state is unpairing" am: ef6ceffc47
Weichin Weng [Mon, 22 Jul 2019 02:39:38 +0000 (19:39 -0700)]
Merge "Reset GATT cache file if connection state is unpairing" am: ef6ceffc47
am: e3e5af5761

Change-Id: Ic891a7dc9df961b22d8a23b2625a9e672b2ea9ad

5 years agoMerge "Reset GATT cache file if connection state is unpairing"
Weichin Weng [Mon, 22 Jul 2019 02:30:39 +0000 (19:30 -0700)]
Merge "Reset GATT cache file if connection state is unpairing"
am: ef6ceffc47

Change-Id: I1a652bb65c219a00f1469d235cb8b3adbe490188

5 years agoMerge "Reset GATT cache file if connection state is unpairing"
Weichin Weng [Mon, 22 Jul 2019 02:04:33 +0000 (02:04 +0000)]
Merge "Reset GATT cache file if connection state is unpairing"

5 years agoL2CAP: Cid, Mtu, SignalId type and constant
Chris Manton [Fri, 19 Jul 2019 20:54:52 +0000 (13:54 -0700)]
L2CAP: Cid, Mtu, SignalId type and constant

Test: bluetooth_test_gd
Change-Id: Iac9c6514467048202136795d08217c7743adac37

5 years agoDisable absolute volume for AirPods 2 with MAC address from 9C:64:8B
Zongheng Wang [Fri, 19 Jul 2019 17:53:25 +0000 (10:53 -0700)]
Disable absolute volume for AirPods 2 with MAC address from 9C:64:8B

Volume of AirPods 2 would be set to maximum when users start to play
audio. Previously we fixed this bug for AirPods 2 with MAC address from
94:16:25(b/129602489). This CL will fix those whose MAC address is from
9C:64:8B.

Bug: 137752614
Test: Played music and videos with AirPods 2
Change-Id: Ic5027e07fc8fade6ce56908a3bcc51e42ffb8d0b

5 years agoPDL: Add missing "pragma once" am: e0dfc6d8d8
Hansong Zhang [Fri, 19 Jul 2019 07:39:30 +0000 (00:39 -0700)]
PDL: Add missing "pragma once" am: e0dfc6d8d8
am: 08d187db68

Change-Id: I9c76db4fd9781b490ce2d54f08e12b7f10255636

5 years agoPDL: Add missing "pragma once"
Hansong Zhang [Fri, 19 Jul 2019 07:29:29 +0000 (00:29 -0700)]
PDL: Add missing "pragma once"
am: e0dfc6d8d8

Change-Id: Ib56cc2cec9fff9fa6b929c7de281ee2774cf66a4

5 years agoPDL: Add missing "pragma once"
Hansong Zhang [Fri, 19 Jul 2019 00:35:50 +0000 (17:35 -0700)]
PDL: Add missing "pragma once"

Test: make
Change-Id: Ibd25e1d275e9910f11658d7a7d1c5761354eb7ee

5 years agoSupport vendor AT command and response for Hfp Client in bt stack
Deqiang Chen [Fri, 21 Jun 2019 22:02:07 +0000 (15:02 -0700)]
Support vendor AT command and response for Hfp Client in bt stack

Add necessary interface in system/bt to support sending vendor AT
command. Also passing unknow events(vendor specific events) up for
further processing.

Bug: 132813146

Test: local test with kichensink to send vendor at command and receive
response. Also run unit test
atest BluetoothHeadsetClientStateMachineTest

Change-Id: Id460eaf00be269d15e6baf0fd30bdbf8e57df78d