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 { |
Chiachang Wang | f9294e7 | 2021-03-18 09:44:34 +0800 | [diff] [blame] | 9 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void factoryReset(); |
junyulai | b121137 | 2021-03-03 12:09:05 +0800 | [diff] [blame] | 10 | 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 Wang | f9294e7 | 2021-03-18 09:44:34 +0800 | [diff] [blame] | 11 | method @Nullable public android.net.ProxyInfo getGlobalProxy(); |
lucaslin | 5cdbcfb | 2021-03-12 00:46:33 +0800 | [diff] [blame] | 12 | method @NonNull public static android.util.Range<java.lang.Integer> getIpSecNetIdRange(); |
lucaslin | e2cd02d | 2021-03-16 17:11:14 +0800 | [diff] [blame] | 13 | method @NonNull public static String getPrivateDnsMode(@NonNull android.content.Context); |
Lorenzo Colitti | b90bdbd | 2021-03-22 18:23:21 +0900 | [diff] [blame] | 14 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void registerDefaultNetworkCallbackAsUid(int, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull android.os.Handler); |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 15 | 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] | 16 | 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); |
lucaslin | 29278ee | 2021-03-22 11:51:27 +0800 | [diff] [blame^] | 17 | method @Deprecated public boolean requestRouteToHostAddress(int, java.net.InetAddress); |
Chiachang Wang | f9294e7 | 2021-03-18 09:44:34 +0800 | [diff] [blame] | 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 setAcceptPartialConnectivity(@NonNull android.net.Network, boolean, boolean); |
| 19 | 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); |
| 20 | 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); |
| 21 | method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setGlobalProxy(@Nullable android.net.ProxyInfo); |
lucaslin | 29278ee | 2021-03-22 11:51:27 +0800 | [diff] [blame^] | 22 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setLegacyLockdownVpnEnabled(boolean); |
Chalard Jean | 0a4aefc | 2021-03-03 16:37:13 +0900 | [diff] [blame] | 23 | method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setProfileNetworkPreference(@NonNull android.os.UserHandle, int, @Nullable java.util.concurrent.Executor, @Nullable Runnable); |
lucaslin | 29278ee | 2021-03-22 11:51:27 +0800 | [diff] [blame^] | 24 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setRequireVpnForUids(boolean, @NonNull java.util.Collection<android.util.Range<java.lang.Integer>>); |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 25 | 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 VAN | 8238a76 | 2021-03-16 18:06:06 +0900 | [diff] [blame] | 26 | 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); |
lucaslin | 10774b7 | 2021-03-17 14:16:01 +0800 | [diff] [blame] | 27 | method public void systemReady(); |
lucaslin | 889dcda | 2021-03-12 17:56:09 +0800 | [diff] [blame] | 28 | field public static final String PRIVATE_DNS_MODE_OFF = "off"; |
| 29 | field public static final String PRIVATE_DNS_MODE_OPPORTUNISTIC = "opportunistic"; |
| 30 | field public static final String PRIVATE_DNS_MODE_PROVIDER_HOSTNAME = "hostname"; |
Chalard Jean | bef6b09 | 2021-03-17 14:33:24 +0900 | [diff] [blame] | 31 | field public static final int PROFILE_NETWORK_PREFERENCE_DEFAULT = 0; // 0x0 |
| 32 | field public static final int PROFILE_NETWORK_PREFERENCE_ENTERPRISE = 1; // 0x1 |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | public final class NetworkAgentConfig implements android.os.Parcelable { |
| 36 | method @Nullable public String getSubscriberId(); |
lucaslin | 0e345e9 | 2021-03-22 15:07:41 +0800 | [diff] [blame] | 37 | method public boolean isBypassableVpn(); |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | public static final class NetworkAgentConfig.Builder { |
lucaslin | 0e345e9 | 2021-03-22 15:07:41 +0800 | [diff] [blame] | 41 | method @NonNull public android.net.NetworkAgentConfig.Builder setBypassableVpn(boolean); |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 42 | method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String); |
| 43 | } |
| 44 | |
| 45 | public final class NetworkCapabilities implements android.os.Parcelable { |
Roshan Pius | e2d2838 | 2021-02-23 08:47:39 -0800 | [diff] [blame] | 46 | ctor public NetworkCapabilities(@Nullable android.net.NetworkCapabilities, long); |
Chiachang Wang | 628cb11 | 2021-03-19 00:45:39 +0000 | [diff] [blame] | 47 | method @Nullable public java.util.Set<android.util.Range<java.lang.Integer>> getUids(); |
junyulai | b15b7db | 2021-03-16 10:24:43 +0800 | [diff] [blame] | 48 | method public boolean hasUnwantedCapability(int); |
Roshan Pius | e2d2838 | 2021-02-23 08:47:39 -0800 | [diff] [blame] | 49 | field public static final long REDACT_ALL = -1L; // 0xffffffffffffffffL |
| 50 | field public static final long REDACT_FOR_ACCESS_FINE_LOCATION = 1L; // 0x1L |
| 51 | field public static final long REDACT_FOR_LOCAL_MAC_ADDRESS = 2L; // 0x2L |
| 52 | field public static final long REDACT_FOR_NETWORK_SETTINGS = 4L; // 0x4L |
| 53 | field public static final long REDACT_NONE = 0L; // 0x0L |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 54 | field public static final int TRANSPORT_TEST = 7; // 0x7 |
| 55 | } |
| 56 | |
Chiachang Wang | 628cb11 | 2021-03-19 00:45:39 +0000 | [diff] [blame] | 57 | public static final class NetworkCapabilities.Builder { |
| 58 | method @NonNull public android.net.NetworkCapabilities.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>); |
| 59 | } |
| 60 | |
junyulai | b15b7db | 2021-03-16 10:24:43 +0800 | [diff] [blame] | 61 | public class NetworkRequest implements android.os.Parcelable { |
| 62 | method public boolean hasUnwantedCapability(int); |
| 63 | } |
| 64 | |
Chiachang Wang | 628cb11 | 2021-03-19 00:45:39 +0000 | [diff] [blame] | 65 | public static class NetworkRequest.Builder { |
junyulai | b15b7db | 2021-03-16 10:24:43 +0800 | [diff] [blame] | 66 | method @NonNull public android.net.NetworkRequest.Builder addUnwantedCapability(int); |
| 67 | method @NonNull public android.net.NetworkRequest.Builder removeUnwantedCapability(int); |
Chiachang Wang | 628cb11 | 2021-03-19 00:45:39 +0000 | [diff] [blame] | 68 | method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>); |
| 69 | } |
| 70 | |
Remi NGUYEN VAN | 25dcabf | 2021-03-15 10:20:40 +0900 | [diff] [blame] | 71 | public class ParseException extends java.lang.RuntimeException { |
| 72 | ctor public ParseException(@NonNull String); |
| 73 | ctor public ParseException(@NonNull String, @NonNull Throwable); |
| 74 | } |
| 75 | |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 76 | public final class TcpRepairWindow { |
| 77 | ctor public TcpRepairWindow(int, int, int, int, int, int); |
| 78 | field public final int maxWindow; |
| 79 | field public final int rcvWnd; |
| 80 | field public final int rcvWndScale; |
| 81 | field public final int rcvWup; |
| 82 | field public final int sndWl1; |
| 83 | field public final int sndWnd; |
| 84 | } |
| 85 | |
| 86 | public final class TestNetworkInterface implements android.os.Parcelable { |
| 87 | ctor public TestNetworkInterface(@NonNull android.os.ParcelFileDescriptor, @NonNull String); |
| 88 | method public int describeContents(); |
| 89 | method @NonNull public android.os.ParcelFileDescriptor getFileDescriptor(); |
| 90 | method @NonNull public String getInterfaceName(); |
| 91 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 92 | field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkInterface> CREATOR; |
| 93 | } |
| 94 | |
| 95 | public class TestNetworkManager { |
| 96 | method @NonNull public android.net.TestNetworkInterface createTapInterface(); |
| 97 | method @NonNull public android.net.TestNetworkInterface createTunInterface(@NonNull java.util.Collection<android.net.LinkAddress>); |
| 98 | method public void setupTestNetwork(@NonNull String, @NonNull android.os.IBinder); |
| 99 | method public void teardownTestNetwork(@NonNull android.net.Network); |
| 100 | field public static final String TEST_TAP_PREFIX = "testtap"; |
| 101 | } |
| 102 | |
Remi NGUYEN VAN | ea33ac9 | 2021-02-04 14:20:19 +0900 | [diff] [blame] | 103 | public final class TestNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { |
| 104 | ctor public TestNetworkSpecifier(@NonNull String); |
| 105 | method public int describeContents(); |
| 106 | method @Nullable public String getInterfaceName(); |
| 107 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 108 | field @NonNull public static final android.os.Parcelable.Creator<android.net.TestNetworkSpecifier> CREATOR; |
| 109 | } |
| 110 | |
Roshan Pius | e2d2838 | 2021-02-23 08:47:39 -0800 | [diff] [blame] | 111 | public interface TransportInfo { |
| 112 | method public default long getApplicableRedactions(); |
| 113 | method @NonNull public default android.net.TransportInfo makeCopy(long); |
| 114 | } |
| 115 | |
Remi NGUYEN VAN | f15fc7f | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 116 | public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo { |
| 117 | ctor public VpnTransportInfo(int); |
| 118 | method public int describeContents(); |
| 119 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 120 | field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CREATOR; |
| 121 | field public final int type; |
| 122 | } |
| 123 | |
| 124 | } |
| 125 | |