blob: c7fbbd85ba347ea3ab309483478e6254c4d3d7ab [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();
lucaslin889dcda2021-03-12 17:56:09 +080011 method @NonNull public static String getPrivateDnsMode(@NonNull android.content.ContentResolver);
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090012 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);
junyulaidbb70462021-03-09 20:49:48 +080013 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, @NonNull android.os.Handler, @NonNull android.net.ConnectivityManager.NetworkCallback);
Chalard Jean0a4aefc2021-03-03 16:37:13 +090014 method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setProfileNetworkPreference(@NonNull android.os.UserHandle, int, @Nullable java.util.concurrent.Executor, @Nullable Runnable);
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090015 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);
lucaslin889dcda2021-03-12 17:56:09 +080016 field public static final String PRIVATE_DNS_MODE_OFF = "off";
17 field public static final String PRIVATE_DNS_MODE_OPPORTUNISTIC = "opportunistic";
18 field public static final String PRIVATE_DNS_MODE_PROVIDER_HOSTNAME = "hostname";
Chalard Jeanbef6b092021-03-17 14:33:24 +090019 field public static final int PROFILE_NETWORK_PREFERENCE_DEFAULT = 0; // 0x0
20 field public static final int PROFILE_NETWORK_PREFERENCE_ENTERPRISE = 1; // 0x1
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090021 }
22
23 public final class NetworkAgentConfig implements android.os.Parcelable {
24 method @Nullable public String getSubscriberId();
25 }
26
27 public static final class NetworkAgentConfig.Builder {
28 method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
29 }
30
31 public final class NetworkCapabilities implements android.os.Parcelable {
32 field public static final int TRANSPORT_TEST = 7; // 0x7
33 }
34
Remi NGUYEN VAN25dcabf2021-03-15 10:20:40 +090035 public class ParseException extends java.lang.RuntimeException {
36 ctor public ParseException(@NonNull String);
37 ctor public ParseException(@NonNull String, @NonNull Throwable);
38 }
39
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090040 public final class TcpRepairWindow {
41 ctor public TcpRepairWindow(int, int, int, int, int, int);
42 field public final int maxWindow;
43 field public final int rcvWnd;
44 field public final int rcvWndScale;
45 field public final int rcvWup;
46 field public final int sndWl1;
47 field public final int sndWnd;
48 }
49
50 public final class TestNetworkInterface implements android.os.Parcelable {
51 ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
52 method public int describeContents();
53 method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
54 method @NonNull public String getInterfaceName();
55 method public void writeToParcel(@NonNull android.os.Parcel, int);
56 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
57 }
58
59 public class TestNetworkManager {
60 method @NonNull public android.net.TestNetworkInterface createTapInterface();
61 method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>);
62 method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
63 method public void teardownTestNetwork(@NonNull android.net.Network);
64 field public static final String TEST_TAP_PREFIX = "testtap";
65 }
66
Remi NGUYEN VANea33ac92021-02-04 14:20:19 +090067 public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
68 ctor public TestNetworkSpecifier(@NonNull String);
69 method public int describeContents();
70 method @Nullable public String getInterfaceName();
71 method public void writeToParcel(@NonNull android.os.Parcel, int);
72 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
73 }
74
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090075 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
76 ctor public VpnTransportInfo(int);
77 method public int describeContents();
78 method public void writeToParcel(@NonNull android.os.Parcel, int);
79 field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
80 field public final int type;
81 }
82
83}
84