blob: f484c3cdb006775a632d26b48e276679d7f4d650 [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();
lucasline2cd02d2021-03-16 17:11:14 +080011 method @NonNull public static String getPrivateDnsMode(@NonNull android.content.Context);
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";
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090019 }
20
21 public final class NetworkAgentConfig implements android.os.Parcelable {
22 method @Nullable public String getSubscriberId();
23 }
24
25 public static final class NetworkAgentConfig.Builder {
26 method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
27 }
28
29 public final class NetworkCapabilities implements android.os.Parcelable {
Roshan Piuse2d28382021-02-23 08:47:39 -080030 ctor public NetworkCapabilities(@Nullable android.net.NetworkCapabilities, long);
Chiachang Wang628cb112021-03-19 00:45:39 +000031 method @Nullable public java.util.Set<android.util.Range<java.lang.Integer>> getUids();
Roshan Piuse2d28382021-02-23 08:47:39 -080032 field public static final long REDACT_ALL = -1L; // 0xffffffffffffffffL
33 field public static final long REDACT_FOR_ACCESS_FINE_LOCATION = 1L; // 0x1L
34 field public static final long REDACT_FOR_LOCAL_MAC_ADDRESS = 2L; // 0x2L
35 field public static final long REDACT_FOR_NETWORK_SETTINGS = 4L; // 0x4L
36 field public static final long REDACT_NONE = 0L; // 0x0L
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090037 field public static final int TRANSPORT_TEST = 7; // 0x7
38 }
39
Chiachang Wang628cb112021-03-19 00:45:39 +000040 public static final class NetworkCapabilities.Builder {
41 method @NonNull public android.net.NetworkCapabilities.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
42 }
43
44 public static class NetworkRequest.Builder {
45 method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
46 }
47
Remi NGUYEN VAN25dcabf2021-03-15 10:20:40 +090048 public class ParseException extends java.lang.RuntimeException {
49 ctor public ParseException(@NonNull String);
50 ctor public ParseException(@NonNull String, @NonNull Throwable);
51 }
52
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090053 public final class TcpRepairWindow {
54 ctor public TcpRepairWindow(int, int, int, int, int, int);
55 field public final int maxWindow;
56 field public final int rcvWnd;
57 field public final int rcvWndScale;
58 field public final int rcvWup;
59 field public final int sndWl1;
60 field public final int sndWnd;
61 }
62
63 public final class TestNetworkInterface implements android.os.Parcelable {
64 ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String);
65 method public int describeContents();
66 method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor();
67 method @NonNull public String getInterfaceName();
68 method public void writeToParcel(@NonNull android.os.Parcel, int);
69 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR;
70 }
71
72 public class TestNetworkManager {
73 method @NonNull public android.net.TestNetworkInterface createTapInterface();
74 method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>);
75 method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder);
76 method public void teardownTestNetwork(@NonNull android.net.Network);
77 field public static final String TEST_TAP_PREFIX = "testtap";
78 }
79
Remi NGUYEN VANea33ac92021-02-04 14:20:19 +090080 public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
81 ctor public TestNetworkSpecifier(@NonNull String);
82 method public int describeContents();
83 method @Nullable public String getInterfaceName();
84 method public void writeToParcel(@NonNull android.os.Parcel, int);
85 field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR;
86 }
87
Roshan Piuse2d28382021-02-23 08:47:39 -080088 public interface TransportInfo {
89 method public default long getApplicableRedactions();
90 method @NonNull public default android.net.TransportInfo makeCopy(long);
91 }
92
Remi NGUYEN VANf15fc7f2021-01-28 13:37:03 +090093 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
94 ctor public VpnTransportInfo(int);
95 method public int describeContents();
96 method public void writeToParcel(@NonNull android.os.Parcel, int);
97 field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR;
98 field public final int type;
99 }
100
101}
102