blob: a55ed6f113eeb0635d1ce51e0f3a2cbcacc795be [file] [log] [blame]
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +09001// Signature format: 2.0
2package android.net {
3
4 public final class ConnectivityFrameworkInitializer {
5 method public static void registerServiceWrappers();
6 }
7
8 public class ConnectivityManager {
junyulaib1211372021-03-03 12:09:05 +08009 method @NonNull @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public java.util.List<android.net.NetworkStateSnapshot> getAllNetworkStateSnapshot();
lucaslin5cdbcfb2021-03-12 00:46:33 +080010 method @NonNull public static android.util.Range<java.lang.Integer> getIpSecNetIdRange();
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090011 method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void registerSystemDefaultNetworkCallback(@NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull android.os.Handler);
12 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void requestBackgroundNetwork(@NonNull android.net.NetworkRequest, @Nullable android.os.Handler, @NonNull android.net.ConnectivityManager.NetworkCallback);
13 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);
14 }
15
16 public final class NetworkAgentConfig implements android.os.Parcelable {
17 method @Nullable public String getSubscriberId();
18 }
19
20 public static final class NetworkAgentConfig.Builder {
21 method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
22 }
23
24 public final class NetworkCapabilities implements android.os.Parcelable {
25 field public static final int TRANSPORT_TEST = 7; // 0x7
26 }
27
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090028 public final class TcpRepairWindow {
29 ctor public TcpRepairWindow(int, int, int, int, int, int);
30 field public final int maxWindow;
31 field public final int rcvWnd;
32 field public final int rcvWndScale;
33 field public final int rcvWup;
34 field public final int sndWl1;
35 field public final int sndWnd;
36 }
37
38 public final class TestNetworkInterface implements android.os.Parcelable {
39 ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
40 method public int describeContents();
41 method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
42 method @NonNull public String getInterfaceName();
43 method public void writeToParcel(@NonNull android.os.Parcel, int);
44 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
45 }
46
47 public class TestNetworkManager {
48 method @NonNull public android.net.TestNetworkInterface createTapInterface();
49 method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>);
50 method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
51 method public void teardownTestNetwork(@NonNull android.net.Network);
52 field public static final String TEST_TAP_PREFIX = "testtap";
53 }
54
55 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
56 ctor public VpnTransportInfo(int);
57 method public int describeContents();
58 method public void writeToParcel(@NonNull android.os.Parcel, int);
59 field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
60 field public final int type;
61 }
62
63}
64