OSDN Git Service

android-x86/system-bt.git
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

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

Change-Id: I0529a81add1c18c672f312e668635887192aefcf

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 am: 8b5ae26cc0...
Hansong Zhang [Thu, 25 Jul 2019 18:55:21 +0000 (11:55 -0700)]
Merge "HAL cert and facade: Unregister HCI on shutdown" am: 7145059a37 am: 8b5ae26cc0 am: a8a77fc2cc
am: 5457af5349

Change-Id: If36f1aed641815f08ea81790e726d146d3d37e7f

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

Change-Id: I68b498c77f47d2f255a0a448283aa22eaab25fc8

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 am: 27aa670e91 am: 5df7650c38
Myles Watson [Thu, 25 Jul 2019 14:16:47 +0000 (07:16 -0700)]
Merge "OS: Account for enqueue/dequeue race" am: 0fa25c6e8f am: 27aa670e91 am: 5df7650c38
am: 6424ef9e70

Change-Id: Iee4d9bd6553004d76093e5a7730917a38d17f37d

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

Change-Id: I2ae911075cadd14a1bfcb6eb4245087b00eef923

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 am: b37b873e60 am: 14ef2c28a0
Myles Watson [Thu, 25 Jul 2019 07:31:35 +0000 (00:31 -0700)]
Merge "PDL: Use GenBounds for Structs" am: a9a37cf504 am: b37b873e60 am: 14ef2c28a0
am: b6777ba421

Change-Id: I6a5851c3768b8e22ddfa7533ec3075e32015d695

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

Change-Id: I6f82de171c5fc2fdb64c415b5df2d459c1353798

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 agoStore BLE keys using the address from the ble_auth_cmpl_evt am: 311ebcedb3
Ugo Yu [Thu, 25 Jul 2019 02:22:01 +0000 (19:22 -0700)]
Store BLE keys using the address from the ble_auth_cmpl_evt am: 311ebcedb3
am: 42802be338

Change-Id: I175f3fbd36f4030923c908f3a67edeab2c34556a

5 years agoStore BLE keys using the address from the ble_auth_cmpl_evt am: 311ebcedb3
Ugo Yu [Thu, 25 Jul 2019 02:16:17 +0000 (19:16 -0700)]
Store BLE keys using the address from the ble_auth_cmpl_evt am: 311ebcedb3
am: 7d8ab19529

Change-Id: I8e74f1aa3f547120d0e487b432c80beeee5d43d0

5 years agoStore BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 25 Jul 2019 02:03:16 +0000 (19:03 -0700)]
Store BLE keys using the address from the ble_auth_cmpl_evt
am: 311ebcedb3

Change-Id: I6a6c61496b1f98618c22585681b147b3ce0d9740

5 years agoStore BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 25 Jul 2019 02:03:16 +0000 (19:03 -0700)]
Store BLE keys using the address from the ble_auth_cmpl_evt
am: 311ebcedb3

Change-Id: Id473a3eac5719cf890148dc43f29becd16584fe6

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: 5b2eb83...
Deqiang Chen [Wed, 24 Jul 2019 22:33:15 +0000 (15:33 -0700)]
Merge "Support vendor AT command and response for Hfp Client in bt stack" am: 5b2eb835ac am: 86736a84fa am: 3eeef397f9
am: 0cefdd192b

Change-Id: I03cd0e358cf32368ccfd73c95015d1edbfe9c5a6

5 years agoMerge "Support vendor AT command and response for Hfp Client in bt stack" am: 5b2eb83...
Deqiang Chen [Wed, 24 Jul 2019 22:01:25 +0000 (15:01 -0700)]
Merge "Support vendor AT command and response for Hfp Client in bt stack" am: 5b2eb835ac am: 86736a84fa
am: 3eeef397f9

Change-Id: I508031c431b38012da04c97a12e0de04b367c484

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 am: 8d1e8f334f...
Hansong Zhang [Wed, 24 Jul 2019 20:18:08 +0000 (13:18 -0700)]
Cert signal server: Use TCP instead of UNIX socket am: defcdca4ee am: 8d1e8f334f am: 32a9ea7cf5
am: 3935546b21

Change-Id: I5dbf3041a30888e7a0ef3d400c1e0f93e3a213f8

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

Change-Id: I2284c3ecdc72834f779f8cf9834c21f32e867d29

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 am: c2b170a7a2 am: dc2631554c
Jakub Pawlowski [Wed, 24 Jul 2019 08:35:11 +0000 (01:35 -0700)]
Merge "PDL: Add Structs" am: df2d6a5ac4 am: c2b170a7a2 am: dc2631554c
am: c63a011e77

Change-Id: Ia051c661adfa0783785315580a988c411abf9489

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

Change-Id: Ie92d0091c53b253f2466ec0141b02b23a1810bd1

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 am: 0210bd679a...
Myles Watson [Wed, 24 Jul 2019 05:58:34 +0000 (22:58 -0700)]
Merge "OS: Get promise before registering in tests" am: 3edb0f069e am: 0210bd679a am: cd4ae062e6
am: f8e73b75ad

Change-Id: I5b0e7028cbefef245b55bfb884742426bd8b495e

5 years agoMerge "OS: Use LOG_ALWAYS_FATAL for Android" am: ff41bee660 am: 508c8a11f4 am: 42c86a8629
Myles Watson [Wed, 24 Jul 2019 05:38:08 +0000 (22:38 -0700)]
Merge "OS: Use LOG_ALWAYS_FATAL for Android" am: ff41bee660 am: 508c8a11f4 am: 42c86a8629
am: a83b3ff1c3

Change-Id: I7fe0bfe124448b2668bfbc32c632dfa147cfb571

5 years agoHearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks...
Cheney Ni [Wed, 10 Jul 2019 08:24:31 +0000 (16:24 +0800)]
Hearing Aid: Remove std::promise from suspend / resume calls, and stop audio ticks by no devices

The Hearing Aid uses the stack main thread to be the media task thread.
This thread handles events / feeds audio data sequentially, and won't
have a race condition within the single thread. The promise is a bit
redundant, but wasted time to cause a potential deadlock that the caller
waits for the task thread finished which needed the caller's resource.

This CL also stops the audio ticks when no devices available, and no
need to wait for next timer expired. Besides, move all timer controls
into the media task thread, so timer is started / stopped at the same
thread, too.

Bug: 134996542
Test: add big delay within functions, and check no abnormal manually
Change-Id: If0b279a191d86b30db41a682dc7f0ad9470cb10e

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

Change-Id: I74084c9efddbbf3e8b33333011ea77297123596c

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 am: 508c8a11f4
Myles Watson [Wed, 24 Jul 2019 00:28:41 +0000 (17:28 -0700)]
Merge "OS: Use LOG_ALWAYS_FATAL for Android" am: ff41bee660 am: 508c8a11f4
am: 42c86a8629

Change-Id: I6f2ceccabae03acf1f4a8371220ee832ed60f424

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 am: a4c73062d9
Jakub Pawlowski [Tue, 23 Jul 2019 23:03:41 +0000 (16:03 -0700)]
Merge "Split ARRAY into fixed size ARRAY and VECTOR" am: a413eb0d55 am: a4c73062d9
am: 94a17f532b

Change-Id: I4ef04a8a0294fed71ede0d49d4b666a281286287

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