summaryrefslogtreecommitdiff
path: root/src/rust
AgeCommit message (Collapse)Author
2024-06-04Merge "Update to pdl 0.3.0" into mainDavid Duarte
2024-05-31Handle Update Multicast Response for Fira 1.X and Fira 2.0Bhakthavatsala Raghavendra
Bug: 328289229 Test: atest libuwb_core_tests Change-Id: I072130b26f56d0f377f009b0d11f3e063253c180
2024-05-30Update to pdl 0.3.0David Duarte
Test: mmm external/uwb Change-Id: I3c3e4fa8d4c7b32a37ebe84cfa86107b15212e46
2024-05-23[uwb-uci] add antenna mode app config paramJames Eidson
Bug: 341159131 Test: n/a Change-Id: I1888ad7f901e756279362d7c36f8b5983f529c46
2024-05-09Update source for Rust 1.78.0Chris Wailes
Test: m rust Bug: 333887339 Change-Id: I10d491283af5ef4e7109d900359bc17723cfd964
2024-04-27Merge "Revert "Revert "[uci] Pass in a boolean to indicate if support m..."" ↵Bob Wang
into main
2024-04-26Revert "Revert "[uci] Pass in a boolean to indicate if support m..."Bob Wang
Revert submission 3048435-revert-3047732-multicastNtfV2-GAJTEFWXIA Reason for revert: test failure fixed Reverted changes: /q/submissionid:3048435-revert-3047732-multicastNtfV2-GAJTEFWXIA Change-Id: I3ef0e3073ead9d306f9791a30bee24da5c7af5d8
2024-04-19Merge "Revert "[uci] Pass in a boolean to indicate if support multicast..."" ↵Phenix Chen
into main
2024-04-19Revert "[uci] Pass in a boolean to indicate if support multicast..."Phenix Chen
Revert submission 3047732-multicastNtfV2 Reason for revert: Potential culprit for build issue Reverted changes: /q/submissionid:3047732-multicastNtfV2 Change-Id: I642e26bb9f6636d47f20c77d8354ecd54b8dba4d
2024-04-18[unit_test] Use NopLogger in unit tests to improve coverage.ziyiw
Test: libuwb_core_tests Bug: 330169927 Change-Id: I14bab732e551ea61f8eec99e0b89ef5f75a18041
2024-04-17[uci] Pass in a boolean to indicate if support multicast ntf v2.ziyiw
This is a temporary fix for Pixel devices that are using Fira 2.0 while still using multicast ntf v1. Bug: 333989564 Test: atest CtsUwbTestCases Test: atest libuwb_core_tests Change-Id: Ib45ce604a4e3ad0717b333d523e681a75cdc18b3
2024-04-15[unit_test] Add more tests for uci_logger and notification.ziyiw
Test: libuwb_core_tests Bug: 330169927 Change-Id: Idb179979e6d8be5d6ae64c11341ecfcb96ec2d45
2024-04-12[unit_test] Add more tests for uci_manager.ziyiw
Test: atest libuwb_core_tests Bug: 330169927 Change-Id: Ibd3b22d100d64b6bf4f2b004d95aac9d081a22d4
2024-04-12Merge "[unit_test] Add unit tests for uci vendor response." into mainTreehugger Robot
2024-04-11Merge "[uci] Parse segment metrics from ranging diag. report" into mainBob Wang
2024-04-11[unit_test] Add unit tests for uci vendor response.ziyiw
Test: atest libuwb_core_tests Bug: 330169927 Change-Id: I4b491cf99a27bbf455dd4585484faff46eb5c81d
2024-04-11[unit_test] Add more unit tests for uci notification.ziyiw
Test: atest libuwb_core_tests Bug: 330169927 Change-Id: Ifa3ddbbb2c72fc2019238fcb7f339e92210367c0
2024-04-10[uci] Parse segment metrics from ranging diag. reportziyiw
Test: atest libuwb_uci_packet_tests Bug: 324966512 Change-Id: I6296770cc2ab38572098e269e2eef7a35772ab55
2024-04-10[unit test] Add test coverage for uwb commands.ziyiw
Bug: 330169927 Test: atest libuwb_core_tests Change-Id: I07bacba1e3e5f0ca08f125efa4a480b411e8acc0
2024-04-08[unit_test] Add more unit tests for uwb_uci_packetsziyiw
Bug: 330169927 Test: atest libuwb_uci_packet_tests Change-Id: I34ce94335f04768dd4a2abe6efe53fee3fbbf63a
2024-04-05[uwb] Support updateMulticastListNtf for both Fira 1.x and 2.0.ziyiw
patched from aosp/3018363 Bug: 331836038 Test: manual Change-Id: I121c9e527d1e94d63c8be6da2512bd7f75d26275
2024-04-04Merge "Race condition while processing session status notification." into mainRoshan Pius
2024-04-04Fix radar notification parsingMihai Pop
Fix multiplication overflow when sweep data is unpacked for a radar data packet. Bug: 331804951 Change-Id: Ifc2314f6e58b8e041966da26485b2d44f2ac4634
2024-03-27Race condition while processing session status notification.Bhautik Ardeshana
pass sessionToken as parameter to SessionStatusNotification Bug: 329386934 Test: atest libuwb_core_tests Change-Id: Id23649c13e27edbeaa8d62fc12e75febb041242c
2024-03-20Remove usage of Aconfig non-API flag from UWB rust code.Ayush Jain
The UWB mainline module's rust code currently uses only one Aconfig flag. This CL removes that, as well as the Aconfig related libs that were added. Bug: 329709371 Test: make com.android.uwb Change-Id: I5956d1256116b4bcfe6650a300a7a6810cddb3e2
2024-03-20Merge "Increase UCI_TIMEOUT to two seconds" into mainRoshan Pius
2024-03-14uci_hal_android: Validate the number of bytes sent by SendUciMessageHenri Chataing
UciHalAndroid::send_packet ignores the return value of sendUciMessage. From the aidl specification of IUwbChip: > This method may queue writes and return immediately, or it may block > until data is written. Implementation must guarantee that writes are > executed in order. > @return number of bytes written to the UWB Subsystem Bug: 329316454 Test: TreeHugger Change-Id: I0fabd162a3278739e35c851a8b384fe85c298080
2024-03-12Increase UCI_TIMEOUT to two secondsBhakthavatsala Raghavendra
Change-Id: If4ae35f54a4bb65339ccbc6b4212650ca69dd6a1
2024-02-29CR1045 Controller/Controlee specific HUS config command updatesBhautik Ardeshana
Bug: 325848944 Test: atest libuwb_core_tests libuwb_uci_packet_tests Change-Id: I9bd12d4f3676711978a1bee053d6147352af74e6
2024-02-28Merge "UCI extension for data transfer phase configuration" into mainAyush Jain
2024-02-09Allow clippy::unnecessary_fallible_conversionsStephen Hines
FFI types like `c_long` vary on 32/64-bit, and the check is only needed on 64-bit conversions. Fixing this lint makes the code less readable. ``` error: use of a fallible conversion when an infallible one could be used --> external/uwb/src/rust/uwb_core/src/uci/uci_manager.rs:895:60 | 895 | ... Some(u16size) => match u16size.try_into() { | ^^^^^^^^ help: use: `into` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions = note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]` ``` Bug: http://b/321303117 Test: toolchain/android_rust/test_compiler.py --prebuilt-path dist/rust-dev.tar.xz --target aosp_cf_x86_64_phone --all-rust Change-Id: I26bb78f63c2205003aa0656d77ed86b4c62a4ba7
2024-01-29Merge "Define new session type value for ALIRO." into mainAyush Jain
2024-01-27Define new session type value for ALIRO.Ayush Jain
Bug: 321757248 Test: atest libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests Change-Id: I5cdf28db6cfd116d015226dd29a0f4207ff203c9
2024-01-26Fix StatusCode to ErrorCode mapping for UwbRegulationOff.Ayush Jain
Bug: 320687252 Test: Manual testing (after simulating UWB chip AndroidSetCountryCodeResponse). Test: atest libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests Change-Id: Ia4dfc30c49f3dcc9d91634a0b5dbd01e8a7bb9b1
2024-01-24UCI extension for data transfer phase configurationBhautik Ardeshana
CR1022-UCI extension for data transfer phase DTPCM configuration_r4 CR1047-UCI Generic spec status code removal for DTPCM configuration command_r3 Bug: 319596317 Test: atest libuwb_core_tests libuwb_uci_packet_tests Change-Id: I9c5aef7ad40879ef8bb071362c102ab58bc09531
2024-01-20[uci] Add Fira 2.0 AppConfig type to pdl file.ziyiw
Bug: 321307674 Test: compile Change-Id: Ib5fafcd689ea7889b6db12b9b1739b5ad36d5b0c
2024-01-05[rust] Add support for CCC capability UWBS_MAX_PPM.Ayush Jain
Define the capability tag. Test: atest libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests Bug: 308660074 Change-Id: I52455ced0266ff593ddac721ae8b0526b0bfe55e
2023-12-20Process DEVICE_STATE_ERROR on Priority if it is received in middle of other ↵Bhautik Ardeshana
fragmented packets. If DEVICE_STATE_ERROR is received while waiting for remaining fragments,process DEVICE_STATUS_ERROR on priority and initiate MW recovery. Bug: 315400914 Test: Manaually Change-Id: I4d4bae36a45ffb3ff118b5bdab3df347d3cf5f06
2023-12-14Fragment UCI DATA SND packets based upon UWBS capabilities.Ayush Jain
Currently the data packets sent by Host to UWBS are fragmented with a fixed payload size of 255 bytes. This CL changes the behavior to use the UWBS capability value "MAX_DATA_PACKET_PAYLOAD_SIZE" to determine the max payload size of each data packet fragment. It will still use the value 255 as the default (in case the capability couldn't be read from the UWBS). Test: atest libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests Bug: 301834443 Change-Id: I36866609ac8cbc091d66a134a17f923d7d330232
2023-12-13[uwb] Anchor location denoted by WGS-84 uses 12 bytesShreshta Manu
WGS-84 coordrinate system uses 12 bytes, relaive coodrinate uses 10 bytes Bug: 316045753 Test: unit test and verified with latest UCI spec (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3b6a516d3be55f6fcc413cad56849159c1faafd5) Merged-In: I25dd84f8890aa174948442e7b769b9711f971533 Change-Id: I25dd84f8890aa174948442e7b769b9711f971533
2023-12-02Store UCI CORE_GET_DEVICE_INFO RSP.Ayush Jain
This will be used in a future CL to determine the UWBS UCI version, and based on that parse the Capability tags in a CORE_GET_CAPS_INFO RSP. Confirmed with debug logs (not submitted) that the response is stored: 12-02 01:06:20.037 1653 2381 D uwb : uwb_core::uci::uci_manager: AKJ: will call open_hal() 12-02 01:06:20.048 1653 2381 D uwb : uwb_core::uci::uci_manager: AKJ: open_hal() succeeded, will call core_get_device_info() 12-02 01:06:20.049 1653 3670 D uwb : uwb_core::uci::uci_manager: AKJ: store_if_uwbs_device_info called 12-02 01:06:20.049 1653 3670 D uwb : uwb_core::uci::uci_manager: AKJ: get_device_info_rsp = Some(GetDeviceInfoResponse { status: UciStatusOk, uci_version: 4097, mac_version: 4097, phy_version: 4097, uci_test_version: 4097, vendor_spec_info: [] }) Test: atest libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests Test: Manual Bug: 301834443 Change-Id: I4376679287247fabb1192be95e95c4510b52f397
2023-11-21Define the Fira Ver2.0 Capability Tag IDsAyush Jain
Test: Confirm com.android.uwb compiles Test: Confirm "atest -b libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests" Bug: 301834443 Change-Id: I53a2fe92e589d6c620db141ba73e6bb8f58a4ece
2023-11-06Merge "Clear the session map while closing UWB hal" into mainAyush Jain
2023-11-01Clear the session map while closing UWB halBhautik Ardeshana
Bug: 308404392 Test: Uwb init-deinit Change-Id: I20c3aa0200ee993570901e0028c8b3ea05d5a95f
2023-10-31Update to pdl-compiler 0.2.2Henri Chataing
Bug: 306901204 Test: TreeHugger Change-Id: I43f936f503ec0977685087920dd5fa1c7be1d3f5
2023-09-06[Fira-1037] corrections and clarifications on status codesBhautik Ardeshana
Bug: 285984668 Test: Unit tests Change-Id: Ib3d11710ad106b7c052655bf0952b67063ec2203
2023-08-31MultiCastListUpdate response status code update as 2.0 specBhautik Ardeshana
Bug: 298353161 Test: UpdateMulticastCommand Change-Id: I4bea3aa32a2da2ea97ffdd2d146bd785d682d06e
2023-08-24Merge "[Fira-344]add support for DL_TDOA_BLOCK_STRIDING for DT_TAG" into mainAyush Jain
2023-08-18UWB native implementation for RadarAnte
UWB Radar UCI proposal: b/274691169 Bug: 237097302 Test: Unit tests Change-Id: I9296d4a0478f8e05087ef096143c89fb80646179
2023-08-17[Fira-344]add support for DL_TDOA_BLOCK_STRIDING for DT_TAGBhautik Ardeshana
Bug: 296344967 Test: test dltdoa Change-Id: Ia9217964278a07ed9431980ad02eb5edf3c71a16