Commit graph android_packages_modules_Co.../framework-t/api
Message SHA1
Enable service offload API
API-Coverage-Bug: 282618639
Bug: 269240366
Test: atest CtsNetTestCases
Change-Id: I7ac72b675ff3715891f31bc03c453e14b1264e40

Yuyang Huang   commited 2023-08-04 19:24:01 +09:00
00cf7eda31
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

Paul Hu   commited 2023-01-30 08:53:15 +00:00
b2c0f3407f
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

Paul Hu   authored and   Remi NGUYEN VAN   commited 2023-01-19 20:16:03 +09:00
18aecccc9d
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

Paul Hu   commited 2023-01-18 10:10:25 +00:00
b58deb706c
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

Yan Yan   commited 2023-01-10 19:09:05 +00:00
81c2160a63
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

Xinyi Zhou   commited 2022-03-31 23:48:15 -07:00
85c3e0883c
Remove Fast Pair system APIs.
Bug: 227513829
Test: cts test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I21b33cb8dcb7f6eee1ecc39115fc153e9a975e7c

Chun Zhang   authored and   Eric Lin   commited 2022-03-31 02:32:03 +00:00
74607dd786
Merge "Improve the comments of getMedium." into tm-dev
Wei Wang   authored and   Android (Google) Code Review   commited 2022-03-30 20:56:45 +00:00
06daa43e83
Merge "Make some NetworkStats APIs system-current" into tm-dev
Junyu Lai   authored and   Android (Google) Code Review   commited 2022-03-30 09:38:21 +00:00
b10a2db32f
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

junyulai   authored and   Junyu Lai   commited 2022-03-30 09:38:11 +00:00
6801690383
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

Wei Wang   commited 2022-03-29 17:14:35 -07:00
f5bb26fed8
Remove unused system apis.
Test: CTS
Bug: 204780849
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ifb09499f600450c43a8f8b56354e646d38a108e7

Chun Zhang   commited 2022-03-29 16:21:42 -07:00
e4440de521
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

Chun Zhang   commited 2022-03-25 04:27:22 +00:00
32a93a5ce6
Resolve API council feedback
Test: built and verified logs
Fix: 225116248
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ic30aee650fd41287d3a363491fa602cd990467a8

Xinyi Zhou   commited 2022-03-23 19:05:29 +00:00
1b2a5bf724
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

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2022-03-22 09:46:04 +00:00
d5820ab896
Merge "Add executors to NsdManager"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2022-03-22 08:33:48 +00:00
b58df4bf13
Merge "Address API review feedback" into tm-dev
Chun Zhang   authored and   Android (Google) Code Review   commited 2022-03-18 22:45:15 +00:00
44d4b3d1e9
Merge "Update system-current.txt to resolve API council comments" into tm-dev
Xinyi Zhou   authored and   Android (Google) Code Review   commited 2022-03-18 21:24:38 +00:00
2f054086c5
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

Xiao Ma   commited 2022-03-18 18:25:40 +09:00
9e3173a8b6
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

markchien   authored and   Xiao Ma   commited 2022-03-18 18:25:40 +09:00
6d2cbfeb3b
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

Chun Zhang   commited 2022-03-17 22:37:40 -07:00
fa9c46a2d7
Update system-current.txt to resolve API council comments
Bug: 216294721
Test: Compiled
Ignore-AOSP-First: nearby_not_in_aosp_yet
CTS-Coverage-Bug: 213364287
Change-Id: Iab7b1d80c164baa5268daa7e22b19b0cd09bc057

Xinyi Zhou   commited 2022-03-17 15:43:13 -07:00
b4efda8f20
Fix ethernet enable / disable API
The ethernet APIs connectNetwork() / disconnectNetwork() are
inaccurately named. Physical link state cannot be changed by calling an
API. This change renames these functions to enableInterface and
disableInterface, respectively, to better reflect their intention and
behavior.

Test: atest EthernetManagerPermissionTest
Ignore-AOSP-First: CP to make automerger happy.
Change-Id: I0f2866d09b745e7bdb261a1258f94cfd51223a8f

Patrick Rohr   commited 2022-03-17 19:02:52 +00:00
fa376a5e7c
Change Ethernet API to use OutcomeReceiver
This change addresses API review feedback. In addition, it changes the
returned result from Network to the interface name. The current API
returning a Network object is racy and cannot be implemented correctly.
Users should instead use the ConnectivityManager#requestNetwork() API to
get hold of the Network for a given interface.

Bug: 220017952
Test: TH
Ignore-AOSP-First: CP to make automerger happy.
Change-Id: I4c204a8489c0be006c00581d833f2bb46ae0e71d

Patrick Rohr   commited 2022-03-17 19:01:39 +00:00
c551ebbc37
Merge "Revert "Change Ethernet API to use OutcomeReceiver"" am: 2789c017e6 am: 3234a71d32
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2030087

Change-Id: I6d1a63498b3976f0ecc3e2c2dac359a6d99713aa

Quentin Perret   authored and   Automerger Merge Worker   commited 2022-03-17 17:02:49 +00:00
77c2f08780
Revert "Change Ethernet API to use OutcomeReceiver"
Revert "Change Ethernet API to use OutcomeReceiver"

Revert "Change network management listener to outcome receiver"

Revert submission 2028203-ethernet-outcomereceiver

Reason for revert: BuildMonitor investigating b/225169800
Reverted Changes:
I4c204a848:Change Ethernet API to use OutcomeReceiver
I7c46545a4:Change Ethernet API to use OutcomeReceiver
Id8fadfed9:Change network management listener to outcome rece...

Change-Id: Ibd1d70ac3fb691f9a777e59da4886ab60dc969ac

Quentin Perret   commited 2022-03-17 15:20:53 +00:00
41000c6106
Merge "Change Ethernet API to use OutcomeReceiver" am: a8385cc593 am: e4172aceb8 am: 4c4dbae06b
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2029244

Change-Id: I8b498aeafaf9894b66f8e9f1f364517e31fd7be1

Patrick Rohr   authored and   Automerger Merge Worker   commited 2022-03-17 14:53:25 +00:00
f363822d87
Add executors to NsdManager
Add executors to APIs added in T, and overloads with Executors for
consistency to register/resolve.

Bug: 218752665
Test: atest NsdManagerTest
Change-Id: I9d89ea8352aa8274a90bf6cb273d5b45828f53cc

Remi NGUYEN VAN   commited 2022-03-17 11:01:56 +00:00
59145dc7f8
Merge changes from topic "nullable-ipconfig" am: 1b13af010a am: 3a74a64079
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2026565

Change-Id: Idd172582e5d1f0d401b999b7eb8f1a5e5311ee5d

Patrick Rohr   authored and   Automerger Merge Worker   commited 2022-03-17 08:13:58 +00:00
5a9011125b
Change Ethernet API to use OutcomeReceiver
This change addresses API review feedback. In addition, it changes the
returned result from Network to the interface name. The current API
returning a Network object is racy and cannot be implemented correctly.
Users should instead use the ConnectivityManager#requestNetwork() API to
get hold of the Network for a given interface.

Bug: 220017952
Test: TH
Change-Id: I4c204a8489c0be006c00581d833f2bb46ae0e71d

Patrick Rohr   commited 2022-03-17 07:21:33 +01:00
ea7e6d56f4
Merge "Address API review feedback" into tm-dev
Chun Zhang   authored and   Android (Google) Code Review   commited 2022-03-17 02:09:49 +00:00
687bdb2c60
Merge "[MS83.2] Make some APIs module-lib instead of system current" into tm-dev
Junyu Lai   authored and   Android (Google) Code Review   commited 2022-03-17 01:50:14 +00:00
40cc6b656e
Merge "API changes for resolving API council comments." into tm-dev
TreeHugger Robot   authored and   Android (Google) Code Review   commited 2022-03-16 23:31:59 +00:00
e2b4a05be9
Address API review feedback
"Can the getters be made public so this can be CTS tested?"
"Please add getters and mark them @TestApi so CTS can use them."
"Antispoofkey and AntiSpoofkey should be AntispoofKey."
"please rename accountKey to something like deviceAccountKey"

Getters are added as SystemApi since @TestApi doesn't work well with mainline.

BUG: 218682005
BUG: 222489854
Test: unit test
Ignore-AOSP-First: nearby_not_in_aosp_yet
CTS-Coverage-Bug: 205591293
Change-Id: I9e1a69b2b744b0f19fa13fe6215237317725390d

Chun Zhang   commited 2022-03-16 14:12:59 -07:00
d9d12aa98f
Add Nullable IpConfiguration to ethernet update request
Test: atest EthernetServiceTests
Bug: 220017952
Change-Id: Icb5af11e67e397628484726ab6f69afa5d1fe7f5

Patrick Rohr   commited 2022-03-16 20:29:05 +01:00
8a910f4ecd
Merge "Update system-current.txt to resolve API council comments" into tm-dev
Xinyi Zhou   authored and   Android (Google) Code Review   commited 2022-03-16 18:18:46 +00:00
841bedcc3b
Merge changes from topic "ethernet_mainline"
* changes:
  Fix the NPE thrown when starting Ethernet service in OS lower than T.
  Remove the stub ethernet service from Connectivity module.
  Update hidden API files for EthernetManager API move.
  Provide a stub ethernet service to build in sc-mainline-prod.
  Build ethernet framework source into framework-connectivity-tiramisu

Patrick Rohr   authored and   Gerrit Code Review   commited 2022-03-16 16:03:30 +00:00
6dde8ac532
[MS83.2] Make some APIs module-lib instead of system current
Test: m
Ignore-AOSP-First: Avoid merge conflict
Fix: 217479745
Change-Id: Ief3f2304f11b7940a18b98b8533fbca85ffa4dc1

junyulai   commited 2022-03-16 15:31:26 +08:00
b59e5427fd
Merge "Rename setUidForeground to noteUidForeground" am: 8b7896b51a am: cf9f545864
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2018880

Change-Id: I8a3ac0a4dcf9201435ad227b36acf4e0f1889f22

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-03-16 00:37:29 +00:00
f2975db5a4
Merge "Rename setUidForeground to noteUidForeground"
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-03-15 23:33:26 +00:00
8b7896b51a
Update system-current.txt to resolve API council comments
Bug: 216294721
Test: Compiled
Ignore-AOSP-First: nearby_not_in_aosp_yet
CTS-Coverage-Bug: 213364287
Change-Id: I366bf367e5519506f4f3e5966fe61a7f7a2f4903

Xinyi Zhou   commited 2022-03-15 14:33:33 -07:00
fe1e4917b3
Merge "Update system-current.txt and module-lib-current.txt to resolve API council comments" into tm-dev
Xinyi Zhou   authored and   Android (Google) Code Review   commited 2022-03-14 22:45:47 +00:00
74539fb52a
Build ethernet framework source into framework-connectivity-tiramisu
- move ethernet APIs, build it into framework-connectivity-tiramisu
- start ethernet service from ConnectivityServiceInitializer
- fix EthernetManager dependnecy in Tethering module
- fix EthernetNetworkSpecifier dependency in framework-connectivity
- fix the ethernet related config resource

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I54857b8517649048a343c72797668394d5225766
Merged-In: I54857b8517649048a343c72797668394d5225766

Xiao Ma   commited 2022-03-14 14:06:35 +00:00
0a171c006c
Merge "[DU09-3]Modify the NetworkStatsCollection Builder API" am: 3f5703df80 am: c36cb655e5
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2010336

Change-Id: Ibcafcd8e69e4179a984ebb0fdf5a211d11407c97

Frank Li   authored and   Automerger Merge Worker   commited 2022-03-14 03:32:29 +00:00
3f0e64da5a
API changes for resolving API council comments.
Bug:222291473
Bug:222291491
Bug:222291420
Bug:222291565

Test: atest CtsNearbyFastPairTestCases
Test: atest NearbyUnitTests
Ignore-AOSP-First: new project
CTS-Coverage-Bug: 217565373
Change-Id: I653c58216cb789df80699eef5c6e0c693f9296fc

Wei Wang   commited 2022-03-12 21:16:36 -08:00
24e2cb207b
Merge "API changes for addressing API Council comments." into tm-dev
TreeHugger Robot   authored and   Android (Google) Code Review   commited 2022-03-11 01:51:36 +00:00
1523bf7eb4
Address API feedback: rename to AntispoofKey
[Antispoofkey and AntiSpoofkey should be AntispoofKey]
Bug: 218682005
Test: Unit Test
Ignore-AOSP-First: nearby_not_in_aosp_yet

Change-Id: I5124094005d446293cc6cf980a60628e93080631

Chun Zhang   commited 2022-03-10 21:36:23 +00:00
ee379fd75a
Build ethernet framework source into framework-connectivity-tiramisu
- move ethernet APIs, build it into framework-connectivity-tiramisu
- start ethernet service from ConnectivityServiceInitializer
- fix EthernetManager dependnecy in Tethering module
- fix EthernetNetworkSpecifier dependency in framework-connectivity
- fix the ethernet related config resource

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Ignore-AOSP-First: Topic of Ethernet Mainline has merge conflict with
                   master, merge this CL first and cherry-pick it back.
Change-Id: I54857b8517649048a343c72797668394d5225766

Xiao Ma   commited 2022-03-10 20:57:38 +09:00
eaaf7d3a83
Rename setUidForeground to noteUidForeground
Addresses API review feedback. Both setUidForeground in
NetworkStatsManager and NetworkStatsService are renamed to
noteUidForeground. Thus, the caller in test should be also
modified.

Bug: 222291301
Test: atest FrameworksNetTests
Change-Id: Ifa1e1af3d9fd8b1dc75a8f37947a5958f60ed415

Aaron Huang   commited 2022-03-10 18:33:50 +08:00
5417280f17
Update system-current.txt and module-lib-current.txt to resolve API council comments
Bug: 216294721
Test: Compiled
Ignore-AOSP-First: nearby_not_in_aosp_yet
CTS-Coverage-Bug: 213364287
Change-Id: Ic01a517eb8d6cf4f193bf40e84cb33189f6c80d2

Xinyi Zhou   commited 2022-03-10 02:41:19 +00:00
ff98750c70