Commit Graph

117 Commits

Author SHA1 Message Date
Kangping Dong
5e1d430d33 [Thread] make the Manager and Controller class 'final'
Per the API review council, the classes should be "final" by default

Bug: 301076593
Test: build && atest CtsThreadNetworkTestCases
Change-Id: I85f0b4fabe5b1bcec2be052620b38a07c58181d7
2023-10-25 22:03:11 +08:00
Kangping Dong
7fea5fa6a2 [Thread] add Thread Operational Dataset API
Design doc: go/thread-android-api
Android FR: b/235016403

Bug: 262683651
Change-Id: Icbd4ee4150e3fd78df627c2e726c259e7ee50871
2023-10-25 18:13:07 +08:00
Kangping Dong
75aa485604 [Thread] flagging Android Thread APIs
This commit declares the initial "thread_enabled" feature flag and use
this to flag all existing and future Thread system APIs with @FlaggedApi

Bug: 301473012
Test: build
Change-Id: I43f64ce38f7fd0806733b21c4f393e4563e6a467
2023-10-24 19:45:04 +08:00
Paul Duffin
b3c3f2e9d0 Add additional overriding methods to signature files
This change adds overriding methods that are essential to compile the
stubs generated from the signature files.

More information and the background for this change is available at
go/add-overriding-one-pager.

Test: m checkapi
Bug: 299366704
Change-Id: Idba307148fd9afa87bfb7e0c89e00d9bd97ec204
2023-10-12 19:21:07 +01:00
Paul Duffin
7bd2d108ea Prepare for keeping concrete overrides of abstract methods
Currently, metalava will discard concrete overrides of abstract methods
from the API signature files which causes problems when attempting to
generate stubs from those files and also discards information that may
be important in API reviews. This change is the first step in the
process of changing that behavior.

This change hard codes the current behavior for discarding the concrete
overrides (`add-additional-overrides=no`) into those signature files
that will (or are likely) to be affected by the change in behavior.
That allows the default behavior to be changed for all the other files
without affecting these.

Follow up changes will remove the hard coding from the signature files
and will update the contents which will include the concrete overrides
of the abstract methods.

More information and the background for this change is available at
go/add-overriding-one-pager.

Test: m checkapi
Bug: 299366704
Change-Id: I52c5bbe2e3bbd36019fe44fcb0b2d19876a5a869
2023-10-10 17:11:25 +01:00
Maciej Żenczykowski
13e2ff7717 OWNERS: master -> main am: a1ab4aaeb5
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2765545

Change-Id: Ia9cedb7d9937c0d45fa8421e36ed865bc3aece62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 20:45:24 +00:00
Maciej Żenczykowski
a1ab4aaeb5 OWNERS: master -> main
Change-Id: Iad7d1818d1959024d5fd1fc8810d2b7ce0f06e40
2023-09-27 19:29:09 +00:00
Kangping Dong
e5f1122ec9 Merge "[Thread] initial Thread network service" into main am: 01e6dadd1f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2721333

Change-Id: I5b1dad9c40dcade78c352265164da0992a3fcb0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 11:29:17 +00:00
Kangping Dong
1cec48f3c0 [Thread] initial Thread network service
This commit sets up the initial Thread network service for the
Android Thread feature which allows an Android device to create
a Thread network and being a Border Router.

See https://www.threadgroup.org/What-is-Thread for background of
Thread.

See b/235016403 for the Android Thread feature request.

Test: lunch aosp_cf_x86_64_tv-userdebug
      m && launch_cvd
      atest CtsThreadNetworkTestCases
Bug: 262683651
Change-Id: Ie1bb23084531f67165ec068ea3ca39592dbc01d1
2023-09-12 21:48:57 +08:00
Igor Zaslavsky
378d54c4d5 Merge "Removing SystemApi added in aosp/2685327" into main am: e423ae1076
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2733765

Change-Id: I78bc441c765538098017916007b443671cb95fd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 10:07:08 +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
Xin Li
4a6c653160 Merge Android U (ab/10368041)
Bug: 291102124
Merged-In: Iff29b090c0b41d0103997a80788f09c2602df074
Change-Id: I5b03523defc88ffbc3aeab9ac8a29b4ca5a11f57
2023-08-25 13:52:17 -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
Remi NGUYEN VAN
0a49f9619f Merge "Add remoteauth to API owners" into main 2023-08-15 01:55:11 +00:00
Remi NGUYEN VAN
a2009eaeec Add remoteauth to API owners
Similarly to Nearby, remoteauth is expected to regularly need to change
the API files.

Import the existing owners file for that purpose.

Test: m
Change-Id: I4b900481df3bf505a8209e5370dc4bc4c928dbee
2023-08-14 20:06:03 +09:00
Yuyang Huang
00cf7eda31 Enable service offload API
API-Coverage-Bug: 282618639
Bug: 269240366
Test: atest CtsNetTestCases
Change-Id: I7ac72b675ff3715891f31bc03c453e14b1264e40
2023-08-04 19:24:01 +09:00
Xinyi Zhou
960d69d821 Revert "Add back getFastPairScanEnabled and setFastPairScanEnabled System API"
This reverts commit 4af0e0f784.

Reason for revert: not support the feature anymore

Test: -m
Change-Id: I26c1f1dd5f36ecb6c1386ccf6ec84118fd93017d
2023-02-14 20:16:56 +00:00
Chun Zhang
4aad023afb Revert "Revert "Remove Fast Pair system APIs.""
This reverts commit f6f8c64989.

Reason for revert: not pass PWG review

Change-Id: Ie6c7536c45d53cc4da31811a19fff6ee23852eef
Bug: 239750900
2023-02-14 16:24:37 +00:00
Xinyi Zhou
75200b1999 [API] Add “ERROR_” prefix for consistency with others
Test: -m
Fix: 268195420
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ia9b58c8d134669de36094254270547629a92192a
2023-02-12 06:22:51 +00:00
Paul Hu
fbabe92853 Merge "Rename onResolveStopped to onResolutionStopped" am: e3e9f5622b am: 7fde5f49e4
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2405718

Change-Id: Ibd68cebb5926a15ac17c9953955e973534ff93ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 12:08:54 +00:00
Xinyi Zhou
5f5f292cf6 [API] Add more error codes
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Fix: 265353983
Change-Id: I0c1fd8ff72c0f52189330a471b5ff5865a3446b4
2023-02-03 23:07:21 +00:00
Xinyi Zhou
8fe45419d0 [API] Add offloadOnly API
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 265353983
Change-Id: Ib423285439ec62949ae59487081164b44f1580a6
2023-02-01 15:11:06 -08:00
Xinyi Zhou
e73c76f9c3 [API] Upadate queryOffloadCapability API
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 265353983
Change-Id: Ic7e95cf0f65c3eb60d8b08d402ac56783821bac1
2023-02-01 14:59:08 -08:00
Paul Hu
b2c0f3407f Rename onResolveStopped to onResolutionStopped
Rename the method onResolveStopped(NsdServiceInfo) to
onResolutionStopped(NsdServiceInfo) for consistency as API
review feedback.

Bug: 266811051
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I788b5903ecaf78a9aa960dd3b7413a22f171c72f
2023-01-30 08:53:15 +00:00
Remi NGUYEN VAN
247e8cefb1 Merge "New API to listen service update" am: 93587f609b am: d6cb8c860e
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2369709

Change-Id: Id3beede74d6e60d4d4182e7da6da07084ca5cc06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 16:30:25 +00:00
Paul Hu
18aecccc9d New API to listen service update
Currently, the resolution is a one shot query, it only notifies
the first finding service information. There is no way to listen
the service update. Thus, add a new API that can register a
callback to listen to the service updates continuously.

Bug: 245369943
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I0e9d92b9028375feb3e344ab6c4acb515c5b2be9
2023-01-19 20:16:03 +09:00
Remi NGUYEN VAN
113d648e76 Merge "New API to stop service resolution" am: fd02056713 am: b5ae95a4d1
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2369237

Change-Id: I76c20d5cfd96027c1f20c3011b78fd3546865855
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 02:51:06 +00:00
Paul Hu
b58deb706c New API to stop service resolution
Resolve service may take long time due to network issue or
using wrong service information, but users are not able to stop
it. They can only wait for the callback of resolveService to end,
which sometimes takes a long time. Thus, add the new API that
users can stop the service resolution.

Bug: 245369943
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I6b6183c8c73f8db981b9afa51fbc73bf886d9ed3
2023-01-18 10:10:25 +00:00
Xinyi Zhou
b90b2015db [API] Add Offload Callback API
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 265353983
Change-Id: Ie00a1bd5bcdf42d7b4678a3ffbaf18ebfbe735e6
2023-01-12 21:44:59 -08:00
Xinyi Zhou
9afce39c43 [API] Add onError API
go/presence_api_u

Test: Unit test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Fix: 263907284
Change-Id: I87df0b4592b32f241eb7d22405357bc039766cb8
2023-01-11 15:41:45 -08:00
Yan Yan
e30102f29c Merge "Expose APIs to migrate IpSecTransform" am: 19aa23db7e am: bd3a05ce90 am: 0d066bd27e
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2264321

Change-Id: I1d53fd8eb673dd483a93eae8aa07a59b44c35627
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-11 21:02:27 +00:00
Yan Yan
81c2160a63 Expose APIs to migrate IpSecTransform
This commit exposes APIs to migrate a tunnel mode transform to
new source/destination addresses, as required by MOBIKE.

By calling the exposed API, the caller only caches the new
address in the transform. To complete the migration, caller
MUST apply the tranform to the appropriate tunnel.

This API design is mainly based on the kernel interface and use
cases. The Linux kernel requires Android to provide both the
IpSecTransform and the IpSecTunnelInterface to perform the
migration. And in most cases those two instances are managed
by different entities: IpSecTranform is managed by the key
exchange protocol (e.g. IKE) and IpSecTunnelInterface is managed by
the security tunnel provider (e.g. VPN, VCN, and IWLAN). Thus the
migration process has been designed to have two steps where the
key exchange protocol negotiates and caches the new address,
passes out the updated transform, and the security tunnel
provider applies the transform to a tunnel.

Another benefit of this API is it can also apply to the case
where the network peer does not support MOBIKE and thus cannot
update the existing transforms. In this case, the key exchange
protocol can create a new transform and give it to the security
tunnel provider, and the tunnel provider can still call "apply"
to perform migration without needing to know the details of the
transform update process.

Bug: 169171001
Test: atest FrameworksNetTests, IpSecManagerTunnelTest
Change-Id: I0658cdb09fb31f7e0fb9d0b07f37c2b72b6e705f
2023-01-10 19:09:05 +00:00
Xinyi Zhou
4af0e0f784 Add back getFastPairScanEnabled and setFastPairScanEnabled System API
Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ic0af4c235db14dfd8601c4cf75690af78d4821fd
2022-08-11 01:45:20 +00:00
Chun Zhang
f6f8c64989 Revert "Remove Fast Pair system APIs."
This reverts commit 74607dd786.

Reason for revert: Continue development in T+/U

Bug: 227513829
Test: cts test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ib648ed7163a2e1f11eeed3d0d3469decf64d9d86
CTS-Coverage-Bug: 205591293
2022-07-19 17:08:43 +00:00
Xinyi Zhou
85c3e0883c Remove fast pair scan API
Bug: 227513829
Test: Built and verified no FP UI in settings
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I4bdf8653d0b3a85fbb53786818adb4c3ca39567a
2022-03-31 23:48:15 -07:00
Chun Zhang
74607dd786 Remove Fast Pair system APIs.
Bug: 227513829
Test: cts test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I21b33cb8dcb7f6eee1ecc39115fc153e9a975e7c
2022-03-31 02:32:03 +00:00
Wei Wang
06daa43e83 Merge "Improve the comments of getMedium." into tm-dev 2022-03-30 20:56:45 +00:00
Junyu Lai
b10a2db32f Merge "Make some NetworkStats APIs system-current" into tm-dev 2022-03-30 09:38:21 +00:00
junyulai
6801690383 Make some NetworkStats APIs system-current
Move iterator and NetworkStats.Entry getters to system-current
according to API council feedback. This reverts parts of
ag/17117903.

Ignore-AOSP-First: Parent CLs does not exist in aosp yet.
Test: TH
Fix: 225168182
Change-Id: Ia7fdf8d31a96a26b0bf1682f462292b051560477
2022-03-30 09:38:11 +00:00
Wei Wang
f5bb26fed8 Improve the comments of getMedium.
Also remove public identity type as it's not used.

Bug:222291470

Test: atest CtsNearbyFastPairTestCases
Ignore-AOSP-First: new project
Change-Id: I938fbabc4c042da91b1d316b0bf892cb377db1ba
2022-03-29 17:14:35 -07:00
Chun Zhang
e4440de521 Remove unused system apis.
Test: CTS
Bug: 204780849
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ifb09499f600450c43a8f8b56354e646d38a108e7
2022-03-29 16:21:42 -07:00
Chun Zhang
32a93a5ce6 Require Permission Manifest.permission.WRITE_SECURE_SETTINGS on setFastPairScanEnabled API.
Test: CTS
Bug: 216590902
Ignore-AOSP-First: nearby_not_in_aosp_yet

Change-Id: I017af7de2ba930aa15d862138684eb4dce884348
2022-03-25 04:27:22 +00:00
Xinyi Zhou
1b2a5bf724 Resolve API council feedback
Test: built and verified logs
Fix: 225116248
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ic30aee650fd41287d3a363491fa602cd990467a8
2022-03-23 19:05:29 +00:00
Remi NGUYEN VAN
d5820ab896 Merge "Add executors to NsdManager" am: b58df4bf13 am: ef37e45e8a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2027043

Change-Id: I1b9ec283274aa162ee1e5d5165caa221965b7bbf
2022-03-22 09:46:04 +00:00
Remi NGUYEN VAN
b58df4bf13 Merge "Add executors to NsdManager" 2022-03-22 08:33:48 +00:00
Chun Zhang
44d4b3d1e9 Merge "Address API review feedback" into tm-dev 2022-03-18 22:45:15 +00:00
Xinyi Zhou
2f054086c5 Merge "Update system-current.txt to resolve API council comments" into tm-dev 2022-03-18 21:24:38 +00:00
Xiao Ma
9e3173a8b6 Update the module-lib API txt with getInterfaceList api.
Bug: 171872016
Test: m
Ignore-AOSP-First: avoid build break due to the automerge order.
Change-Id: I16c69aa0d236036a600bdae9fb8326ff70fd4fda
2022-03-18 18:25:40 +09:00
markchien
6d2cbfeb3b Update the module-lib API txt with setEthernetEnable API
Bug: 171872016
Test: atest EthernetServiceTests
Ignore-AOSP-First: to avoid diamond automerge cause build break, will
cherry-pick back to AOSP once this is merged

Change-Id: I61c5209f50ab62327b75813804bde1aa1a014054
2022-03-18 18:25:40 +09:00
Chun Zhang
fa9c46a2d7 Address API review feedback
"Can you use a Service instead of having a non-service Base class?".

Bug: 218682005
Test: existing CTS/UNIT test
Ignore-AOSP-First: nearby_not_in_aosp_yet
CTS-Coverage-Bug: 205591293
Change-Id: I6e743f89f09e3cf27a96e60ad52bd0d2d9074a1a
2022-03-17 22:37:40 -07:00