blob: 37312fa79d95df884a197e40649b4d85a504a6e6 [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);
Remi NGUYEN VAN8238a762021-03-16 18:06:06 +090022 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void startCaptivePortalApp(@NonNull android.net.Network);
lucaslin10774b72021-03-17 14:16:01 +080023 method public void systemReady();
lucaslin889dcda2021-03-12 17:56:09 +080024 field public static final String PRIVATE_DNS_MODE_OFF = "off";
25 field public static final String PRIVATE_DNS_MODE_OPPORTUNISTIC = "opportunistic";
26 field public static final String PRIVATE_DNS_MODE_PROVIDER_HOSTNAME = "hostname";
Chalard Jeanbef6b092021-03-17 14:33:24 +090027 field public static final int PROFILE_NETWORK_PREFERENCE_DEFAULT = 0; // 0x0
28 field public static final int PROFILE_NETWORK_PREFERENCE_ENTERPRISE = 1; // 0x1
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090029 }
30
31 public final class NetworkAgentConfig implements android.os.Parcelable {
32 method @Nullable public String getSubscriberId();
33 }
34
35 public static final class NetworkAgentConfig.Builder {
36 method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
37 }
38
39 public final class NetworkCapabilities implements android.os.Parcelable {
Chiachang Wang0c32e092021-03-11 16:13:13 +080040 method @Nullable public java.util.Set<android.util.Range<java.lang.Integer>> getUids();
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090041 field public static final int TRANSPORT_TEST = 7; // 0x7
42 }
43
Chiachang Wang0c32e092021-03-11 16:13:13 +080044 public static final class NetworkCapabilities.Builder {
45 method @NonNull public android.net.NetworkCapabilities.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
46 }
47
48 public static class NetworkRequest.Builder {
49 method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
50 }
51
Remi NGUYEN VAN25dcabf2021-03-15 10:20:40 +090052 public class ParseException extends java.lang.RuntimeException {
53 ctor public ParseException(@NonNull String);
54 ctor public ParseException(@NonNull String, @NonNull Throwable);
55 }
56
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090057 public final class TcpRepairWindow {
58 ctor public TcpRepairWindow(int, int, int, int, int, int);
59 field public final int maxWindow;
60 field public final int rcvWnd;
61 field public final int rcvWndScale;
62 field public final int rcvWup;
63 field public final int sndWl1;
64 field public final int sndWnd;
65 }
66
67 public final class TestNetworkInterface implements android.os.Parcelable {
68 ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
69 method public int describeContents();
70 method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
71 method @NonNull public String getInterfaceName();
72 method public void writeToParcel(@NonNull android.os.Parcel, int);
73 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
74 }
75
76 public class TestNetworkManager {
77 method @NonNull public android.net.TestNetworkInterface createTapInterface();
78 method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>);
79 method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
80 method public void teardownTestNetwork(@NonNull android.net.Network);
81 field public static final String TEST_TAP_PREFIX = "testtap";
82 }
83
Remi NGUYEN VANea33ac92021-02-04 14:20:19 +090084 public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
85 ctor public TestNetworkSpecifier(@NonNull String);
86 method public int describeContents();
87 method @Nullable public String getInterfaceName();
88 method public void writeToParcel(@NonNull android.os.Parcel, int);
89 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
90 }
91
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090092 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
93 ctor public VpnTransportInfo(int);
94 method public int describeContents();
95 method public void writeToParcel(@NonNull android.os.Parcel, int);
96 field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
97 field public final int type;
98 }
99
100}
101