summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
12 daysSwitch to `libjni_legacy`HEADmastermainMatthew Maurer
We're updating `libjni` to `0.21`. This involves several API breakages, so I'm rewriting everyone to use `libjni_legacy` first to allow `libjni` to be upgraded. Follow-up changes will update you to use `libjni`. Change-Id: Iccff3b4a7a74a370cf175bb6e8b966f70949a180
2024-05-09Merge "Update source for Rust 1.78.0" into mainTreehugger Robot
2024-05-09Update source for Rust 1.78.0Chris Wailes
Test: m rust Bug: 333887339 Change-Id: I10d491283af5ef4e7109d900359bc17723cfd964
2024-05-02[test_coverage] Disable native coverage for mock libs.ziyiw
Test: compile Bug: 330169927 Change-Id: I2977cfc72035a79ae5e1a5da837c65748594353a
2024-05-01[test_coverage] Remove host_supported from libuwb_core.ziyiw
Fix the build error. Test: DIST_DIR=dist_dir TARGET_BUILD_VARIANT=userdebug PRODUCT=mainline_modules_x86_64 COVERAGE_MODULES="uwb" ./vendor/google/build/build_unbundled_coverage_mainline_module.sh Bug: 336652103 Change-Id: I8283642a28f70489482e962467fc12211f2d44c0
2024-05-01Merge "[test_coverage] Disable native coverage for libs used for test." into ↵Treehugger Robot
main
2024-04-30[test_coverage] Disable native coverage for libs used for test.ziyiw
Test: NA Bug: 330169927 Change-Id: I02dba6d04ffd9a1df0b17ee0a15e56c1fcc3e312
2024-04-30[unit_test] Remove target.host from rust_testziyiw
We don't need it anymore since b/204562227 is fixed. Test: atest libuci_hal_android_tests Bug: 336652103 Merged-In: Ic5adfd318ad1f40b9bdbea5b49c4db498ada1d4a Change-Id: Ic5adfd318ad1f40b9bdbea5b49c4db498ada1d4a
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-29Merge "Remove usage of Aconfig non-API flag from UWB rust code." into mainAyush Jain
2024-03-28Revert "Support Multicast NTF V1/V2 packet formats."Dajung Lee
Revert submission 3018363-uwb_multicast_ntf Reason for revert: b/331836038 Reverted changes: /q/submissionid:3018363-uwb_multicast_ntf Change-Id: I29b995c1b4e248f49b700987d3546f47261969d2
2024-03-28Support Multicast NTF V1/V2 packet formats.Ayush Jain
Fira 1.x had defined the SESSION_UPDATE_CONTROLLER_MULTICAST_LIST_NTF to have a StatusList[] with 3 fields (MacAddress, SubSessionId, Status - size of 7 bytes). Fira 2.0 changed the definition of StatusList[] with 2 fields (MacAddress, Status - size of 3 bytes). This CL does the packet conversions with an additional UCI version parameter given to the try_into() conversion methods (as a tuple). Test: make com.android.uwb Test: atest libuwb_uci_jni_rust_tests libuwb_core_tests libuwb_uci_packet_tests Test: https://paste.googleplex.com/6207883791826944 Bug: 322549007 Change-Id: I6b406c5b157a3a7b639ba492e4e5bcb3b643946d
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-26uwb: Change OWNERS fileRoshan Pius
Bug: N/A Change-Id: Iaf9ceace33dfdcdf5f1aa6136f33566e9b1b59ec Test: N/A
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-03-07Merge "CR1045 Controller/Controlee specific HUS config command updates" into ↵Ayush Jain
main
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 main am: ↵Ayush Jain
b14574f639 Original change: https://android-review.googlesource.com/c/platform/external/uwb/+/2906070 Change-Id: I0e37e7a848b9c25c2e8e9f52dddb669e8833775c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-28Merge "UCI extension for data transfer phase configuration" into mainAyush Jain
2024-02-09Allow clippy::unnecessary_fallible_conversions am: 1197b775afStephen Hines
Original change: https://android-review.googlesource.com/c/platform/external/uwb/+/2954563 Change-Id: I53c6c91c43d478adf34fceb5571c84cd46e5ee05 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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 main am: 65343c45baAyush Jain
Original change: https://android-review.googlesource.com/c/platform/external/uwb/+/2923132 Change-Id: I963c6ca5bce83554c39feb2555953bc0a9a96872 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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. am: b4753a15adAyush Jain
Original change: https://android-review.googlesource.com/c/platform/external/uwb/+/2928476 Change-Id: I87d34de3592a9a30300d25ea2681bc7c4dfd123a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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-22[uci] Add Fira 2.0 AppConfig type to pdl file. am: 848b174693ziyiw
Original change: https://android-review.googlesource.com/c/platform/external/uwb/+/2918313 Change-Id: Ie870097c6b4b06bb84e7c7944619e0e642e2b81e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-20[uci] Add Fira 2.0 AppConfig type to pdl file.ziyiw
Bug: 321307674 Test: compile Change-Id: Ib5fafcd689ea7889b6db12b9b1739b5ad36d5b0c
2024-01-08[rust] Add support for CCC capability UWBS_MAX_PPM. am: 720887b494 am: ↵Ayush Jain
bee3b67233 am: 6be9a8b2cc Original change: https://android-review.googlesource.com/c/platform/external/uwb/+/2892085 Change-Id: I2e7d259a57947cb45efd8650557a63918bc3418e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>