aboutsummaryrefslogtreecommitdiff
path: root/system/stack/test/common
Commit message (Collapse)AuthorAgeFilesLines
* Make L2CAP credit config modifiableMehmet Murat Sevim2023-02-062-0/+9
| | | | | | | | | | | | | | Value is overridable by build time system properties: bluetooth.l2cap.le.credit_default.value bluetooth.l2cap.le.credit_threshold.value Bug: 263323082 Bug: 174290912 Test: Manual test (cherry picked from commit 5fa1707fd2d7ed5d040ab8aa2c35d07a3ce920fa) (cherry picked from commit 4f221c977f4c2a4329cd0679e23541c3b672a6f0) Merged-In: Ic27f572e73527bdf1af47e3781372043f8e310be Change-Id: Iaced125567764ab5c9d373f10fea6417c589f3e0
* Prepare SDP for convergenceWilliam Escande2022-12-061-37/+0
| | | | | | | | | | | | | Move sdp test to its own folder and adding them to mts_default for coverage tracking Add basic test for service_search_request Bug: 246022810 Test: atest net_test_stack_sdp Tag: #refactor Merged-In: Ic9c80556883e9a84a93bf3757f8b7bb0d8ea0748 Change-Id: Ic9c80556883e9a84a93bf3757f8b7bb0d8ea0748 (cherry picked from commit 261839848de1bb6e818ea5629f8aef6d60fa6c77)
* eatt: Fix getting channel with the queue data to sendŁukasz Rymanowski2022-10-032-3/+3
| | | | | | | | | | | | | | | When GATT is asking about channel with a non empty data queue to send, EATT shall check also if the outstanding command is scheduled to send or maybe is already waiting for the response. Otherwise, we might end up with having channel not beeing used. Bug: 249992170 Test: atest BluetoothInstrumentationTests Test: atest --host net_test_eatt Tag: #feature Merged-In: Idceaf76847851cc8e256da4a3c4069c9e5cc93fd Change-Id: Idceaf76847851cc8e256da4a3c4069c9e5cc93fd (cherry picked from commit e84baf9ca92c09f57cd0d643c73b2e4620a7a12c)
* eatt/l2cap: Add upper tester for L2CAP test casesŁukasz Rymanowski2022-08-232-0/+6
| | | | | | | | | | | | | | | | | | | | | This patch adds upper tester for L2CAP ECOC testing e.g. - trigger sending data - trigger reconfiguration - trigger L2CAP ECOC creation as a peripheral - initiate ECOC with configurable number of channels - configure minimum encryption key size - force all profiles to use EATT Bug: 242033442 Bug: 242032465 Bug: 237399985 Test: PTS Testing Test: atest BluetoothInstrumentationTests Tag: #feature Merged-In: Iee13f61149381dc1adec485bfc6dd216361ad1b9 Change-Id: Iee13f61149381dc1adec485bfc6dd216361ad1b9 (cherry picked from commit 8512f5bb9fdf285f8c6901f0df33f655a0ce9fd4)
* Merge "eatt: Disconnect EATT channel on GATT timeout" into tm-d1-devTreeHugger Robot2022-07-132-3/+3
|\
| * eatt: Disconnect EATT channel on GATT timeoutŁukasz Rymanowski2022-06-302-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | When there is an operation on the EATT channel and there is gatt timeout, lets disconnect this channel Bug: 236083555 Test: atest BluetoothInstrumentationTests Test: GATT/CL/GAT/BV-03-C Tag: #stability Merged-In: I02d5d538af801a4118d293f8244445e8b34a2d7a Change-Id: I02d5d538af801a4118d293f8244445e8b34a2d7a (cherry picked from commit 6584fb53bc5b6f0da55ee4ef617d1a996cf58cf0)
* | Merge "eatt: Establish EATT after encryption is done." into tm-d1-devTreeHugger Robot2022-07-132-0/+18
|\|
| * eatt: Establish EATT after encryption is done.Łukasz Rymanowski2022-06-302-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per specification EATT channel shall be encrypted and this patch makes this happen. However for some PTS test cases, we still would like to create L2CAP channels without encryption and this patch also allows to do that with flag PTS_ConnectEattUnencrypted Bug: 236944522 Test: PTS L2CAP/ECFC/BV-32-C Test: atest BluetoothInstrumentationTests Test: atest net_test_eatt Tag: #feature Merged-In: I98d7721f3733756e2c47bc7acd6f36d571b0eac0 Change-Id: I98d7721f3733756e2c47bc7acd6f36d571b0eac0 (cherry picked from commit 1cb0d9172cd16d6f5441ae1383b18f03aa8e4217)
* | Dynamic AVRCP versionkuanyuhuang2022-06-242-0/+91
|/ | | | | | | | | | | | | | | | | To avoid AVRCP IOP issues related to AVRCP version mismatch, bt_stack can report AVRC Target version same as AVRC Controller version of remote device when connection setup. - add sysprop persist.bluetooth.dynamic_avrcp.enable To enable: adb shell setprop persist.bluetooth.dynamic_avrcp.enable true - Add unit test "atest net_test_stack_sdp" Bug: 231289728 Tag: #feature Test: manual test on IOP carkits and regression test devices Change-Id: I9842c4cf4023612d59491a831634c53c3e768939 Merged-In: I9842c4cf4023612d59491a831634c53c3e768939
* floss: use delete ctor and remove all base/macros.h includeshscham2022-02-181-3/+3
| | | | | | | | | | | The deprecated macros will be removed from base/macros.h from libchrome r938828. The header file will no longer contains any macros and hence renamed to base/ignore_result.h in libchrome r941411. Bug: 211560276 Tag: #floss Test: FEATURES=test emerge-hatch floss Change-Id: I83c8c0d0a668df0d62544894884fe30d80f9f821
* legacy: Final removal gd_scan gd_advertChris Manton2022-01-121-8/+0
| | | | | | | | Bug: 197514416 Tag: #refactor Test: gd/cert/run Change-Id: If3d9cf5585579c727dd6564fb62423555a8a03a5
* legacy: Final remove is_any_gd_enabledChris Manton2022-01-071-4/+0
| | | | | | | | Bug: 199945370 Tag: #refactor Test: gd/cert/run Change-Id: Ifbf9a7aa2ee8e3f18c56cffefab994783a3d3e57
* Merge "legacy: Use conventional naming struct btm_client_interface_t"Treehugger Robot2021-11-121-2/+2
|\
| * legacy: Use conventional naming struct btm_client_interface_tChris Manton2021-11-111-2/+2
| | | | | | | | | | | | | | | | Bug: 202068782 Tag: #refactor Test: gd/cert/run Change-Id: I00564abbb638a45316b53609504bc35abbb63355
* | legacy: Remove INIT_FLAG is_gd_aclChris Manton2021-11-111-6/+0
|/ | | | | | | | Bug: 199945370 Tag: #refactor Test: gd/cert/run Change-Id: I33ec0248e0e8baaf79fae32b7a9ee1e6a28ecc7b
* Remove cpp is_gd_controller_enabled because It Is KnownChris Manton2021-10-111-4/+0
| | | | | | | | Bug: 197513926 Tag: #refactor Test: gd/cert/run Change-Id: Ie0fc5a7977f1ca9de2756448d9d0f9d4b99fa629
* legacy: Explicitly include types/raw_addressChris Manton2021-09-248-1/+12
| | | | | | | | Bug: 197478351 Tag: #refactor Test: gd/cert/run Change-Id: I6eedcf3455ab278094a2e4e47f8cede84d96fd25
* legacy: stack: Properly include stack/include/bt_hdrChris Manton2021-09-234-1/+7
| | | | | | | | Bug: 197478351 Tag: #refactor Test: gd/cert/run Change-Id: I028b984fc6262ef8905a84864bfe8cbed159c5f5
* legacy: Uninclude unused stack/include/hcimsgsChris Manton2021-09-052-2/+0
| | | | | | | Bug: 197478351 Tag: #refactor Test: gd/cert/run Change-Id: Ib075e6d524841908e3fb732cc2f3c53b78340c88
* legacy: Re-include stack/test mocksChris Manton2021-09-033-6/+7
| | | | | | | | Bug: 197478351 Tag: #refactor Test: gd/cert/run Change-Id: Iea02f349f09d343902a0e9bbe36f835e40519d11
* mockcify: Centralize btsnoop module mocksChris Manton2021-08-271-42/+0
| | | | | | | | Bug: 188077107 Tag: #refactor Test: gd/cert/run Change-Id: Ibfaa624da4e04809945b0648d9d432af4f5f1508
* legacy: Un-include unnecessary stack/include/bt_typesChris Manton2021-08-271-1/+1
| | | | | | | | Bug: 197478351 Tag: #refactor Test: gd/cert/run Change-Id: I0d86908c31ff1fc3e3dd8824ccad15d3aee5b6e6
* Remove cpp is_gd_hci_enabled because It Is KnownChris Manton2021-08-211-4/+0
| | | | | | | | Bug: 197150934 Tag: #refactor Test: gd/cert/run Change-Id: Ibd2d626d691db99d6b2c6eaab0b9440e81bfa6a0
* legacy: Remove unused mocksChris Manton2021-07-152-589/+0
| | | | | | | | Bug: 187825293 Tag: #refactor Test: gd/cert/run Change-Id: I7d48063b8d88e0e4d724d24cb3018a504d649165
* Queue discovery and device inquiry while bondingRahul Sabnis2021-07-021-0/+5
| | | | | | | Tag: #feature Bug: 187165224 Test: Manual Change-Id: I260c967de0f4656ee852a098a98c9ceb0e6dfbde
* Proper types tBTM_STATUSChris Manton2021-06-221-2/+3
| | | | | | | | Bug: 188297862 Tag: #refactor Test: gd/cert/run Change-Id: I079f97be62228a31cd8df3eef869efe2b6c79ea7
* Revert "Revert "Remove unused mocks""Chris Manton2021-06-2113-1316/+0
| | | | | | | | | | | This reverts commit 53962abc7698ce92778852ffc71e679f808d0684. Bug: 191431228 Tag: #refactor Test: gd/cert/run Reason for revert: probably works Change-Id: I57a7b73944ff5f8c4744eb4f761e6955fce09ee5
* Use proper types tBT_DEVICE_TYPEChris Manton2021-06-212-2/+2
| | | | | | | | Bug: 188297862 Tag: #refactor Test: gd/cert/run Change-Id: I8bce5e9cd9cbb17c39ab482a7ea3cfc3f476d644
* Revert "Remove unused mocks"Wen Chang Liu2021-06-1815-0/+1899
| | | | | | | | | | | | | | | | | | | Revert submission 1738738 Bug: 191431228 Tag: #refactor Test: gd/cert/run Reason for revert: Test Cop test checking Reverted Changes: I97a6d10c9:test: Fix net_test_osi Ib514252d0:Make stack_smp_test host runnable I77e9a079c:Update test/mock_stack_acl Ia8a2896ca:Canonicalize include pathnames Ibc4d03fc1:Add test/mock_btif_bluetooth Id4733a3af:Remove unused mocks Ifebdb31ec:Re-point stack tests to use centralized test/mock Change-Id: Ia67e02eee172b26214a13d4dbdb665fa5fbaf842
* Remove unused mocksChris Manton2021-06-1715-1899/+0
| | | | | | | | | | Bug: 187825293 Tag: #refactor Test: gd/cert/run Mocks are aggregated at toplevel test/mock dir Change-Id: Id4733a3afc9c44b43e9d4d80c3fa44d7cb693b67
* Encapsulate hal callback post_to_main_message_loopChris Manton2021-06-161-3/+0
| | | | | | | | Bug: 188297860 Tag: #refactor Test: gd/cert/run Change-Id: Id54d785ce752c905c2920a04806de65724d60a9c
* Add API check_cod_hidChris Manton2021-06-141-0/+4
| | | | | | | | Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I81a5f03cf3b4a200076acae0c61025ac2734131c
* shim: Back out gd acl acceptlist gymnasticsChris Manton2021-06-041-50/+0
| | | | | | | | Bug: 183374320 Test: gd/cert/run Tag: #refactor Change-Id: I07d787e70e0da353f7b9f200536d6d6ef1ae7452
* stack/gatt: Store GATT server supported featuresŁukasz Rymanowski2021-06-022-7/+19
| | | | | | | | Tag: #feature Bug: 159786353 Sponsor: jpawlowski@ Test: compile & manual testing Change-Id: Ic16d962949e3aa51ed1ab5ce06cf9aa1acebc726
* Merge "Feature: send delay report once configed"Zyan Wu2021-05-312-0/+142
|\
| * Feature: send delay report once configedZyan Wu2021-05-272-0/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As accept device, sending delay report after setconfig rsp is sent. Do it as a second action instead of in the bta AV subsystem. As init device, send delay report after setconfig rsp is received and just before sending open req. Add UT to test the state machine; - As accept, it shall send delay report after it sends setconfig rsp - As init, it shall send delay report after it receives setconfig rsp and before it sends open req Also, correct delay report confirm event shall be called back To run the test, run atest [--host] net_test_stack_avdtp Bug: 185507179 Bug: 188367563 Tag: #feature Test: atest --host bluetooth_test_gd Change-Id: Id0cb5bfc62b3a9296564b0e9651b30027d677f85
* | Update for Chrome OS libchrome uprev.Qijiang Fan2021-05-261-1/+1
|/ | | | | | | | | | | | | | | | | | | | * base/bind_helpers.h All utilities of base/bind_helpers.h will be moved to base/callback_helpers.h. Add a wrapper header for system/bt. * using base::MakeUnboundRunType base::MakeUnboundRunType is now in base::internal namespace. Use internal namespace as temporary workaround. This change should be no-op to Android. Chrome OS Bug: crbug/2742042 Bug: 189293646 Tag: #floss Test: CrOS zork-floss-cq ci.chromium.org/ui/b/8846190456959373168 Change-Id: Ia37528fcc56300a45b21e74937e6a21eb8026f84
* Point stack_btm_test to use common test/mocksChris Manton2021-05-095-540/+0
| | | | | | | | Bug: 183374320 Test: gd/cert/run Tag: #refactor Change-Id: I40c663f53914e6174ae531648c027b9cd0f7ab56
* gd: Add parameter for background connectionChienyuan2021-05-061-1/+1
| | | | | | | | | | Tag: #gd-refactor Bug: 183575877 Bug: 185286437 Test: gd/cert/run BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines Change-Id: I070ccd94d600c6c0da4a996cd2b1fa03820bbf32
* Enum-ify stack/gatt::tGATT_SEC_ACTIONChris Manton2021-05-041-2/+2
| | | | | | | | Bug: 163134718 Test: gd/cert/run Tag: #refactor Change-Id: I57eb31e9e39f073380949dc9df4510a8adb81dfb
* OOB: generateLocalOobdata()Martin Brabham2021-04-282-0/+14
| | | | | | | | | | | | Implement generation of LE OOB Data - Remove GD flag to NOP for OobDataReply. GD Stack is only up to ACL, so Legacy SM needs to properly function. Bug: 184377951 Tag: #feature Test: Manual implementation from p/a/Settings Change-Id: I6072c70f5e6707eb8f3a6126ffa1edbb5cba5aa4
* Re-point main/test/ to use common test/mockChris Manton2021-04-274-389/+0
| | | | | | | | | | Toward testable code Bug: 163134718 Test: gd/cert/run Tag: #refactor Change-Id: I6f2d7a4a26858c416750bf35c47f70ec13f2f0f4
* Add test mock filegroup TestMockLegacyHciCommandsChris Manton2021-04-242-631/+0
| | | | | | | | | Bug: 182370398 Test: gd/cert/run Tag: #refactor BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines Change-Id: I968195c790eced00134739cbb9b6c9c060193d97
* GD-Shim: Free BT_HDR after use or callback failureJack He2021-04-231-1/+1
| | | | | | | | | | | | | | | | | | | * Legacy stack always assume the last user of BT_HDR will free the structure. Make sure we do this in GD shim as well Bug: 185083624 Tag: #gd-refactor Test: gd/cert/run Send a 31MB video - before this change, RSS increased by 86 MB when 10% (3MB) was sent - after this change, RSS increased by 37 MB and stabilized, this increase is anticipated as the file needs to be cached in RAM BYPASS_LONG_LINES_REASON: consist with gd format Change-Id: Ie934e6d4edd7dfc79b4444ce1c13819834f59692
* BQR: Print common BQR eventsMyles Watson2021-04-051-0/+40
| | | | | | | Bug: 183057550 Test: Enable BQR events Tag: #logging Change-Id: Ibda9f7041c7f68b0bb9fff203fea556a47c12079
* Merge "IBluetoothManager: Update createBondOutOfBand interface"Treehugger Robot2021-03-191-1/+2
|\
| * IBluetoothManager: Update createBondOutOfBand interfaceMartin Brabham2021-03-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | Add plumbing for both p192 and p256 data types. Ignore-AOSP-First: Conflicts with CL previously merged internal Bug: 178007935 Test: atest net_test_btif Tag: #refactor Change-Id: I6b1424c22495821bfbbf56830f3848e6c03b74d4 Merged-In: I6b1424c22495821bfbbf56830f3848e6c03b74d4
* | Use proper types tHCI_ROLEChris Manton2021-03-133-4/+4
|/ | | | | | | | | Bug: 179120287 Test: gd/cert/run Tag: #refactor BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines Change-Id: I6fd932fa39b4d7ea8b88db0877806a636a90deed
* Remove log.h from mock fileweichinweng2021-03-102-2/+0
| | | | | | | Bug: 181293964 Test: atest BluetoothInstrumentationTests Tag: #feature Change-Id: I89356bb39fa0fe5cc70d8ee17a28699275a32126
* Use proper tBTM_STATUS typesChris Manton2021-03-082-15/+15
| | | | | | | | | | Toward readable code Bug: 163134718 Test: cert Tag: #refactor Change-Id: I7727220d4da93279ed215fa366b528cc859b8525