blob: f4469417e3091fc9e3f17ffdfd4301850ea580e7 [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 {
Chiachang Wangf9294e72021-03-18 09:44:34 +08009 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void factoryReset();
junyulaib1211372021-03-03 12:09:05 +080010 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();
Chiachang Wangf9294e72021-03-18 09:44:34 +080011 method @Nullable public android.net.ProxyInfo getGlobalProxy();
lucaslin5cdbcfb2021-03-12 00:46:33 +080012 method @NonNull public static android.util.Range<java.lang.Integer> getIpSecNetIdRange();
lucasline2cd02d2021-03-16 17:11:14 +080013 method @NonNull public static String getPrivateDnsMode(@NonNull android.content.Context);
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090014 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 +080015 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);
Chiachang Wangf9294e72021-03-18 09:44:34 +080016 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void setAcceptPartialConnectivity(@NonNull android.net.Network, boolean, boolean);
17 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void setAcceptUnvalidated(@NonNull android.net.Network, boolean, boolean);
18 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void setAvoidUnvalidated(@NonNull android.net.Network);
19 method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setGlobalProxy(@Nullable android.net.ProxyInfo);
Chalard Jean0a4aefc2021-03-03 16:37:13 +090020 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 +090021 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 +080022 field public static final String PRIVATE_DNS_MODE_OFF = "off";
23 field public static final String PRIVATE_DNS_MODE_OPPORTUNISTIC = "opportunistic";
24 field public static final String PRIVATE_DNS_MODE_PROVIDER_HOSTNAME = "hostname";
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090025 }
26
27 public final class NetworkAgentConfig implements android.os.Parcelable {
28 method @Nullable public String getSubscriberId();
29 }
30
31 public static final class NetworkAgentConfig.Builder {
32 method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
33 }
34
35 public final class NetworkCapabilities implements android.os.Parcelable {
36 field public static final int TRANSPORT_TEST = 7; // 0x7
37 }
38
Remi NGUYEN VAN25dcabf2021-03-15 10:20:40 +090039 public class ParseException extends java.lang.RuntimeException {
40 ctor public ParseException(@NonNull String);
41 ctor public ParseException(@NonNull String, @NonNull Throwable);
42 }
43
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090044 public final class TcpRepairWindow {
45 ctor public TcpRepairWindow(int, int, int, int, int, int);
46 field public final int maxWindow;
47 field public final int rcvWnd;
48 field public final int rcvWndScale;
49 field public final int rcvWup;
50 field public final int sndWl1;
51 field public final int sndWnd;
52 }
53
54 public final class TestNetworkInterface implements android.os.Parcelable {
55 ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
56 method public int describeContents();
57 method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
58 method @NonNull public String getInterfaceName();
59 method public void writeToParcel(@NonNull android.os.Parcel, int);
60 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
61 }
62
63 public class TestNetworkManager {
64 method @NonNull public android.net.TestNetworkInterface createTapInterface();
65 method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>);
66 method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
67 method public void teardownTestNetwork(@NonNull android.net.Network);
68 field public static final String TEST_TAP_PREFIX = "testtap";
69 }
70
Remi NGUYEN VANea33ac92021-02-04 14:20:19 +090071 public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
72 ctor public TestNetworkSpecifier(@NonNull String);
73 method public int describeContents();
74 method @Nullable public String getInterfaceName();
75 method public void writeToParcel(@NonNull android.os.Parcel, int);
76 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
77 }
78
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090079 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
80 ctor public VpnTransportInfo(int);
81 method public int describeContents();
82 method public void writeToParcel(@NonNull android.os.Parcel, int);
83 field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
84 field public final int type;
85 }
86
87}
88