Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 1 | // Signature format: 2.0 |
| 2 | package android.net { |
| 3 | |
| 4 | public final class ConnectivityFrameworkInitializer { |
| 5 | method public static void registerServiceWrappers(); |
| 6 | } |
| 7 | |
| 8 | public class ConnectivityManager { |
junyulai | b121137 | 2021-03-03 12:09:05 +0800 | [diff] [blame] | 9 | 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(); |
lucaslin | 5cdbcfb | 2021-03-12 00:46:33 +0800 | [diff] [blame] | 10 | method @NonNull public static android.util.Range<java.lang.Integer> getIpSecNetIdRange(); |
lucaslin | 889dcda | 2021-03-12 17:56:09 +0800 | [diff] [blame] | 11 | method @NonNull public static String getPrivateDnsMode(@NonNull android.content.ContentResolver); |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 12 | 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); |
junyulai | dbb7046 | 2021-03-09 20:49:48 +0800 | [diff] [blame] | 13 | 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 Jean | 0a4aefc | 2021-03-03 16:37:13 +0900 | [diff] [blame] | 14 | method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setProfileNetworkPreference(@NonNull android.os.UserHandle, int, @Nullable java.util.concurrent.Executor, @Nullable Runnable); |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 15 | 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); |
lucaslin | 889dcda | 2021-03-12 17:56:09 +0800 | [diff] [blame] | 16 | 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 Jean | bef6b09 | 2021-03-17 14:33:24 +0900 | [diff] [blame^] | 19 | 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 VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 21 | } |
| 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 VAN | 25dcabf | 2021-03-15 10:20:40 +0900 | [diff] [blame] | 35 | 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 VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 40 | 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 VAN | ea33ac9 | 2021-02-04 14:20:19 +0900 | [diff] [blame] | 67 | 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 VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 75 | 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 | |