diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2021-01-12 18:40:04 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2021-01-22 16:16:57 +0900 |
commit | 649e3a28dd11439f0aa5d8fd605e6695da93d255 (patch) | |
tree | 691e63ccc53306bf8476c4124482670dff44d488 /core/api/module-lib-current.txt | |
parent | 286dc55bc983f7c0ea02cc920ff93b5a88472fa0 (diff) |
Mark connectivity test utilities as module API
The API surface is planned to move to the Connectivity module, meaning
that it will be maintained across multiple Android releases.
This is incompatible with TestApi semantics, which are designed to be
removable across releases. Effectively the APIs become SystemApi, so
mark them as such considering that TestApi is not supported by modules.
Remove the NetworkCapabilities.getCapabilities test API that is not
essential for tests, and mark other APIs as module API.
Test: m
Bug: 174436414
Change-Id: Ic04551a9874b3d756cf5e6c77ceabfc7c85d52a6
Diffstat (limited to 'core/api/module-lib-current.txt')
-rw-r--r-- | core/api/module-lib-current.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index c19dd4ca4a8e..67eee6253235 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -10,6 +10,14 @@ package android.app { package android.net { + public class ConnectivityManager { + method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_TEST_NETWORKS, android.Manifest.permission.NETWORK_STACK}) public void simulateDataStall(int, long, @NonNull android.net.Network, @NonNull android.os.PersistableBundle); + } + + public final class NetworkCapabilities implements android.os.Parcelable { + field public static final int TRANSPORT_TEST = 7; // 0x7 + } + public final class TcpRepairWindow { ctor public TcpRepairWindow(int, int, int, int, int, int); field public final int maxWindow; |