Commit Graph

30 Commits

Author SHA1 Message Date
Krzysztof Kosiński
947c03644f Merge "Clean up obsolete aliases for Truth." into main am: 22d08770af
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2776858

Change-Id: Ic697196794b26f068ea61f1a743ac2891d6cf200
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-09 23:39:13 +00:00
Krzysztof Kosiński
739ed22507 Clean up obsolete aliases for Truth.
Bug: 255714762
Test: presubmit
Change-Id: If91e9af5409fed9d5ccdd13749a0f562c545d589
2023-10-07 00:48:10 +00:00
Igor Zaslavsky
22abe1ba04 Merge "Park RemoteAuth Manager and Service" into main am: f0afc53836
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2759205

Change-Id: I52409a1b45c325cf19804c568050511f25c150a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 18:19:27 +00:00
Igor Zaslavsky
e336586353 Park RemoteAuth Manager and Service
Limit the amount of parked code built into Connectivity module

Test: built successfully.
Bug: 300522527
Change-Id: I87d7516011c469aa89fc7e67cf03c4ee8aa1bb9b
2023-09-22 04:09:02 +00:00
Jin Chen
7fc87120dc Merge "[remoteauth] Clean up unused deps" into main am: 10f59a248c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2757186

Change-Id: I3f4675bc4405039946c9dd15ac4f96ee426e23f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 02:47:04 +00:00
Jin Chen
10f59a248c Merge "[remoteauth] Clean up unused deps" into main 2023-09-22 02:18:36 +00:00
Jin Chen
2ff9c564eb Merge "[remoteauth] Implement UwbRangingSession" into main am: 462572b24b
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2726504

Change-Id: Ia221c3ed70ea47600433dd9490a7de7b4e134f6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 01:40:35 +00:00
Jin Chen
c54521ba85 [remoteauth] Implement UwbRangingSession
Test: atest RemoteAuthUnitTests
Bug: 290675814
Change-Id: I9a38298092607fe87bc7a8b157ff9d44d84fa55a
2023-09-20 15:33:48 -07:00
Jin Chen
f86048224e [remoteauth] Clean up unused deps
Fix: 301051105
Test: build
Change-Id: I23dfab79503db2fe34ffd06bf48d54961c0bc424
2023-09-19 18:04:24 -07:00
Igor Zaslavsky
e1d8135474 Implement Discovery PLATFORM logic in Rust am: 3521a5ed8a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2736090

Change-Id: If2bc89d5caaac287c4deb32c832390fffa4e77ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 21:19:45 +00:00
Igor Zaslavsky
3521a5ed8a 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
2023-09-11 17:32:39 +00:00
Remi NGUYEN VAN
27ad67e3f6 Do not build remoteauth in udc branches
Remotauth is not compatible with U, so building it in udc-based branches
is not necessary, and it would be hard to backport dependencies as
needed.

This change causes fallback sources to be built instead of
remoteauth/service and remoteauth/framework: stubs should only be needed
for entry points into the module, so the stubs should not need to be
modified often.

The remoteauth sources are still used for generating the API (as per
api_srcs in framework-connectivity-t), to avoid merge conflicts in the
API .txt files. But the implementation jar actually used on device or
shipped via module updates does not contain the API classes. In practice
this means that API stubs are generated through metalava from the
remoteauth sources, and these need to be built. So the API surface
itself cannot depend on V+ classes (APIs cannot take V+ classes as
arguments or return them). This is the case anyway, as
framework-connectivity-t is on the bootclasspath on T+; and in general,
module bootclasspath jars need to avoid depending on newer framework
classes as they may not exist on older devices using the module.

This change should only go to udc branches; note the merged-in below
refers to a change that was merged in all relevant branches, to ensure
that this change is not automerged anywhere.

Bug: 295788084
Test: m
Merged-In: I850242640f32bea3d46febcde5f3719619b1ea07
Change-Id: If533fef926ea0ad4e1e0b4d60c8f8e60f363fc1b
2023-09-05 15:22:06 +09:00
Remi NGUYEN VAN
9bfa7ac0b9 Merge "Factor out remoteauth dependencies to variables" into main 2023-09-05 04:22:06 +00:00
Igor Zaslavsky
9cdea69732 Merge "Implement Discovery PLATFORM logic in Rust" into main 2023-09-01 16:28:34 +00:00
Jin Chen
fafedb40c9 Merge changes Ib5f541ed,Iff6a3cb1,I2ebd5c7a into main
* changes:
  [remoteauth] Add UwbRangingSession
  [remoteauth] Implement RangingSession
  [remoteauth] Implement RangingManager
2023-08-31 23:02:08 +00:00
Igor Zaslavsky
2974a10216 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
2023-08-31 22:51:06 +00:00
Remi NGUYEN VAN
c41daa4106 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
2023-08-31 19:08:17 +09:00
Igor Zaslavsky
e423ae1076 Merge "Removing SystemApi added in aosp/2685327" into main 2023-08-31 03:27:01 +00:00
Igor Zaslavsky
edb12a4234 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
2023-08-30 21:17:28 +00:00
Igor Zaslavsky
79bb3ca10f 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
2023-08-30 19:11:29 +00:00
Igor Zaslavsky
c4eef6c58e Merge "Implement Discovery PLATFORM logic in Rust" into main 2023-08-30 02:51:07 +00:00
Igor Zaslavsky
455b104a81 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
2023-08-29 23:14:42 +00:00
Jin Chen
0f5e3471e4 [remoteauth] Add UwbRangingSession
Test: atest RemoteAuthUnitTests
Bug: 292549287, 290675814
Change-Id: Ib5f541edc6d1ce373a58e3f602d7fe3aa1c2f3b7
2023-08-29 13:45:36 -07:00
Jin Chen
ff375e5588 [remoteauth] Implement RangingSession
* Add basic functionalities to RangingSession and related data/util classes.

Test: atest RemoteAuthUnitTests
Bug: 292549287
Change-Id: Iff6a3cb1aefc20ef69e65e5e2705e8a707874668
2023-08-29 13:45:36 -07:00
Jin Chen
be08f54a25 [remoteauth] Implement RangingManager
* Add basic functionalities to RangingManager and related data classes.

Test: atest RemoteAuthUnitTests
Bug: 292549287, 290675814
Change-Id: I2ebd5c7afbfc04499ef8e8f830e4a44b52332d69
2023-08-29 13:45:36 -07:00
Jin Chen
393e611129 [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
2023-08-25 12:42:30 -07:00
Jin Chen
2ff4b6b403 [remoteauth] Add RangingSession interfaces
* Initial commit to define interfaces and data structures for ranging
  session.

Test: atest RemoteAuthUnitTests
Bug: 290675597
Change-Id: I1eb54c079a212e8d3599b156899d0c46c6b6d636
2023-08-24 13:28:50 -07:00
Igor Zaslavsky
ec344f4c18 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
2023-08-24 17:50:11 +00:00
Salil Rajadhyaksha
67b9284de0 Initial commit for connectivity.
Bug: 290265761
Bug: 291146480
Bug: 290275468
Test: None
Change-Id: Iaba64415cf81454b6e999f10bad54810884fc3da
2023-08-21 18:49:51 +00:00
Casey Borders
13a35ea213 RemoteAuth Boilerplate
Stub out code and test directories

BUG: 290094832
Test: atest FrameworksNetTests RemoteAuthUnitTests
Change-Id: I850242640f32bea3d46febcde5f3719619b1ea07
2023-07-31 21:41:26 +00:00