Commit graph

124 commits

Author SHA1 Message Date
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
Kai Shi
58e292b551 Add OID for the power related stats
Add Android specific OID for the power related stats.

Bug: 199768480
Test: compile
Change-Id: I65701663be48b9528c5a7b2c88743ec567b45b6b
2021-11-10 19:21:58 -08:00
Roshan Pius
a881697d11 Merge "Move uwb owners file to top-level" 2021-11-10 22:47:00 +00:00
TreeHugger Robot
9c18ff2006 Merge "uwb(hal): Add CCC session type SESSION_INIT_CMD" 2021-11-10 22:28:28 +00:00
Roshan Pius
a55560f5dc Move uwb owners file to top-level
Bug: None
Test: N/A
Change-Id: Ifa6cb7eac60c38edb038cbf7316a4f852f3e8f08
2021-11-10 13:47:18 -08:00
TreeHugger Robot
dea858df8e Merge "Add min_sdk for uwb HAL rust stubs" 2021-11-10 19:28:04 +00:00
Roshan Pius
95e059e084 uwb(hal): Add CCC session type SESSION_INIT_CMD
Bug: 197886322
Test: Compiles
Change-Id: I7204f49ffc0ef7064074443b637764299e49c6d2
2021-11-10 09:55:20 -08:00
ziyiw
e53cfcaa99 Add min_sdk for uwb HAL rust stubs
Test: mmm
Bug: 197341298
Change-Id: Ifda42345a83e26c1ba31bfb76b4aa610e7577997
2021-11-09 16:41:22 +00:00
Roshan Pius
1e1c842867 uwb(hal): Add a capabilities mechanism for vendor commands
For the vendor commands defined for Android, allow UWB chip vendors to
optionally expose some of the features defined in a given version.

Without this mechanism, any vendor commands added has to be supported by
all chip vendors unconditionally (which may not be feasible based on
hardware capabilities).

Bug: 197886322
Test: Compiles

Change-Id: I917f2dc0d203ba9304f58955ac3cdb9d1735106c
2021-11-05 13:34:59 -07:00
Roshan Pius
efff0ebc51 uwb(hal): Add doc for the vendor command versioning scheme
Bug: 197886322
Test: Compiles
Change-Id: I25a6bc7d3db1a836c71900a480d8d3fbeb47306a
2021-10-20 09:37:26 -07:00
Roshan Pius
a47f2a3eb8 uwb: Change readme.txt to README.md
Bug: 197886322
Test: Compiles
Change-Id: I30c0c6c3a0d807130f574d4d59aba89d3ffabea4
2021-10-18 14:16:12 -07:00
Roshan Pius
f527f8f774 uwb(interface): Add a package for Android specific params in UCI
Along with the FIRA standard defined UCI specification, Android needs to
support some Android specific commands/params (uses vendor carve-outs in
the specifications). Use this new package to explicitly specify these
Android specific commands/params.

Note: This package is not tied to main UWB HAL interface and should be
updatable between dessert releases (infra changes needed to support
this still needs to be figured out).

Bug: 197886322
Test: Compiles
Change-Id: Id8b50a84cec40f80389cef3a7bfad920a3e07446
2021-10-13 17:15:05 -07:00
Roshan Pius
90f5171cb8 uwb: Add vts tests for UWB HAL
No target to run the tests yet. So, just starting the VTS test suite for
UWB with some simple tests.

Also, modified the reference HAL implementation to emulate the startuo
flow.

Bug: 191175259
Test: atest VtsHalUwbTargetTest (using reference HAL on cuttlefish)
Change-Id: I2f01a3fec3324e85123d1d17e1b03dd284aee7b1
2021-09-23 00:45:53 +00:00
Roshan Pius
80c3cc61cb uwb: Default HAL implementation
Skeletal implementation of UWB HAL which will be used for
cuttlefish/reference implementation in the future.

Bug: 195992658
Test: Manual verification of HAL booting up and handling HAL
API calls.

Change-Id: I894b7aef893ff2ed4f287f72471326b5211245c3
2021-08-27 22:09:44 +00:00
Roshan Pius
d70bab922e Merge "uwb(hal): Refactor HAL to support multiple UWB chips" 2021-08-26 20:53:26 +00:00
ziyiw
b82cecec27 Added rust stubs for HAL.
Test: mmm hardware/interfaces/uwb
Bug: 197341298

Change-Id: I6c08d7e5536c537709f07b618326f9c336c02b55
2021-08-24 18:58:44 +00:00
Roshan Pius
a040b1f5a7 uwb(hal): Refactor HAL to support multiple UWB chips
Changes:
1. Move existing IUwb interface to IUwbChip.
2. Rename |write| to |sendUciMessage|

Bug: 197638976
Test: Compiles
Change-Id: Ie152bf54029fdf4584b45ad81a5fdb8ae09b41d4
2021-08-24 10:41:32 -07:00
Roshan Pius
b3fd970108 uwb: Allow uwb apex to include HAL
Bug: 188911079
Test: Compiles
Change-Id: I70d0d02f7b6d09f0e86ca392fef3d7876de4f0d8
2021-08-11 15:32:42 -07:00
sreenivasaiah
ef861b7654 HAL implementation for UWB HAL
Bug: 195308730
Test: Compiles
Change-Id: Idae467bc435394a840cdec7dce30d0016c790a21
2021-08-11 14:26:33 -07:00