diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2021-01-12 15:59:10 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2021-01-21 10:45:04 +0900 |
commit | 8700d3345b2f02dfb0a9fd16cc1c7ce783c2d9d5 (patch) | |
tree | b120491ea706c78ace910ed214f2da91b6042cbe /core/api/module-lib-current.txt | |
parent | 539dbe61c57234512ced37daa5a284009ade50f6 (diff) |
Mark TestNetworkManager 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 System/module
API, so mark them as such considering that TestApi is not supported by
modules.
Test: m
Bug: 174436414
Change-Id: Icd32fcbb65e9a4bb2b67cb9da7c971281be0781a
Diffstat (limited to 'core/api/module-lib-current.txt')
-rw-r--r-- | core/api/module-lib-current.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 9349770ee4fd..c19dd4ca4a8e 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -20,6 +20,22 @@ package android.net { field public final int sndWnd; } + public final class TestNetworkInterface implements android.os.Parcelable { + ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String); + method public int describeContents(); + method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor(); + method @NonNull public String getInterfaceName(); + method public void writeToParcel(@NonNull android.os.Parcel, int); + field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR; + } + + public class TestNetworkManager { + method @NonNull public android.net.TestNetworkInterface createTapInterface(); + method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>); + method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder); + method public void teardownTestNetwork(@NonNull android.net.Network); + } + } package android.os { |