android uwb log

commit 6e3fdaa7f6bd6fa0cad979f837dd5a6b4d595a7d
Author: Cole Faust colefaust@google.com
Date: Wed Aug 17 09:56:43 2022 -0700

Fix array-related errorprone warnings

The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Iadde6ec44c2b6fdafa55e907d6c9972ec65ad068

commit be5d587e5d9fbecb704dee9140aa19f1a75c1644
Merge: a4ac30f 92a718c
Author: Xin Li delphij@google.com
Date: Mon Aug 15 22:05:04 2022 -0700

DO NOT MERGE - Merge Android 13

Bug: 242648940
Merged-In: I00ee4590411246260fdf59af83ae2bc30f1d1780
Change-Id: I96081487be84a447d850a2765074293c40b0c607

commit 92a718cdf2032de1ee6a5196ffd5d9bb9c4dd3da
Author: Paul Duffin paulduffin@google.com
Date: Sat Jul 16 01:12:37 2022 +0000

Dedup *fragments information common to apex and sdk

Previously, both the sdk and apex had to specify the same *fragments
property to ensure that building a system image from a prebuilt
version of the module (both APEX and sdk snapshots) would work.

This change avoids the duplication by adding the apex to the sdk which
allows the sdk to automatically export any APIs and related information
provided by the APEX. At the moment that just includes information from
*fragments properties but may expand in future.

Bug: 232401814
Test: # Build snapshots with a fixed build number
      BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh
      # Remove api diff files as they contain file stamps of generated files so
      # differ every time they are generated.
      find out/dist/mainline-sdks -name \*txt | xargs rm
      # Save the snapshots away.
      mv out/dist/mainline-sdks before-changes
      # Apply this change.
      # Repeat the first two steps above and then run the following to verify
      # that this change had no effect on the generated snapshot contents.
      meld before-changes out/dist/mainline-sdks
Change-Id: I00ee4590411246260fdf59af83ae2bc30f1d1780

commit ec18c58cc9ecbe1d65a7f5036548dd7cbe6a31b5
Merge: 400f993 a4ac30f
Author: Alexei Nicoara ancr@google.com
Date: Fri Jul 8 08:26:20 2022 +0000

Setting apex version to the placeholder value am: a4ac30f138

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/2147784

Change-Id: Id9f82f2bd4dc9e8e0b6b81712300219d5ddf2f8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit a4ac30f13802237de36f4e6c365f7ed7265e834d
Author: Alexei Nicoara ancr@google.com
Date: Thu Jul 7 13:50:39 2022 +0100

Setting apex version to the placeholder value

When the apex version is set to 0, the version number will be replaced by the build system to the default value for the current branch.
The default value for mainline module manifest version is stored in the defaultManifestVersion constant: https://android.googlesource.com/platform/build/soong/+/refs/heads/master/apex/constants.go#36

The version should not be changed manually in the manifest. Release tooling will set this version to the release version on the release branches.

Test: presubmit
Bug: 231691643
Change-Id: I30b5b486bca521ebdeed17dba7afc61f2c529ab8
Merged-In: I30b5b486bca521ebdeed17dba7afc61f2c529ab8

commit 400f99353e048a1e8957f935a2c8ef87f465734f
Merge: 4398917 f819637
Author: Xin Li delphij@google.com
Date: Mon Jun 27 23:39:20 2022 +0000

Merge tm-dev-plus-aosp-without-vendor@8763363

Bug: 236760014
Merged-In: I17b0b3e8ef2eb0ce62c26a61ef26d1067a18edb6
Change-Id: Ie2e257ae14e0eb5d287f15d1db7c7f90485e6bd9

commit f8196374393caeffe283f952792b4910135f6543
Merge: 4ff626f 987f2d0
Author: satayev satayev@google.com
Date: Fri May 27 16:42:27 2022 +0000

Bump version codes in tm-dev to match tm-mainline-prod am: 987f2d03f0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18601929

Change-Id: I66b74bc40f209a69ccb5f12ddbec0b92a88e503b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 987f2d03f016890894f5bf1f0bfad0117913c4d1
Author: satayev satayev@google.com
Date: Wed May 25 20:01:52 2022 +0000

Bump version codes in tm-dev to match tm-mainline-prod

T FRC signals cannot be gathered from tm-frc-<module>-release branches
and instead tm-release is being used. tm-release uses default source
based version codes which are lower than prebuilts now. Bump them to
allow installation on tm-release based system images.

Bug: 233587299
Test: presubmit
Merged-In: I1fc87537161933b4d52ed22af6bc7b5750f5e520
Change-Id: I17b0b3e8ef2eb0ce62c26a61ef26d1067a18edb6

commit 4ff626fc9ecf44aa6173fb4f128face0323d2475
Merge: 7c693a0 5ce446c
Author: Roshan Pius rpius@google.com
Date: Mon May 23 17:31:50 2022 +0000

uwb(service): Fix NPE when getAction() == null am: 5ce446c690

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18559830

Change-Id: I6e0066e0e0a9ede67057a3f55440ef06e2d68be1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 5ce446c6901eb45b8ef7fd0a9d42b797d33b78d8
Author: Roshan Pius rpius@google.com
Date: Mon May 23 15:42:33 2022 +0000

uwb(service): Fix NPE when getAction() == null

Move the error/cb handling to inside the "if (getAction() != null)" block.

Bug: 231593229
Change-Id: I92ccd3b3ac30580e1aa6c0090f3bc7dab57da502
Test: atest ServiceUwbTests

commit 7c693a0155b1a0e59c9e300c793f0912d30bb943
Merge: e6c177d 77b7c18
Author: Roshan Pius rpius@google.com
Date: Mon May 16 19:59:13 2022 +0000

uwb(service): Dont cache specificationinfo am: 77b7c18509

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18407647

Change-Id: I1b24293f6a5f2562dae3ffc6581c9a1893777471
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 77b7c18509759890d9b506472caa174e91987ea4
Author: Roshan Pius rpius@google.com
Date: Mon May 16 15:37:48 2022 +0000

uwb(service): Dont cache specificationinfo

These capabilities include ran multiplier used for CCC sessions. This
value is dynamic and needs to be fetched from UWBS on query from DCK
stack.

Bug: 232787451
Test: atest ServiceUwbTests
Change-Id: I70d00e1f87b0319c79ac180a14c1ee36e3249624

commit e6c177d1ea2425702aa9c097dcf6b98112777f86
Merge: 387244c 4398917
Author: Alexei Nicoara ancr@google.com
Date: Fri May 13 11:17:23 2022 +0000

[automerger skipped] Bump Mainline Module Version Codes in AOSP to 339990000 am: 5d2774b777 am: 4398917053 -s ours

am skip reason: Merged-In Idf5c494b2933967daf1406490c87053ee2c573d8 with SHA-1 cb6e6fb4af is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/2092273

Change-Id: I8533279e735b4d9c8522a2c06e44c5bfe3f4574f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 43989170532841cb306e9e178e34ee29457dc3ae
Merge: 2639746 5d2774b
Author: Alexei Nicoara ancr@google.com
Date: Fri May 13 10:48:31 2022 +0000

Bump Mainline Module Version Codes in AOSP to 339990000 am: 5d2774b777

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/2092273

Change-Id: I96ad621a7176bf6588284e912d96f12f2a0f14c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 387244c05bbac527e8cf31b59c62e12015617f30
Merge: 48469c5 c2bed05
Author: Roshan Pius rpius@google.com
Date: Thu May 12 23:46:36 2022 +0000

uwb(service): Allow UWB toggle when APM mode on from rooted shell am: c2bed05ba9

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18357922

Change-Id: I5c8e5b3bc298274cb6c3ce27b24ec9a78619db28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit c2bed05ba9fe82d1e2a115836917a8bd7071eccb
Author: Roshan Pius rpius@google.com
Date: Thu May 12 20:24:37 2022 +0000

uwb(service): Allow UWB toggle when APM mode on from rooted shell

Helps with UWB only power testing.

Bug: 232416949
Test: atest ServiceUwbTests
Test: Manual:
  - Turn on APM mode.
  - adb shell cmd uwb enable-uwb <- Fails
  - adb root
  - adb shell cmd uwb enable-uwb <- Succeeds
Change-Id: Idce4c172c1c69b91bd536a47c6330453b5117c8c

commit 48469c5bb4ea9a50a5a815e3a9da9810000b9ae8
Merge: 7ee0ebf cb6e6fb
Author: Alexei Nicoara ancr@google.com
Date: Thu May 12 15:08:57 2022 +0000

Bump Mainline Module Version Codes in tm-dev to 330090000 am: cb6e6fb4af

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18344892

Change-Id: I1cde772de359d8c5b1973172e0423157d01fea61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 5d2774b777b4ae2f07fe768ba60ef0b4b8e23422
Author: Alexei Nicoara ancr@google.com
Date: Mon May 9 18:05:15 2022 +0100

Bump Mainline Module Version Codes in AOSP to 339990000

Test: presubmit
Bug: 231691162
Ignore-AOSP-First: overriding version code from aosp

Merged-In: Idf5c494b2933967daf1406490c87053ee2c573d8
Change-Id: I8248a3c4f2ae2bb31b97b813ccb61f5ad2acbe8c

commit cb6e6fb4af9d78879d9ca29fee1f0b95fcbd5eb3
Author: Alexei Nicoara ancr@google.com
Date: Thu May 12 13:30:36 2022 +0100

Bump Mainline Module Version Codes in tm-dev to 330090000

Test: presubmit
Bug: 231691162
Ignore-AOSP-First: overriding version code from aosp

Change-Id: Idf5c494b2933967daf1406490c87053ee2c573d8
Merged-In: Idf5c494b2933967daf1406490c87053ee2c573d8

commit 7ee0ebf1429057984b9f6a05f0ccda2c6f8895d1
Merge: 2deb663 6214709
Author: Yurii Zubrytskyi zyy@google.com
Date: Sat May 7 15:38:55 2022 +0000

Merge "Uwp - Tiramisu is now 33" into tm-dev am: 6214709607

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18010731

Change-Id: I595a034bee64434865d4fa9982da714630ef301f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 6214709607044992714a1615c7f3f0af910fa177
Merge: 52c7af6 dbd43be
Author: Yurii Zubrytskyi zyy@google.com
Date: Sat May 7 15:11:19 2022 +0000

Merge "Uwp - Tiramisu is now 33" into tm-dev

commit 2deb663d0a62fc66162bfb265345be5cec82f1de
Merge: ba34ae7 52c7af6
Author: Roshan Pius rpius@google.com
Date: Fri May 6 17:29:12 2022 +0000

uwb(service): Disallow aoa result & interleaving in shell command am: 52c7af64c3

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18192115

Change-Id: I186486cf58d72d7a9735c490196dc80bbcfa8256
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 52c7af64c36b6efab1a2c3787535fd3b34359582
Author: Roshan Pius rpius@google.com
Date: Thu May 5 21:10:45 2022 +0000

uwb(service): Disallow aoa result & interleaving in shell command

Both of these params change the aoa_result_req type. So, disallow this
to avoid confusion.

Bug: 231364585
Test: atest ServiceUwbTests
Test: Manual - `adb shell cmd uwb start-fira-ranging-session -z 4,5,6 -e
enabled`

Change-Id: I391d340fef8ca673dc70f73e7a5aefba9428fd3c

commit ba34ae7a88fe118e1353161e368786d8a9f4b5c7
Merge: 1087b58 5c66fa7
Author: Roshan Pius rpius@google.com
Date: Wed May 4 03:02:41 2022 +0000

uwb(service): Handle session deinit notification am: 5c66fa7711

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18144238

Change-Id: I5bf5242ed89bfdd136f536131518297c99bbbe3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 5c66fa771142e00c619f376f7a20b45b8f58a06e
Author: Roshan Pius rpius@google.com
Date: Tue May 3 18:12:40 2022 +0000

uwb(service): Handle session deinit notification

Cleanup ongoing session when session deinit notification is received.

Bug: 230037507
Test: atest ServiceUwbTests
Change-Id: Iceede89bad8e95037ae94e87c1afbab4d28c57c7

commit 1087b589ef3e29a9670d6cfbf52a1f053b5ce394
Merge: ab960c0 bb9d692
Author: Roshan Pius rpius@google.com
Date: Tue May 3 05:05:49 2022 +0000

Merge "uwb(native): Adding host tests for libuwb_uci_jni_rust_tests" into tm-dev am: bb9d69257f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/17239167

Change-Id: I1c82c5ff0891c34ba116f3aa5d8a15eff988abb6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit bb9d69257fd79cb33fbc696f7f9762b9968f298e
Merge: 9c17b30 ad4d459
Author: Roshan Pius rpius@google.com
Date: Tue May 3 02:11:30 2022 +0000

Merge "uwb(native): Adding host tests for libuwb_uci_jni_rust_tests" into tm-dev

commit ad4d459428026c82db2e7ed398576ea0aa9afc1b
Author: Roshan Pius rpius@google.com
Date: Thu Mar 17 08:02:03 2022 -0700

uwb(native): Adding host tests for libuwb_uci_jni_rust_tests

Bug: 216784920
Test: atest --host libuwb_uci_jni_rust_tests
Change-Id: I79152f682260dc67066497f241b0b2d2b39313fb

commit ab960c07c327bdcd2498aaa7b3a5639743ac27e2
Merge: cb5aeb0 9c17b30
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Apr 29 18:31:36 2022 +0000

Merge "Revert "uwb(service): Cleanup any ongoing sessions when country code changes"" into tm-dev am: 9c17b30ea0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Uwb/+/18054093

Change-Id: I8fcb9423996107174148239ceed0d90e10dc0067
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

commit 9c17b30ea01deaf0a691413329390da75ee71bda
Merge: cb5aeb0 4d6a88b
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Apr 29 18:09:02 2022 +0000

Merge "Revert "uwb(service): Cleanup any ongoing sessions when country code changes"" into tm-dev

commit dbd43becd9aa7d5a097783922d34e234d5aee83f
Author: Yurii Zubrytskyi zyy@google.com
Date: Wed Apr 27 16:20:58 2022 -0700

Uwp - Tiramisu is now 33

Update the sdk_version to current

Bug: 225745567
Test: build
Change-Id: I341fbf08b830712d041d2587d2cf96804eb6fc98
Merged-In: I341fbf08b830712d041d2587d2cf96804eb6fc98

commit 4d6a88bda574f63bc3a8c76be1687d4a7600654c
Author: Roshan Pius rpius@google.com
Date: Thu Apr 28 17:11:43 2022 +0000

Revert "uwb(service): Cleanup any ongoing sessions when country code changes"

This reverts commit e3d9ab7ed1935049af664328402b9b1d5cc25071.

Reason for revert: We are working with Qorvo handle this more cleanly.

Bug: 230037507
Test: atest ServiceUwbTests
Change-Id: If994ea3e74ad32934f79e0a40a25c9cb466a83bc

commit cb5aeb00ed184ad8f91da4137e601431eda7225d
Merge: 2d14a2c f00004e
Author: Kai Shi kaishi@google.com
Date: Wed Apr 20 17:39:02 2022 +0000

Merge "Trigger bugreport for device error" into tm-dev

commit 2d14a2c742c6a4aa9b9887976543105aea8414d3
Merge: 002c211 d179542
Author: Roshan Pius rpius@google.com
Date: Wed Apr 20 17:34:05 2022 +0000

Merge "uwb(support_lib): Allow multi-device cts snippet to use support_lib" into tm-dev

commit f00004edfd816101f7c20be91e27b92b0ff1c3c6
Author: Kai Shi kaishi@google.com
Date: Tue Apr 19 16:48:01 2022 -0700

Trigger bugreport for device error

Add an option to trigger bugreport for device initialization error or
device status error.

Test: atest com.android.server.uwb
Bug: 229789022
Change-Id: I83a0184452081607297c53464b147d651282df02

commit 002c211e67f66c0ca21ad3b7a29fde74bb9b2e4e
Merge: a68572f 36b0db1
Author: Artur Satayev satayev@google.com
Date: Wed Apr 20 12:23:22 2022 +0000

Merge "Bump apex version to 33xxxxxx in tm-dev." into tm-dev

commit a68572f0f423a830e2557b0ff1b6cc817f90b16e
Merge: bfc0020 3d7a491
Author: Kai Shi kaishi@google.com
Date: Tue Apr 19 15:30:30 2022 +0000

Merge "Report device error count" into tm-dev

commit d179542824d0feb3d26988f4dcf8c1ba78796797
Author: Roshan Pius rpius@google.com
Date: Tue Apr 19 07:53:25 2022 -0700

uwb(support_lib): Allow multi-device cts snippet to use support_lib

Bug: 229730966
Test: atest CtsUwbMultiDeviceTestCases
Change-Id: I2707e198fde28d59dba3759940f08afa4f85666b

commit 36b0db1b6a564a9f3eff9ce03f8498a3640fed43
Author: satayev satayev@google.com
Date: Tue Apr 19 14:35:10 2022 +0100

Bump apex version to 33xxxxxx in tm-dev.

Bug: 229359315
Test: m && launch_cvd; presubmit
Change-Id: I7cd709d3da622e4508f6f2e47fad1d8d65aab333

commit 3d7a491f9840db1b764d2aae04593dc950e403e4
Author: Kai Shi kaishi@google.com
Date: Fri Apr 15 18:35:24 2022 -0700

Report device error count

Report device init, status and generic error counts in bug report and
metrics.
Dump the status of UwbServiceCore.

Bug: 197341885
Test: atest com.android.server.uwb.UwbMetricsTest
Change-Id: I67d879cdf31483aa67f868d099c8f760a59f0fd7

commit bfc00207df5c7ed01b7a9089b4ec8bba6d0eb715
Author: Roshan Pius rpius@google.com
Date: Mon Apr 18 16:14:05 2022 +0000

uwb(service): Send bad params error code on duplicate session id

Bug: 229183872
Test: atest ServiceUwbTests
Change-Id: I0b1f2c8f700ed315365ce0003a5f6814c8a2f1aa

commit dfc928ad2fe367e43bb6625fa6952906ccbef8b3
Author: Roshan Pius rpius@google.com
Date: Thu Apr 14 11:42:40 2022 -0700

uwb(uci-jni-rust): Add #cfg(tests) for all mocks

Bug: 229275354
Test: make libuwb_uci_jni_rust_tests
Change-Id: Ia171f316b1868c518e98629a47f6c177a682642e

commit f0b09bb77cea43b69ac1517149a651fb016d7077
Author: Roshan Pius rpius@google.com
Date: Thu Apr 14 02:16:08 2022 +0000

uwb(uci-jni-rust): Wait for dispatcher termination for deinitialization

There was a previous exit method defined in the dispatcher, but we were
not using it from the JNI side.

Also, Make Disable non-blocking since we are anyway waiting for the
close_cplt callback from doDeinitialize().

Bug: 228347909
Test: atest libuwb_uci_rust_tests
Test: Manual tests
Change-Id: If1de8d578eafe25a3272e265e7bdab1d0e765a8f

commit ef614df64253ed35a701ac431b37400e9c0a9e88
Author: Roshan Pius rpius@google.com
Date: Mon Apr 11 13:51:21 2022 -0700

uwb(jni): Don't use android_logger

Bug: 216784920
Test: Manual verification of logs
Change-Id: Icc7837e0203997cd18eb1c99e9dbb0fa7b238b09

commit bc0f0959ceec3a13db1c5b8bbcbe1e5d426403dc
Author: Roshan Pius rpius@google.com
Date: Fri Apr 8 20:58:56 2022 +0000

uwb(support_lib): Create a generic specification params class

This also helps avoid two calls to retrieve device capabilities.
FiraSpecificationParams & CccSpecificationParams are included in this
bundle as before (API remains backward compatible since we use the same
bundle keys for the top-level bundle).

Bug: 228506663
Test: atest ServiceUwbTests UwbSupportLibTests
Change-Id: I90deba763c7620529d908257ee4e7a50517a3960

commit facef5e7122ecbdbc686b7e7ee9c30d87f8d1d48
Author: Kai Shi kaishi@google.com
Date: Thu Apr 7 10:36:04 2022 -0700

Add power stats capability check

Add the power stats query capability check.

Test: atest com.android.server.uwb
Bug: 199768480
Change-Id: I461529bfd89964853970eb7a02abf60f30ff775d

commit db830702064d54df7ce6bef808bb4f9043a84ef4
Merge: ca02664 e3d9ab7
Author: Roshan Pius rpius@google.com
Date: Sat Apr 9 00:43:39 2022 +0000

Merge "uwb(service): Cleanup any ongoing sessions when country code changes" into tm-dev

commit ca02664507515ada16aa42c2d0e11f1b0dc90ad0
Merge: 64bb23b 312a57b
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Sat Apr 9 00:39:49 2022 +0000

Merge "[uwb] Add FiraServiceConfig" into tm-dev

commit e3d9ab7ed1935049af664328402b9b1d5cc25071
Author: Roshan Pius rpius@google.com
Date: Thu Apr 7 13:31:41 2022 -0700

uwb(service): Cleanup any ongoing sessions when country code changes

Bug: 228464314
Test: atest ServiceUwbTests
Test: Manual tests (change country code via shell command while a
session is ongoing)

Change-Id: Idba60ccd88c4089fbac39cd47c34276b978ee751

commit 312a57b627c189531f7eba26585c99e728934d30
Author: Shreshta Manu shreshtabm@google.com
Date: Wed Mar 30 19:31:23 2022 +0000

[uwb] Add FiraServiceConfig

Add class for Uwb service config

Bug: 200677269
Test: atest ServiceUwbTests
Change-Id: I13ff7cf3ad3de3375ad2e15f13df69c8742379c1

commit 64bb23b9417a713c6816813ce843475c616bcad4
Author: Roshan Pius rpius@google.com
Date: Thu Apr 7 10:23:07 2022 -0700

uwb(service): Dont allow non-fg 3p apps to open ranging session

This assumes that the caller of the system API surface (i.e gmscore)
puts the calling 3p app's attribution source in the attribution source
chain of the request.

Bug: 228221110
Test: atest ServiceUwbTests
Change-Id: If6beb291ab06cf499d0daecfc56005694a522e9d

commit 9538dd952687c2e31a8aca1df5f6efd4e6421eba
Author: Roshan Pius rpius@google.com
Date: Thu Apr 7 09:23:29 2022 -0700

uwb(service): Bug fixes in HAL crash handling

When HAL is dead, the doDeinitialize() call can fail, ensure we always
go ahead and destroy the dispatcher.

Bug: 227488208
Test: Manual tests
Test: atest ServiceUwbTests
Change-Id: I48f53262346630ad9f2ab83bda93e22f8cafea65

commit 58432b382e42f788cbe6ae0f2e3665401807580d
Author: Roshan Pius rpius@google.com
Date: Wed Apr 6 10:39:50 2022 -0700

uwb(service): Dont invoke onStopped from session status ntf

If the reason code is session change with mgmt commands, don't trigger
onStopped() since we trigger it from stopRanging.

Bug: 228233884
Test: atest ServiceUwbTests
Change-Id: If38b58790ba1a853d4d45fb7cf6a7a12b6220f12

commit 113d3c5e71c7b1a78eb44bd67557411c98543627
Author: Roshan Pius rpius@google.com
Date: Wed Apr 6 08:36:38 2022 -0700

uwb(jni-rust): Ensure we return the status code to java layer

The current JNI call impls are not returning the status codes if there is an
error.

Bug: 222372272
Test: Manual tests
Test: atest libuwb_uci_rust_tests libuwb_uci_jni_rust_tests
Test: atest CtsUwbTestsCases
Change-Id: If636e50a72d2070e9774d17604ab15e605b33f95

commit 144d1d97831fbf0922776590b15da0e62c0e9dc5
Author: Roshan Pius rpius@google.com
Date: Mon Apr 4 22:32:43 2022 +0000

uwb(service): Toggle UWB off when error status is received

Bug: 227488208
Test: Manual tests
Test: atest ServiceUwbTests
Change-Id: Ibeb23e5793525f8583f936bdcaa54e2cf72e56b4

commit cc70e0df43ce29e153445846f9a5c9ea52bdc8c5
Merge: a93cd87 3f52abe
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Mon Apr 4 19:09:40 2022 +0000

Merge "uci(rust): Fix VendorUciResponseClass JNI signature" into tm-dev

commit 3f52abe1d5344c16fe6bdedfc4c2d09abe9562cc
Author: Roshan Pius rpius@google.com
Date: Fri Apr 1 23:56:54 2022 +0000

uci(rust): Fix VendorUciResponseClass JNI signature

Bug: 210933436
Change-Id: I05713493ec15d461354f12447db4c4f133bddf4d
Test: atest CtsUwbTestCases

commit a93cd87556e81edff80ef47c51bcf8e2fea84a97
Author: Roshan Pius rpius@google.com
Date: Fri Apr 1 23:19:17 2022 +0000

uwb(service): Plumb vendor uci cb methods

Bug: 196225233
Test: atest ServiceUwbTests
Change-Id: Ia42924c9f8199a04baa0d06879906360225941f7

commit a33ff0e2d16276209c217bf84a4ea6531e09b615
Merge: eb9e138 c5dd682
Author: Paul Duffin paulduffin@google.com
Date: Fri Apr 1 07:02:23 2022 +0000

Merge "Remove implementation details from uwb hidden api flags" into tm-dev

commit c5dd682a56f285aca59bd1f6dc68ef04588d7f09
Author: Paul Duffin paulduffin@google.com
Date: Thu Mar 31 13:12:43 2022 +0000

Remove implementation details from uwb hidden api flags

Ran the following to compute the set of split_packages and
package_prefixes properties.
    m analyze_bcpf && analyze_bcpf --bcpf com.android.uwb-bootclasspath-fragment --fix

Bug: 194063708
Test: m out/soong/hiddenapi/hiddenapi-flags.csv
Change-Id: I6ac366a0fa127a728477bf01a2fd8ad8946e1e3c

commit eb9e1386ebf1bc7da65dff0a3c0804ac6be3736f
Author: Roshan Pius rpius@google.com
Date: Thu Mar 31 03:41:07 2022 +0000

uwb(service): Start timer to track continous errors

Previous approach of using the ranging result callbacks does not work if
the device is the responder and the initiator disappears. The firmware
will stop sending ranging result callbacks in that case.

Also, declare error for ranging result only if all the ranging measurements
(for one to many sessions) are in error.

Bug: 222379826
Test: Manual tests
Test: atest ServiceUwbTests
Change-Id: I869882582cbdb39d70107a54a6ad794decd5f0c9

commit d31858155666ce4154900ca2544fc5b272519a4b
Merge: 1451aad 318a2f7
Author: Roshan Pius rpius@google.com
Date: Wed Mar 30 17:32:59 2022 +0000

Merge "JNI changes to support vendor extension features" into tm-dev

commit 1451aad413f52227351d131d251af15a00da4d7e
Merge: 15c2680 0fda0d7
Author: Roshan Pius rpius@google.com
Date: Wed Mar 30 14:15:47 2022 +0000

Merge "uwb(framework): Use oneway interfaces for callbacks" into tm-dev

commit 0fda0d714f440b14aa2cc5dea73174a229b7a4e1
Author: Roshan Pius rpius@google.com
Date: Tue Mar 15 23:37:29 2022 +0000

uwb(framework): Use oneway interfaces for callbacks

Bug: 224856891
Bug: 227216832
Change-Id: I231b41243a1cf6c930a69c062aae0876b31a9c1b
Test: atest FrameworkUwbTests ServiceUwbTests
(cherry picked from commit f901aa028e196d176d98a85c723c28e1000dea71)

commit 15c26802e1d8236780641f0566bc5cbf727872a7
Author: Roshan Pius rpius@google.com
Date: Tue Mar 29 13:22:05 2022 -0700

uwb(service): Stop ranging session on continuous ranging failures

If there are continuous ranging result errors for > 30 seconds, then
stop the ongoing session to conserve power.

Also, moved helper method to generate UwbRangingData to a test util
class.

Bug: 222379826
Bug: 219974804
Test: Manual tests using test app
Test: atest ServiceUwbTests
Change-Id: Ic9e16ce9930bf437600785f91746bbd9c240ca75

commit 318a2f77dd59e1b81c804946dca05d8797a79022
Author: nxp90794 sreenivasaiah.venkateshaiah@nxp.com
Date: Fri Mar 25 15:02:19 2022 +0530

JNI changes to support vendor extension features

JNI is aligned with latest changes from UWB service and
also vendor extension functionality is added ( callback and API)

(cherry-picked from go/pag/2183930)

Bug: 215224289
Test: Compiles

Change-Id: I00b1c4b9e378d8d735970bf10b956ffb6eee12d7

commit afcd2fdbd1c7ebf6724540f1edb555c60855dd3e
Author: Roshan Pius rpius@google.com
Date: Fri Mar 25 12:28:33 2022 -0700

uwb(support_lib): Add javadocs for all support lib params

Indicates where to use the corresponding bundle.

Bug: 226645596
Test: Compiles
Change-Id: If10d540c0a64ea27a68cfa2d287ef4f290cf89d4

commit 855abb22647d429906863d087646df8523c16e42
Author: Roshan Pius rpius@google.com
Date: Fri Mar 25 11:41:38 2022 -0700

uwb(service): Implement onControleeAdded/Removed cbs

Bug: 226645596
Test: atest ServiceUwbTests UwbSupportLibTests
Change-Id: If6436dd34269079108fba6aad6f3ec1f02023393

commit 9af87d9ffaf2573e3f42dcc7c108fb14c929d5e7
Author: Roshan Pius rpius@google.com
Date: Thu Mar 24 14:31:08 2022 -0700

uwb(service): Add implementation of add/remove controlee

Internally uses the existing reconfigureRanging handler.

Bug: 226645596
Test: atest ServiceUwbTests UwbSupportLibTests
Change-Id: I3742578b02cfd8c4558dccf72a4d3e5c1ba30ea5

commit b05b49c299b1bfdb0ab87241a38d515f13de08c5
Author: Roshan Pius rpius@google.com
Date: Thu Mar 24 13:35:39 2022 -0700

uwb(service): Cleanup handling of reconfigureRanging

Do the parsing of incoming bundle in UwbServiceCore like other methods.

Also, hookup the vendor UCI command method with UwbServiceCore.

Bug: 226645596
Test: atest ServiceUwbTests
Change-Id: I4e886a2f7613e56b4e5610e0f2e375a55942833d

commit 02e38761dac87f243ac2711a32274374f619a4f4
Merge: bc21d35 9196887
Author: Jin Chen jinjiechen@google.com
Date: Mon Mar 21 21:05:13 2022 +0000

Merge changes I2850abfc,Ib803c623 into tm-dev

* changes:
  [uwb] Expand unit test for RegulatoryInfo
  [uwb] Add unit test for ChannelPowerInfo

commit bc21d35c749ccff523a3af3a3ce313e69570d654
Merge: 8fe26cd 67348d6
Author: Roshan Pius rpius@google.com
Date: Mon Mar 21 17:16:00 2022 +0000

Merge "uwb(service): Rework reason codes for callbacks" into tm-dev

commit 67348d62d3f5d6bb3debecc97617e4bb5866d525
Author: Roshan Pius rpius@google.com
Date: Fri Mar 18 12:46:33 2022 -0700

uwb(service): Rework reason codes for callbacks

There are 3 sources that need to be converted to API callback reason
codes:
1. UCI status codes
2. UCI reason codes (for session status notification handling)
3. Direct API calls (stopRanging, UWB toggle off).

Handle all of these 3 sources correctly.

Bug: 225068315
Test: atest ServiceUwbTests
Test: Manual tests using field test app:
a)  When stopRanging is called, LOCAL_API reason code is seen.
b)  When UWB is toggled off, SYSTEM_POLICY reason code is seen.
c)  When stopRanging is called on peer controller, REMOTE_REQUEST reason code is seen.

Change-Id: I141984af52ede323376358fbe62b8d9566f4f330

commit 8fe26cd601332faf5e5b2a8c66bae71c16cf69c6
Merge: 1e74008 80b6d18
Author: Jin Chen jinjiechen@google.com
Date: Sat Mar 19 03:10:05 2022 +0000

Merge "[uwb] Add DiscoveryAdvertisement" into tm-dev

commit 91968870c124116afc281a8c6f3063489282d242
Author: Jin Chen jinjiechen@google.com
Date: Fri Mar 18 19:18:33 2022 +0000

[uwb] Expand unit test for RegulatoryInfo

* Also some small refactoring.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: I2850abfc1a5a1e6df1a05706b52bc47db62b2057

commit 1e740087ebaa006d347be2c9f92cc3cbd6fe744c
Merge: 31a19b6 d68d792
Author: Roshan Pius rpius@google.com
Date: Fri Mar 18 19:32:27 2022 +0000

Merge "UwbCountryCode: Default to 00 when no country code is available" into tm-dev

commit 5db6c1065fba3a85c2ed250ab2d9c891502959cc
Author: Jin Chen jinjiechen@google.com
Date: Fri Mar 18 19:14:36 2022 +0000

[uwb] Add unit test for ChannelPowerInfo

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: Ib803c623c8f37feefdcac637a3ebda3089ad6b0b

commit d68d792cd339991658dc9956b96aeda345aee4ae
Author: Roshan Pius rpius@google.com
Date: Fri Mar 18 09:33:52 2022 -0700

UwbCountryCode: Default to 00 when no country code is available

When no country code is available (APM mode or no telephony/wifi country
code), reset country code to 00 (i.e default). This helps resetting the
chip to world mode.

Bug: 224586732
Test: atest ServiceUwbTests
Test: Manually toggle APM on/off and ensure country code is sent.
Change-Id: Ifd51ba02e35319bc7f6739c2204d3fcce380da51

commit 80b6d1850c04d24244e78cbba963a468b1ad92a0
Author: Jin Chen jinjiechen@google.com
Date: Thu Mar 10 21:05:41 2022 +0000

[uwb] Add DiscoveryAdvertisement

* BLE adertisement data.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: I7c38293b50e7c8f1f2c63555dc03b3b49c77390c

commit 31a19b6fcdc59db902b6f3461d8ede79e84837b1
Merge: f694de8 3fc4af6
Author: Kai Shi kaishi@google.com
Date: Thu Mar 17 23:30:41 2022 +0000

Merge "Add the wall clock timestamp" into tm-dev

commit 3fc4af605bfe20ae160aa8abd9b14ac460900a42
Author: Kai Shi kaishi@google.com
Date: Thu Mar 17 10:13:24 2022 -0700

Add the wall clock timestamp

Add the wall clock timestamp to print time during dump.

Bug: 225179584
Test: atest com.android.server.uwb.UwbMetricsTest
Change-Id: I1236391dd54d6a0b3f5f2293ca67b9bd8b39d165

commit f694de8f56fced865cfdf186ec4d91e7065d733d
Author: Roshan Pius rpius@google.com
Date: Thu Mar 17 04:33:20 2022 +0000

uwb(service): Fix reasonCode for onStopped and onClosed

1. Convert UwbUciConstants.STATUS_CODE_OK as LOCAL_API reason code (since
   these are successful completion of local requests).
2. Create a separate helper method to send SYSTEM_POLICY when session is
   stopped because UWB is toggled off.
3. Always send onStopped when the lower layers stop a session on
   their own. This was previously sending it only for a specific reason.
4. Some other minor cleanups.

Bug: 225068315
Test: atest ServiceUwbTests
Change-Id: I28fefbcd52540fb3a071c06093a3d1133fedbda0

commit c2b5e72279e8289cc219fb55c26a6e2bec88dc18
Merge: 9f6c631 6897f01
Author: Roshan Pius rpius@google.com
Date: Wed Mar 16 13:40:19 2022 +0000

Merge "uwb(service): Use WifiManager only if device supports Wifi" into tm-dev

commit 6897f0108ee28a0cdc0c5a72f6d026cdd7a1a207
Author: Roshan Pius rpius@google.com
Date: Wed Mar 16 02:01:35 2022 +0000

uwb(service): Use WifiManager only if device supports Wifi

Bug: 224879275
Test: atest ServiceUwbTests
Change-Id: I4127df9f7f208d9206abbae643e1a24e2535a54b

commit 9f6c631849b7f75a86cebb6ebd56058c1ffab906
Merge: b145154 47daae0
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Mar 15 16:56:22 2022 +0000

Merge "uwb(service): Force update country code on every UWB toggle on" into tm-dev

commit b1451548655cb4890d816f37407c450a3d3be469
Merge: f79883d 800ff86
Author: Roshan Pius rpius@google.com
Date: Tue Mar 15 13:54:47 2022 +0000

Merge changes from topic "remove_non_uci_redundancy" into tm-dev

* changes:
  uwb(service): Remove stack redundancies (2/2)
  uwb(service): Remove stack redundancies (1/2)

commit 47daae0ea4435bee9abd4cc4ac934df18e5781ff
Author: Roshan Pius rpius@google.com
Date: Tue Mar 15 04:49:30 2022 +0000

uwb(service): Force update country code on every UWB toggle on

This ensures that we send the country code to the chip after every
toggle (even if it was the same as previously cached value).

Bug: 224586732
Test: atest ServiceUwbTests
Test: Manual tests using UWB shell commands
Change-Id: I91ec9321281ea592cab3268c44bf8e2fcf6d4559

commit f79883d7615ca7761e7716add20e46cc20d638f0
Author: Roshan Pius rpius@google.com
Date: Mon Mar 14 10:04:20 2022 -0700

uwb(uci-jni-rust): Add jni rust tests to uwb mts

Bug: 216552887
Test: m mts && mts-tradefed run mts-uwb
Change-Id: I34471047a87ecd9c15411f0ba28cfb9f0a309f57

commit 800ff8646ba1b65dab9f5630c732acefd40cdad5
Author: Roshan Pius rpius@google.com
Date: Thu Feb 17 13:31:06 2022 -0800

uwb(service): Remove stack redundancies (2/2)

1. Rename IUwbAdapter2 -> IUwbAdapter
2. Rename IUwbRangingCallbacks2 -> IUwbRangingCallbacks
3. Move ranging callback permission check to
UwbSessionNotificationManager.
4. Remove all state from UwbServiceImpl.

Bug: b/196225233
Test: Manual testing.
Change-Id: Ie2ae471147d08096a3fe1fb0ea915ab39c838528

commit fa966c15d7b580fad4363415f41ab4ff495285e4
Author: Roshan Pius rpius@google.com
Date: Thu Feb 17 11:17:43 2022 -0800

uwb(service): Remove stack redundancies (1/2)

Now that qorvo UCI stack is integrated to master, remove some of the
redundancies in the stack that was present to support the legacy stack.

Changes:
1. Integrate UwbServiceImpl directly to UwbServiceCore.
2. Fix framework-uwb visibility to ensure that the SDK lib is only
available to select number of tests.
3. Also make ServiceUwbTests also compile against SDK.

Bug: b/196225233
Test: Manual testing.
Change-Id: Ib3d443965123c55bf61eea4eacf5b3133e0f832c

commit 8a7162cef81190601917ba3e9e4978f3ac3466b1
Merge: 0aadd8c eb33ff6
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Mar 11 18:56:43 2022 +0000

Merge "Revert "Revert "uwb(service): Fix error codes returned in callbacks""" into tm-dev

commit eb33ff6701c9c77a4a8675c385a83055090a7058
Author: Roshan Pius rpius@google.com
Date: Fri Mar 11 06:46:34 2022 +0000

Revert "Revert "uwb(service): Fix error codes returned in callbacks""

This reverts commit 66541b0f8f1211f4a57bea55fcd4b7d45cf8adf3.

Bug: 222291913
Change-Id: I09f983dfb86ef37d4216994197ecf78b180b5d8d
Test: atest ServiceUwbTests

commit 0aadd8cd15f1e3e3dcb3db00eab8eaa3babc3f98
Merge: 333bcd3 b7c9163
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Mar 11 14:20:48 2022 +0000

Merge "uwb: Add JNI rust tests to TEST_MAPPING" into tm-dev

commit 333bcd30e7c2375b1c01bf909756fd5b41880f36
Merge: 64d2d00 66541b0
Author: Roshan Pius rpius@google.com
Date: Fri Mar 11 06:45:30 2022 +0000

Merge "Revert "uwb(service): Fix error codes returned in callbacks"" into tm-dev

commit 66541b0f8f1211f4a57bea55fcd4b7d45cf8adf3
Author: Roshan Pius rpius@google.com
Date: Fri Mar 11 06:44:01 2022 +0000

Revert "uwb(service): Fix error codes returned in callbacks"

This reverts commit f45feaa53eb22aa5e5d39ba9c14608c65415bcf2.

Reason for revert: b/223955569

Change-Id: Ieb0882327a11ef5b1bdd6adb03ba66ec427d1f20

commit b7c9163c4be0bed83e4c72a5cfd2f624862a30d9
Author: Roshan Pius rpius@google.com
Date: Fri Mar 11 01:54:47 2022 +0000

uwb: Add JNI rust tests to TEST_MAPPING

Bug: 216552887
Change-Id: Ic336a72c3d2ac390045bacc9a3e41dfcec99ff41
Test: None

commit 64d2d0067500ae8e2ea70c0251f191a60cf2c589
Merge: c41f8d6 f45feaa
Author: Roshan Pius rpius@google.com
Date: Fri Mar 11 01:51:41 2022 +0000

Merge "uwb(service): Fix error codes returned in callbacks" into tm-dev

commit c41f8d6bd1135f3c4442181a8187871e2d5313a4
Merge: 167f5b6 afdb49e
Author: Aka (Chih-Yu) Huang akahuang@google.com
Date: Fri Mar 11 01:25:28 2022 +0000

Merge changes from topic "uci-jni-test" into tm-dev

* changes:
  uci-jni-rust: add test cases for the JNI
  uci-jni-rust: add a test case to verify get_specification_info()
  uci-jni-rust: add a test case to verify do_deinitialize()
  uci-jni-rust: Add libuwb_uci_jni_rust_tests for JNI stack
  uci-jni-rust: Add MockContext
  uci-jni-rust: Add MockDispatcher
  uci-jni-rust: Abstract JniENV for the testing

commit f45feaa53eb22aa5e5d39ba9c14608c65415bcf2
Author: Roshan Pius rpius@google.com
Date: Thu Mar 10 20:46:59 2022 +0000

uwb(service): Fix error codes returned in callbacks

Refactor of reason codes and error bundles being returned for various
callbacks. Also, added few CCC protocol specific errors.

Bug: 222291913
Test: atest ServiceUwbTests
Change-Id: Ie2cc671dac3f347250352b6afa392f0b7de405a0

commit 167f5b6e6ef7cbe64673a4218c26b9f2bf441ea7
Merge: afa4173 9d2fecd
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Mar 10 14:34:07 2022 +0000

Merge "uwb(service): Use Controller/Initiator as default" into tm-dev

commit afdb49e62d7ee648dc81c5d708f653f3e960005f
Author: Chih-Yu Huang akahuang@google.com
Date: Thu Mar 10 15:56:14 2022 +0900

uci-jni-rust: add test cases for the JNI

This CL adds the test cases for the methods of JNI stack.
Here is the list of the methods:
- session_init()
- session_deinit()
- get_session_count()
- ranging_start()
- ranging_stop()
- get_session_state()
- set_app_configurations()
- get_app_configurations()
- get_caps_info()
- multicast_list_update()
- test_set_country_code()
- send_raw_vendor_cmd()
- get_power_stats()
- reset_device()

Bug: 216552887
Test: atest libuwb_uci_jni_rust_tests

Change-Id: I2b73903c772effab7d5981571e84a0b7982a7524

commit 50381e1e1446b7381469466ce533db9d53fe3e57
Author: Chih-Yu Huang akahuang@google.com
Date: Wed Mar 9 18:24:54 2022 +0900

uci-jni-rust: add a test case to verify get_specification_info()

This CL adds a test case to verify get_specification_info(), and
polishes the get_specification_info() method without changing logic.

Bug: 216552887
Test: atest libuwb_uci_jni_rust_tests

Change-Id: I208e6d185d4566602f2521dcee931756da5a6133

commit d8ae407222e9e4f388d69749464dfa416376e38d
Author: Chih-Yu Huang akahuang@google.com
Date: Wed Mar 9 18:28:03 2022 +0900

uci-jni-rust: add a test case to verify do_deinitialize()

Bug: 216552887
Test: atest libuwb_uci_jni_rust_tests
Change-Id: I9d1cc99356daa7f9ea102568c7eb9a81a9dc1d18

commit 3a73e611e43a1f3a466ff7002aff9a3bef94c85e
Author: Chih-Yu Huang akahuang@google.com
Date: Fri Mar 4 18:18:27 2022 +0900

uci-jni-rust: Add libuwb_uci_jni_rust_tests for JNI stack

This CL adds a new build target "libuwb_uci_jni_rust_tests" for
testing the UCI JNI stack. Also, this CL adds some test cases under
libuwb_uci_jni_rust_tests.

Bug: 216552887
Test: atest libuwb_uci_jni_rust_tests

Change-Id: Icca0378a01934c746cefab85dea2ce14f33bb34f

commit 9e3764e13e89132dc3f80d4a38d0dbd3ef570508
Author: Chih-Yu Huang akahuang@google.com
Date: Thu Mar 10 15:57:35 2022 +0900

uci-jni-rust: Add MockContext

This CL adds MockContext that mocks the Context trait. We will
use it to develop test cases at the following CLs.

Bug: 216552887
Test: mmm packages/modules/Uwb/service/uci/jni

Change-Id: Id3373cf2bdf6d758323af90143388acffb5da97e

commit 8f608f111badfcd6d1dcae586b28e18513ce7f79
Author: Chih-Yu Huang akahuang@google.com
Date: Fri Mar 4 11:12:59 2022 +0900

uci-jni-rust: Add MockDispatcher

This CL adds MockDispatcher that mocks the Dispatcher trait. We will
use it to develop test cases at the following CLs.

Bug: 216552887
Test: mmm packages/modules/Uwb/service/uci/jni

Change-Id: Ia0782f86e8b89b30146cd9810319462160ed956b

commit 9d2fecd4c62e933b9c25ca1d1bf3cae55e85bb3d
Author: Roshan Pius rpius@google.com
Date: Wed Mar 9 18:36:50 2022 -0800

uwb(service): Use Controller/Initiator as default

The current combination of controller/responded is not going to be used
by a lot of configurations.

Bug: 219784149
Test: Manual tests
Change-Id: Ib55baaaf13df865d7e49b9b4f1d73b57c3ca3788

commit afa4173322221c25ecd563c67ff718919f2c1a55
Merge: 008c638 2639746
Author: Gurpreet Singh gurpreetgs@google.com
Date: Wed Mar 9 18:36:38 2022 +0000

[automerger skipped] Merge "Using common apex_defaults for com.android.uwb module." am: b2e984f995 am: 468de29f49 am: 2639746124 -s ours

am skip reason: Merged-In If862346e2b9f024e44277ab111cbde9306faa272 with SHA-1 27c0bb9a1e is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/2015556

Change-Id: Ief6eda366893c0210a0c20acc1e849100c42caca

commit 2639746124dd3344e08fca15b050cab75d16884b
Merge: 4a50454 468de29
Author: Gurpreet Singh gurpreetgs@google.com
Date: Wed Mar 9 18:12:07 2022 +0000

Merge "Using common apex_defaults for com.android.uwb module." am: b2e984f995 am: 468de29f49

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/2015556

Change-Id: Idd129bf89ed40494f595fd194751a5acaf8f1900

commit 468de29f49da583f26bcee77075eac11243cb93a
Merge: 4a50454 b2e984f
Author: Gurpreet Singh gurpreetgs@google.com
Date: Wed Mar 9 17:47:51 2022 +0000

Merge "Using common apex_defaults for com.android.uwb module." am: b2e984f995

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/2015556

Change-Id: If17d10fee0a54850f5887131246a12eb0267bac1

commit b2e984f9955ed3266996bce424a9d0104387e669
Merge: 4a50454 4badc5f
Author: Gurpreet Singh gurpreetgs@google.com
Date: Wed Mar 9 17:24:11 2022 +0000

Merge "Using common apex_defaults for com.android.uwb module."

commit 008c6384848774f05b9636a4643d77801de76071
Merge: 0da8048 27c0bb9
Author: Gurpreet Singh gurpreetgs@google.com
Date: Wed Mar 9 15:54:50 2022 +0000

Merge "Using common apex_defaults for com.android.uwb module." into tm-dev

commit 4badc5f7ef312c74129876e0ea2b6eba7b214441
Author: Gurpreet Singh gurpreetgs@google.com
Date: Tue Mar 8 20:55:51 2022 +0000

Using common apex_defaults for com.android.uwb module.

In /packages/modules/common/sdk/ModuleDefaults.bp file, some
apex_defaults are added to provide common parameters corresponding to
Q, R, S, and T releases.
(Refer to CL link for above mentioned change -
https://android-review.googlesource.com/c/platform/packages/modules/common/+/2005890?forceReload=true)

This CL is using the apex_default corresponding to T release for the
com.google.android.uwb module.

Bug: 172589606
Test: USE_RBE=true m
Since there are no runtime changes, successful code build is enough for
testing.

Merged-In: If862346e2b9f024e44277ab111cbde9306faa272
Change-Id: If862346e2b9f024e44277ab111cbde9306faa272

commit 27c0bb9a1ed3ad2204d29370136df54df28ddda3
Author: Gurpreet Singh gurpreetgs@google.com
Date: Tue Mar 8 17:02:57 2022 +0000

Using common apex_defaults for com.android.uwb module.

In /packages/modules/common/sdk/ModuleDefaults.bp file, some
apex_defaults are added to provide common parameters corresponding to
Q, R, S, and T releases.
(Refer to CL link for above mentioned change -
https://android-review.googlesource.com/c/platform/packages/modules/common/+/2005890?forceReload=true)

This CL is using the apex_default corresponding to T release for the
com.google.android.uwb module.

Bug: 172589606
Test: USE_RBE=true m
Since there are no runtime changes, successful code build is enough for
testing.

Change-Id: If862346e2b9f024e44277ab111cbde9306faa272

commit fa53dd216b4d107f03840ffdf95c7eac979799e1
Author: Chih-Yu Huang akahuang@google.com
Date: Fri Mar 4 09:48:05 2022 +0900

uci-jni-rust: Abstract JniENV for the testing

This CL abstracts the JniENV usage to a "Context" trait. With this
abstraction, we could implement the unittest by injecting a mock
Context instance.

Bug: 216552887
Test: mmm packages/modules/Uwb/service/uci/jni

Change-Id: I3c9fed87b3b58a6c25f0885a48aa2326a8851d39

commit 0da80482a96993055d4fd180ad959f786655e746
Author: Jin Chen jinjiechen@google.com
Date: Mon Mar 7 18:32:53 2022 +0000

[uwb] Add UwbIndicationData

* Part of discovery advertisement data.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: If9e5f3a45af70cce005bfe974afbd7730d47b135

commit dd828d72fb7adf85b5f1fa0372f616eadb23183d
Author: Jin Chen jinjiechen@google.com
Date: Mon Mar 7 18:18:44 2022 +0000

[uwb] Add SecureComponentInfo

* Part of discovery advertisement data and oob message.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: Ia15e187ab1e82c6847b4e4f8a4ab3c35799e481a

commit 8588f8ba042c2952714cbb1d905372ed9bd10f1d
Merge: 5b15392 e7afd04
Author: Jin Chen jinjiechen@google.com
Date: Mon Mar 7 19:46:57 2022 +0000

Merge changes If9f0da9d,Ibfc58974,I97f1022a into tm-dev

* changes:
  [uwb] Add FiraProfileSupportInfo
  [uwb] Add VendorSpecificData
  [uwb] Add RegulatoryInfo and ChannelPowerInfo

commit e7afd04bbec4bf8dbd761053e1766b0640889eff
Author: Jin Chen jinjiechen@google.com
Date: Thu Mar 3 20:58:58 2022 +0000

[uwb] Add FiraProfileSupportInfo

* Part of discovery advertisement data and oob message.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: If9f0da9d73dafb10fa8f2dcca2bcb427f758a19a

commit 375a89c537bf2cc7b0fcae26f124e070fec97b93
Author: Jin Chen jinjiechen@google.com
Date: Thu Mar 3 20:55:17 2022 +0000

[uwb] Add VendorSpecificData

* Part of discovery advertisement data and oob message.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: Ibfc58974698506b7007ce30cd7d25e3773866f6d

commit 340c85e6885983c887435c4ac8c5fd65e97cca34
Author: Jin Chen jinjiechen@google.com
Date: Tue Mar 1 15:10:24 2022 +0000

[uwb] Add RegulatoryInfo and ChannelPowerInfo

* Part of discovery advertisement data and oob message.

Bug: 197342264
Test: atest ServiceUwbTests
Change-Id: I97f1022ada7f5e0d82bb5d8db8d7abd276309bf5

commit 5b153920890fcddd3e0e97fe2386eec0beaa66e2
Author: Roshan Pius rpius@google.com
Date: Wed Mar 2 04:15:01 2022 +0000

uwb(service): Handle CCC session start with no params

This is optional according to documentation.

Bug: 221463266
Test: atest ServiceUwbTests
Change-Id: I7d97ecd6a9cfc827e41900709bef0ae80784dc89

commit 30706e145652734f1d7c5cea5f7f6ad85cba9d9b
Merge: c2f5564 ccf1a6b
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Mar 2 02:40:19 2022 +0000

Merge "uwb(service): Include AOA info only when enabled for session" into tm-dev

commit ccf1a6b081374c63ad8c1a161007e7e2324fe49f
Author: Roshan Pius rpius@google.com
Date: Tue Mar 1 14:04:27 2022 -0800

uwb(service): Include AOA info only when enabled for session

The current UCI stack implementation is inconsistent with the API
expectations. We should send null to indicate that AOA is not being
computed for the session.

Bug: 221463266
Test: atest ServiceUwbTests
Test: Manual tests
Change-Id: I1e00600b77a9a8d2799050d943f638b5113b6bfb

commit c2f55647b46d6bebd0dd539a6f04bf4675fd0a40
Author: Roshan Pius rpius@google.com
Date: Tue Mar 1 13:38:30 2022 -0800

uwb(apex): Remove "required_libs" from manifest

The build system is now able to correctly compute this dependency from
the rust library. No need to hardcode it anymore.

Bug: 208303264
TesT: Manual testing
Change-Id: Ib5bb586a7190ba5fd999085f0a3e429c81bfe5bd

commit edf04dadfaf9a8a93f5f5c26797d0283522b870d
Author: Roshan Pius rpius@google.com
Date: Mon Feb 28 07:55:36 2022 -0800

uwb(service): Remove unused UwbSpecificationInfo

We have now implemented the full capabilities fetch via
GET_CAPS_INFO_CMD. So, the old UwbSpecificationInfo object is no longer
required.

Bug: 217741712
Test: Manual tests
Change-Id: If572c3794795f999026261999c9e302fe1eba375

commit 0ef3a55bc60b47cd83ceef601df41c02179780e2
Merge: 4b21a70 d5e2c40
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Feb 25 16:53:05 2022 +0000

Merge changes from topic "api_review" into tm-dev

* changes:
  uwb(api): Address API review comments (2/2)
  uwb(api): Address API review comments (1/2)

commit d5e2c4071e6553488a2770ca6018d840ea45c242
Author: Roshan Pius rpius@google.com
Date: Wed Jan 12 09:09:04 2022 -0800

uwb(api): Address API review comments (2/2)

Also, remove unnecessary javadocs from the aidl files.

Bug: 214029149
Bug: 211025367
Test: Compiles
Change-Id: Ie3087dc07a253e37c920807e2a46ea29b1e045b5

commit 4b21a70287abc0073093a4b637ebfaaf42a46ace
Merge: 1e15901 491dc70
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Feb 25 00:32:16 2022 +0000

Merge "Add unit tests for UwbMulticastUpdateStatus" into tm-dev

commit 1e15901fd29efea25699e616c286ccde5ac6b4f4
Merge: 2771444 c1b3d4c
Author: Roshan Pius rpius@google.com
Date: Fri Feb 25 00:09:43 2022 +0000

Merge "uwb(jarjar): Fix typo" into tm-dev

commit 491dc70bf60802276db8d1f628fd64473399a1b4
Author: Shreshta Manu shreshtabm@google.com
Date: Thu Feb 24 21:36:14 2022 +0000

Add unit tests for UwbMulticastUpdateStatus

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I14af2b86894e845459cc997eebc9454a57b2a8d7

commit c1b3d4caeb92e76c95099cdc7f87ee12f9728bea
Author: Roshan Pius rpius@google.com
Date: Thu Feb 24 12:08:46 2022 -0800

uwb(jarjar): Fix typo

com.android.uwb.x -> com.android.x.uwb

Bug: 217741712
Test: Compiles
Change-Id: If894bec359880a95cf90d7a5a7d3d42346cdd2ba

commit aabf7a095ff788eb9b263ea30d429532eb3eeff9
Author: Roshan Pius rpius@google.com
Date: Wed Jan 12 08:58:17 2022 -0800

uwb(api): Address API review comments (1/2)

Bug: 214029020
Test: Compiles
Change-Id: I811d4e16ac8d1350a35405dda5a6ffc3a056e6c2

commit 27714444097a4de1868338010f974154756108e7
Author: Othman BOUADJENAK othman.bouadjenak@qorvo.com
Date: Tue Feb 22 17:07:22 2022 +0100

Add check to handle zero-only FlagEnums

Bug: 220903777
Test: atest UwbSupportLibTests
Change-Id: Ib23553b3249e69a3e7017237692fd6be988aa46d

commit d379d857c3e0c3eee51497d10ea9b4e624300674
Author: Roshan Pius rpius@google.com
Date: Thu Feb 24 01:21:41 2022 +0000

uwb(service): Populate elapsed real time in RangingReport

Bug: 196225233
Test: atest ServiceUwbTests
Change-Id: I70ba725b1924b39eea7099ebdaadfe6ac7ac58ab

commit 4192348ce755b6da5111dda28d8eccadc42e91a6
Merge: 845682b 1286774
Author: Jin Chen jinjiechen@google.com
Date: Wed Feb 23 23:57:01 2022 +0000

Merge changes Ibdef417e,I5bf9639d into tm-dev

* changes:
  [uwb] Expand unit test for UwbManager
  [uwb] Expand unit test for RangingManager

commit 1286774e6ceb43218f8e38354dcbe3118d39504c
Author: Jin Chen jinjiechen@google.com
Date: Wed Feb 23 20:43:34 2022 +0000

[uwb] Expand unit test for UwbManager

Bug: 217741712
Test: atest FrameworkUwbTests
Change-Id: Ibdef417e5ba233176a1d726d8b1c54bd7c0ba0b2

commit d17b454d00d73df7d66849aa769d01abcf9baff8
Author: Jin Chen jinjiechen@google.com
Date: Wed Feb 23 20:39:32 2022 +0000

[uwb] Expand unit test for RangingManager

Bug: 217741712
Test: atest FrameworkUwbTests
Change-Id: I5bf9639dd1800993655f1c853c741889f68fbb85

commit 845682b6d543a040e009bde4c3ba5717426cdf78
Author: Roshan Pius rpius@google.com
Date: Wed Feb 23 17:13:22 2022 +0000

uwb(service): Fix dst address endianness in reconfigure

The little endian conversion is already handled by the PDL at the native
layer. So, no need to do it in the java layer.

Bug: 220917012
Test: atest ServiceUwbTests
Change-Id: I2533681b3d118f9d3450abec84d1303573cc47d3

commit de4833430ecd32dcf039d69f3a1226d9d5555867
Merge: 9ddfc31 a950cb9
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Feb 23 08:41:56 2022 +0000

Merge "uwb(service): Use DS-TWR as default in shell command" into tm-dev

commit 9ddfc314aac9b66febf0ef6cd8f359350d3f70bf
Merge: fc97965 f84ef75
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Feb 23 08:38:21 2022 +0000

Merge "uwb(jarjar): Jarjar preconditions rules" into tm-dev

commit a950cb950802e0cd6384b1fc83baedef0e2abc0a
Author: Roshan Pius rpius@google.com
Date: Tue Feb 22 12:47:16 2022 -0800

uwb(service): Use DS-TWR as default in shell command

DS-TWR is a more approprate default for the ranging session params since
that is mandated by FIRA.

Bug: 219784149
Test: adb shell cmd uwb start-fira-raning-session
Change-Id: I1d07f082f65e640c7482442aa0ddb1747b7e5a7f

commit fc97965e35b8c9d3977a0831f68b9f1632113570
Author: Shreshta Manu shreshtabm@google.com
Date: Tue Feb 22 20:26:32 2022 +0000

Remove UwbPermissions(unused), add unit test for
UwbRangingData initialize

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I2507aaa261f1c4e768d868053f62ecff2651707b

commit f84ef75e14bd1885313b7fe27f14243d420bf28f
Author: Roshan Pius rpius@google.com
Date: Mon Feb 21 15:45:11 2022 -0800

uwb(jarjar): Jarjar preconditions rules

Bug: 217741712
Test: Compiles
Change-Id: Iabcc10630b56df2dcb7cd7bcbd654b8d7b363aa9

commit a9eda17f0658b62de8909a55b7690417c7e6b42b
Author: Roshan Pius rpius@google.com
Date: Tue Feb 22 07:53:50 2022 -0800

uwb(service): Remove tmp hacks

New qorvo stack drop fixes these issues.

Also, use a byte for interleaving ratio.

Bug: 220173516
Test: Manual tests
Change-Id: I4d7bfd5030495d13a8a1fe10fb7bc71fdba690c7

commit d8588e4bf8d1793f0f920a3c90c0828ffe0110d8
Author: Roshan Pius rpius@google.com
Date: Fri Feb 18 16:50:25 2022 -0800

uwb(service): Few fixes for P21 integration

Changes:
1. CccStartRangingParams contains the updated RAN multiplier &
needs to be merged into session params.
2. Change the handling of session start requests when session is
already started. This should be rejected.
3. Remove CccStartRangingParams from CccEncoder, this is never sent on
it's own to the native stack. The info will be merged with
CccOpenRangingParams which will be encoded to SET_APP_CONFIG TLVs.
4. Handle empty hprf/bprf sets in capabilities in FiraDecoder.
5. Send CccRangingReconfigured bundle in onRangingReconfigured callback
for CCC sessions.

Bug: 220173518
Test: atest ServiceUwbTests
Change-Id: I4ec2f9924bd106fee13aca54c3ec2c385146899b

commit 0defc83e9319733147994ed72fc163d00f7ae274
Merge: ffc1183 4cecfde
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Feb 22 15:07:10 2022 +0000

Merge "Add unit test for UwbSessionManager(reconfigure and deInit)" into tm-dev

commit 4cecfded55c07597d4c3a9c3954d487a6d4df153
Author: Steven Liu steveliu@google.com
Date: Thu Feb 17 11:20:00 2022 -0800

Add unit test for UwbSessionManager(reconfigure and deInit)

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I6e4438fc067d95c969b4f17f670128e6f26dc8a0
(cherry picked from commit 8ee1d76493bca6b64430661a1aa66ddeb26bcbf3)

commit ffc11835d40b1e8becead3cfc1e46fbe57da200c
Author: Roshan Pius rpius@google.com
Date: Thu Feb 17 23:18:33 2022 +0000

uwb(uci-jni): Remove c++ stack from uwb module

No longer used or maintained.

Bug: 197341298
Test: Manual tests
Change-Id: Ia55cefde597809814aba2034b680063864d1fdba

commit 5fc86c22fac7bb4fc890ac86e612f4e4759378cc
Author: ziyiw ziyiw@google.com
Date: Thu Feb 17 22:32:27 2022 +0000

Change Disable command to be a blocking one.

Test: UwbManagerTest
Bug: 216512326
Change-Id: I94e59884e8811047c1552e1771ddb688da2e4255

commit 22880f01e3e91e0bd9679681d7d2bde33c8f392d
Merge: 7ac2a8e e552003
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Feb 17 17:57:36 2022 +0000

Merge "Add unit test for UwbSessionManager(StopRanging)"

commit e5520034a321561f8ae212b4e34ba431f4fe4d95
Author: Steven Liu steveliu@google.com
Date: Thu Feb 17 08:24:24 2022 -0800

Add unit test for UwbSessionManager(StopRanging)

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I60329ce0000a8dae3be3cd353648ed136b930dea

commit 7ac2a8e5716cbd0ef0bebe712421f0f277e57a88
Author: Kai Shi kaishi@google.com
Date: Wed Feb 16 19:39:59 2022 -0800

Add ranging start status count

Bug: 218921154
Test: atest com.android.server.uwb.UwbMetricsTest and manual test with
adb shell dumpsys uwb

Change-Id: I4d66d4aff6f8b241aef5be3cfe17bbf5cbf52b80

commit 16ec8974e8bddc7a97d0919d5c7ceb4eab1a4477
Merge: 74ad27e 0ed7d01
Author: Shreshta Manu shreshtabm@google.com
Date: Wed Feb 16 00:39:48 2022 +0000

Merge "Commenting out unused classes related to tests"

commit 74ad27e9b3587c765d48e2733127fa5de41fe28f
Merge: 9e2b6a5 76c817f
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Feb 16 00:11:38 2022 +0000

Merge "Add unit test for UwbSessionManager(StartRanging)"

commit 9e2b6a58e6c50a63cdc27e4c5b8813695f7e9932
Merge: 33f6d6b 0b588a8
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Feb 15 23:51:00 2022 +0000

Merge "uwb(service): Allow setting of AOA type for FIRA sessions"

commit 76c817fcbb0b724845e196689dc8f12c14f07703
Author: Steven Liu steveliu@google.com
Date: Tue Feb 15 12:09:37 2022 -0800

Add unit test for UwbSessionManager(StartRanging)

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I64e69c6d80f9b954c4c8264ca3afa1e0ab0a21de

commit 0b588a82b45c6b3d10468a53fb2d2b2085aaf7cc
Author: Roshan Pius rpius@google.com
Date: Tue Feb 15 22:00:19 2022 +0000

uwb(service): Allow setting of AOA type for FIRA sessions

Bug: 219784149
Change-Id: I4a891680b09a6d29e8554f69e951b74d7a12a0c0
Test: Compiles

commit 33f6d6b61c1a0069e92c670c26ad10bf77f63e62
Author: Roshan Pius rpius@google.com
Date: Tue Feb 15 20:52:48 2022 +0000

uwb(service): Allow setting of channel for FIRA sessions

Bug: 219784149
Change-Id: I49f84e6f8765ba811842570c4c8a16a1f893a017
Test: Compiles

commit 0ed7d01c962bcbf366df866ea55cef3412315496
Author: Shreshta Manu shreshtabm@google.com
Date: Tue Feb 15 18:57:10 2022 +0000

Commenting out unused classes related to tests

Bug: 217741712
Test: Compiles
Change-Id: I09d8314898ddea8db81c4621b040ed8c191451a6

commit 2093027ac6048465f43180bbc88f3769c4a795e9
Merge: c4a5ee1 ffec968
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Feb 15 20:24:39 2022 +0000

Merge "[uwb] Add unit test for UwbManager"

commit c4a5ee135df9ac3bbdb1ab04f95291e625aa37a7
Merge: e3a23dd 16cc025
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Feb 15 19:35:46 2022 +0000

Merge "[uwb] Add unit test for UwbVendorUciCallbackListener"

commit e3a23ddc01dc08e55bf3c318de5d2eaed7a9f2ab
Merge: b1d65f5 58055ba
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Feb 15 19:26:51 2022 +0000

Merge "[uwb] Add unit test for UwbFrameworkInitializer"

commit b1d65f5293e7a95bde812776e1cf600caffd3aeb
Merge: 7f32d72 54db621
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Feb 15 18:48:39 2022 +0000

Merge changes from topic "ranging_start"

* changes:
  uwb(service): Allow ranging start from unrooted shell
  uwb(service): Handle all exceptions in APM mode handling
  uwb(support_lib): Allow CTS test to include support lib

commit ffec968a1febb4be5f63d1383b5e65dbd4592d42
Author: Jin Chen jinjiechen@google.com
Date: Tue Feb 15 04:15:34 2022 +0000

[uwb] Add unit test for UwbManager

Bug: 217741712
Test: atest FrameworkUwbTests
Change-Id: Ib9db677e2564ffd5acb7d9dfe7d8d63e49c830eb

commit 7f32d721ed619db8990addc42c894da587e18fa2
Merge: 6e78866 7099b30
Author: Steven Liu steveliu@google.com
Date: Tue Feb 15 18:34:48 2022 +0000

Merge "Add unit test for UwbSessionManager(OpenRanging)"

commit 7099b30925115646e28b179d348c4e870cb738e9
Author: Steven Liu steveliu@google.com
Date: Tue Feb 15 08:56:01 2022 -0800

Add unit test for UwbSessionManager(OpenRanging)

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I201120ff8b7c10a12df6d0d6646fdaec20f58bbe

commit 54db6216a0b0123cfb48abf1e69bfc3a906fa51c
Author: Roshan Pius rpius@google.com
Date: Tue Feb 15 07:54:15 2022 -0800

uwb(service): Allow ranging start from unrooted shell

Bug: 214700285
Test: adb shell cmd uwb start-fira-ranging-session (without root)
Change-Id: I43bc7b7f3e17b835eb78156bf48f6a3699af2c30

commit 6e78866982fff8ccfaa6a95d5da12e42cb2f392a
Merge: ba5d4c0 641013a
Author: Kai Shi kaishi@google.com
Date: Tue Feb 15 16:43:49 2022 +0000

Merge "Add power stats support"

commit 16cc025364dd9e52eb42b49408ea1d1ad090a9b2
Author: Jin Chen jinjiechen@google.com
Date: Tue Feb 15 04:11:28 2022 +0000

[uwb] Add unit test for UwbVendorUciCallbackListener

Bug: 217741712
Test: atest FrameworkUwbTests
Change-Id: Iaaf690df64e00ddf6d236adbd95002dffccb8cdf

commit 58055baf2e6ec2c3a88a2672491a7c382d92af11
Author: Jin Chen jinjiechen@google.com
Date: Tue Feb 15 04:01:42 2022 +0000

[uwb] Add unit test for UwbFrameworkInitializer

Bug: 217741712
Test: atest FrameworkUwbTests
Change-Id: Idc451317644e287a8d207e081de67c0205e9fb39

commit 641013af4599a9168080e1533ff6fb3ffddd8d37
Author: Kai Shi kaishi@google.com
Date: Fri Dec 3 11:38:05 2021 -0800

Add power stats support

Add JNI/shell command support for power stats

Test: adb shell cmd uwb get-power-stats
Bug: 199768480
Change-Id: Iff72cf74dc6d4f00be53f026e0124f0c9d53b0f5

commit b6ae8fd579899de002e79a9362ddd9565f4a06c6
Author: Roshan Pius rpius@google.com
Date: Mon Feb 14 10:09:25 2022 -0800

uwb(service): Handle all exceptions in APM mode handling

Looks like a kernel crash killed the vendor stack.

Bug: 215155756
Test: Compiles
Change-Id: Ib91e0122dc5df23771c382d6e8dd148d6935239d

commit baeb81a6849c6ec5d974b44b2d4a339b3692dae1
Author: Roshan Pius rpius@google.com
Date: Mon Feb 14 09:51:29 2022 -0800

uwb(support_lib): Allow CTS test to include support lib

Bug: 219429355
Test: atest android.uwb.cts
Change-Id: Ic32c7ecd458a0cc19381927aab35aff60b6b5f68

commit ba5d4c064d02e796c8c2bd107e303e04120d2b9f
Author: Roshan Pius rpius@google.com
Date: Mon Feb 14 09:24:52 2022 -0800

uwb(service): Add null check in UwbConfigurationManager

Bug: 196225233
Test: atest android.uwb.cts
Change-Id: I7dc9f6913891f95a7d4b919ff9bdbbd4045d1618

commit e605818052d6382c652c20c5723fc24525a11885
Merge: b90dc58 45064aa
Author: Roshan Pius rpius@google.com
Date: Fri Feb 11 18:58:37 2022 +0000

Merge "uwb(uci-jni-rust): Fix Vendor Rsp/Ntf UCI packet heirarchy"

commit b90dc583afd09d3fc0960412df757aebb16e36c1
Merge: df2821a 007a0ac
Author: Kai Shi kaishi@google.com
Date: Fri Feb 11 16:27:00 2022 +0000

Merge "Add more UWB metrics"

commit 45064aa6c4071e641526ece9b749bd5e158e0a26
Author: Roshan Pius rpius@google.com
Date: Fri Feb 11 05:52:43 2022 +0000

uwb(uci-jni-rust): Fix Vendor Rsp/Ntf UCI packet heirarchy

Bug: b/202760099
Test: Unit tests
Change-Id: Iab1c3d7b1c3dbd4e3534f61849b637d6822b35ca

commit df2821acf1935912d604d21a848ac5471feeaa6b
Merge: 2153c1b 0de5125
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Feb 11 14:11:10 2022 +0000

Merge "uwb(service): Implement device reset"

commit 007a0ac9ff792130d6fa28f273cef3dffd758453
Author: Kai Shi kaishi@google.com
Date: Thu Feb 10 12:07:59 2022 -0800

Add more UWB metrics

Add session close and first ranging result metrics.

Bug:197341885
Test: atest com.android.server.uwb.UwbMetricsTest and manual test with
adb shell dumpsys uwb

Change-Id: Id431286c05aaa624f41b318eb4b1add18f1ba9f1

commit 2153c1b1e62330f6d877a9a0a682f38ee2297a71
Merge: 0dd88dc 46119de
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Feb 11 01:04:14 2022 +0000

Merge "Add unit test for UwbSessionManager(part)"

commit 46119dec25b082d25cd999b476dda70ade23dfc4
Author: Steven Liu steveliu@google.com
Date: Thu Feb 10 09:18:19 2022 -0800

Add unit test for UwbSessionManager(part)

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I0bd670d36c4d491f9693aec879d796b10a412fef

commit 0de5125bf83c2cf547d2ee014f9b2f5b09df822b
Author: Roshan Pius rpius@google.com
Date: Thu Feb 10 13:07:20 2022 -0800

uwb(service): Implement device reset

Bug: 218898203
Test: Compiles
Change-Id: I8c8350c89180665526a58b14c8f07d8c743b4009

commit 0dd88dc72a17507f3faf3a2d5d4544b464ee668b
Merge: 78e0332 ef423e2
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Feb 10 20:10:08 2022 +0000

Merge "Add Unit tests for UwbServiceImpl"

commit 78e0332776cd90ea549f5b4e3957d8c97838926e
Author: Roshan Pius rpius@google.com
Date: Thu Feb 10 10:23:35 2022 -0800

uwb(service): Fix CCC ranging start

This requires the CccStartRangingSessionParams to be sent
in startRanging() call.

Bug: 214700285
Test: atest ServiceUwbTests
Test: Manual verification
Change-Id: Id4752b56cf71115759de00430a2b4180b10b7fec

commit ef423e2feb1390f488ed9eff13bd40c5fe286fd7
Author: Shreshta Manu shreshtabm@google.com
Date: Thu Feb 10 18:24:49 2022 +0000

Add Unit tests for UwbServiceImpl

These methods are not implemented yet, handling
excpetion in UT

Bug: 2177411712
Test: atest ServiceUwbTests
Change-Id: I2b1a21fba260ece63d0098e1894ce2397789402a

commit 112a819396d48c5799a0dba8b6089c2fca0aee46
Merge: d98023f 9b5f45f
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Feb 10 05:06:56 2022 +0000

Merge "Add unit tests for UwbConfigurationManager and UwbSessionNotificationManager"

commit d98023fcd586eaa8edd51bcb037a5cbdbb363a6e
Merge: 0a0665e 70e0d3d
Author: Roshan Pius rpius@google.com
Date: Thu Feb 10 04:46:29 2022 +0000

Merge "uwb(test): Add unit test for TlvEncoder and TlvDecoder"

commit 0a0665ebed1669ef3c243724ef93a0b639ff9f7f
Merge: 93b233b b2cb868
Author: Roshan Pius rpius@google.com
Date: Thu Feb 10 04:46:01 2022 +0000

Merge "uwb(test): Add unit test for CccEncoder and FiraEncoder"

commit 93b233b269c8f6cf541622ceadd151d5981d91c8
Merge: c520797 ab5dca0
Author: Steven Liu steveliu@google.com
Date: Thu Feb 10 02:04:49 2022 +0000

Merge "Add unit test for ObjectIdentifier and UwbVendorUciResponse"

commit 9b5f45f255f8d149fe2cce5734a7287b98a4ed2a
Author: Shreshta Manu shreshtabm@google.com
Date: Wed Feb 9 17:55:36 2022 +0000

Add unit tests for UwbConfigurationManager and UwbSessionNotificationManager

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: Ic6504849d7befa073a7799c827e42cb0e463af3c

commit 70e0d3dd3a95a4eb738da9e8cf80a8e88bfeba05
Author: Roshan Pius rpius@google.com
Date: Wed Feb 9 14:08:51 2022 -0800

uwb(test): Add unit test for TlvEncoder and TlvDecoder

These are pass-thru classes, so use the existing tests in
Fira/Ccc-Encoder/Decoder to verify these class.

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I721aef5e16fea640d6c5a1aed3a30fdb76a5f96a

commit b2cb86830623ccd81a39329a600bb33bd2452886
Author: Roshan Pius rpius@google.com
Date: Wed Feb 9 11:17:30 2022 -0800

uwb(test): Add unit test for CccEncoder and FiraEncoder

Also, remove unused method from CccEncoder (CccRangingStartedParams
is not sent to UCI layer, but received from UCI layer and handled
in CccDecoder).

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I350825705b235f6325335e32d44f78fdaba3b4a4

commit c52079744d8362fa9eb2ca84905864d88834bce3
Author: Roshan Pius rpius@google.com
Date: Wed Feb 9 09:50:30 2022 -0800

uwb(test): Add unit test for callback handling in UwbServiceCore

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: I8c627dc1773ae0e272deee327f4475bf75abec29

commit 8db4a7814f0534d2257cd9e3ef0d28429a384055
Author: Roshan Pius rpius@google.com
Date: Wed Feb 9 08:47:29 2022 -0800

uwb(test): Add unit test for API handling in UwbServiceCore

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: Iad0965801db8435a81067d7e8a4b3d81c0c9bb6e

commit ab5dca0df71bfd742d5e238af2bb0e9eba665c10
Author: Steven Liu steveliu@google.com
Date: Wed Feb 9 07:30:25 2022 -0800

Add unit test for ObjectIdentifier and UwbVendorUciResponse

Bug: 217741712
Test: atest ServiceUwbTests
Change-Id: Iee90eb4a64e9afb8bedd851640f91f766871ea96

commit 8f3431a9fafe6ce21599c29334e4a07adfcab417
Merge: 5e7bccb 7b79992
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Feb 9 03:58:35 2022 +0000

Merge "uwb(service): Some changes to the CCC capabilities to align with latest proposals in standards body"

commit 5e7bccbdcfd01a85c45d89952331ba0431b36952
Merge: 7233f23 2c91336
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Feb 9 03:57:19 2022 +0000

Merge "uwb(TEST_MAPPING): Add support lib unit tests"

commit 7b79992261594e043c13d722352e37a7f67bc3f2
Author: Roshan Pius rpius@google.com
Date: Tue Feb 8 21:59:54 2022 +0000

uwb(service): Some changes to the CCC capabilities to align with latest proposals in standards body

Bug: 208678993
Bug: 209053358
Test: atest ServiceUwbTests
Change-Id: I6b167c0397217defcf93e1f20f2bc2ecdd76e03a

commit 2c91336487521dc0dc6b5c3a5b6cef6d2ae402df
Author: Roshan Pius rpius@google.com
Date: Tue Feb 8 09:42:26 2022 -0800

uwb(TEST_MAPPING): Add support lib unit tests

Bug: N/A
Test: N/A
Change-Id: Ibc7f59878248867c587ca01e16bdb805d8a4952b

commit 7233f23c1bc880c72ff144e7856b8414f7b22874
Author: Roshan Pius rpius@google.com
Date: Tue Feb 8 09:24:24 2022 -0800

uwb(service): Use LITTLE_ENDIAN order for decoding tlvs

Bug: 218346148
Test: atest ServiceUwbTests
Change-Id: Ibf0f6dd1b8f8f6acf9b17f02fdb6590b2f0fd0a6

commit a563425864c55524133037506f2552b73aed9933
Author: Roshan Pius rpius@google.com
Date: Tue Feb 8 07:37:11 2022 -0800

uwb(uci-jni-rust): Remove panics/expects

Remove unnecessary panics/expects. These should be handled more
gracefully.

Also, removed a bunch of unimplemented (unnecessary) helper methods.

Bug: 216512326
Test: adb shell cmd uwb start-fira-ranging-session
Change-Id: I668a6e649d64fcff0a5d55a8dbbbafaa3fc7ef6a

commit 77cf74ef20211c7ab4308f31acfb1bb51f506dfa
Author: Roshan Pius rpius@google.com
Date: Mon Feb 7 13:07:27 2022 -0800

uwb(service): Use 1 as default session id

Session ID 0 is reserved by some chip vendors.

Also, remove a stale TODO.

Bug: 214700285
Test: adb shell cmd uwb start-fira-ranging-session
Change-Id: Ia7625680fd2747f5febfd62330d7c3f2bf223d49

commit f639b1aa4bb3a44768950b1af3f828b610d453eb
Merge: 37331f8 7424bab
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Mon Feb 7 18:34:57 2022 +0000

Merge "uwb(service/support_lib): Add support for antenna interleaving"

commit 7424bab14a64f2831237225df84af4ef62525cae
Author: Roshan Pius rpius@google.com
Date: Thu Feb 3 10:48:33 2022 -0800

uwb(service/support_lib): Add support for antenna interleaving

This plumbs the interleaving ratio from the API (provided via support
lib) to the SET_APP_CONFIG UCI command payload (TLVs).

Also, add these params to the existing shell command for starting
ranging sessions.

Bug: 205730040
Test: atest ServiceUwbTests UwbSupportLibTests
Test: adb shell cmd uwb start-fira-ranging-session -i 2 -d 6 -z 3,4,5
Change-Id: I1e583464351472edfb6d19c970998a1807fed610

commit 37331f8b3c644979d9023fe05c63bedc9ca7be89
Author: Leslie Watkins lesliewatkins@google.com
Date: Fri Jan 28 16:06:45 2022 -0800

Added logic to read in a configuration file if device supports UWB
multi-chip.

Also, add position values to ChipInfoParams.

Test: manually with test xml file
Test: atest {FrameworkUwbTests, ServiceUwbTests, UwbCtsTestCases,
UwbSupportLibTests}
Fixes: 206150133

Change-Id: Idbefdd8744998a03999f6040b68a6d1ea0209cdd

commit c34b2e272d32a2d900a688782c4ae88e7e905ae4
Author: Roshan Pius rpius@google.com
Date: Thu Feb 3 14:34:44 2022 -0800

uwb(service): Clear capabilities cache on country code change

The cached capabilities may not be relevant after a country code change.
So, reset it to ensure that the next API call will fetch the new info.

Bug: 208678993
Bug: 209053358
Test: atest ServiceUwbTests
Change-Id: I3260135c9dbc4f245003a01833f59ab7da2024a5

commit d6b6feb9aeb012c64aa58d3f3f3308bddfd0b00b
Merge: b1b1e7a 64b4b98
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Feb 3 19:43:14 2022 +0000

Merge "uwb: Remove local coverage filters"

commit 64b4b9815cb1c4261f224485da4a93f490b8cba4
Author: Roshan Pius rpius@google.com
Date: Thu Feb 3 17:42:52 2022 +0000

uwb: Remove local coverage filters

We don't generate local coverage reports, so remove these filters.
This is probably messing up the automated coverage numbers.

Bug: 204246491
Test: Compiles

Change-Id: Ib243dccef000617d79c3cb322d6827bc99ebfbe7

commit b1b1e7a2b625b0df70f21bb78dd7a4db56336c29
Author: Roshan Pius rpius@google.com
Date: Thu Feb 3 08:52:31 2022 -0800

uwb(service): Adjust jarjar & proguard rules

Ensure that all statically included dependencies are correctly
jarjar-ed.

Bug: 204246491
Test: Compiles
Change-Id: I429639ea9bcec4b2043a89cb2ee1f66b5af6f346

commit 1b35c194d0bb764c9abf61b0dd65240e575bee23
Author: Roshan Pius rpius@google.com
Date: Thu Feb 3 07:27:47 2022 -0800

uwb(service): Return default FIRA specification params

Since the vendors have not yet added support for the GET_CAPS_INFO_CMD,
return a default FiraSpecificationParams object to help with testing.

Bug: 216104681
Test: adb shell cmd uwb get-specification-info
Change-Id: Ib712e7af959441313714702c7183f21fc03714e0

commit 8bd85c163b58ee9c2bf652320eafc9a81e24c153
Merge: 3a334cf 4334d45
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Feb 2 18:28:42 2022 +0000

Merge "Add OMAPI channel to FiRa applet."

commit 4334d45d28ccb6204ac941fce7fc631c6dcdaebd
Author: Steven Liu steveliu@google.com
Date: Tue Feb 1 09:17:58 2022 -0800

Add OMAPI channel to FiRa applet.

Bug: 200678121
Test: atest ServiceUwbTests
Change-Id: I6abd945b79ee30227df50ceb4c7daeb594dec736

commit 3a334cf58597c93b5146e029fe27e7f049d5f222
Author: Roshan Pius rpius@google.com
Date: Wed Feb 2 05:20:29 2022 +0000

uwb(service): Fix multicast address size in JNI

Addresses are 2 bytes long, fix the existing implementation to accept an
array of shorts instead of array of bytes.

Also, added a shell command to test reconfigure.

Bug: 216104681
Test: Manual tests
Change-Id: I080f45586d4fb739b708f546280ed8f4176dad8b

commit 03a6a181bd09a61ef30993d320d8f4b7f87f00c7
Author: Roshan Pius rpius@google.com
Date: Wed Feb 2 04:35:32 2022 +0000

uwb(service): Use a new lock for all global operations in NativeUwbManager

Bug: 196225233
Change-Id: Ib6dbfd5cdc4d63beb871143fc50d4a32b220824e
Test: Manual tests

commit 91010226fa567f0d3d6750a524440d6816d09239
Author: Roshan Pius rpius@google.com
Date: Tue Feb 1 10:56:39 2022 -0800

uwb(service): Don't return null for getSpecificationInfo

The API mandates that we return a non-null bundle.

Bug: 208678993
Bug: 209053358
Test: 'adb shell uwb get-specification-info' does not crash
Change-Id: I9489479d6b83d98e0390c536157bd0e2c59a55b7

commit abe594031ab2e45bbf58cf8ea39cf9b45549faee
Author: Roshan Pius rpius@google.com
Date: Tue Feb 1 08:54:33 2022 -0800

uwb(service): Implement UwbManager#getSpecificationInfo

Implement the API correctly using the GET_CAPS_INFO UCI command and by
parsing the output TLVs.

Bug: 208678993
Bug: 209053358
Test: atest ServiceUwbTests UwbSupp
Change-Id: I3e313ff5d9c7d1e2616432eacc7ece60472c31b7

commit abd0c78b7ba30f886d0a4aacd18260254bc4639a
Author: Roshan Pius rpius@google.com
Date: Mon Jan 31 15:00:24 2022 -0800

uwb(support_lib): Conform to FIRA specification for FIRa capabilities

Change FiraSpecificationInfo to align with CR 287. Addressing comments
from the previous CL.

Bug: 208678993
Bug: 209053358
Test: atest ServiceUwbTests UwbSupportLibTests

Change-Id: Ic4908052b090bbc2023e56ada8eb8b80f9a3cd5c

commit 4bde1cfb745356c836ae008ce265527a337ff9eb
Merge: 49148a1 752be09
Author: Roshan Pius rpius@google.com
Date: Tue Feb 1 15:10:43 2022 +0000

Merge "uwb(uci-jni-rust): Add support for GetCapsInfo"

commit 752be094b0daf854297fec9322a6590ae455c69c
Author: Shreshta Manu shreshtabm@google.com
Date: Tue Feb 1 00:24:15 2022 +0000

uwb(uci-jni-rust): Add support for GetCapsInfo

Added suport fot fetching capability information

Bug: 208678993
Bug: 209053358
Test: Manualy called GetCapsInfo, Uwb chip returns
    GetCapsInfoRsp UciStatusOk and empty list of tlvs
Change-Id: I867707745e198cff48be5223eec1ca4afc49c89a

commit 49148a114a6defe8c6d202c9333fc4167f69e289
Author: Roshan Pius rpius@google.com
Date: Mon Jan 31 10:48:38 2022 -0800

uwb(service): Conform to FIRA specification for FIRa capabilities

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: I1d6ad4faf42094ffa0b84c9b50c8ea165ed21fcc

commit b5640b25677bd397aad473e2678d706ba55c26aa
Merge: af6bd35 ef701e0
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Sat Jan 29 07:33:05 2022 +0000

Merge "Create new class for Tlv and config statues"

commit ef701e03637db4fc173b4dd8bf2c1a7fb784ebbd
Author: Shreshta Manu shreshtabm@google.com
Date: Fri Jan 28 21:14:46 2022 +0000

Create new class for Tlv and config statues

Created new object type in java to handle results from
SetAppConfigurations and GetAppConfiguration rahter than
relying on the bytestream for status and length

Bug: 216830401
Test: adb shell cmd uwb start-fira-ranging-session
Change-Id: I18d84276c5ba852e256c5be04438d19ac3baaf1c

commit af6bd35552f61766865da10f783bcbf9227a3841
Author: Roshan Pius rpius@google.com
Date: Thu Jan 27 13:28:08 2022 -0800

uwb(service): Convert device caps to specification info

Use the UCI command GET_CAPS_INFO to fetch android specific caps and
translate that to FiraSpecificationInfo and CccSpecificationParams.

Bug: 208678993
Test: atest ServiceUwbTests
Change-Id: I34abbb257eb1b84dfe8a1666548ac419ac979677

commit 81810408a2af4684c87bbd0e65cbffc1e53ed230
Author: Roshan Pius rpius@google.com
Date: Thu Jan 27 13:49:51 2022 -0800

uwb(service): Throw illegal arg exception for any TLV decode errors

This eases the error checking (otherwise need to check for null
everywhere).

Bug: 208678993
Test: atest ServiceUwbTests
Change-Id: I78bab35500b32e61bdb590a9c4deb91f091e3c0f

commit 545e5252631f9fa4c2507bfe370541e939e7b9c7
Merge: f1481b8 9411a74
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Jan 28 03:07:18 2022 +0000

Merge "uwb(uci-jni-rust): Use EventManagerImpl"

commit f1481b8cd15f4c22e2f514d516bb116d56ae3715
Author: Roshan Pius rpius@google.com
Date: Thu Jan 27 11:09:23 2022 -0800

uwb(service): Add shell command for retrieving specification infos

Also, use a helper method to log PersistableBundles (these need to be
defused before logging to get useful info).

Bug: 208678993
Test: adb shell cmd uwb get-specification-info
Change-Id: I5502f3ad53801edb99eae77f32ea0bf13f0121d1

commit ea39f7d678f46e64d732d9a61cb7d85409e4cd47
Author: Roshan Pius rpius@google.com
Date: Thu Jan 27 11:01:48 2022 -0800

uwb(test): Handle WTFs during unit tests

On -eng builds, wtfs cause a crash.

Bug: 216648699
Test: atest ServiceUwbTests on -eng build no longer crashes
Change-Id: I8a7be0d126e8a5e46da2a385dc2296cf523724dd

commit b012e9a19e52c3c561e2fe1aca2cd41e37f3aed0
Author: Roshan Pius rpius@google.com
Date: Thu Jan 27 04:57:13 2022 +0000

uwb(service): Merge UCI stack with Android S AOSP stack

Simple file move + package name changes. Moved all files from
com/android/uwb to com/android/server/uwb.

Also, moved com.android.uwb.UwbService to
com.android.server.uwb.UwbServiceCore (so that it does not conflict with
existing UwbService in the package).

Bug: 196225233
Test: Compiles
Change-Id: I948a7e7d67bc585370adeb8b7e8cad15bac51ff0

commit e91ebbf268cabe33c7e180f12a5c5c993071e87f
Author: Roshan Pius rpius@google.com
Date: Wed Jan 26 10:24:13 2022 -0800

uwb(service): Use a separate vendor config param for time0

Bug: 208678993
Test: Compiles
Change-Id: I718ccff46bd8d998e1c94b2e32c181bacb24c5fe

commit d4bb6094ea34949721eb67d2eed9a4616e537757
Merge: 36c71b8 a77d745
Author: Leslie Watkins lesliewatkins@google.com
Date: Thu Jan 27 12:11:31 2022 +0000

Merge "API changes for UWB multi-HAL."

commit 9411a7475783a71caaf10d292841b990fe47c788
Author: Chih-Yu Huang akahuang@google.com
Date: Thu Jan 27 17:11:14 2022 +0900

uwb(uci-jni-rust): Use EventManagerImpl

At ag/16732113 we rename the struct `EventManager` to
`EventManagerImpl`. This CL renames it at the caller.

Bug: 216552887
Test: mmm packages/modules/Uwb
Change-Id: I869f9d99036f02b61070d4d51b2bc12d073d63d0

commit a77d745b4662d6538a0748aa09c27774c4c0cf8d
Author: Leslie Watkins lesliewatkins@google.com
Date: Tue Jan 25 16:07:26 2022 -0800

API changes for UWB multi-HAL.

* Add nullness check
* Change getChipIds to getChipInfos
* Update uwbConfig.xsd to specify a root element

Change-Id: If7cbcb38c2fbd846c5938727c2846b007212ef02
Test: atest CtsUwbTestCases FrameworkUwbTests ServiceUwbTests
Fix: 215395362
Fix: 213240319
Bug: 206150133

commit 36c71b8268bf1d7708bf133415e62ac5d0fd6998
Author: Roshan Pius rpius@google.com
Date: Mon Jan 24 18:32:24 2022 -0800

uwb(uci-jni-rust): Implement vendor uci cmd/rsp/ntf

This is a non-blocking UCI command/response at the API layer. But, it
needs to be synchronous at the UCI layer (since the spec mandates 1
outstanding command to the UWB subsystem). So, use a helper thread to
handle these vendor commands at the java layer without blocking main
java stack.

Bug: 210933436
Test: Compiles
Change-Id: I59e36f88a854b70b8bbc3ff4e07c7bfb01eb2298

commit eeb5df2f0a6188d96f06bcf775d26304166b1a14
Author: Roshan Pius rpius@google.com
Date: Wed Jan 26 07:41:23 2022 -0800

UwbService: Couple of fixes in UCI stack

Changes:
1. Removes duplicate handling of APM mode & UWB stack initialization in
the UCI stack (this is already handled by UwbServiceImpl)
2. Initialie the UCI stack at bootup.

Bug: 216104681
Test: Manual tests (Verified that the failing scenarios in the bug are
passing now)

Change-Id: I2329d9825a7f8d62237495bd1ec72cbd211955f0

commit 4c13977f74b940c4404c4125e05d82a5e517b212
Author: Roshan Pius rpius@google.com
Date: Tue Jan 25 12:15:54 2022 -0800

uwb(uci-jni-rust): Use {Packet} instead of {Packet}Builder

The {Packet} struct should be used for parsed data.

Test: UwbManagerTest, adb shell cmd uwb start-fira-ranging-session
Bug: 197341298
Change-Id: Iff478cd6ae3e82366099a3c57c97e36139644e71

commit 17b51d3d91fdebc014621e8d7c53e001508ae007
Merge: 742d18e 02333f0
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Jan 25 20:38:34 2022 +0000

Merge "uwb(uci-jni-rust): Enable rust stack by default"

commit 742d18e157989f4b680476b3979094da2da6e727
Merge: 23995d3 2edf2f9
Author: Roshan Pius rpius@google.com
Date: Tue Jan 25 20:35:28 2022 +0000

Merge "uwb(api): Add separate cb for uci resp & notifications"

commit 23995d31e9c2308fa79e6f67654608e979ed392e
Merge: ce01579 b67e06a
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Jan 25 19:56:48 2022 +0000

Merge "Add R-APDU defined by FiRa."

commit ce01579aef3eb0b9f2d3456336b3c4bddc79a27e
Merge: 5c95a30 4369c5c
Author: Roshan Pius rpius@google.com
Date: Tue Jan 25 17:31:21 2022 +0000

Merge "Revert "uwb(service): Initialize UWB service state at bootup""

commit 4369c5c026a054ec9fce5da3ff62a2eb02dbf9ca
Author: Roshan Pius rpius@google.com
Date: Tue Jan 25 17:28:40 2022 +0000

Revert "uwb(service): Initialize UWB service state at bootup"

This reverts commit ba38ee5ebf3bc2ae27374daeb7c7ec83f16d05ca.

Reason for revert: b/216304672

Change-Id: I88c03b699b37b94629e152e260fa5c9533e44bdd

commit b67e06aa548b3a138c08a0ca62152e4861ed9d21
Author: Steven Liu steveliu@google.com
Date: Mon Jan 24 07:54:40 2022 -0800

Add R-APDU defined by FiRa.

Bug: 200678121
Test: atest ServiceUwbTests
Change-Id: I6c6ba8df5755d9e0ced8db43f6a17ad1a6090e80

commit 5c95a300265895896c143b227a7e1dfdb9310e79
Author: Roshan Pius rpius@google.com
Date: Mon Jan 24 20:00:19 2022 -0800

uwb(service): Handle empty subsession ID list

Set the array to 0's for the UCI stack.

Bug: 216104681
Test: Compiles
Change-Id: I97236d0793b6edc79c0379154ffe1ceb8f53f46a

commit 2edf2f991b88f8c3ef11ec19689c53a3b4f83593
Author: Roshan Pius rpius@google.com
Date: Tue Jan 25 04:48:53 2022 +0000

uwb(api): Add separate cb for uci resp & notifications

Need separate cbs for differentiating between responses & notifications.

Bug: 210933436
Test: atest CtsUwbTestCases
Change-Id: Ice9e67a79eddfdfb5702ff246e1af8f95889e43f

commit ba38ee5ebf3bc2ae27374daeb7c7ec83f16d05ca
Author: Roshan Pius rpius@google.com
Date: Mon Jan 24 18:35:00 2022 -0800

uwb(service): Initialize UWB service state at bootup

Bug: 216104681
Test: atest UwbServiceImplTest
Change-Id: Idf999267f18effc97dedb8299be719c080dc6a44

commit 8452b4960c494746cbc37ae8ffb82e079a644358
Author: Roshan Pius rpius@google.com
Date: Mon Jan 24 11:59:54 2022 -0800

uwb(uci-jni-rust): Cleanup up logging

Increase severity to error from warn for critical failures. Drop
unnecessary response logging.

Test: UwbManagerTest, adb shell cmd uwb start-fira-ranging-session
Bug: 197341298
Change-Id: I0df9e495dd0b935275aaf5ef6d0f5bb92671e089

commit 02333f09adce29dda328ddab6b2d283a129823b6
Author: Roshan Pius rpius@google.com
Date: Mon Jan 24 09:28:27 2022 -0800

uwb(uci-jni-rust): Enable rust stack by default

Bug: 197341298
Test: Verified by integration tests (b/216104681)
Change-Id: I8187b4bc3638a62fba0d77bb8536d946fac3637b

commit f8bc67f264d2e8d0d90c33fc4fc68dc6329abbfe
Author: Roshan Pius rpius@google.com
Date: Thu Jan 20 14:47:37 2022 -0800

uwb(api): Support for vendor extension UCI commands

This is used to send vendor UCI messages and callback for notifying
vendor UCI messages.

This helps OEM privileged apps to talk to the UWB chip without modifying
the AOSP codebase (mainline module) for any proprietary use-cases.

Bug: 210933436
Test: atest CtsUwbTestCases
Change-Id: I74a9fb99ea432bfb9a03358faf4cdedb36a9f13d

commit bbc677b913e6c9ebd976a95102428cdad324eb31
Author: ziyiw ziyiw@google.com
Date: Thu Jan 20 22:19:33 2022 +0000

Implement Set/GetAppConfig JNI command.

Test: UwbManagerTest, adb shell cmd uwb start-fira-ranging-session
Bug: 197341298

Change-Id: Ieee4d37a29d345f3a623caa2b3e02c2f50e3004d

commit af92b04d13a62da566df590fb9e067baa66d264f
Author: Roshan Pius rpius@google.com
Date: Fri Jan 21 10:52:35 2022 -0800

uwb(service): Add helper method for checking rust stack enable

Also, ensure we don't set the cached country code if the set fails.

Bug: 197341298
Test: Manual verification using the rust stack.
Change-Id: I14232e79a96411c6a86e33e63a88d48afa7f5126

commit 4ab52e1fa49c9fa3086a771112991a74112c00b8
Merge: f829d93 ea69e6c
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Jan 21 18:45:57 2022 +0000

Merge "uwb(uci-rust-jni): Use a single queue for all jni cmds"

commit f829d93a015b99fd7f075768169315fcfdcad01f
Merge: b82ddec 00c5ab2
Author: Roshan Pius rpius@google.com
Date: Fri Jan 21 18:00:31 2022 +0000

Merge "uwb(service): Set sdk to Tiramisu"

commit ea69e6c58b7fec70c966efce4f5943177b646f3c
Author: Roshan Pius rpius@google.com
Date: Fri Jan 21 06:05:54 2022 +0000

uwb(uci-rust-jni): Use a single queue for all jni cmds

Support both blocking & non-blocking commands using a single queue. This
will prevent cases where the messages are processed out of order.

Also,
i. Remove Uwa prefix from JniCommand enums (that terminology was
borrowed from c++ stack, but we don't follow that code structure in the
rust codebase).
ii. Instead prefix "Uci" for all commands that trigger a UCI command to
be sent to the HAL.

Bug: 197341298
Test: Manual verification using the rust stack.
Change-Id: I40c4267b8d8ee19b81e486fc396baeb8efeb36f0

commit 00c5ab22d3f65375e3c43aa4952503f540d7bed2
Author: Roshan Pius rpius@google.com
Date: Thu Jan 20 10:33:31 2022 -0800

uwb(service): Set sdk to Tiramisu

Bug: 215526504
Test: Compiles
Change-Id: I75466fe1142e9ed428361daa0a8edf9bed04a0fd

commit b82ddecca6cede8ef97d4e3b4215c4faea5f2bfb
Author: Steven Liu steveliu@google.com
Date: Thu Jan 20 08:54:49 2022 -0800

Add APDU commands defined by FiRa.

Bug: 200678121
Test: atest ServiceUwbTests
Change-Id: I48792bd2fd6c9dc1c709228cea27580c908467e6

commit cf505f054614c447703b6e5e9436775e8ff53b4f
Merge: 2ebfa18 f4e7d6b
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Jan 20 03:21:57 2022 +0000

Merge "Add basic coding, decoding support of ISO7816-4"

commit 2ebfa1879d3d51e4b2e443b22f23889ba3627408
Author: ziyiw ziyiw@google.com
Date: Wed Jan 19 00:16:37 2022 +0000

Add several more JNICommand implementation.

Test: UwbManagerTest
Bug: 197341298
Change-Id: Ia0028beeccb2b4b225ea35e44328786404c03f65

commit f4e7d6bdcf8a3b3e67e42c6ddd3e84173fe21048
Author: Steven Liu steveliu@google.com
Date: Wed Jan 12 18:02:05 2022 -0800

Add basic coding, decoding support of ISO7816-4

Bug: 200678121
Test: atest ServiceUwbTests
Change-Id: Ifdf9a45591bc9a08626bded54150a3aba22e1c51

commit 89e109d71de357c93c1bb5de07a894610e5e4d3b
Author: Roshan Pius rpius@google.com
Date: Tue Jan 18 12:50:21 2022 -0800

uwb(jni-rust): Reduce log level of jni crate

Bug: 197341298
Test: Manual verification of logs after toggling uwb on/off
Change-Id: I7ed3346c3159af44a3dedffc057b3e0354b8cfc5

commit ac47d5d2759c7f01e3d6ed0dfd2ee73a762d0ec5
Author: Roshan Pius rpius@google.com
Date: Sat Jan 15 11:44:01 2022 -0800

uwb(service): Add shell commands for ranging start

Supports both fira & ccc ranging sessions.

Bug: 214700285
Test: atest ServiceUwbTests
Test: Manual verification
Change-Id: Iede3bbb4cf11c78c2375845daaace29afe159f35

commit f275812b6da4203181ad01ad7c5382d8e894f5b4
Author: Shreshta Manu shreshtabm@google.com
Date: Thu Jan 13 01:59:47 2022 +0000

Initialize EventManager to handle notifications from uwb

Test: Manually send uci_notification and verified
data at NativeUwbManager.java

Bug: 197341298
Change-Id: If2fcb1e3cbc7556f4035c3110a2293f2502a6494

commit b93ad9193270b3924f537c98ff5b06dd2a2fac5c
Merge: d8045ae 14658eb
Author: Bob Wang ziyiw@google.com
Date: Fri Jan 14 02:13:20 2022 +0000

Merge "Complete sessioninit command workflow."

commit d8045ae90c3fb36abf4ea1d8742381b8fefd22fb
Merge: 3f687f3 a887caa
Author: Bob Wang ziyiw@google.com
Date: Thu Jan 13 23:14:11 2022 +0000

Merge "Move the adapter to dispatcher to connect jni layer and HAL."

commit 14658eb6ecbec512549920b2080b59d88e21002f
Author: ziyiw ziyiw@google.com
Date: Thu Jan 13 06:09:34 2022 +0000

Complete sessioninit command workflow.

Test: UwbManagerTest, UWB session field test
Bug: 197341298
Change-Id: I3351499c2ba79a5025786c97d1dcbe85d98353be

commit a887caa8141918976cc76dc037b082069a8b43ef
Author: ziyiw ziyiw@google.com
Date: Fri Jan 7 17:04:44 2022 +0000

Move the adapter to dispatcher to connect jni layer and HAL.

Now we make GetDeviceInfo command sent from JNI to HAL and get response
from HAL. More commands are to be added.

Also commended out the implementation of SetCountryCode, since it should
be called after the UWB is initialized.

Test: UwbManagerTest
Bug: 197341298
Change-Id: I3246e0460efc673a9cf856573f9f022d81d84e0d

commit 3f687f39847cc072a3be88bf4fa8b3f3f343fd9d
Author: Roshan Pius rpius@google.com
Date: Thu Jan 6 13:47:18 2022 -0800

uwb(service): Remove unnecessary threads from uci stack

These don't seem necessary, we should be able to handle most of these
functionalities in a single UWB service thread.

Note: We still have temporary executor threads created for processing
JNI interactions.

Bug: 211445008
Test: Manual verification of ranging using test app.
Test: atest UwbManagerTest
Change-Id: I3e9373ad34b13927fc2b0f815b48520b99fcd0b2

commit f527fbc94a539dab834432c6e97beab348ec1f17
Merge: 4a3e837 d9818bf
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Jan 5 17:13:09 2022 +0000

Merge "uwb(service): Fetch country code from wifi when telephony not available"

commit d9818bf0c2bbcbb16a929eee92534589f9dc12d0
Author: Roshan Pius rpius@google.com
Date: Tue Jan 4 14:07:06 2022 -0800

uwb(service): Fetch country code from wifi when telephony not available

On devices without telephony or if the telephony country is not
available for some other reasons, fallback to wifi country code (from
80211d).

Bug: 200997437
Test: atest ServiceUwbTests
Change-Id: I2e2591dfeffe5d0c73d7531229d635d64f8b5632

commit 4a3e837d85e44e124e3de30875f565367bf0ff7f
Merge: 42eb74b 91a1960
Author: Joel Galenson jgalenson@google.com
Date: Tue Jan 4 21:22:39 2022 +0000

Merge "Cleanup the adaptation."

commit 42eb74bd3ba869d0690e96a44fd6a0b58e54ac2c
Merge: d6b912b 2399486
Author: Roshan Pius rpius@google.com
Date: Fri Dec 24 00:51:20 2021 +0000

Merge changes If33dc75e,Ia956ee50

* changes:
  uwb(rust): Add new JNI method for getAppConfigurations
  uwb: Use GET_APP_CONFIG for CCCRangingStarted struct

commit d6b912b616dd27c2629df55632e1329752db3450
Merge: b7c94c8 94eaff9
Author: Roshan Pius rpius@google.com
Date: Fri Dec 24 00:49:10 2021 +0000

Merge "uwb(api): APIs for ADF provisioning of FIRA profiles"

commit b7c94c8dce610b71e9e99b06b294cc8538b82266
Merge: 928c22e 822c19d
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Dec 23 23:47:04 2021 +0000

Merge "uwb(api): APIs for FIRA defined profiles"

commit 91a19603c75da5136d64829487136d24abfbdfa8
Author: Joel Galenson jgalenson@google.com
Date: Thu Dec 23 15:33:48 2021 -0800

Cleanup the adaptation.

We removed some stuff from the adaptation, so remove the fake uses.

Bug: 197341298
Test: Build
Change-Id: I18ee8eda5cc6706b0b975c7852212d99d17ecc8d

commit 23994869a3b51cd02439ecbcc890494b78a23bc2
Author: Roshan Pius rpius@google.com
Date: Thu Dec 23 14:39:40 2021 -0800

uwb(rust): Add new JNI method for getAppConfigurations

Bug: 197341298
Bug: 208678993
Test: Compiles
Change-Id: If33dc75e1a0dafc988422210df13067fb22495b3

commit 3c6ff2c290eebaefd2f308dcfd27c0643648cf5b
Author: Roshan Pius rpius@google.com
Date: Wed Dec 15 13:49:33 2021 -0800

uwb: Use GET_APP_CONFIG for CCCRangingStarted struct

This is needed to be passed back for CCC sessions via onRangingOpened.
For Fira sessions, we currently return back the FiraOpenSessionParams
that was used for starting the ranging sessions (need to fix this to
return a more appropriate FiraRangingStarted struct in the future).

Note: Very limited manual testing done for the flow with FIRA session
and local modifications. Verified that getAppConfigurations call and generic
traversal of TLV's works. Need to verify the exact set of TLV's for
CccRangingStarted params are parsed correctly or not.

Bug: 208678993
Test: atest CtsUwbTestCases ServiceUwbTests
Change-Id: Ia956ee50c48766a00f2afee108fa94b4b0e3c72e

commit 94eaff965688790bbe7f5599cb8ea0a1e0988614
Author: Roshan Pius rpius@google.com
Date: Tue Dec 21 09:23:08 2021 -0800

uwb(api): APIs for ADF provisioning of FIRA profiles

The UWB stack handles all the OOB & Secure service interactions for
these FIRA sessions.

Bug: 200678461
Test: atest CtsUwbTestCases FrameworkUwbTests (More unit tests incoming)
Change-Id: I5b5cc755f10ff6c8408530c1e478baaebbb87b72

commit 822c19d05c82de71e2416d949263645ec45ae9dd
Author: Roshan Pius rpius@google.com
Date: Thu Dec 16 11:26:50 2021 -0800

uwb(api): APIs for FIRA defined profiles

The UWB stack handles all the OOB & Secure service interactions for
these FIRA sessions.

Bug: 200678461
Test: atest CtsUwbTestCases FrameworkUwbTests
Change-Id: I4cd215d5afe0d9488f6ea9f1484db94993cdd4d1

commit 928c22e60a8fda985e9d1091a6376774a4a58075
Author: Joel Galenson jgalenson@google.com
Date: Mon Dec 20 15:34:13 2021 -0800

Migrate to thiserror.

Bug: 197341298
Test: libuwb_uci_rust_tests
Test: See some errors in logcat.
Change-Id: Ib7603a740344a8378ac3c19dded27291fa3a5c09

commit 23dd41761d2cb027562ea738c8cace1df37e53f4
Author: ziyiw ziyiw@google.com
Date: Tue Dec 21 19:58:40 2021 +0000

Implement rest of jni method, send jni command with dispatcher.

The callback function still needed to be implemented in UwaEnable
function to get the message back from uci layer.

Test: compile, UwbManagerTest
Bug: 197341298
Change-Id: I9581115fbb9ebf0d02cbd9bf3512067e05ea814f

commit 54ff417ecff80d09998a06f5240cc9a6efda4f1f
Merge: 9d7747c 02e5abd
Author: Jiakai Zhang jiakaiz@google.com
Date: Mon Dec 20 21:36:50 2021 +0000

Merge "Dexopt service-uwb."

commit 02e5abdcde12875b4717f584e6bccc523c7a9250
Author: Jiakai Zhang jiakaiz@google.com
Date: Mon Dec 20 17:37:10 2021 +0000

Dexopt service-uwb.

`service-uwb` is a jar that system_server loads dynamically. Such jars
can be dexopted now. This CL adds `service-uwb` to a
`systemserverclasspath_fragment`, which does not actually add the jar to
the classpath, but tells the build system to dexopt it.

NOTE: The corresponding `exported_systemserverclasspath_fragments` needs
to be added to the `prebuilt_apex` once a new prebuilt is dropped.

Bug: 203198541
Test: m com.android.uwb
Change-Id: I25c429ba47b4bc5b064345ff3488ae5b71e930f7

commit 9d7747c8e011cf5fa6f9ed9accde4d3961669d89
Merge: 47616d6 78f9073
Author: Bob Wang ziyiw@google.com
Date: Thu Dec 16 22:33:01 2021 +0000

Merge "Send message from jni to uci layer."

commit 78f90730c491d4cd8410c52cdc899b10d079a3e1
Author: ziyiw ziyiw@google.com
Date: Wed Dec 8 23:19:35 2021 +0000

Send message from jni to uci layer.

Initialize a dispatcher instance in DoInitialize function to send
message to uci layer. The dispatcher will be destroyed when calling
DoDeinitialize function and it will be implemented later.

Test: compile, atest UwbManagerTest
Bug: 197341298

Change-Id: I4165c5582711823c016c5d5e397201abe5e6b746

commit 47616d64282eb3079ddfad2fe6d269688dd11c86
Merge: 7afc9d8 666b6b0
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Dec 15 20:17:20 2021 +0000

Merge "uwb(support_lib): Add maintenance version added in CR302"

commit 666b6b09d87fd38c9e4a152670e732a9786953e6
Author: Roshan Pius rpius@google.com
Date: Wed Dec 15 09:22:11 2021 -0800

uwb(support_lib): Add maintenance version added in CR302

This was added in FIRA standards body as a part of CR302.

Bug: 210591235
Test: atest UwbbManagerTest
Change-Id: I47f5d51251c213f93ae1e90ed05d2b299dc457c7

commit 7afc9d8af0b2384c55231945e4bf8a952571bbfe
Merge: 85e2eff 9901096
Author: Roshan Pius rpius@google.com
Date: Wed Dec 15 16:33:22 2021 +0000

Merge "uwb(support_lib): Sync to latest support lib version from Android S"

commit 85e2effe60e1e4644cc51d615e024fc3d4c91e36
Merge: e2aba45 816347e
Author: Leslie Watkins lesliewatkins@google.com
Date: Mon Dec 13 22:48:28 2021 +0000

Merge "Add configuration file format for configuring devices with multiple UWB chipsets."

commit 816347e9242acf75d33d61b98e2ffa22c8a8e2bb
Author: Leslie Watkins lesliewatkins@google.com
Date: Mon Dec 13 12:53:18 2021 -0800

Add configuration file format for configuring devices with multiple UWB
chipsets.

Test: make
Bug: 205605444
Change-Id: Iec588933f7900ab17c71e99685fb0a06c9f4392e

commit e2aba4505aeba6fe1ca207cd05b11fcb7e90eadd
Merge: 750df1b acc3b71
Author: Kai Shi kaishi@google.com
Date: Sat Dec 11 03:07:19 2021 +0000

Merge "Add the RSSI in the API"

commit 750df1bd0508b5c611cd6b62279851fa2b101487
Merge: e549b24 407fe7b
Author: Kai Shi kaishi@google.com
Date: Fri Dec 10 22:48:03 2021 +0000

Merge "Add P/H experiment support"

commit 99010963a578b130c29fd3c62e6c606297bced79
Author: Roshan Pius rpius@google.com
Date: Thu Dec 9 20:37:25 2021 -0800

uwb(support_lib): Sync to latest support lib version from Android S

Included Change-Ids:
- I6ef165afb64ba1f4735b3d6ea1e6699b724869ea
- I47cf58f7f9108b1f3afc5694446132e8cadbc08c
- Ia1504434b76af28e512609569c4e08d7f64c0b2a

Bug: 196225233
Test: Compiles
Change-Id: Ib8659bdf5b74b81520c5dbfeaf0450cd267e0d14

commit acc3b71660283c9bbc6c25defc9d7c6f7aa07d10
Author: Kai Shi kaishi@google.com
Date: Mon Dec 6 11:06:42 2021 -0800

Add the RSSI in the API

Add the RSSI support in RangingMeasurement API. Underlying UCI message
support and handling will be added later.

Bug: 209472714
Test: atest RangingMeasurementTest
Change-Id: I8c74dbaa37a07a2b788090eefa2db0b4c2695689

commit e549b24e27b7f0b2c5a8769f07a4362804c32ec7
Merge: e343d7e 101e57a
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Dec 9 21:34:52 2021 +0000

Merge "uwb: Add measurement focus to RangingMeasurement"

commit 101e57a1fe47d3bc52a5cc33886e8dbb4aa20fff
Author: Roshan Pius rpius@google.com
Date: Mon Dec 6 13:14:55 2021 -0800

uwb: Add measurement focus to RangingMeasurement

This will be used in conjunction with the interleaving support (which
will be added via support library params later).

Bug: 200678461
Test: atest ServiceUwbTests FrameworkUwbTests UwbManagerTest
Change-Id: Ib82fbdfd4c1db7742ad6e56d9d8e7e565e10705c

commit e343d7e91854aa76489a5244c0c2b50ded6298fb
Merge: 1168f3c c244fa1
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Thu Dec 9 19:00:21 2021 +0000

Merge "Revert "add post_notification permission to manifest""

commit c244fa161d88d3289b6a8c6519326c8cc4498853
Author: Steve Elliott steell@google.com
Date: Thu Dec 9 17:53:58 2021 +0000

Revert "add post_notification permission to manifest"

This reverts commit 8918aec8e3936a69d1ed058af331c7d50b69b6f1.

Reason for revert: Uwb does not actually need this permission.

Change-Id: Iafd392eb3bfe660473b5f1792c6476b380ae792f

commit 1168f3cb9a4fb65f1deb98c0b48baa591e759c76
Merge: c134859 8918aec
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Dec 8 21:10:39 2021 +0000

Merge "add post_notification permission to manifest so the package can send notifications on T+"

commit 8918aec8e3936a69d1ed058af331c7d50b69b6f1
Author: Steve Elliott steell@google.com
Date: Fri Dec 3 16:37:09 2021 -0500

add post_notification permission to manifest
so the package can send notifications on T+

Bug: 194833441
Change-Id: I87d92c66e6d8814ab1c2434e4fdf4415a7db0f0e

commit c13485933ae13efb6f1690de2a9d14af07be08e6
Merge: e949d0e 2e73fd0
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Dec 8 15:42:23 2021 +0000

Merge "uwb: Add support for shell commands"

commit e949d0e481214164ec9a861e07e2da028ac58d71
Merge: d795a50 ff11734
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Wed Dec 8 04:12:14 2021 +0000

Merge "uwb: Handle sessions with same sessionHandle from different uids"

commit 407fe7b1312ace95b775699e99618d39c73ae56d
Author: Kai Shi kaishi@google.com
Date: Tue Dec 7 17:54:27 2021 -0800

Add P/H experiment support

Add P/H experiment support by adding DeviceConfigFacade.

Bug: 209617179
Test: atest com.android.server.uwb.DeviceConfigFacadeTest
Change-Id: Ie2693e933343bb779aa377e8032046330208dc2a

commit 2e73fd0c949c0d18f1ee9a1fb43c876a825d73d1
Author: Roshan Pius rpius@google.com
Date: Tue Dec 7 11:01:31 2021 -0800

uwb: Add support for shell commands

Add the necessary infra to support shell commands and use it to
implement force country code via shell commands.

Bug: 208725905
Test: adb shell cmd uwb force-country-code enabled US
Test: atest ServiceUwbTests
Change-Id: I550b3f309b165a852b6414d5302cae032ad4154a

commit d795a50f3dc2df62217d2ac28dbb977d5e89e03c
Author: ziyiw ziyiw@google.com
Date: Tue Dec 7 18:51:02 2021 +0000

Add the rest of rust stubs for JNI call.

Test: compile, atest UwbManagerTest
Bug: 197341298
Change-Id: I74a665946b4724b1f272e90f3384dd3312bc8f78

commit ff11734d60e91044397d9c86f922ee7feb3cec3e
Author: Roshan Pius rpius@google.com
Date: Thu Dec 2 12:39:53 2021 -0800

uwb: Handle sessions with same sessionHandle from different uids

Bug: 208687524
Test: atest ServiceUwbTests
Change-Id: I493908d1c7c78fe7e0960f3638eb9087e9fab6e4

commit a3a24203017f0514c7f70122e8f53da4dd187858
Merge: 365cd9e f92fd2a
Author: Bob Wang ziyiw@google.com
Date: Tue Dec 7 04:29:12 2021 +0000

Merge "Add a skeleton of rust side in jni call."

commit 365cd9ec955fdec615ac5224955112e8d49addc4
Merge: 8fe8c2e d63fe01
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Mon Dec 6 18:49:02 2021 +0000

Merge "uwb: Add missing CCC params"

commit d63fe0181559f5a0dc6094b4433966f6da24cba3
Author: Roshan Pius rpius@google.com
Date: Fri Dec 3 13:28:11 2021 -0800

uwb: Add missing CCC params

Bug: 208678993
Bug: 209053358
Test: Compiles
Change-Id: I35e400c7344473919df2ddeb30e95e35a64f7d44

commit f92fd2ae0513907c0e3c9252c2db56c4c815e46a
Author: ziyiw ziyiw@google.com
Date: Wed Nov 3 18:07:22 2021 +0000

Add a skeleton of rust side in jni call.

Some basic functions such as "init" and "doInitialize" are added to make
sure the device can be booted successfully. The functions will be
implemented in later commits.

Test: compile, atest UwbManagerTest
Bug: 197341298
Change-Id: I7b56999bca853c27bfda260195d694ac2dc04d03

commit 8fe8c2e32292a4cd9ed2b885b3f659120557b69d
Merge: 67e7291 d6fc80a
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Dec 3 20:03:09 2021 +0000

Merge "uwb: Send ranging open failed callback on wrong params"

commit d6fc80a61688658503b0fe86d95056b7b6bb83d5
Author: Roshan Pius rpius@google.com
Date: Fri Dec 3 10:51:34 2021 -0800

uwb: Send ranging open failed callback on wrong params

Bug: 209028991
Test: atest UwbManagerTest
Change-Id: Ie2c5f782428a3fd157fd4e6fc489b5c5bd9e8e24

commit 67e7291f7502e4b40c63ee6bdc334d3c5bc2d818
Author: Roshan Pius rpius@google.com
Date: Thu Nov 18 13:31:44 2021 -0800

uwb: Send country code updates to the chip

Plumbing the native parts of the stack for sending the country code
UCI command.

Bug: 205787337
Test: Compiles / Manual testing
Change-Id: I2ef3cb8c119be38f7e8ad1ca31c8164d92842499

commit fb81c10cdf2cadfe8f33f9097dc9b8c4c4d7f4ae
Merge: 2097b09 b03153e
Author: Leslie Watkins lesliewatkins@google.com
Date: Fri Dec 3 00:34:28 2021 +0000

Merge "Add getChipIds and getDefaultChipId to UWB API to support multi-HAL."

commit 2097b099148092197a6ae223e11e70d903f46127
Merge: c1af735 3415c63
Author: Kai Shi kaishi@google.com
Date: Thu Dec 2 21:15:57 2021 +0000

Merge "Add throttling to ranging report metrics"

commit c1af7359dcc09121fc920233771dde7b3af25ee4
Author: Benjamin Brittain bwb@google.com
Date: Thu Dec 2 13:25:04 2021 -0500

Removes superfluous manifest file

Test: N/A

Change-Id: I8d186348b642d9c6c70c256707ff5f180d18345e

commit b03153e2099904c82de507158f12834fde8d6f60
Author: Leslie Watkins lesliewatkins@google.com
Date: Fri Nov 12 17:37:16 2021 -0800

Add getChipIds and getDefaultChipId to UWB API to support multi-HAL.

Pass chipId to RangingManager#openRangingSession and store it as a
property of RangingSession.

Add checks to existing methods to ensure that chipId is valid.

Bug: 205618645
Bug: 205614701
Bug: 205605632
Test: atest FrameworkUwbTests
Test: atest ServiceUwbTests

Change-Id: I632af4f84e925cdf69f2b47f6480f932977a4447

commit 3415c6307c9d5603a16735d1e6800726dd690cb7
Author: Kai Shi kaishi@google.com
Date: Fri Nov 19 17:27:30 2021 -0800

Add throttling to ranging report metrics

Add throttling to ranging report metrics to avoid impact on device
health and metrics pipeline.

Bug: 197341885
Test: atest com.android.server.uwb.UwbMetricsTest
Change-Id: I034bbcea516c0ec17bc3044e94b12e798889f2d1

commit 8a448462132bb61804234b737a1d02f4798eaead
Merge: 87bcd19 a879815
Author: Roshan Pius rpius@google.com
Date: Mon Nov 29 16:33:22 2021 +0000

Merge "uwb: Send country code updates to the chip"

commit 87bcd19608d1b15c6e75f3a9f082dce093b4ca5a
Merge: 2e47e31 45cdf59
Author: Leslie Watkins lesliewatkins@google.com
Date: Thu Nov 25 01:24:53 2021 +0000

Merge "Add chipId parameter to UWB APIs to support multi-HAL."

commit a8798159ce18306b09bd0bca32b02bd8cce6deb1
Author: Roshan Pius rpius@google.com
Date: Mon Nov 15 13:27:47 2021 -0800

uwb: Send country code updates to the chip

Add country code listener for sending country code updates to the HAL.

This is a port of the wifi country code handling.

Bug: 205787337
Test: Compiles
Change-Id: Iba2887b8edb4625bfb61987a45a12ae4c4ed8041

commit 2e47e31bdc75993c98e99bb80dc22c41d9ec4349
Author: Roshan Pius rpius@google.com
Date: Tue Nov 16 13:03:10 2021 -0800

uwb: Throw illegalArg exception for add/removeControlee

This is more in line with what we do for other API's like reconfigure().

Bug: 200678461
Test: atest CtsUwbTestCases
Change-Id: I9c38aa47e69a89dcb382ffd2d8eb60a61bfd3ec7

commit 700a6356ff4b0a92508982deb065d94006ce5d5e
Author: Roshan Pius rpius@google.com
Date: Thu Nov 4 14:55:43 2021 -0700

uwb: Add new RangingSession APIs

New APIs & callbacks for the following:
1. suspend/resume session
2. add/remove controlees to ongoing one to many session.
3. Data transfer send/receive

Also, added couple of extra reason codes.

Note: The CL only adds the API stubs, the implementation is deferred
since any changes to AIDL file will cause build failures on the older
qorvo vendor stack which is still active on Pixel devices.

Bug: 200678461
Test: atest ServiceUwbTests FrameworkUwbTests Uwb
Change-Id: I8f5bed6b917da2b38ac99daa72d803f962658b3f

commit 1808c5091e2eb44a51e6d4a5d1c617ec00ff50a3
Author: Roshan Pius rpius@google.com
Date: Wed Nov 3 14:36:42 2021 -0700

uwb: Add LOS, destination AOA to RangingMeasurment

Add existing UCI parameters to the RangingMeasurment system API. Also,
fill up the confidence level fields using the UCI FOM params.

Also, add toString() for ranging measurement classes to help debug
issues.

Bug: 200678461
Test: atest ServiceUwbTests FrameworkUwbTests UwbManagerTest
Change-Id: Ibc80aaa49d03452bbc764eb2e871a44211d32639

commit 45cdf59b64ce292cdcf4c75c769af9cb996a0428
Author: Leslie Watkins lesliewatkins@google.com
Date: Tue Nov 9 10:34:41 2021 -0800

Add chipId parameter to UWB APIs to support multi-HAL.

SuppressLint("ListenerLast") added so that optional chipId parameter can be last in overloaded method.

Bug: 192564385
Fix: 205614695
Test: atest FrameworkUwbTests -b
Test: atest ServiceUwbTests -b
Change-Id: I465b89e0224535204b76eb461d9021409816aab0

commit 8d308dd9ba3937390d81932bcbbfdf97b8f94f49
Merge: e6f3fec 4a50454
Author: Bob Badour bbadour@google.com
Date: Fri Nov 12 00:02:32 2021 +0000

[automerger skipped] [LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb am: 97caf9e9dd am: 2b6727f25d am: 4d4270fdc2 am: 4a50454e38 -s ours

am skip reason: Merged-In I0d19f108ea44635c133bb9188b73c9d60a52c2c7 with SHA-1 4ba8d82fea is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1889325

Change-Id: I5ccb930bf8db819f90be684908a9ec8a5999e1c3

commit 4a50454e38623aa9641277024fd004ae88c17cda
Merge: 4e8f0c5 4d4270f
Author: Bob Badour bbadour@google.com
Date: Thu Nov 11 23:43:26 2021 +0000

[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb am: 97caf9e9dd am: 2b6727f25d am: 4d4270fdc2

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1889325

Change-Id: I6a80f3f70d0f1975aaa4948c6d5319c7d661894f

commit 4d4270fdc20a5a0ac12ffd981e235dcbd0fcd6e9
Merge: d6ee47c 2b6727f
Author: Bob Badour bbadour@google.com
Date: Thu Nov 11 23:32:02 2021 +0000

[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb am: 97caf9e9dd am: 2b6727f25d

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1889325

Change-Id: Ifaa7ec42628b45d75fe5d974f583663a36ea0334

commit 2b6727f25dff4eafdf50306463cd5d70ee65809f
Merge: fbaa261 97caf9e
Author: Bob Badour bbadour@google.com
Date: Thu Nov 11 23:14:03 2021 +0000

[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb am: 97caf9e9dd

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1889325

Change-Id: Ia8e44a550401f15f6cd4b01ec444f8bf30916a8b

commit 97caf9e9dd6fae6e80ce004cd2789a4af569cdd1
Author: Bob Badour bbadour@google.com
Date: Thu Nov 11 10:09:55 2021 -0800

[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb

Added SPDX-license-identifier-Apache-2.0 to:
  apex/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I35b0292ebf3ca4a9ef8683b57703f5879e79afa7
Merged-in: I0d19f108ea44635c133bb9188b73c9d60a52c2c7

commit e6f3fec6aba598fcb1fd7142d05b1d6c7ad0b560
Merge: 2c01dd9 f6ffd52
Author: Kai Shi kaishi@google.com
Date: Thu Nov 11 16:07:57 2021 +0000

Merge "Add init verion of UwbMetrics"

commit 2c01dd92ddc60b4e11c857375a97919365bb01be
Author: Roshan Pius rpius@google.com
Date: Wed Nov 10 12:58:08 2021 -0800

uwb: Add a property for enabling rust stack

Needed for local testing.

Bug: 197341298
Test: Compiles
Change-Id: I5cd2d9b90b06b7b6461096fc8dea4c9a4ad507f9

commit f6ffd5296d5f5e75cb067fc158c302d893c00816
Author: Kai Shi kaishi@google.com
Date: Tue Nov 9 15:31:39 2021 -0800

Add init verion of UwbMetrics

Add the initial version of UwbMetrics.

Bug: 197341885
Test: atest com.android.uwb.UwbMetricsTest
Change-Id: I3ae548d321ec74930228588808b3028bcdad661d

commit 0f504470b24bebc5a8b7433fdac06d3a2afa298d
Author: Roshan Pius rpius@google.com
Date: Wed Nov 10 09:59:37 2021 -0800

uwb(hal): Add CCC session type SESSION_INIT_CMD

Bug: 197886322
Test: Compiles
Change-Id: Idd34441c9dafa2464153ac6a22258ca35a726258

commit c197c7ff1173dba05caa3112ede6d98040e00baa
Merge: 0b188a8 1ea4074
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Nov 9 19:25:04 2021 +0000

Merge "uwb: New binder interface between UwbManager and UwbService"

commit 1ea4074a588ffaf4917449d97f1d611a90e872b6
Author: Roshan Pius rpius@google.com
Date: Tue Nov 9 08:12:12 2021 -0800

uwb: New binder interface between UwbManager and UwbService

The existing IUwbAdapter AIDL interface is currently implemented by P21
UWB chip vendor's UwbService (legacy Android S stack). This makes it
impossible for us to make new changes for the new stack without
breaking the legacy stack. So, add a temp interface between UwbManager &
AOSP UwbService (continue to use IUwbAdapter to talk to vendor
UwbService).

Bug: 200678461
Test: atest UwbManagerTest
Change-Id: Ic28d7e02cb61c9aef25bbfa02da2e48017bb3049

commit 0b188a84957b0759a5d2f05ee7df5ee5fc67e330
Merge: a95e9fa 4e8f0c5
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 16:49:46 2021 +0000

[automerger skipped] Add minimal com.android.uwb apex definition. am: 2292e6df59 am: fbaa261367 am: af16d5e22c am: d6ee47cc70 am: 4e8f0c5a06 -s ours

am skip reason: Merged-In I0d19f108ea44635c133bb9188b73c9d60a52c2c7 with SHA-1 4ba8d82fea is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885111

Change-Id: I7f2c98d31a8d43b16447eeebd470c8b64fa07332

commit a95e9faf8d3406ddde3f2f0482fa3ac7f733508c
Merge: f6213b4 8a1d991
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 16:49:42 2021 +0000

[automerger skipped] Add OWNERS file. am: 6cb3fbbd76 am: d331f91bee am: d0004f4e59 am: c5fc426cd9 am: 8a1d9916d7 -s ours

am skip reason: Merged-In I0d19f108ea44635c133bb9188b73c9d60a52c2c7 with SHA-1 4ba8d82fea is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885110

Change-Id: I12484275d2b7b76fac2b38913fb91fa82d1a6c96

commit 4e8f0c5a06f571fe030765a4472e4828946c42ec
Merge: 8a1d991 d6ee47c
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 16:28:20 2021 +0000

Add minimal com.android.uwb apex definition. am: 2292e6df59 am: fbaa261367 am: af16d5e22c am: d6ee47cc70

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885111

Change-Id: I9e024ff5fea08bf9d841d42aa2d27672cf5e317c

commit 8a1d9916d7e83e3f7550665f33d96e4b0ec27dcf
Merge: 86eb6a9 c5fc426
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 16:28:17 2021 +0000

Add OWNERS file. am: 6cb3fbbd76 am: d331f91bee am: d0004f4e59 am: c5fc426cd9

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885110

Change-Id: I4dc3238f92ac25094100f163f2011440e82ab699

commit d6ee47cc70b6939cfa418e6dd03e98d430c4245c
Merge: c5fc426 af16d5e
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 16:06:06 2021 +0000

Add minimal com.android.uwb apex definition. am: 2292e6df59 am: fbaa261367 am: af16d5e22c

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885111

Change-Id: Idca2ec821d4de4310f93aee1e5c34a142030ce2c

commit c5fc426cd9b425f71374e97426158ad29942b1d0
Merge: 86eb6a9 d0004f4
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 16:06:02 2021 +0000

Add OWNERS file. am: 6cb3fbbd76 am: d331f91bee am: d0004f4e59

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885110

Change-Id: I1750f8768729e59c181df72226bd3c0d9181a43b

commit af16d5e22c4dc0387c92375f803f6afbd8b7b6d7
Merge: d0004f4 fbaa261
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 15:47:09 2021 +0000

Add minimal com.android.uwb apex definition. am: 2292e6df59 am: fbaa261367

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885111

Change-Id: I4ef8779a35e00b8a850b6ee1280b17c13de74606

commit d0004f4e598cea643d3954ccdc1fab4893d93ebb
Merge: 86eb6a9 d331f91
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 15:47:06 2021 +0000

Add OWNERS file. am: 6cb3fbbd76 am: d331f91bee

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885110

Change-Id: I7d62b95d7ad7fb42e3497c62b1e41e459d5a4944

commit fbaa26136720bc395c2f633135f63f319acdbe12
Merge: d331f91 2292e6d
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 15:25:09 2021 +0000

Add minimal com.android.uwb apex definition. am: 2292e6df59

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885111

Change-Id: I57935b7030cf0de313fa41c7468f6636b7e8e84b

commit d331f91bee4abd65b116540b3d398c01a3acdc98
Merge: 86eb6a9 6cb3fbb
Author: Joel Galenson jgalenson@google.com
Date: Tue Nov 9 15:25:05 2021 +0000

Add OWNERS file. am: 6cb3fbbd76

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Uwb/+/1885110

Change-Id: I80276ac245b44149cda03f0fcdd547cb97cb8965

commit 2292e6df592429c0135d20e7b4f66385aa046bd9
Author: Joel Galenson jgalenson@google.com
Date: Mon Nov 8 13:45:02 2021 -0800

Add minimal com.android.uwb apex definition.

Test: mm
Change-Id: I3c417dc49238b633bb2c4cdc8aa157955403006a
Merged-In: I0d19f108ea44635c133bb9188b73c9d60a52c2c7

commit 6cb3fbbd766c5bb7babc5d10a459d2e909a1a00e
Author: Joel Galenson jgalenson@google.com
Date: Mon Nov 8 13:35:23 2021 -0800

Add OWNERS file.

Test: Build
Change-Id: Ica130fa90e339b2fa051549d48a77e83f7be7d46
Merged-In: I0d19f108ea44635c133bb9188b73c9d60a52c2c7

commit f6213b43ac8def1164135ae605dbf6524e7449b6
Author: jhh.seo jhh.seo@samsung.com
Date: Tue Oct 26 17:43:07 2021 +0900

syncup with the latest multicast list update

Bug: 186788640
Test: Compiles

Change-Id: I6a6cf0d50239e74594c6c65df32e441f37dc3eb2

commit 3e5fd2792510225083a7586ab43a55b4d24831f1
Author: Roshan Pius rpius@google.com
Date: Tue Nov 2 09:36:37 2021 -0700

Add overlay apk for UWB stack

This is similar to the architecture we use in the wifi module. We don't
currently have any resources to overlay, but adding the infra for future
use.

Also, fixed couple of typos from prev copy/paste from wifi module.

Bug: 204882740
Test: Compiles
Change-Id: I408269417f37e0e471bd064a6aedbed758005e08

commit 19696255c3628db007e38fa3450903281b4933ed
Author: Roshan Pius rpius@google.com
Date: Wed Oct 27 12:35:48 2021 -0700

Fix issues with UCI stack

1. Add the new multicast native API.
2. Don't invoke the unimplemented the timestamp native API.

Bug: 186788640
Test: Compiles
Change-Id: I32b9e21cdf9a81806c4b7fb6dc9a31fc92b55b3e

commit b5b64da40531b9db1ef70e2bd7185f702b53071a
Author: darshan k s darshan.ks@nxp.corp-partner.google.com
Date: Mon Oct 18 13:50:13 2021 +0530

clang format update and multicast list update api signature change as per service

Bug: 195308730
Test: Compiles

(cherry-picked from go/pag/2078370)

Change-Id: I60315833da0ec0e09040a43a171d93e75c109a1d

commit 6eaa01710c369ea076dcc356a496cf02c75e0276
Merge: 61946fb 4456b46
Author: Roshan Pius rpius@google.com
Date: Mon Oct 18 20:27:27 2021 +0000

Merge "uwb(service): Use HAL defined params for CCC"

commit 61946fb48dbcaccbcfd8469029c917b64f2cb26d
Author: Roshan Pius rpius@google.com
Date: Thu Oct 14 08:15:53 2021 -0700

uwb(framework): Add visibility for framework-uwb-updatable-sources

Bug: 202973126
Test: Compiles
Change-Id: I10bf9f0eb2174fc7df87395efbacd285d22404a3

commit 4456b469090ceb7da0f3a06b3a1808635d31268d
Author: Roshan Pius rpius@google.com
Date: Tue Oct 12 10:48:43 2021 -0700

uwb(service): Use HAL defined params for CCC

CCC params for SET_APP_CONFIG_CMD should be used from the HAL (since it
is not specified in the UCI standard).

Bug: 197886322
Test: Compiles
Change-Id: I9930b126bb0ba49a39ddb8f81ee17deee3b924ac

commit 5ea5a53ca6d8a5537913fe313c9d4bfff3a963e7
Merge: ae2bf84 26aa076
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Tue Oct 5 17:33:57 2021 +0000

Merge changes I7bd20fd0,I1d18949f

* changes:
  Sync to latest support_library version
  5th drop

commit 26aa076f6a7ef1024c40bd08d39d0d380ed6d98d
Author: Roshan Pius rpius@google.com
Date: Tue Oct 5 06:53:58 2021 -0700

Sync to latest support_library version

Bug: 202076729
Test: Compiles
Change-Id: I7bd20fd0e6a2c139102aba388de288337156af4f

commit 1d35a9dde2d167c9b236836eb2e3fff65a17055e
Author: jhh.seo jhh.seo@samsung.com
Date: Tue Oct 5 15:32:28 2021 +0900

5th drop

5th drop
 - fix Primitive type conversion issue.
 - apply little endian format to device address
 - remove unnecessary arguement in setAppConfigurations
 - add tlvEncoder for each parameter
 - sync up codes with the latest support library

Bug: 202076729
Test: Compiles
Change-Id: I1d18949f249401311c6caa54f30e34f0d349f86e

commit ae2bf84e64b72fbbe9897aa81c0a3337d94ab6d7
Author: Girish Moturu gmoturu@google.com
Date: Mon Sep 27 11:49:35 2021 -0700

uwb: Make support library available to sl4a

Bug: 190448996
Test: None
Change-Id: Ic7927bd7956e08ce10b6f4594e0dff98eb5e3748

commit ca98a38a5e2c42d463a92b1380d0d9700fbeb2cd
Author: Roshan Pius rpius@google.com
Date: Fri Sep 24 14:26:03 2021 -0700

uwb: Cherry-pick APM mode handling from S-QPR

Original change in S stack: ag/15899817. Migrating the code to the T
stack with some unit tests.

Also, fix the migration logic to ensure we use the same constants as in
S.

Bug: 200812341
Test: atest com.android.server.uwb
Change-Id: I84259eef9a4d73abff8aa32f78a043ab95f8890d

commit 0effe3925efd323e0ef788e62209bca259338d64
Author: Roshan Pius rpius@google.com
Date: Thu Sep 23 07:47:50 2021 -0700

uwb: Add tags for including unit tests in mts

Bug: 191174823
Test: N/A
Change-Id: Iad481eca8aa3a3744f674cd0d4de09fe64f914f1

commit 152b9f0a62a2753cf77ea5a2d9cabc77f8f0ce53
Author: Roshan Pius rpius@google.com
Date: Wed Aug 25 14:33:00 2021 -0700

uwb: Compile against SDK and make apex updatable

UWB module meets mainline technical requirements, it can be marked
updatable now to ensure we don't add any new @hide depdencies to UWB
stack.

Also, use reflection to access getService temporarily until qorvo stack
is integrated.

Bug: 188911079
Test: Compiles
Change-Id: I67f074c2aae729b10789eaf368b979418b059c2d

commit 4004905e5d6334750143a8ae5f40e1769c9eb5a4
Author: Roshan Pius rpius@google.com
Date: Wed Sep 1 07:18:04 2021 -0700

uwb: Use the newly exposed PermissionManager API

Bug: 195353742
Test: Compiles
Change-Id: Iaf0288c8bf2ea96cb1aaf2160961d8e3abcdaa01

commit 0da8db1eacc9374c494a4185192477efff326ca2
Author: Roshan Pius rpius@google.com
Date: Tue Sep 7 10:10:44 2021 -0700

UwbManager: Address API council feedback

Also, add missing permission enforcement on setUwbEnabled &
getAdapterState.

Bug: 196933642
Test: Compiles
Change-Id: Iee9a8981a1e305ffbabca84d2d1111f4ad32da8f

commit 7616dc6ee5f9be80ab1fab04d65cb67ca0126fb1
Author: Roshan Pius rpius@google.com
Date: Thu Sep 2 13:35:57 2021 -0700

UwbSettingsStore: Migrate UWB toggle from Android 12

Android 12 stores the UWB toggle state in Settings.Global. Migrate this
state out on upgrade to Android 13 to the new UWB stack persistence
mechanism.

Bug: 197963882
Test: atest com.android.server.uwb
Change-Id: I3b02c447e55cfe1c2c378b4f2d619337636cd470

commit 8311ee57ec3ea6d9b584abf8f882e580f038f128
Author: Roshan Pius rpius@google.com
Date: Mon Aug 30 13:22:51 2021 -0700

UwbService: Add a module for persisting settings

Add a module for persisting UWB settings to disk. This module will be used for
persisting  simple key/value pairs. It uses a PersistentBundle
underneath for storing the params & for serializing/deserializing the
data to a AtomicFile under the uwb apex data dir.

Since we are maintaing the AOSP -> Vendor stack bridge for now
(pending on b/196225233), we will send the persisted
state to the vendor stack after every reboot.

Bug: 197963882
Test: Toggle UWB state from settings and ensure that the state is
persisted across reboots.
Test: atest com.android.server.uwb

Change-Id: I96bc863a6eb475e4a8ca5aaa0cbe7a528bb5aa79

commit 4a2905c67ad52bb6bd9356d3227d41612fda5406
Author: Jiyong Park jiyong@google.com
Date: Mon Aug 30 15:19:25 2021 +0900

Remove ndk_platform backend. Use the ndk backend.

The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The 32-bit/64-bit prebuilts libsmomo.qti.so are patched by directly
editing the string in the file.

Bug: 161456198
Test: m
Change-Id: I03bb468a1d0e0ad90fce39674566386c22e1d9d7

commit bec6971ae3856bdd927386b360d4b4a3bcf685e6
Author: Roshan Pius rpius@google.com
Date: Wed Aug 25 12:46:16 2021 -0700

Uwb: Fix jar-jar rules for external dependencies

Also,
1. Ensure we don't mUwbVendorAdapter for every API call if the UCI
stack is enabled.
2. Fix 1 @hide usage by moving to equivalent public registerReceiver
API.
3. Statically include preconditions library in support lib to avoid
@hide usage.

Bug: 188911079
Test: Compiles
Test: Both of these commands return empty to ensure that we have not
missed jarjar'ing any dependencies.
dexdump out/target/product/<target>/apex/com.android.uwb/javalib/framework-uwb.jar
| grep 'Class descriptor' | grep -v -e "com/android/server/uwb"
-e "com/android/uwb" -e "android/uwb" -e "com/android/x/uwb"
dexdump out/target/product/<target>/apex/com.android.uwb/javalib/service-uwb.jar
| grep 'Class descriptor' | grep -v -e "com/android/server/uwb"
-e "com/android/uwb" -e "android/uwb" -e "com/android/x/uwb"

Change-Id: I76e2217e2c01ef82fb2888bac36e821393a66417

commit 49f2880dfa18b918e7698d9981e655d5426922f9
Author: Roshan Pius rpius@google.com
Date: Thu Aug 12 19:58:51 2021 -0700

Integrate native stack

Bug: 195308730
Test: Compiles
Change-Id: I9c0daffe16ef36c25871d429151b701b315d0ad2

commit a37bcb4fd65bf756afd02d01f060b61f30131742
Merge: 3aca2e5 fc41f29
Author: TreeHugger Robot treehugger-gerrit@google.com
Date: Fri Aug 13 19:51:16 2021 +0000

Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb"

commit 3aca2e5a8b407e2c01b0ea3e2b5f072ca9cd6085
Author: Roshan Pius rpius@google.com
Date: Thu Aug 12 19:59:04 2021 -0700

Integrate latest SS upstream + latest support lib

Bug: 186788640
Test: Compiles
Change-Id: I2fc47a791750416e320a56a8b2c80e2d638b26d5

commit fc41f29dd63b2e43981d77c55b0657d446b9f24a
Author: Bob Badour bbadour@google.com
Date: Thu Aug 12 17:35:57 2021 -0700

[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Uwb

Added SPDX-license-identifier-Apache-2.0 to:
  service/uci/Android.bp
  service/uci/jni/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I1c5005c402ac75aaf7f2aed7f3a274c93c39a395

commit 437462341a94ae04c6846a9fd67bde721362bd5e
Author: Roshan Pius rpius@google.com
Date: Thu Aug 12 13:26:59 2021 -0700

uwb: Fix existing unit tests after migration

Also, add TEST_MAPPING for presubmit tests.

Bug: 188911079
Test: atest FrameworkUwbTest ServiceUwbTests
Change-Id: Id932f3dcad52d6c3be29d504d7190c190c1d47a2

commit 6be48eaae9cde5ea72db884c7fb88f088cec16a0
Author: Roshan Pius rpius@google.com
Date: Thu Aug 12 12:13:30 2021 -0700

uwb: Integrate partner UCI stack with existing AOSP stack

The current binder IPC from AOSP stack to vendor stack will remain the
default configuration (to ensure that we don't break the Pixel devices).
However, for local testing we can enable the new UCI stack using the
property: "persist.uwb.enable_uci_stack". In the UCI enabled case, we
short-circuit the binder IPC from AOSP stack to the UCI stack.

Bug: 188911079
Test: atest UwbManagerTest
Test: Manual test with UCI stack enabled:
adb root
adb shell setprop persist.uwb.enable_uci_stack 1
adb reboot
adb logcat <- Verify logs to ensure that UCI stack is enabled (does
not work however).

Change-Id: Iffdb09f6881f57af5adfb36721c58bb277894ff8

commit f3c33044107b78f614d91b5aef4c74c160d4c2a9
Author: Roshan Pius rpius@google.com
Date: Thu Aug 12 08:46:54 2021 -0700

UwbSupportLib tests should reference local library copy

Bug: 188911079
Test: Compiles
Change-Id: I8a826ef9308910111b8f09ab02db8f8ddcc09fa0

commit 7f21c6d1e0ed870d82a9d77b6f60d1e98dfbcbc1
Author: Roshan Pius rpius@google.com
Date: Thu Aug 12 17:37:45 2021 +0000

Revert "Revert "Move partner java stack codebase to packages/modules/Uwb""

This reverts commit aea56496527c70d845bc1c9c0412ba23559b907e.

Reason for revert: Reland with the fix: ag/15544061

Bug: 188911079
Test: Compiles

Change-Id: Ia0f24519da7f6b4415c3e46ba4add271d60ff13d

commit aea56496527c70d845bc1c9c0412ba23559b907e
Author: Erwin Jansen jansene@google.com
Date: Thu Aug 12 16:59:49 2021 +0000

Revert "Move partner java stack codebase to packages/modules/Uwb"

This reverts commit cc6b205fd47aac111acc4eda0f7f9eb3dd13f355.

Reason for revert: b/196392539

Change-Id: Ic684942d46fb29135a436b1dfe3a488d0df4bec0

commit cc6b205fd47aac111acc4eda0f7f9eb3dd13f355
Author: Roshan Pius rpius@google.com
Date: Wed Aug 11 12:15:44 2021 -0700

Move partner java stack codebase to packages/modules/Uwb

Just moving code from packages/apps/UWb and ensuring the code compiles.
Need to still integrate the AOSP stack & partner stack together.

This includes copy of the support library used in Android 12.

Bug: 188911079
Test: Compiles
Change-Id: Id69ba7aa002ea0216e23a02e4b603a2b0859f63c

commit 24ad5dda8d740bc73479d55c55150c5b4a0f59c1
Author: Roshan Pius rpius@google.com
Date: Fri Jul 30 15:50:20 2021 -0700

Move all uwb service code +  fix compile issues

Note: service-uwb compiles against platform API's since it uses a bunch
of @hide API's. Need to resolve those before compiling against SDK.

Bug: 194906542
Test: Compiles
Change-Id: Id7d49cb382568bc3c4e556b3104e115290ee1c9d

commit f7b564672207e36a094d035674c7af359fbdb02e
Author: Roshan Pius rpius@google.com
Date: Fri Jul 30 11:43:03 2021 -0700

UwbManager: Formally expose setUwbEnabled & getAdapterState

These are used by settings and as a mainline module, we cannot expose
@hide API's to the rest of the system.

Bug: 194906542
Test: Compiles
Change-Id: I66639f8692630ff31f6ddee92e44f76bb515348c

commit be6600ae287c1569ab472df0e725039e0099f7d2
Author: Roshan Pius rpius@google.com
Date: Fri Jul 30 11:15:54 2021 -0700

UwbManager: Change initialization mechanism for uwb service

Needed since UWB is going to be delivered via apex.

Bug: 194906542
Test: Compiles
Change-Id: I807d760e104062602665f06e25e7f3ce82bd8c68

commit 4ba8d82feaa5e291e798b3ee79f088f6e1074fa6
Author: Roshan Pius rpius@google.com
Date: Thu Jul 29 21:28:40 2021 -0700

Create UWB apex and move existing UWB API classes

Following instructions from go/mainline-java-lib to move the existing
UWB API classes to the new apex.

Bug: 194906542
Test: Compiles
Change-Id: I0d19f108ea44635c133bb9188b73c9d60a52c2c7

commit 86eb6a9e9860cb4dd30ec2f62fe7d222422ab022
Author: Inna Palant ipalant@google.com
Date: Wed May 26 09:32:30 2021 -0700

Initial empty repository
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐