Commit graph

68 commits

Author SHA1 Message Date
Jooyung Han
83497068b9 Move uwb-service into VAPEX
Bug: 296487624
Test: launch cuttlefish / uwb-service runs
Change-Id: I5436d9215ad396fe6cd151690d299dd345c56cb0
2023-08-21 15:12:07 +09:00
Jooyung Han
3e0519690f Move uwb-service.rc
Previously, .rc file is installed separately. Now it's installed as part
of the uwb-service binary installation.

Bug: 296487624
Test: launch cuttlefish / uwb-service runs with /dev/hvc9
Change-Id: I49108c74a5ca964818c90407cc7916d80439d5ab
2023-08-21 12:57:20 +09:00
Henri Chataing
77971b371b uwb: Rewrite implementation of sendUciMessage to use the opened File
The current implementation used fs::write() as workaround since
the write permission was missing from the fs::open() invocation

Test: m android.hardware.uwb-service
Change-Id: Ifdb460843fcb9525ad498f928b1dc2ed9beb5410
2023-08-16 17:10:20 +00:00
Shreshta Manu
595041e6fb [uwb-interfaces] Add support for prioritized channel list
Test: compiles
Bug: 293959095
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cef396ca26136d812405e78009e7a1374ca89e5c)
Merged-In: I18da378128b96b73ae457045354d22a4add988d0
Change-Id: I18da378128b96b73ae457045354d22a4add988d0
2023-08-08 20:08:45 +00:00
Jin Chen
1b1aa3bb9a [uwb](hal) Add radar data packet format
* Update based on Android UWB radar UCI spec v1.1 (go/uwb-radar-uci).

Test: Compile
Bug: 237097302
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:86974637e8e2a447a527ac828bf27958c008b339)
Merged-In: I8e8de979ea2f69396b049c2107cba16e71793cb0
Change-Id: I8e8de979ea2f69396b049c2107cba16e71793cb0
2023-07-13 18:09:02 +00:00
Jin Chen
cb3c1de918 [uwb](hal) Add radar support
* Adding radar session type, capabilities, oids, and app configs based
  on the Android UWB radar UCI spec v1.0.

Test: Compile
Bug: 237097302
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:db326d178686dd981dbb81804534b51502392ae2)
Merged-In: Ia0b901859b38127db8532118f2427338fdf502a8
Change-Id: Ia0b901859b38127db8532118f2427338fdf502a8
2023-06-28 21:11:53 +00:00
Charlie Boutier
3561c84d77 Uwb Hal: use fs::write instead of File::write
Test: launch_cvd -enable_host_uwb
Change-Id: I1f9038f585ca79c33b8168db69da0e71fa414c6d
2023-05-02 00:06:28 +00:00
Charlie Boutier
29567e796b Merge "Revert "Revert "uwb(hal): Implement UCI over serial in the defau..."" 2023-04-17 23:22:04 +00:00
Charlie Boutier
d572dd0bc7 Revert "Revert "uwb(hal): Implement UCI over serial in the defau..."
Revert submission 2528605-revert-2215484-pica_cf-BZDQSZLKEP

Reason for revert: revert^2

Reverted changes: /q/submissionid:2528605-revert-2215484-pica_cf-BZDQSZLKEP

Change-Id: I0c64b449c5da236a7cd63f88a605d48b9c471c67
2023-04-10 18:14:23 +00:00
Sam Wu
9f8fac2faa Merge "Revert "uwb(hal): Implement UCI over serial in the default HAL"" 2023-04-07 23:45:06 +00:00
Sam Wu
63bcd88052 Revert "uwb(hal): Implement UCI over serial in the default HAL"
Revert submission 2215484-pica_cf

Reason for revert: DroidMonitor: Potential culprit for Bug X - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:2215484-pica_cf

Change-Id: Ifd9f5cf04631e19a33b29b4b2917eaab2b506e23
2023-04-07 18:35:20 +00:00
Charlie Boutier
77ee578477 Merge "uwb(hal): Implement UCI over serial in the default HAL" 2023-04-06 16:09:27 +00:00
ziyiw
46b5ac8692 Add min uwb initiation time as new vendor capability.
Test: manual
Bug: 245854896
Merged-In: I640b54356d4a7dc338d995596147aa6716278b54
Change-Id: I12436cad527255d8f88e9ca34409aee0a59b3c92
2023-04-04 20:06:49 +00:00
David Duarte
e432bdd45b uwb(hal): Implement UCI over serial in the default HAL
Bug: 229824143
Test: manual with cuttlefish
Change-Id: Ia29e618b8c9b53f295f66ff0b94965d4f571f8e4
2023-04-03 17:32:44 +00:00
Roshan Pius
cca5eefb32 uwb[aidl]: Added LAST_STS_INDEX_USED config into CCC open ranging params
Add LAST_STS_INDEX_USED to CCC ranging

Bug: 268762844
Test: test CCC
Merged-In: I56514e7d7d0c927e6bf8e257547f7baeadd3770c
Change-Id: I56514e7d7d0c927e6bf8e257547f7baeadd3770c
2023-03-28 11:52:18 -07:00
ziyiw
617c2baaaa Add new reason code and status code for session conflict.
Also assigned a new number to the UWB regulation off status/reason code.

Test: compile
Bug: 272361935
Merged-In: I4cbf2443d7e3ec914ee465d9128fef5225a74712
Change-Id: Ib219ea213be050944a0bbd601f79ccbbba18f299
2023-03-14 19:58:03 +00:00
ziyiw
3b1252c88c Change the unit of slot duration from ms to rstu.
Test: compile
Bug: 266980744
Merged-In: Iba643094f9d44293e47b68487aeae30847af4826
Change-Id: I255b46d110d1a30a548fc37a479c1fc62b770f14
2023-02-28 17:29:27 +00:00
ziyiw
8ad5f800c2 [UWB HAL] Add new capability and reason code to show the channels that are capable for AoA.
Test: compile
Bug: 242951474
Merged-In: I307062b7ded64014327549e8c4a717d53e97f54b
Change-Id: Ia9c801cce335214cbfc0b09c8d5498193c741dfa
2023-02-17 19:07:11 +00:00
ziyiw
5363e6a547 Add the unit of slot duration to its name.
Test: compile
Bug: 266980744
Merged-In: I1418b7a1b9e938b03e785cb1b2b4c92a8f4c9ecf
Change-Id: Ie0e8e983c2044721b25c076c24a02f6460923571
2023-02-17 19:06:26 +00:00
Bhautik Ardeshana
dd8a1ae2e7 uwb: Allow Java backened jar to be created
Bug: 254568115
Test: Check for jar file in intermediate path
Change-Id: I36c0c356a5300f8ba31a1ab9a812740a8ea99335
2023-02-03 10:45:09 +05:30
ziyiw
5f0d4c663e Add supported maximum number of ranging session as capability.
Test: compile
Bug: 259493075
Merged-In: Ibe7edb84c968b70be62059bb0bb6ffeedfa4bad6
Change-Id: I313fdd7e894be322105befd91a1fc92d28f8c402
2022-12-07 07:50:47 +00:00
ziyiw
b922b6b215 Add a new capability to indcate min slot duration.
Test: compile
Bug: 254655623
Merged-In: Icac53069ddc61bbd60049880119973f1b4b0286d
Change-Id: Icac53069ddc61bbd60049880119973f1b4b0286d
2022-11-18 18:25:47 +00:00
Roshan Pius
493e8216b0 uwb(hal): Doc update to clarify country code payload of 00
Bug: 243426975
Test: N/A
Merged-In: I6ec56c68df5e1049d93c31e498934501f7d75ad1
Change-Id: I6ec56c68df5e1049d93c31e498934501f7d75ad1
2022-11-09 09:50:20 -08:00
ziyiw
2cf69b7084 Add Diagnostics Oid in HAL.
Test: compile
Bug: 236969605
Merged-In: Idc44d73f31dc23d4dfaf4f461d8c312338421234
Change-Id: Idc44d73f31dc23d4dfaf4f461d8c312338421234
2022-11-09 09:50:01 -08:00
ziyiw
e27f56430c Add new capability TLV and config TLV for supported diagnostics.
Test: Compile
Bug: 236969605
Merged-In: I9cd3e442857cf8691420f7d3f3386f1aa45a78a2
Change-Id: I9cd3e442857cf8691420f7d3f3386f1aa45a78a2
2022-11-09 09:49:38 -08:00
ziyiw
8ad4251bbb Add new capability TLV for supported RSSI reporting
Test: Compile
Bug: 236720553
Merged-In: Iae490f193c7e613ef8c9ee03784563b3286182bb
Change-Id: Iae490f193c7e613ef8c9ee03784563b3286182bb
2022-11-09 09:49:11 -08:00
Roshan Pius
745c36cb74 uwb(hal): Add a new capability TLV for supported rng ntf thresholds
Bug: 235355249
Test: Compiles
Merged-In: I44dd28b0b3ff5cfe6bf227e4cad917edfce10262
Change-Id: I44dd28b0b3ff5cfe6bf227e4cad917edfce10262
2022-11-09 09:48:51 -08:00
Roshan Pius
4c0fffb0ab uwb(hal): Add a new capability TLV for min ranging interval
Bug: 235488259
Test: Compiles
Merged-In: I7f0c6d9b68ea3a1ba31911a031f2e7ee24c9d331
Change-Id: I7f0c6d9b68ea3a1ba31911a031f2e7ee24c9d331
2022-11-09 09:48:28 -08:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
Roshan Pius
3ba0e635e1 uwb(vts): Close HAL at end of each test
Bug: 235558748
Test: atest VtsHalUwbTargetTest
Change-Id: I5361baab1f9204052e0f625b3c17242fbfe66190
2022-06-10 20:03:18 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Alain Michaud
2e2c6e7b31 uwb(hal): Adding support for host tests.
Adding support for building hosts tests using the HAL interface.

Bug: 216784920
Test: atest --host libuwb_uci_packet_tests
Change-Id: I3e855b8b7bf203fc4f9769327348bfc3d1e10796
2022-03-17 14:51:39 +00:00
Roshan Pius
88561d9380 uwb(hal): Add 2 CCC specific error codes in vendor portion
Note: This update is in the types-only package that we plan to update
throughout the year.

Bug: 222291913
Test: Compiles
Change-Id: Iffc7532a86f3beb6b9f745faf4a523d6d0017542
2022-03-10 10:31:14 -08:00
Roshan Pius
8974cbcdd7 uwb(hal): Fix typo in pulse shape combo caps
This does not align with the values defined in
UwbVendorCapabilityTlvValues.aidl.

Bug: 221001452
Test: Compiles
Change-Id: I41d4850e5455ec6679af5edfa0e510d20439a651
2022-02-23 09:00:01 -08:00
Roshan Pius
89791a7891 uwb(hal): Modify TLV value size for interleaving params
Bug: 220173516
Test: Compiles
Change-Id: Idf26f6d4adbbc79f4f1f260aa8b8c608f3391b98
2022-02-22 10:09:35 -08:00
Roshan Pius
8db34352b7 uwb(hal): Switch ANDROID GID to 0xC
Based on vendor feedback since 0xE is already being used for a bunch of
vendor specific stuff.

Bug: 210933436
Bug: 218883784
Test: Compiles
Change-Id: I49b5018569164a52fa7c9f78ca9c69a181747f44
2022-02-10 10:54:31 -08:00
Roshan Pius
62b89b1670 uwb(hal): Some changes to the CCC capabilities to align with latest proposals in standards body
Bug: 208678993
Bug: 209053358
Change-Id: I6610b106323db4ceab047b34b91aaa13a1a7f83d
Test: Compiles
2022-02-08 15:31:33 -08:00
Roshan Pius
b44de0093b uwb(hal): Remove getAndroidCapabilities HAL API
This is unnecessary since we are anyway using GET_CAPS_INFO for querying
non-fira capabilities.

Bug: 208678993
Bug: 209053358
Test: Compiles
Change-Id: Id9af03b313ceaf00fb6d5231c454dc7c74a6287a
2022-02-07 08:35:57 -08:00
Roshan Pius
5ea2d1799c uwb(hal): Add an android specifci aoa_result_req value
This is needed for supporting antenna interleaving feature.

Bug: 205730040
Test: Compiles
Change-Id: I06696c1624cbe5af67124ae5f807ef0bcc983194
2022-02-04 13:13:35 -08:00
Roshan Pius
1b538f5363 uwb(hal): Remove FIRA params from the HAL interface
Reworking based on vendor feedback.  There is already some FIRA standards
body activity to add this in the FIRA specifications. So, defer to that
spec instead of redefinining it in the HAL interface.

Bug: 208678993
Bug: 209053358
Test: Compiles
Change-Id: I20c4ecb84d2efbecac76c40864d9f97cf9987da6
2022-01-31 10:26:40 -08:00
Roshan Pius
b0a6c0bd20 uwb(hal): Add device capability TLV values
Resolving a review comment from ag/16739541.

Bug: 208678993
Test: Compiles
Change-Id: I19ae20e37ab6ef0bf8f7db473b977e8dac872d0d
2022-01-28 13:37:56 -08:00
Roshan Pius
d43080da7a uwb(hal): Add device capability TLV types
Also, rename UwbVendorSessionSetAppConfigCmdParams to a more generic
UwbVendorSessionAppConfigTlvTypes because it used in SET_APP_CONFIG &
GET_APP_CONFIG cmds.

Bug: 208678993
Test: Compiles
Change-Id: Iaad3788eee1948feb369b5f8fb4076c2f2479d10
2022-01-28 05:25:08 +00:00
Roshan Pius
1c0febea78 uwb(hal): Add 2 new CCC param ids under vendor interface
Bug: 208678993
Test: Compiles
Change-Id: I3043d30b1c1566786faf0dfbe6df74d7e3119720
2022-01-26 10:22:46 -08:00
Roshan Pius
981bb666a2 uwb(hal): Set sdk to Tiramisu
Bug: 215526504
Test: Compiles
Change-Id: I4f3762545a22688d5432162c0fb2b1599f4d3758
2022-01-20 18:39:10 +00:00
TreeHugger Robot
46b8a47444 Merge "uwb(hal): Add HAL API for session initialization" 2021-12-10 18:11:45 +00:00
Roshan Pius
f2c2939b98 uwb(hal): Add HAL API for session initialization
Bug: 209990508
Test: atest VtsHalUwbTargetTest
Change-Id: I7d10062cb3854ab39717d93a6eadba9dde99330d
2021-12-10 01:29:15 +00:00
Roshan Pius
0d8bf1034f Merge "uwb(hal): Add SET_APP_CONFIG params for interleaving ratio" 2021-12-07 15:07:58 +00:00
Roshan Pius
f996b7c87b uwb(hal): Add SET_APP_CONFIG params for interleaving ratio
This is defined in the vendor space since it has not been defined in
the FIRA standards yet (even though the AOA_RESULT_REQ = 0xF0 has been
accepted into the specification).

Bug: 205730040
Test: Compiles
Change-Id: Ib4106f123a2edf6ed00128985914a5bd932e249e
2021-12-02 07:14:55 -08:00
Roshan Pius
26eef12a00 uwb(hal): Add a OID for country code set
Bug: 205787337
Test: Compiles
Change-Id: Ie0cf91a5725fd58e26af884f7a5d2fdb0fd7fc81
2021-11-18 13:36:22 -08:00
Kai Shi
fdbe1d3b5c Merge "Add OID for the power related stats" 2021-11-12 22:44:26 +00:00