- Apr 07, 2023
-
-
William Escande authored
Test: Build + Th + boot | This should be a no-op change Bug: 277168419 Change-Id: Ief254d370e8d82b64882717a39a2434d12030b02
-
- May 01, 2021
-
-
Myles Watson authored
Move simpler, single-threaded tests into their own set of unit tests. Bug: 176832968 Test: atest bluetooth_test_gd_unit Tag: #gd-refactor Change-Id: Ic3fa06454d119764aa547f975843583c00c32fc4
-
- Feb 14, 2021
-
-
Bob Badour authored
Added SPDX-license-identifier-Apache-2.0 to: apex/Android.bp audio_a2dp_hw/Android.bp audio_bluetooth_hw/Android.bp audio_hal_interface/Android.bp audio_hearing_aid_hw/Android.bp binder/Android.bp bta/Android.bp btcore/Android.bp btif/Android.bp build/Android.bp common/Android.bp conf/Android.bp device/Android.bp embdrv/g722/fuzzer/Android.bp embdrv/sbc/Android.bp embdrv/sbc/decoder/Android.bp embdrv/sbc/encoder/Android.bp gd/att/Android.bp gd/common/Android.bp gd/dumpsys/Android.bp gd/dumpsys/bundler/Android.bp gd/fuzz/Android.bp gd/hal/Android.bp gd/hci/Android.bp gd/iso/Android.bp gd/l2cap/Android.bp gd/l2cap/fuzz/Android.bp gd/neighbor/Android.bp gd/os/Android.bp gd/packet/Android.bp gd/packet/parser/Android.bp gd/packet/parser/test/Android.bp gd/proto/Android.bp gd/rust/common/Android.bp gd/rust/facade/Android.bp gd/rust/gddi/Android.bp gd/rust/hal/Android.bp gd/rust/hci/Android.bp gd/rust/link/Android.bp gd/rust/main/Android.bp gd/rust/shim/Android.bp gd/security/Android.bp gd/security/channel/Android.bp gd/security/pairing/Android.bp gd/security/record/Android.bp gd/shim/Android.bp gd/storage/Android.bp hci/Android.bp include/Android.bp internal_include/Android.bp main/Android.bp main/shim/Android.bp osi/test/fuzzers/Android.bp osi/test/fuzzers/alarm/Android.bp osi/test/fuzzers/allocation_tracker/Android.bp osi/test/fuzzers/allocator/Android.bp osi/test/fuzzers/array/Android.bp osi/test/fuzzers/buffer/Android.bp osi/test/fuzzers/compat/Android.bp osi/test/fuzzers/fixed_queue/Android.bp osi/test/fuzzers/future/Android.bp osi/test/fuzzers/list/Android.bp osi/test/fuzzers/ringbuffer/Android.bp packet/Android.bp packet/avrcp/Android.bp packet/base/Android.bp packet/tests/fuzzers/Android.bp profile/avrcp/Android.bp profile/sdp/Android.bp service/Android.bp service/common/Android.bp stack/test/fuzzers/Android.bp stack/test/fuzzers/a2dp/Android.bp stack/test/fuzzers/a2dp/codec/Android.bp stack/test/fuzzers/sdp/Android.bp test/Android.bp test/headless/Android.bp test/rootcanal/Android.bp test/suite/Android.bp types/Android.bp udrv/Android.bp utils/Android.bp vendor_libs/Android.bp vendor_libs/linux/Android.bp vendor_libs/linux/interface/Android.bp vendor_libs/test_vendor_lib/Android.bp vendor_libs/test_vendor_lib/types/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: gd/Android.bp gd/crypto_toolbox/Android.bp stack/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_unencumbered to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_unencumbered to: embdrv/g722/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: osi/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I883bd6b68223a5bc77fdac89e0280993f617d6d0
-
- Aug 01, 2020
-
-
Chris Manton authored
Bug: 162655455 Test: atest --host bluetooth_test_gd Tag: #gd-refactor Change-Id: If7b5acca552cabe2032d95d4098833419bec4826
-
- May 09, 2020
-
-
Hansong Zhang authored
Test: cert/run --host Test: atest bluetooth_test_gd Tag: #gd-refactor Change-Id: I797599a9213fd3a4383c4241825562cd777509e5
-
- May 08, 2020
-
-
Hansong Zhang authored
Before we send or respond to a ConnectionRequest, we ask SecurityManager to enforce that we have sufficient link layer security. SecurityManager needs to implement SecurityModuleInterface, and inject the implementation to L2cap module. L2cap provides a default implementation which rejects all connection which requires link key. Test: cert/run --host Bug: 141555841 Tag: #gd-refactor Change-Id: I2f6b841ddc34e4bd9611b6d0f06657cc342c6612
-
- Mar 26, 2020
-
-
Hansong Zhang authored
Add the API for L2CAP channel user to get/set link layer options, such as connection parameter update, and get role. Add the corresponding PTS test case for it. The next step is to determine the command from remote feature. Test: cert/run --host Change-Id: I7a4e046bc59619c43f975267fe806b88a96b289d
-
- Mar 11, 2020
-
-
Hansong Zhang authored
Test: cert/run --host Change-Id: I7e1aea927a63fa4b84774ef213c7724bd1db2202
-
- Feb 21, 2020
-
-
Hansong Zhang authored
Test: cert/run_cert_facade_only.sh Change-Id: I91dc5569fbb0226b1b8e18ac62113803eea70c3d
-
- Feb 04, 2020
-
-
Chris Manton authored
Bug: 146086425 Test: bluetooth_test_gd Change-Id: I0efa1084ca89c3fc34ef117e7c9c6da2ef62c04b
-
- Dec 04, 2019
-
-
Hansong Zhang authored
Implemented LE Dynamic Channel open and close. Connection parameter update is not implemented. Test: bluetooth_test_gd and run_cert.sh Bug: 141558315 Change-Id: I0a01d6c417e4fd18eaed9da0c69bc80417c93dac
-
Hansong Zhang authored
Bug: 141556925 Test: bluetooth_test_gd Change-Id: I2cb23d79db3e93a037eb58395480274766e11cd0
-
- Nov 25, 2019
-
-
Hansong Zhang authored
DynamicChannel API is same for both classic and LE Bug: 144503952 Test: bluetooth_test_gd and run_cert.sh Change-Id: Ie29ff5a1834d13f2e684f70d9b1333002f5bfc43
-
Hansong Zhang authored
Since we moved channel data pipeline logic to DataController, DynamicChannelImpl is same for classic and LE. Bug: 144503952 Test: run_cert.sh Change-Id: Ie573ae04092e9a475a02cd6f078f03bdd84e0df6
-
Hansong Zhang authored
Currently there is coupling between sender, scheduler, and receiver. Instead, use DataPipelineManager to orgranize them. Bug: 144773997 Test: bluetooth_test_gd Change-Id: Ifeef5255e1cdcc75b78211c648dbf7463f18095f
-
- Nov 22, 2019
-
-
Hansong Zhang authored
Segment and reassemble LE information frame. Next step is to integrate command signals to handle credit, and update MTU and MPS. Test: bluetooth_test_gd Bug: 144954675 Change-Id: I37defeedb5b7f73e77c61960d3b8e0d41722c9e9
-
- Nov 21, 2019
-
-
Hansong Zhang authored
And fix a bug in condition checking Test: bluetooth_test_gd Change-Id: I1f124c9e433df260853e720be57cbfbacc497369
-
- Nov 18, 2019
-
-
Hansong Zhang authored
Currently Scheduler is the overall manager for data pipeline subsystem. Make a separate manager in the next step. Bug: 144097774 Test: run_cert.sh Change-Id: Id331494a49435ca64ae253157e30e5e09c8ae500
-
- Nov 14, 2019
-
-
Hansong Zhang authored
Scheduler is used for enqueuing PDUs from segmenters to link queue end. Segmenter is used for dequeuing SDUs from channels to scheduler. Segmenter needs to handle converting PDUs into SDUs. Bug: 144375926 Test: run_cert.sh and bluetooth_test_gd Change-Id: Ia4a1707d7e0147f9f63c137e62d15ecdc877a813
-
- Nov 13, 2019
-
-
Hansong Zhang authored
Previously Scheduler handles both outgoing and incoming packet path, but they are actually not related to each other. Separating them to decouple. Now Scheduler only serves outgoing packets, and the new Reassembler serves incoming packets. Currently only basic mode is supported. When we add enhanced retransmission mode, we add logic to it separately. Bug: 144375926 Test: run_cert.sh and bluetooth_test_gd Change-Id: I411c0696fc2e6c834ab11e2485ee26d36104095d
-
- Oct 18, 2019
-
-
Jack He authored
* Add fuzz test generator for packet generator to generate macros for fuzz tests * Add a few fuzz tests for L2CAP packets Bug: 142684649 Test: bluetooth_gd_fuzz_test Change-Id: I75bf726b40caef3c7895596039d01c395d34506f
-
- Oct 17, 2019
-
-
Zongheng Wang authored
Initialized fuzz test for Bluetooth GD library. There is one fuzz target gd/fuzz_test.cc and it will call all fuzz tests in gd. Created a fuzzer for l2cap classic internal dynamic channel allocator to test DynamicChannelAllocator::IsPsmUsed(Psm psm). Bug: 142684649 Test: bluetooth_gd_fuzz_test Change-Id: If7c66d6aefc5d52448824f7f96f3118607a37215
-
- Oct 09, 2019
-
-
Hansong Zhang authored
Supports listening to an incoming L2CAP connection, open the channel and transfer data. Test: bluetooth_test_gd and cert/run_cert.sh Bug: 138260719 Change-Id: I5a1b93dc30b43bb149c32e5f4ef5404f2d091cdb
-
- Oct 04, 2019
-
-
Jack He authored
* Although L2CAP LE and Classic stacks look similar, they are actually very different when diving into details * Splitting them into two separate modules will benefit in the following ways: * One can start a LE only stack * One can turn off Classic stack entirely when not needed * Dependencies are more obvious, e.g. LE-CoC only depends on LE L2CAP and A2DP only depends on Classic L2CAP * Changed test names as GTEST does not allow test name collisions * New directory structure after the change: - l2cap: common headers that should be exposed to public - internal: common internal libraries shared between LE and classic - classic: classic headers that should be exposed to public - internal: internal libraries for classic - cert: certification stack for classic - le: LE headers that should be exposed to public - internal: internal libraries for LE - cert: certification stack for LE Using Bash for file in classic_*; do git mv "$file" "classic/${file/classic_/}"; done for file in le_*; do git mv "$file" "le/${file/le_/}"; done for file in internal/le_*; do git mv "$file" "le/${file/le_/}"; done for file in internal/classic_*; do git mv "$file" "classic/${file/classic_/}"; done for file in classic/*; do if [ -f "$file" ]; then sed -i -e 's/Classic//g' "$file"; fi; done for file in classic/internal/*; do if [ -f "$file" ]; then sed -i -e 's/Classic//g' "$file"; fi; done for file in le/*; do if [ -f "$file" ]; then sed -i -e 's/Le//g' "$file"; fi; done for file in le/internal/*; do if [ -f "$file" ]; then sed -i -e 's/Le//g' "$file"; fi; done Using IDE: replace "namespace l2cap {" with "namespace l2cap { namespace classic {" in classic/ replace "} // namespace l2cap" with "} }" in classic/ replace "namespace l2cap {" with "namespace l2cap { namespace le {" in le/ replace "} // namespace l2cap" with "} }" in le/ replace "l2cap/classic_" with "l2cap/classic/" in classic/ replace "l2cap/internal/classic_" with "l2cap/classic/internal/" in classic/ replace "l2cap/le_" with "l2cap/le/" in le/ replace "l2cap/internal/le_" with "l2cap/le/internal/" in le/ Bug: 140938432 Test: bluetooth_test_gd Change-Id: I29eafefc5b6be4033e5db811776230d28ca312b2
-
- Oct 03, 2019
-
-
Hansong Zhang authored
Add internal implementation for ClassicDynamicChannel Signalling packets will be handled in next commit Test: cert/run_cert.sh and bluetooth_test_gd Bug: 138260719 Change-Id: I3b0fee9837034988e6490372ffbfd5ece90250f7
-
- Oct 02, 2019
-
-
Jack He authored
* Merge identical logic for fixed channel allocation among Classic and LE fixed channel connections * Use Classic mocks as a place holder to write tests for L2capFixedChannelAllocatorTest Test: bluetooth_test_gd Bug: 140938432 Change-Id: Ibff6cb2c3120d967efe828e91cb8f9f2bdefc398
-
Jack He authored
* Implemented LE fixed channel implementation with reference from classic fixed channel implementation * Adjusted LE specific logic in link manager and other related components * Added address type across the LE fixed channel stack * Adjusted unit test for LE fixed channel cases Bug: 140938432 Test: bluetooth_test_gd Change-Id: I7c5cd27e917efa1e72dce05828c26146c10797c2
-
- Oct 01, 2019
-
-
Hansong Zhang authored
Reland I15f40c6b55d180003afaa14252c576b1b2a5e25e L2CAP Classic dynamic channel and allocator impl, with the fix of NPE Test: bluetooth_test_gd and cert/run_cert.sh Bug: 138260719 Change-Id: I5c42dcb5871086903ac0f87441235ff75bfc8fdf
-
- Sep 30, 2019
-
-
Hansong Zhang authored
This reverts commit d539cc98. Reason for revert: Broke test! Change-Id: If0ef8fc64ba16c7bded9d4849d5b09a4217489bf
-
- Sep 27, 2019
-
-
Hansong Zhang authored
Test: bluetooth_test_gd and cert/run_cert.sh Bug: 138260719 Change-Id: I15f40c6b55d180003afaa14252c576b1b2a5e25e
-
- Sep 26, 2019
-
-
Hansong Zhang authored
Add API for Classic Dynamic Channel Test: cert/run_cert.sh and bluetooth_test_gd Bug: 138260719 Change-Id: I7afb0d7e540ae1c133c967045163e400f86e312a
-
- Sep 10, 2019
-
-
Jack He authored
* Add a mechanism to disconnect ACL after a link is idle for kClassicLinkIdleDisconnectTimeout seconds. The current setting is 20. * Add Acquire() and Release() method to ClassicFixedChannel for user to indicate if a fixed channel should hold the current ACL link or should it be oportunistic * Implemented methods to register for disconnection callbacks * Add tests to verify fixed channel acquire/release and register disconnction callback methods * Add tests to verify classic link idle timeout disconnect methods Bug: 138261142 Test: bluetooth_test_gd Change-Id: I78129afb1b988311c56019f87cbb3f78e9a08cc5
-
- Aug 21, 2019
-
-
Hansong Zhang authored
Test: bluetooth_test_gd Bug: 138261142 Change-Id: If1dbabf48b5a53892e36b8434c46a3180f2a2799
-
- Aug 20, 2019
-
-
Jack He authored
* Implement ClassicLinkManager and APIs for classic fixed channel * Implement mechanism to create new ACL connections using ACL manager * Updated dependencies among internal L2CAP components * Remove SetOnChannelFail() and other unused methods from ClassicFixedChannelServiceImpl * Add mocks and unit tests to verify the functionality of ClassicLinkManager * Add common/testing/bind_test_util.h so that we can bind lambdas with capture in unit tests, although this is not allowed in production code * Add error and result code for classic fixed channel service registration failure and connection failures Bug: 138261142 Test: bluetooth_test_gd, cert/run_cert.sh Change-Id: Ib2794a0073dbc73f46b8c6fd5f5cf0ae1c8c559a
-
- Aug 13, 2019
-
-
Chris Manton authored
This is a utility class for L2CAP link to manage channels Test: bluetooth_test_gd Bug: 138261142 Change-Id: I1adaaf29817371bb3f0e68d64f6aec3d3eea2c85
-
Chris Manton authored
Implement classic fixed channel service registration Test: bluetooth_test_gd Change-Id: Ic5d5b4543e88a0e4b9918f4583c5d115ef021cf0
-
- Aug 09, 2019
-
-
Jack He authored
* Add ClassicFixedChannelManager * Add ClassicFixedChannelService * Add ClassicFixedChannel * Modify cid and constants definition Bug: 138261142 Test: bluetooth_test_gd Change-Id: Iae4e398e938436c74d16b49834a4bd5146b03873
-
- Aug 01, 2019
-
-
Jack He authored
* 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
-
- Jul 19, 2019
-
-
Chris Manton authored
Test: bluetooth_test_gd Change-Id: Iac9c6514467048202136795d08217c7743adac37
-
- Apr 18, 2019
-
-
Myles Watson authored
Test: bluetooth_gd_test --gtest_filter=*Fcs* Change-Id: I321e12bfb3ec8b5652d26d2b2e5066dc6a80895c
-