summaryrefslogtreecommitdiff
path: root/floss
AgeCommit message (Collapse)Author
2025-03-18OWNER freeze window William Escande
Bug: 381884217 Flag: EXEMPT only changing OWNERS Test: m . Change-Id: I9c8322fca831c81a158bac4765f79db00ddb061b
2024-12-30Merge "hcidoc: fix the number of ACL connections" into main Archie Pusaka
2024-12-27Revert^2 "OWNER remove freeze window" William Escande
This reverts commit a6f7fa1da0e5ca8b6a0f1734bfa089d542f2afba. Reason for revert: Prebuilt as landed Change-Id: I40a2bd6b29b924f51f9823381485f3adcf249b42
2024-12-20Revert "OWNER remove freeze window" Thomas Girardier
This reverts commit 5616c5a9624baea932bd552ecedd772ceaf9068b. Reason for revert: Freezing Bluetooth during holiday period and transition to Mainline since it is now built from source. Change-Id: I56fe54154296ef1bcee7e92f77a462036ef8008b
2024-12-18hcidoc: fix the number of ACL connections Archie Pusaka
Previously an update is made to support distinguishing BREDR and LE connections which changed the data type of DeviceInformation::acls. The output that prints the number of ACL connections was not updated and thus will always shows 2. This CL fixes it. Bug: 293397988 Test: m -j Flag: EXEMPT, floss only changes Change-Id: I6eb3f1f58ec771921c21cff27ce56dd1e93d9b83
2024-12-06OWNER remove freeze window William Escande
This reverts aosp/3387082 Bug: 381884217 Flag: EXEMPT only changing OWNERS Test: m . Change-Id: I716f0283525750a6fc7cfe85251c1c1b8632f9e6
2024-12-02Merge "OWNER freeze window" into main William Escande
2024-12-02OWNER freeze window William Escande
Bug: 381884217 Flag: EXEMPT only changing OWNERS Test: m . Change-Id: Iff8ed28793141c2463d2c8a251ff454fc25c448e
2024-11-28floss: wire hid_virtual_unplug from btclient Archie Pusaka
Some PTS tests requires us to send a HID virtual unplug, which we have as libbluetooth API but there's no way to access them from btclient. This CL wires that functionality. Bug: 344778226 Test: m -j Test: Run PTS HID/HOS/HCR/BV-03-C Flag: EXEMPT, floss only changes Change-Id: Ib85829f20c78a16068c7bddacbba31c8cfc19ad4
2024-11-14Uprev Floss linux build env to Debian 13 (trixie) for C++20 support Hsin-chen Chuang
A patch for libchrome/BUILD.gn to remove `-Xclang-only=` is needed in the trixie (clang 16) environment because that's not supported in the public. In bookworm (clang 14) the flag only generates a warning rather than failing the build. Bug: 378773945 Tag: #floss Test: mmm packages/modules/Bluetooth Test: ./container-build-image.py && ./build-in-container.py with https://r.android.com/3345590 Flag: EXEMPT, Floss-only change Change-Id: Ie461dcde5a2b1efed245d0cce70bb6e6992b4e97
2024-10-24Hcidoc: Support multiple concurrent connections with the same address Archie Pusaka
Devices which uses the same address for BREDR and LE connections will mess up with the internal processing of hcidoc because it assumed only one connection at any given time per address. Bug: 375370824 Test: m -j Test: manually with pixel buds Flag: EXEMPT, floss only change Change-Id: I7e4d3ed24d15b74da70e44a480c67180b4233162
2024-10-23Hcidoc: Use hci_packets.pdl in rootcanal Archie Pusaka
The hci_packets.pdl in system/pdl doesn't seem to be fully compatible with the pdl-compiler. Therefore, use the one in rootcanal instead. Since they have different structure, some adjustments needs to be made. In particular, this one doesn't have nested HCI structure, and doesn't have GAP Data implementation. Bug: 289858128 Test: m -j Test: Manual verification Flag: EXEMPT, floss only changes Change-Id: I0ede46f80cc0e371bc69ccdbd9f2b60e9be6ccd8
2024-10-23Hcidoc: Add disconnection initiator information Archie Pusaka
The initiator of disconnection can be different than the connection. Also print the disconnection initiator. Bug: 374907937 Test: m -j Test: Manual verification Flag: EXEMPT, floss only changes Change-Id: Ic8f8860a3d9d45fb9c2a9b4585774de92ca7063b
2024-10-23Hcidoc: Print cid info Archie Pusaka
Print the CID information for L2CAP connections. Bug: 374907568 Test: m -j Test: manual verification Flag: EXEMPT, floss changes only Change-Id: Id93d52a5ca819d29f63d9cdb92da80f3879315ea
2024-10-08floss: fix some rust warnings Archie Pusaka
* Add serde feature in hcidoc_packets (the generated files has serde configuration feature) * Allow dead code in hcidoc parser (the structs correctly represent the actual packet despite the value is never read) * Don't use DateTime::from_timestamp_micros in hcidoc parser because it needs chrono version above what's available on our rust_crates * Use underscore for default match arm * Remove unused FromPrimitive trait Bug: None Test: m -j Flag: EXEMPT, floss only changes Change-Id: Ie81c021b02ca5fa7d142fc64e8cec061c6566f2c
2024-09-14Merge "floss: add image check and example use cases" into main Ying Hsu
2024-09-13floss: add image check and example use cases Ying Hsu
Bug: 313582353 Tag: #floss Test: ./floss/build/build-in-container.py Test: m -j Flag: Exempt, floss only Change-Id: I960e7403b43bc9baff8bfa96abe83908744a9ec0
2024-09-05Use std::sync::LazyLock rather than lazy_static. Andrew Walbran
Bug: 364211748 Test: atest libbt_common_inline_tests Change-Id: I034e6143df298e80565c720bdbf440d4d9939c3f
2024-09-05Update Rust toolchain to 1.80.1, to match Android. Andrew Walbran
Also fix incorrect usage of cargo install --git --rev. Bug: 361370910 Test: atest libbt_common_inline_tests Change-Id: Ifd836fc0b3d364cb66736ed49999466e5f8f5ce8
2024-08-29Merge "floss: Increase git timeout for container build" into main Treehugger Robot
2024-08-28floss: Increase git timeout for container build Abhishek Pandit-Subedi
Bug: 336365190 Test: mmm packages/modules/Bluetooth Test: ./floss/build/build-in-container.py Tag: #floss Flag: EXEMPT, Floss-only changes Change-Id: I6523883bbb398164f8605c79aeaeeee43c893e42
2024-08-15Merge changes I05da6242,I272f8f04 into main Archie Pusaka
* changes: Floss: Hcidoc: Support AOSP snoop log Floss: Hcidoc: Refactor hcidoc parser to support other snoop types
2024-08-14Floss: Hcidoc: Support AOSP snoop log Archie Pusaka
AOSP log has datalink_type 1002 and a different logic to store the opcodes of the packet. Bug: 343594308 Test: m -j Test: Run hcidoc with snoop captured from AOSP Flag: EXEMPT, floss only changes Change-Id: I05da6242e93feef0f835592f999230d6b0b3f064
2024-08-14Floss: Hcidoc: Refactor hcidoc parser to support other snoop types Archie Pusaka
Rename some variables to drop the LINUX_ prefix because it is uniform throughout all btsnoop formats, not just the LINUX ones. Refactor some classes to merge/split some logical responsibilities to prepare for future implemented types. Bug: 343594308 Test: m -j Test: Test with the CLs in the chain Flag: EXEMPT, floss only changes Change-Id: I272f8f04a61e3e656b9a2261d691d52f445f130b
2024-08-02floss: Add support for running cargo-bloat Abhishek Pandit-Subedi
In order to track how binary space is being used, add support for calling cargo bloat via build.py. See https://crates.io/crates/cargo-bloat for more informatio about the crate which needs to be installed on the host in order to run. Bug: 356808668 Test: mmm packages/modules/Bluetooth Change-Id: I637e7e3f48b38ad9982a43ecbe56e51afcf5431b
2024-07-31Update bindgen version to 0.69.4 Bob Haarman
We currently depend on bindgen-0.64, which does not work correctly with newer LLVM versions. This change updates the requested version to 0.69.4 - the latest available version. Bug: 355051880 Test: mmm packages/modules/Bluetooth Change-Id: I24403c083363b0a4d237ff6261743b2ba281a897
2024-07-07Format: apply clang rules William Escande
Restore SpacesBeforeTrailingComments to 2 to match current style Then run clang-format -i **/**.{c,h,cc,cpp,hpp} Then fix a bunch of typo (reported by gerrit) Then fix unnecessary multiline string Then fix whitespace for disabled clang format (reported by cpplint) This is no-op Bug: 311772251 Test: mmm packages/modules/Bluetooth Flag: Exempt Format only Change-Id: If135447803a40a2a07d4630ba2195e08ef8d250c
2024-06-18Merge "floss: notify hfp/a2dp audio status via forwarded fd" into main Jeremy Wu
2024-06-17floss: notify hfp/a2dp audio status via forwarded fd Jeremy Wu
This adds a parameter to |start/stop_x| so that the audio server can poll on the file descriptor for status update for faster transition. Bug: 343885745 Flag: EXEMPT floss-only Test: m Bluetooth Change-Id: Iac311e1b96bca68bb0a2533c80cc6120bfda3ea5
2024-06-13libbluetooth: Add BT_STATUS_SOCKET_ERROR metric Sarvesh Kalwit
Add granularity to BT_STATUS_FAIL error codes by introducing a new BT_STATUS_SOCKET_ERROR metric, to be used when an effort to find a device by address or other identifier fails. Bug: 340296381 Test: m -j Flag: Exempt, metrics-only change Change-Id: I030ea3e1545d6979f3634d89d3d6aefbdca619b2
2024-06-13libbluetooth: Add BT_STATUS_UNEXPECTED_STATE metric floss-automerger
Add granularity to BT_STATUS_FAIL error codes by introducing a new BT_STATUS_UNEXPECTED_STATE metric, to be used when an effort to find a device by address or other identifier fails. Bug: 340296381 Test: m -j Flag: Exempt, metrics-only change Change-Id: I0b358f08821cb1904f828b1aa04b1855b41ec8df
2024-06-05libbluetooth: Add BT_STATUS_DEVICE_NOT_FOUND metric Sarvesh Kalwit
Add granularity to BT_STATUS_FAIL error codes by introducing a new BT_STATUS_DEVICE_NOT_FOUND metric, to be used when an effort to find a device by address or other identifier fails. Bug: 340296381 Test: m -j Flag: Exempt, metrics-only change Change-Id: I22664bfd3e26242803b8b996a813e93011f32d16
2024-05-28floss: QA: Fix the wrong DBus method name GetHIDReport Hsin-chen Chuang
Bug: 342337056 Tag: #floss Test: mmm packages/modules/Bluetooth Test: btclient> hid get-report 11:35:35:11:35:35 Input 1 Flag: EXEMPT, Floss-only changes Change-Id: Iecac01506a2fea28b28be8e49c4922fdf1ab867a
2024-05-10Merge "floss: Complete libflags shim" into main Hsin-chen Chuang
2024-05-09floss: Complete libflags shim Hsin-chen Chuang
On Floss we store the aflags config inside sysprops module. Bug: 307006275 Tag: #floss Test: mmm packages/modules/Bluetooth Test: atest --host bluetooth_test_gd_unit:ConfigCacheTest#test_get_section_property_names Test: atest --host bluetooth_test_gd_unit:SyspropsModuleTest Test: manual set/reset/remove persist.device_config.aconfig_flags.bluetooth.com.android.bluetooth.flags.msft_addr_tracking_quirk, verified behavior changed Flag: EXEMPT, Floss-only changes Change-Id: I1d72b7e970d354a6b8c22e6e015d859bd1b48da7
2024-05-07Interop: Remove unused BROWSE_PLAYER_ALLOW_LIST William Escande
Bug: 337054479 Test: m . Flag: Exempt, dead code removal Change-Id: I957d5d98455df494693f542f0b5e397743fdc7b9
2024-04-25Add a android-base shim for floss David Duarte
The code generated by the sysprop tool depends on some APIs of android-base to read properties to make it work on floss we add the needed API and wire them to the GD OS APIs Bug: 337064224 Test: None Flag: EXEMPT, floss Change-Id: Ifa8491b475cd2461904eb42a40a96713c43bf459
2024-04-25Add the sysprop_cpp tool inside floss docker image David Duarte
Bug: 337064224 Test: ./container-build-image.py --use-docker Flag: EXEMPT, floss docker image Change-Id: I8d35ad407a36abca1b85e2f1158a6d945ff1d5ee
2024-04-22Merge "floss: Add aconfig to floss docker image" into main David Duarte
2024-04-22Merge "floss: Add a libflags shim" into main David Duarte
2024-04-19Merge "floss: Update dockerfile rust version to 1.77.1" into main David Duarte
2024-04-16Floss: Implement Pandora HFP profile (part2). Saba Sarabta
Bug: 301000117 Bug: 301000133 Bug: 300942860 Bug: 301000134 Bug: 301000127 Bug: 301000129 Bug: 300954039 Bug: 301000131 Bug: 300954045 Bug: 301036158 Bug: 301036160 Test: mma packages/modules/Bluetooth && pts-bot HFP Tag: #floss Flag: EXEMPT floss only changes Change-Id: I648da8963227c38f4725991053a062c7ed61d9bf
2024-04-16Floss: Implement Pandora HFP profile (part1). Mohammad Sabri
Bug: 300954040 Bug: 301036159 Bug: 300954041 Bug: 300954043 Bug: 300954042 Bug: 300942872 Bug: 300942873 Bug: 301000128 Bug: 300954044 Bug: 301000132 Bug: 301000135 Test: mma packages/modules/Bluetooth && pts-bot HFP Tag: #floss Flag: EXEMPT floss only changes Change-Id: I76df131eeb6ccd18d8a2e5b324f76af571c6e805
2024-04-16Floss: Implement Pandora modem profile RajaaAbdallah
Bug: 331124618 Test: mma packages/modules/Bluetooth && pts-bot HFP Tag: #floss Flag: EXEMPT floss only changes Change-Id: I5ddfe446ca764cb04dc7fbea0cfb4217f98e007e
2024-04-16Floss: Implements BluetoothTelephony D-Bus client RajaaAbdallah
DBus client implementations for org.chromium.bluetooth.BluetoothTelephony and org.chromium.bluetooth.BluetoothTelephonyCallback. Bug: 317453734 Test: mma packages/modules/Bluetooth Tag: #floss Flag: EXEMPT floss only changes Change-Id: I0e26708ec2a2041f430b1f1597eaa22bf967b461
2024-04-16floss: Add aconfig to floss docker image David Duarte
Bug: 307006275 Flag: EXEMPT, floss Test: ./floss/build/container-build-image.py Change-Id: If2ecd15a9750f87b199cf2d5949a31f3a5437c82
2024-04-16floss: Add a libflags shim David Duarte
The code generated by aconfig depends on libflags. To be able to use aconfig on floss we add a shim version of libflags. Bug: 307006275 Flag: EXEMPT, floss Test: N/A Change-Id: I7bcc42a0bd4fc86b74fd83a7101d1a82bb6c62dc
2024-04-16floss: Update dockerfile rust version to 1.77.1 David Duarte
Bug: 307006275 Flag: EXEMPT, floss Test: ./floss/build/container-build-image.py && ./floss/build/build-in-container.py Change-Id: Ie6c218cb2d11f8d0abcbe1967cd62d5d89ebbbba
2024-04-05Merge "Floss: Hcidoc: Clear NOCP on carryover section" into main Archie Pusaka
2024-04-04Merge "floss: Fix "unused manifest key" warning" into main Hsin-chen Chuang