Commit graph android_packages_modules_Co.../remoteauth
Message SHA1
Convert uses of @hide to block tag
In most places the `@hide` doctag is treated as a block tag on its own
line. However, there are a few places where it is treated as an inline
doctag, e,g. `{@hide}`, and some places where it looks like a block
tag but is inline in the text, e.g. `Some text. @hide`. Dealing with
all the types increases the complexity of Metalava and makes it
slightly slower.

This change replaces the non-block tag forms with a block tag.

Flag: EXEMPT change the form of @hide does not change the API or behavior
Bug: 429965593
Test: m checkapi
Change-Id: I4ffe44a329dbcb7f0a7bd61af16c3bd99cacdac4

Paul Duffin   commited 2025-08-29 21:19:30 +00:00
6eaa841657
[owners] Remove derekjedral@google.com from remoteauth/OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.

Please approve this change and vote the highest CR. This will keep the
OWNERS file tidy. We ask that you do not ignore this change and either
approve it if the OWNER is no longer active or deny it if the OWNER is
continuing to review CLs (including under a different affiliation).
This CL can always be reverted if the understanding changes.

If this change is in error, vote the lowest CR value (i.e. reject the
CL) and the bot will abandon it.

See the owner's recent review activity for context:
https://googleplex-android-review.googlesource.com/q/derekjedral@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: I39763b4aa22a1bf44ed50170836b86a43b7e943b

Owner Cleanup Bot   commited 2025-05-25 09:49:50 -07:00
a88634cb08
Merge "packages/modules/Connectivity: remove usages of Mockito.verifyZeroInteractions" into main
Adrian Roos   authored and   Android (Google) Code Review   commited 2025-03-11 04:57:42 -07:00
c982228563
packages/modules/Connectivity: remove usages of deprecated Mockito matchers
Test: m checkbuild
Flag: TEST_ONLY
Bug: 310268946
Change-Id: Icef421511b6fed6dc7912a9b703773ba5700c62a

Adrian Roos   commited 2025-03-10 02:16:21 +01:00
6cc971daab
packages/modules/Connectivity: remove usages of Mockito.verifyZeroInteractions
The method has been replaced by verifyNo(More)Interactions
in later Mockito versions.

Test: m checkbuild
Flag: TEST_ONLY
Bug: 310268946
Change-Id: I57faa43a5f158bb131f64c19d93de99e04f257ca

Adrian Roos   commited 2025-03-09 23:32:11 +01:00
133f347e80
Remove apex_available from libremoteauth_jni_rust_defaults
libremotauth_jni_rust doesn't need to be available to an apex.

Bug: 394664568
Test: compare out/soong/installs-${TARGET_PRODUCT}.mk
Change-Id: I16269bf4bc6fd947b7c3efe2848455ccb0ca758f

Colin Cross   commited 2025-02-10 16:25:24 +00:00
dcab86925e
Revert^2 "Fix apex_available value in Connectivity"
45f0845bd1

Change-Id: I4a059f61fdc30ccc55b11570e679d192aaebd7a9

Colin Cross   authored and   Gerrit Code Review   commited 2025-02-07 07:13:07 -08:00
202eef1789
Revert "Fix apex_available value in Connectivity"
Revert submission 3477737-move_apex_shortcut

Reason for revert: Likely culprit for b/394990888 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:3477737-move_apex_shortcut

Change-Id: I8acc4fe8628cdef2f58f3423576fe5c582fcb023

Chaitanya Cheemala (xWF)   authored and   Gerrit Code Review   commited 2025-02-07 01:38:05 -08:00
45f0845bd1
Fix apex_available value in Connectivity
com.android.remoteauth doesn't exist, but the value wasn't being
checked because no apexes depended on the module, triggering a shortcut
that skipped the apex_available check.

Bug: 394664568
Test: builds
Change-Id: I25fd078093fd71a0e0df01fb31be9f2b811108ff

Colin Cross   commited 2025-02-06 13:05:25 -08:00
8ce1a1a403
Merge "Remove casbor@google.com from remoteauth/OWNERS" into main
Ronald Braunstein   authored and   Gerrit Code Review   commited 2025-01-21 14:32:47 -08:00
87c84be898
Update code for Rust 1.83.0
Test: m rust
Bug: 384401387
Change-Id: Id14002c889960c6c80d290090e329575fa363eff

Chris Wailes   commited 2025-01-15 17:24:41 -08:00
1fd2b309e3
Remove casbor@google.com from remoteauth/OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.
If this change is unnecessary or in error, vote the lowest CR value
(i.e. reject the CL) and the bot will abandon it. Vote the highest CR to
approve this change. You may also abandon this change.

See the owner's recent activity for context:
https://android-review.googlesource.com/q/casbor@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: I6ec5fbb4d319055981b2d8e0787ffde052933f16

Owner Cleanup Bot   commited 2024-09-11 17:54:57 +00:00
fd84aca153
Merge "Use LazyLock rather than lazy_static macro." into main
Treehugger Robot   authored and   Gerrit Code Review   commited 2024-09-11 17:46:22 +00:00
3dad5f754d
Make java_sdk_library dependencies explicit
modules should specify the submodule of java_sdk_library that the module
actually depends on

Test: CI
Bug: 358613520
Change-Id: I0367068c901df98483f6cf95160d3e7801881b0a

Jihoon Kang   commited 2024-09-10 00:01:31 +00:00
8401b6a9f0
Use LazyLock rather than lazy_static macro.
Bug: 364211748
Test: atest libremoteauth_jni_rust_tests
Change-Id: I6673f3c7558db9fb9f143489b80c87bcdac0c9dd

Andrew Walbran   commited 2024-09-03 16:05:40 +01:00
e8b17333eb
Switch to libjni_legacy
We're updating `libjni` to `0.21`. This involves several API breakages, so I'm rewriting everyone to use `libjni_legacy` first to allow `libjni` to be upgraded. Follow-up changes will update you to use `libjni`.

Change-Id: I8cddf3e2ed79ec4a1b035c9869ab1f2845e1786d

Matthew Maurer   commited 2024-05-15 23:47:49 +00:00
16e962757d
Replace use of deprecated logging functions
This is needed to upgrade the android_logger crate from 0.12.0
to 0.13.3.

with_max_level provides the same functionality as with_min_level.
The renaming is admittedly confusing, but the new name is accurate
and it makes sense that they deprecated and then removed the
previously poorly named with_min_level.

See crate documentation [1] and code [2].

[1]: https://docs.rs/android_logger/0.12.0/android_logger/struct.Config.html#method.with_min_level
[2]: https://docs.rs/android_logger/0.12.0/src/android_logger/lib.rs.html#227

Bug: 322718401
Test: build and run CF with the change.
Test: m aosp_cf_x86_64_phone
Change-Id: Icbfe09b864ce3d52953bf93ca98b7a2db0990e68

Jeff Vander Stoep   commited 2024-02-05 07:47:42 +01:00
a47ea30e0b
[DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5
Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5

Aditya Choudhary   commited 2024-01-31 12:34:50 +00:00
01b5ede2b2
Merge "Clean up obsolete aliases for Truth." into main am: 22d08770af am: 0cf04025c8
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2776858

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

Krzysztof Kosiński   authored and   Automerger Merge Worker   commited 2023-10-10 00:16:25 +00:00
18c65ba7ca
Clean up obsolete aliases for Truth.
Bug: 255714762
Test: presubmit
Change-Id: If91e9af5409fed9d5ccdd13749a0f562c545d589

Krzysztof Kosiński   commited 2023-10-07 00:48:10 +00:00
739ed22507
Merge "Park RemoteAuth Manager and Service" into main am: f0afc53836 am: 2d8debe62c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2759205

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

Igor Zaslavsky   authored and   Automerger Merge Worker   commited 2023-09-26 19:20:31 +00:00
0d7b95b7ff
Park RemoteAuth Manager and Service
Limit the amount of parked code built into Connectivity module

Test: built successfully.
Bug: 300522527
Change-Id: I87d7516011c469aa89fc7e67cf03c4ee8aa1bb9b

Igor Zaslavsky   commited 2023-09-22 04:09:02 +00:00
e336586353
Merge "[remoteauth] Clean up unused deps" into main am: 10f59a248c am: 3ec94c211e
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2757186

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

Jin Chen   authored and   Automerger Merge Worker   commited 2023-09-22 03:46:37 +00:00
8985efbc93
Merge "[remoteauth] Clean up unused deps" into main
Jin Chen   authored and   Gerrit Code Review   commited 2023-09-22 02:18:36 +00:00
10f59a248c
Merge "[remoteauth] Implement UwbRangingSession" into main am: 462572b24b am: 5be6652302
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2726504

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

Jin Chen   authored and   Automerger Merge Worker   commited 2023-09-21 03:31:24 +00:00
7260a3932d
[remoteauth] Implement UwbRangingSession
Test: atest RemoteAuthUnitTests
Bug: 290675814
Change-Id: I9a38298092607fe87bc7a8b157ff9d44d84fa55a

Jin Chen   commited 2023-09-20 15:33:48 -07:00
c54521ba85
[remoteauth] Clean up unused deps
Fix: 301051105
Test: build
Change-Id: I23dfab79503db2fe34ffd06bf48d54961c0bc424

Jin Chen   commited 2023-09-19 18:04:24 -07:00
f86048224e
[resolve-conflict] Implement Discovery PLATFORM logic in Rust am: 3521a5ed8a am: 96bd45aad9
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2736090

Ignore-AOSP-First: Resolving a conflict with aosp-main

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

Igor Zaslavsky   commited 2023-09-12 00:02:44 +00:00
71b1250911
Merge "RemoteAuth discovery implementation" into udc-dev-plus-aosp
Treehugger Robot   authored and   Android (Google) Code Review   commited 2023-09-11 19:05:08 +00:00
de39966e73
Implement Discovery PLATFORM logic in Rust
Add RemoteAuthConnectionCache and RemoteAuthPlatform
with support to sendMessage

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: I17f73b4fb2e22924a484eeb3baa9b933ae980076

Igor Zaslavsky   commited 2023-09-11 17:32:39 +00:00
3521a5ed8a
RemoteAuth discovery implementation
Ignore-AOSP-First: Dependent changes in CDM are not available in
aosp-main.
Bug: 290264664
Test: atest RemoteAuthUnitTest

Change-Id: I4e33178313d2add09436bf01ce127b3df152974e

Salil Rajadhyaksha   commited 2023-09-07 17:27:35 +00:00
ba35a14236
Merge "Factor out remoteauth dependencies to variables" into main
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2023-09-05 04:22:06 +00:00
9bfa7ac0b9
Merge "Implement Discovery PLATFORM logic in Rust" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-09-01 16:28:34 +00:00
9cdea69732
Merge changes Ib5f541ed,Iff6a3cb1,I2ebd5c7a into main
* changes:
  [remoteauth] Add UwbRangingSession
  [remoteauth] Implement RangingSession
  [remoteauth] Implement RangingManager

Jin Chen   authored and   Gerrit Code Review   commited 2023-08-31 23:02:08 +00:00
fafedb40c9
Implement Discovery PLATFORM logic in Rust
This commit changes implementation of Platform from async to callback
patternintr

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: I50d0297725dce3fc3b846c9fb059c2242adad746

Igor Zaslavsky   commited 2023-08-31 22:51:06 +00:00
2974a10216
Factor out remoteauth dependencies to variables
This will allow using different values for the variables without having
merge conflicts in the dependencies list for each build rule.

Bug: 295788084
Test: m
Change-Id: I7b64a5a01d1f8139e7ce30ce95903d71cb09de9f

Remi NGUYEN VAN   commited 2023-08-31 19:08:17 +09:00
c41daa4106
Merge "Removing SystemApi added in aosp/2685327" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-08-31 03:27:01 +00:00
e423ae1076
Removing SystemApi added in aosp/2685327
Removing all SystemApi added in aosp/2685327 until M-2023-11 train  release
Apis will be placed back after that

Test: built successfully.
Bug: 290092977
API-Coverage-Bug: 294934095
Change-Id: I12e8b21e6d21541930acdd14322156ad75b27be5

Igor Zaslavsky   commited 2023-08-30 21:17:28 +00:00
edb12a4234
Implement Discovery PLATFORM logic in Rust
This commit introduces NativeRemoteAuthService used by ReamoteAuth as an
interface toward Rust platform and protocol implementation

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: If2fcfee1c637d17bbc417a26ea39dc97062e6bc3

Igor Zaslavsky   commited 2023-08-30 19:11:29 +00:00
79bb3ca10f
Merge "Implement Discovery PLATFORM logic in Rust" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-08-30 02:51:07 +00:00
c4eef6c58e
Implement Discovery PLATFORM logic in Rust
This commit introduces new PAL that is used by ReamoteAuth protocol
communicate with remote device

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: I9c78137ccf2fd6c86735bef0dd0c9cedf589d704

Igor Zaslavsky   commited 2023-08-29 23:14:42 +00:00
455b104a81
[remoteauth] Add UwbRangingSession
Test: atest RemoteAuthUnitTests
Bug: 292549287, 290675814
Change-Id: Ib5f541edc6d1ce373a58e3f602d7fe3aa1c2f3b7

Jin Chen   commited 2023-08-29 13:45:36 -07:00
0f5e3471e4
[remoteauth] Implement RangingSession
* Add basic functionalities to RangingSession and related data/util classes.

Test: atest RemoteAuthUnitTests
Bug: 292549287
Change-Id: Iff6a3cb1aefc20ef69e65e5e2705e8a707874668

Jin Chen   commited 2023-08-29 13:45:36 -07:00
ff375e5588
[remoteauth] Implement RangingManager
* Add basic functionalities to RangingManager and related data classes.

Test: atest RemoteAuthUnitTests
Bug: 292549287, 290675814
Change-Id: I2ebd5c7afbfc04499ef8e8f830e4a44b52332d69

Jin Chen   commited 2023-08-29 13:45:36 -07:00
be08f54a25
[remoteauth] Add RangingManager interfaces
* Initial commit to define interfaces and data structures for the
  ranging manager.

Test: atest RemoteAuthUnitTests
Bug: 290675597, 292549287
Change-Id: Ic9fbf2f909249586f13f8d7be3069ba8ad3bd779

Jin Chen   commited 2023-08-25 12:42:30 -07:00
393e611129
[remoteauth] Add RangingSession interfaces
* Initial commit to define interfaces and data structures for ranging
  session.

Test: atest RemoteAuthUnitTests
Bug: 290675597
Change-Id: I1eb54c079a212e8d3599b156899d0c46c6b6d636

Jin Chen   commited 2023-08-24 13:28:50 -07:00
2ff4b6b403
Add RemoteAuthService
Add RemoteAuthService APIs and Stubs (hide) for Settings of D2DA

This CL introduces new SystemApi allow user to discover remote devices
compatible to be registered as remote authenticators via RemoteAuthManager

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: 290092977
API-Coverage-Bug: 294934095
Change-Id: Iaaae1126065fdc3db469eeb8d85ac654b8199a12

Igor Zaslavsky   commited 2023-08-24 17:50:11 +00:00
ec344f4c18
Initial commit for connectivity.
Bug: 290265761
Bug: 291146480
Bug: 290275468
Test: None
Change-Id: Iaba64415cf81454b6e999f10bad54810884fc3da

Salil Rajadhyaksha   commited 2023-08-21 18:49:51 +00:00
67b9284de0
RemoteAuth Boilerplate
Stub out code and test directories

BUG: 290094832
Test: atest FrameworksNetTests RemoteAuthUnitTests
Change-Id: I850242640f32bea3d46febcde5f3719619b1ea07

Casey Borders   authored and   Salil Rajadhyaksha   commited 2023-07-31 21:41:26 +00:00
13a35ea213