OSDN Git Service
Hansong Zhang [Thu, 30 May 2019 00:52:24 +0000 (17:52 -0700)]
HCI Layer: Register CommandComplete and CommandStatus on Start()
Module.GetHandler() works only after a Module is started. Move
RegisterEventHandler() for CommandComplete and CommandStatus to Start().
Test: atest bluetooth_test_gd --host
Change-Id: I7331c8ddb8d61d697aa4480e7c591c3817d21afa
Jakub Pawlowski [Thu, 30 May 2019 17:45:17 +0000 (17:45 +0000)]
Merge "PDL: Add Arrays"
Treehugger Robot [Thu, 30 May 2019 02:58:08 +0000 (02:58 +0000)]
Merge "Make sure the Hearing Aid source is ready before resuming or suspending calls"
Myles Watson [Wed, 6 Feb 2019 22:02:36 +0000 (14:02 -0800)]
PDL: Add Arrays
Test: bluetooth_packet_parser_test
Change-Id: If7f057a16ab40066a53d2c66980c5579a480650f
weichinweng [Wed, 29 May 2019 06:27:15 +0000 (14:27 +0800)]
Open connection if it doesn't exsist in bta_gattc_process_indicate
If Service Changed indication is received before the connection is open
, send the BTA_GATTC_INT_CONN_EVT to open it before processing the
indication.
Bug:
131814072
Test: CTS Bluetooth LE Secure Test. Unit test.
Change-Id: I1b3415ef6aafb52a6ac229409514a85f35de5842
Treehugger Robot [Tue, 28 May 2019 20:31:20 +0000 (20:31 +0000)]
Merge "OS: Hold the mutex when decreasing the semaphore"
Treehugger Robot [Tue, 28 May 2019 20:29:21 +0000 (20:29 +0000)]
Merge "OS: Protect invalidation_list_ with the mutex"
Cheney Ni [Fri, 24 May 2019 06:59:43 +0000 (14:59 +0800)]
Make sure the Hearing Aid source is ready before resuming or suspending calls
Those calls to resume / suspend streaming are from the audio's IPC
threads like HwBinder or UIPC, and calls to start / end session are from
the stack main thread. There is timing that those threads may run in
parallel, and trys to change the streaming state when the Hearing Aid
source is not ready. This change checks the source state before resuming
or suspending streaming, and breaks the deadlock between IPC threads and
the stack main thread.
Bug:
132860565
Test: 1. Connected to a Hearing Aids and disable the Bluetooth
2. Switch the active device manually
Change-Id: I6ae11faab3d530c65f55ffa9b8a9f3cae2bde5f4
Treehugger Robot [Tue, 28 May 2019 17:52:14 +0000 (17:52 +0000)]
Merge changes I42c47d98,If38ad50d
* changes:
Fix mac build
bpfmt -w $(find . -name Android.bp)
Myles Watson [Tue, 28 May 2019 16:43:55 +0000 (09:43 -0700)]
OS: Hold the mutex when decreasing the semaphore
Test: bluetooth_test_gd # Run in a loop
Change-Id: I72e9f28c417986f63390cbbbe6467f64df6e9237
Treehugger Robot [Tue, 28 May 2019 17:02:33 +0000 (17:02 +0000)]
Merge "Add missing header in gd/packet/parser/checksum_type_checker.h"
Myles Watson [Fri, 24 May 2019 21:23:41 +0000 (14:23 -0700)]
OS: Protect invalidation_list_ with the mutex
Test: AclManagerTest.startup_teardown
Change-Id: I5a9467691ffd1bb6bc2bb9d1080dce5f5bc655fa
Jakub Pawlowski [Tue, 28 May 2019 15:55:47 +0000 (17:55 +0200)]
Add missing header in gd/packet/parser/checksum_type_checker.h
Test: compilation
Change-Id: I7a72cba471db5e59c8a6fa2ee1ba03cc258719ef
Jakub Pawlowski [Mon, 27 May 2019 18:25:49 +0000 (20:25 +0200)]
GD ECC: add const qualifiers
Test: SmpEccValidationTest
Bug:
126463795
Change-Id: I2e8b6027f959a181655286fb061bbb30b91e57f8
Ted Wang [Mon, 27 May 2019 01:50:04 +0000 (01:50 +0000)]
Merge "Disable absolute volume control for AirPods 2"
Jakub Pawlowski [Thu, 23 May 2019 15:06:58 +0000 (17:06 +0200)]
GD SMP ECC improvements part 1
* make curve parameters into constants
* separate multipoint from BT specific ECC curve
Test: SmpEccValidationTest
Bug:
126463795
Change-Id: If6401c3038b340926310eafb40c2b7c5dc40dba9
Jakub Pawlowski [Sat, 25 May 2019 08:53:14 +0000 (08:53 +0000)]
Merge "Eliptic Curve Cryptography for GD"
Treehugger Robot [Fri, 24 May 2019 19:50:25 +0000 (19:50 +0000)]
Merge changes I610e6f4f,Ib7dc12d8
* changes:
OS: Construct Handler using Reactor
Queue: Store callbacks in the runnable
Yi Kong [Fri, 24 May 2019 17:33:26 +0000 (17:33 +0000)]
Merge "Turn off the new pass manager for coverage builds"
Jakub Pawlowski [Wed, 22 May 2019 20:37:44 +0000 (22:37 +0200)]
Eliptic Curve Cryptography for GD
This patch moves the code and adds the necessary namespace.
Further improvements in upcoming patches.
Test: SmpEccValidationTest
Bug:
126463795
Change-Id: I2682ff96aa904dd89ca6b5f2487fe72047211374
Myles Watson [Fri, 24 May 2019 17:09:05 +0000 (10:09 -0700)]
OS: Construct Handler using Reactor
Store a Reactor instead of a Thread in Handler. Allow construction from either.
Test: bluetooth_test_gd --gtest_filter=QueueTestSingleThread.no_unregister_enqueue_death_test
Change-Id: I610e6f4ffb48120d1fa47b4ff59b59375c7a11d8
Myles Watson [Thu, 23 May 2019 23:33:11 +0000 (16:33 -0700)]
Queue: Store callbacks in the runnable
Test: bluetooth_test_gd \
--gtest_filter=QueueTest.pass_smart_pointer_and_unregister
Change-Id: Ib7dc12d8e767125e51d83810ade77c5187a4c174
Colin Cross [Thu, 23 May 2019 21:10:48 +0000 (14:10 -0700)]
Fix mac build
system/bt/gd is compiled for the host but does not work on mac,
disable it.
Fixes:
133439713
Test: mmma system/bt/gd
Change-Id: I42c47d987ebfa8bba498a438d742388d216cedd2
Colin Cross [Thu, 23 May 2019 21:12:59 +0000 (14:12 -0700)]
bpfmt -w $(find . -name Android.bp)
Test: none
Change-Id: If38ad50d848c9e40f07c6598272a354312d9efea
Ted Wang [Thu, 23 May 2019 11:26:34 +0000 (19:26 +0800)]
Disable absolute volume control for AirPods 2
Volume of AirPods 2 start out extremely loud when absolute volume
enabled. Interim response from remote show normal when register volume
changed notification. Disable absolute volume control for AirPods 2 to
avoid volume start out extremely loud.
Bug:
129602489
Test: Play music with AirPods 2
Change-Id: I555576be1929a42ae8e01f661572a89d1993dee9
Jakub Pawlowski [Thu, 23 May 2019 07:52:34 +0000 (09:52 +0200)]
Fix CryptoToolboxTest.bt_spec_test_d_1_test
When moving code, ElementsAreArray matcher was replaced by memcmp to
remove dependency, but "== 0" is missing to actually make sure elements
are same.
Bug:
132863815
Test: CryptoToolboxTest.bt_spec_test_d_1_test
Change-Id: I4069ee3baea9de095b23072820cef3bd0673608a
Yi Kong [Tue, 23 Apr 2019 07:55:27 +0000 (00:55 -0700)]
Turn off the new pass manager for coverage builds
The new pass manager crashes if `-fprofile-instr-generat` cflag is set
on the current stable Android compiler. Turn it off until we roll past
the revision with the fix.
Test: build
Bug:
131855431
Bug:
131132095
Change-Id: I92f36b73747cca898e104118a2721a4796511282
Jakub Pawlowski [Wed, 27 Feb 2019 09:00:17 +0000 (10:00 +0100)]
Get rid of KEY_LENGTH_DWORDS_P192
Only KEY_LENGTH_DWORDS_P256 is used.
Test: compilation
Bug:
126463795
Change-Id: I32a80e4b012c4606a70994fa9d0b5c2602707bb3
Treehugger Robot [Wed, 22 May 2019 22:26:17 +0000 (22:26 +0000)]
Merge "PDL: Strengthen CamelCase checks"
Myles Watson [Wed, 22 May 2019 17:52:49 +0000 (10:52 -0700)]
PDL: Strengthen CamelCase checks
Test: bluetooth_packet_parser_test
Change-Id: I1f85a0435aeab79cee8b938061c3961b6a21c49b
Jakub Pawlowski [Wed, 22 May 2019 15:36:24 +0000 (17:36 +0200)]
crypto_toolbox
This is copy of the crypto_toolbox for GD usage.
Only necessary changes were made:
* removed dependency on bt_types.h
* removed dependency on libbase
* reformatted code
* added namespace
Further improvements will be stacked on top of this patch.
Test: CryptoToolboxTest
Bug:
132863815
Change-Id: I639ba42705b23218a14085abcf431d744f87b913
Treehugger Robot [Wed, 22 May 2019 00:18:35 +0000 (00:18 +0000)]
Merge "Fix use-after-free in ReactorPerformanceTest::TearDown."
Evgenii Stepanov [Tue, 21 May 2019 21:12:39 +0000 (14:12 -0700)]
Fix use-after-free in ReactorPerformanceTest::TearDown.
Bug:
128921871
Test: net_test_performance
Change-Id: I7b7fda7c437f75019564a0b56764d40704b0b33f
Treehugger Robot [Tue, 21 May 2019 15:45:42 +0000 (15:45 +0000)]
Merge "QueueTest: UnregisterDequeue before promise set value"
Weichin Weng [Mon, 20 May 2019 03:38:04 +0000 (03:38 +0000)]
Merge "Hearing Aid Dump Audio Tool: Add dump debug buffer feature"
Treehugger Robot [Sat, 18 May 2019 00:19:33 +0000 (00:19 +0000)]
Merge "Remove Address dependency from PacketParserTest"
Treehugger Robot [Fri, 17 May 2019 21:29:23 +0000 (21:29 +0000)]
Merge "While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start the 2nd AVDT stream"
Myles Watson [Fri, 17 May 2019 16:01:36 +0000 (09:01 -0700)]
Remove Address dependency from PacketParserTest
Test: bluetooth_packet_parser_test
Change-Id: I769e0ea2feacbc8c14598762f01746c76efe1079
weichinweng [Fri, 19 Apr 2019 09:27:32 +0000 (17:27 +0800)]
Hearing Aid Dump Audio Tool: Add dump debug buffer feature
Add dump HearingAid debug buffer feature to let the HearingAid debug
information dump to debug file and make it readable.
Bug:
130781854
Test: ./dump_hearingaid_audio.py -d true btsnoop_hci.log
./dump_hearingaid_audio.py -sd true btsnoop_hci.log
Change-Id: I150fd897e6f197d5b853554734926ad613de4e6b
Haibo Huang [Fri, 17 May 2019 04:59:01 +0000 (21:59 -0700)]
Import ::testing::DoAll
It is used in this file but didn't have corresponding using statement.
It fails compile in new googletest.
Test: build
Change-Id: I1ac9d04c1bc8c46b57ecfb7859ee0e3c31bbb092
Chienyuan [Fri, 17 May 2019 02:57:46 +0000 (10:57 +0800)]
QueueTest: UnregisterDequeue before promise set value
For some tests, ~Queue will() be trigger right after we get promise
we should UnregisterDequeue before promise set value to prevent
race condition
Test: atest bluetooth_test_gd
Change-Id: I9409b6829cce61ef95c766a1d3b3679197b8f9f4
Treehugger Robot [Thu, 16 May 2019 22:48:06 +0000 (22:48 +0000)]
Merge changes I2526f4bc,Iafe4a46d
* changes:
Allow Handler synchronization in test code
Remove testing code from ModuleRegistry
Jakub Pawlowski [Thu, 16 May 2019 19:42:35 +0000 (19:42 +0000)]
Merge "crypto_toolbox: add const qualifiers to f4, f5, and f6 parameters"
Treehugger Robot [Thu, 16 May 2019 17:48:15 +0000 (17:48 +0000)]
Merge "Add SMP PDL definition."
Martin Brabham [Thu, 16 May 2019 16:36:10 +0000 (09:36 -0700)]
Add SMP PDL definition.
Bug:
132863815
Test: N/A
Change-Id: I5d762432be133a264db1f9b9de74acad2c60b429
Jakub Pawlowski [Thu, 16 May 2019 10:55:08 +0000 (12:55 +0200)]
crypto_toolbox: add const qualifiers to f4, f5, and f6 parameters
Bug:
132863815
Change-Id: I58de98b9087c81a27054eb8302212a1bf0595093
Jakub Pawlowski [Thu, 16 May 2019 10:34:06 +0000 (12:34 +0200)]
Make AES control block into a thread local variable
When computing ACES-CMAC, we use static control block that's shared
between multiple threads. That means that having computation done in
different threads can interfere and cause bad value to be returned.
This patch fixes that by making the control block into thread local
variable.
Bug:
132863815
Change-Id: Ibe2aaac54b93f77d644564d23694846c0c078bd6
TreeHugger Robot [Wed, 15 May 2019 23:02:12 +0000 (23:02 +0000)]
Merge "DO NOT MERGE - Skip pi-platform-release (PPRL.190505.001) in stage-aosp-master" into stage-aosp-master
Myles Watson [Wed, 15 May 2019 20:24:00 +0000 (13:24 -0700)]
Merge "L2CAP: Always use SUCCESS"
am:
f256ea9c02
Change-Id: If78bace42679e10a74b8b3df98feda1970e29450
Treehugger Robot [Wed, 15 May 2019 20:00:38 +0000 (20:00 +0000)]
Merge "L2CAP: Always use SUCCESS"
Myles Watson [Wed, 15 May 2019 18:26:17 +0000 (11:26 -0700)]
Require a semicolon after ASSERT
am:
49496a3d06
Change-Id: I15734a820b5a67733babd0aae0263f8f97edc508
Myles Watson [Tue, 14 May 2019 21:11:55 +0000 (14:11 -0700)]
Require a semicolon after ASSERT
Test: atest --host bluetooth_test_gd
Change-Id: I304d097f6094eecdad04d99c9397475b4721115c
Myles Watson [Wed, 15 May 2019 14:18:18 +0000 (07:18 -0700)]
L2CAP: Always use SUCCESS
Test: bluetooth_test_gd --gtest_filter=*L2*
Change-Id: I6070168e2d9055b6d7f54726a773ab646dcb567c
Hansong Zhang [Thu, 9 May 2019 23:40:37 +0000 (16:40 -0700)]
Allow Handler synchronization in test code
SynchronizeModuleHandler() blocks until all previous closures are done.
Test: atest bluetooth_test_gd --host
Change-Id: I2526f4bc1c5ce485ceaedbd0cb744a98b928518b
Myles Watson [Wed, 15 May 2019 14:31:57 +0000 (07:31 -0700)]
Remove testing code from ModuleRegistry
Test: atest --host bluetooth_test_gd
Change-Id: Iafe4a46d4dfc134f4dd9ee1fcbed527a7ec34ed0
Cheney Ni [Wed, 15 May 2019 06:09:49 +0000 (14:09 +0800)]
While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start the 2nd AVDT stream
There were 2 cases to start the 2nd stream automatically by the stack:
* When the 2nd AVDT opened, the stack would check the 1st stream state
to determinate the 2nd should be starting or not.
* While the AVRC timer which was fired after AVDT opened was expired,
the stack would open the AVRC and start the 2nd stream if the 1st was
started.
Both of them are unnecessary since all the stream must be controlled by
the upper layer. We currently support an active device only, and the
2nd stream will be tracked as remote triggered and suspended immediately.
To samplize the behavior, it is better to not start the 2nd stream
automatically by the stack.
Bug:
132146974
Test: manual
Change-Id: I75f39801e9779ee55fa574e30051e01966c61ea3
Myles Watson [Tue, 14 May 2019 22:55:11 +0000 (15:55 -0700)]
Merge "HCI: Add classic interface definitions"
am:
b8b18593c6
Change-Id: If2710b9c0327ac8456984722524d464512abfe81
Treehugger Robot [Tue, 14 May 2019 22:27:20 +0000 (22:27 +0000)]
Merge "HCI: Add classic interface definitions"
Myles Watson [Sat, 23 Feb 2019 00:08:06 +0000 (16:08 -0800)]
HCI: Add classic interface definitions
Test: bluetooth_test_gd --gtest_filter=*Hci*
Change-Id: I4206c818084302341d4e99f2cce8aad1c12ce4ae
Xin Li [Tue, 14 May 2019 19:08:50 +0000 (12:08 -0700)]
DO NOT MERGE - Skip pi-platform-release (PPRL.190505.001) in stage-aosp-master
Bug:
132622481
Change-Id: Iec8c8a55b0f442d3ce16c86872e59c68f61cf36b
Xin Li [Thu, 9 May 2019 23:54:54 +0000 (16:54 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge Pie Bonito/Sargo into "
am:
7bd0d9e0c3 -s ours
am skip reason: subject contains skip directive
Change-Id: I0a6eb0daaa03161d899b838f88945cc06bac056f
Xin Li [Thu, 9 May 2019 23:14:15 +0000 (16:14 -0700)]
[automerger skipped] DO NOT MERGE - Merge Pie Bonito/Sargo into
am:
e39adc7f03 -s ours
am skip reason: subject contains skip directive
Change-Id: Ie61608aea918084208a6cc25b5f39c9567ee611e
Xin Li [Thu, 9 May 2019 22:05:45 +0000 (22:05 +0000)]
Merge "DO NOT MERGE - Merge Pie Bonito/Sargo into "
Stanley Tng [Thu, 9 May 2019 21:45:03 +0000 (14:45 -0700)]
Merge "Add Delay reporting for Hearing Aids"
am:
122ce6871f
Change-Id: If98f6b3faad73841924abdf92b2a4b09ac9411b9
Treehugger Robot [Thu, 9 May 2019 20:51:00 +0000 (20:51 +0000)]
Merge "Add Delay reporting for Hearing Aids"
Xin Li [Thu, 9 May 2019 16:27:06 +0000 (09:27 -0700)]
DO NOT MERGE - Merge Pie Bonito/Sargo into master.
Bug:
131756210
Change-Id: I4009cad536b5c2d7a9f9d02769128dc5077e53b9
Myles Watson [Thu, 9 May 2019 04:53:54 +0000 (21:53 -0700)]
HCI: Rename ErrorCodes and consolidate Enable
am:
38ea5acca8
Change-Id: Ifa89f600275e8259c37fbddc02dd1e2f66b9112e
Stanley Tng [Thu, 2 May 2019 22:49:17 +0000 (15:49 -0700)]
Add Delay reporting for Hearing Aids
Use the RenderDelay parameter from the Hearing Aid devices to implement
the Delay Reporting feature. This will helps in the lip-sync issues.
Please note that this change will requires a re-pair of the Hearing Aids
devices in order for the delay report to work well.
Bug:
132115153
Test: Manual test
Change-Id: If4bef049c18a3912817c2fa96b9bd890d5712c22
Myles Watson [Wed, 8 May 2019 23:15:01 +0000 (16:15 -0700)]
HCI: Rename ErrorCodes and consolidate Enable
Test: bluetooth_gd_test --gtest_filter=*HciTest*
Change-Id: Ic957968b5f0de1eac486b4e2ba103ec749819b0e
Hansong Zhang [Wed, 8 May 2019 06:10:49 +0000 (23:10 -0700)]
ModuleRegistry: Start() injected modules
am:
30fa258cf8
Change-Id: I096fdf186f33e9e690e5dd564f4b5ac28b71701b
Hansong Zhang [Tue, 7 May 2019 23:40:45 +0000 (16:40 -0700)]
ModuleRegistry: Start() injected modules
Call Start() on injected modules, and set registry_ and handler_
properly
Test: atest --host bluetooth_test_gd
Change-Id: Id655d537982eab285549ff797a907dabb15ca64d
android-build-team Robot [Tue, 7 May 2019 21:45:22 +0000 (21:45 +0000)]
Snap for
5450365 from
f8a5ce9945240777b0d5cd2ba68fdda48e1484a8 to pi-platform-release
Change-Id: I93c7dd9dc1084fbe5f2f3cd8075b92fd05013d7e
Chienyuan [Tue, 7 May 2019 21:44:03 +0000 (14:44 -0700)]
Merge "Add benchmark for queue"
am:
7ec4793b50
Change-Id: I9586994386bbf51fae402424b66c3fa955c29a76
Treehugger Robot [Tue, 7 May 2019 21:36:41 +0000 (21:36 +0000)]
Merge "Add benchmark for queue"
Joseph Pirozzo [Tue, 7 May 2019 15:41:55 +0000 (08:41 -0700)]
Merge "Handling of incoming AVRCP Controller connections"
am:
e7b536bc93
Change-Id: I7574cd7421edb6572472ffef685b70429f6d8d2a
Joseph Pirozzo [Tue, 7 May 2019 15:29:52 +0000 (15:29 +0000)]
Merge "Handling of incoming AVRCP Controller connections"
Weichin Weng [Tue, 7 May 2019 04:12:53 +0000 (21:12 -0700)]
Merge "Close unexpected HearingAid open event if is not attempting to connect"
am:
f612b732e1
Change-Id: Id6ca92d830e6e7f10d22260c15f6b47fea3b80fa
Weichin Weng [Tue, 7 May 2019 03:49:50 +0000 (03:49 +0000)]
Merge "Close unexpected HearingAid open event if is not attempting to connect"
Satish kumar sugasi [Mon, 6 May 2019 21:40:29 +0000 (14:40 -0700)]
Merge "A2DP: Fix offload start VSC parameters"
am:
da0b935bf4
Change-Id: I3425223bc0c0b49f49f04a164c10fdfa2a50bc57
Treehugger Robot [Mon, 6 May 2019 21:22:40 +0000 (21:22 +0000)]
Merge "A2DP: Fix offload start VSC parameters"
weichinweng [Sat, 4 May 2019 00:49:24 +0000 (08:49 +0800)]
Close unexpected HearingAid open event if is not attempting to connect
When HearingAid bta layer receive unexpected HearingAid open event,
should close it if is not attempting to connect.
Bug:
131863877
Test: 1.Forget/Repair HearingAid device from Bluetooth UI.
2.Disconnect/Reconnect HearingAid device from Bluetooth UI.
3.HearingAid device power off/on, check them can reconnect.
Change-Id: I75d63d0441dcc6b7338b1e30453021eb271f4872
Hansong Zhang [Sat, 4 May 2019 03:07:54 +0000 (20:07 -0700)]
Add a signaling socket from facade/cert to tester
am:
663ee01503
Change-Id: I2f2dfb01de8ac8ad132ba7ec9b4e677bdb256277
Hansong Zhang [Sat, 4 May 2019 01:40:44 +0000 (18:40 -0700)]
Add grpc root service for test configuration
am:
30bf869b83
Change-Id: I9226c028d4a40b7aee39b714e19c9d33b94d36ab
Hansong Zhang [Fri, 3 May 2019 22:06:24 +0000 (15:06 -0700)]
Add a signaling socket from facade/cert to tester
The tester needs to wait for grpc server to start up before sending any
RPC. Use a UNIX domain socket to indicate when the grpc server is ready
Test: cert/run_cert.sh
Change-Id: Iaf5e9dfaedaa30a09448da0632ae7d362845c87a
Chienyuan [Fri, 3 May 2019 01:37:54 +0000 (18:37 -0700)]
Add benchmark for queue
Test: run bluetooth_benchmark_gd
Change-Id: I074f7a6f0a7927f9bf35f92cbc0bb4f3f10adfc8
Hansong Zhang [Thu, 2 May 2019 22:25:54 +0000 (15:25 -0700)]
Add grpc root service for test configuration
When facade_main and cert_main is started, it only starts grpc root
service, and listens for StartStack() request before brining up required
modules. Then, it listens for StopStack() request before cleaning up
modules. Defining new rootservice.proto for facade and cert.
Test: cert/run_cert.sh
Change-Id: I10fa745b9a235080be7a0c82fe7f3a297c1a112d
Zach Johnson [Fri, 3 May 2019 07:31:26 +0000 (00:31 -0700)]
Break GdDevice into GdDevice and GdCertDevice
am:
87ddd5b26f
Change-Id: I9fb0d8bdb0b718a8846de25f5aaa8fbdaa33c1e4
Zach Johnson [Fri, 3 May 2019 07:17:39 +0000 (00:17 -0700)]
Consolidate facade and cert entry point naming
am:
4999504f61
Change-Id: Ia48e8a6f3b4c6849e2e5cb5c0751e8e156f5c306
Zach Johnson [Fri, 3 May 2019 07:17:24 +0000 (00:17 -0700)]
Add BidiQueue
am:
d5b7ba71ba
Change-Id: I00a6898e46cb7e8ad550944fe63bc0cd3a9105ca
Zach Johnson [Fri, 3 May 2019 03:31:39 +0000 (20:31 -0700)]
Break GdDevice into GdDevice and GdCertDevice
We need distinct devices, since the gRPC capabilities are
different from each other and we need to tell them apart
from each other in tests.
Also, remove unused gd/cert/run_cert.py
Also, don't indicate rootcanal error at end of test if
return code indicates it was terminated by the SIGINT we sent it.
(-N return code indicates terminated by N signal, as per
https://docs.python.org/2/library/subprocess.html#subprocess.Popen.returncode)
Test: cert/run_cert.sh
Change-Id: Idf14a05d73f2f80f5b871b2c41118219c27a0f76
Zach Johnson [Fri, 3 May 2019 02:56:10 +0000 (19:56 -0700)]
Consolidate facade and cert entry point naming
Test: atest --host bluetooth_test_gd and cert/run_cert.sh
Change-Id: I517391d2884d5cc8d5b77a9b9847637d83053a16
Zach Johnson [Fri, 3 May 2019 02:21:40 +0000 (19:21 -0700)]
Add BidiQueue
An interface for passing a pair of queues (an up and a down),
Also adds BidiQueueEnd, so you can pass the end around without worrying
about your clients using your end of the queue by mistake.
Test: atest --host bluetooth_test_gd
Change-Id: Ib2d1904ec799af335db07fb474d0ba6b1d4d9949
Hansong Zhang [Fri, 3 May 2019 02:42:05 +0000 (19:42 -0700)]
Cert stack bring up and test Inquiry with two stacks
am:
90ec7400f0
Change-Id: I85e10a876b52922ca0ce558292b0f54d87752405
Hansong Zhang [Mon, 29 Apr 2019 23:04:07 +0000 (16:04 -0700)]
Cert stack bring up and test Inquiry with two stacks
* Add main entry point for cert stack.
* Add a test case where cert stack enables page scan and inquiry scan
and DUT starts inquiry. Verify the inquiry result.
Test: cert/run_cert.sh
Change-Id: I2deaf12b6f929301a3542c082a8f77513af8ce68
Zach Johnson [Fri, 3 May 2019 02:18:13 +0000 (19:18 -0700)]
Merge "Add separate enqueue and dequeue interfaces for queue"
am:
55778d288e
Change-Id: I5f244be668f66c7940037f9360f125f1f43e1757
Treehugger Robot [Fri, 3 May 2019 01:41:40 +0000 (01:41 +0000)]
Merge "Add separate enqueue and dequeue interfaces for queue"
Weichin Weng [Fri, 3 May 2019 01:40:31 +0000 (18:40 -0700)]
Merge "Don't read HearingAid properties if already have properties value."
am:
52d50e51e9
Change-Id: I6a8a532978d441b8cc5494d204ba5970aff073cc
Chienyuan [Fri, 3 May 2019 01:39:35 +0000 (18:39 -0700)]
Cert: implement assert function with event buffer
am:
c3d8c16207
Change-Id: I0328031ca4c390eed86edc92ceb8d70a279856e1
Weichin Weng [Fri, 3 May 2019 01:12:24 +0000 (01:12 +0000)]
Merge "Don't read HearingAid properties if already have properties value."
Zach Johnson [Fri, 3 May 2019 00:05:44 +0000 (17:05 -0700)]
Add separate enqueue and dequeue interfaces for queue
Allows you to pass one around without exposing the rest of the queue surface.
Test: atest --host bluetooth_test_gd
Change-Id: I468c59208cf021feb8bcea9e3a3b0a72c35ead8d