Merge "Freeze networkstack-aidl-interfaces as version 3." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9ff8ed8292
@@ -56,6 +56,7 @@ aidl_interface {
|
|||||||
versions: [
|
versions: [
|
||||||
"1",
|
"1",
|
||||||
"2",
|
"2",
|
||||||
|
"3",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package android.net;
|
||||||
|
parcelable DhcpResultsParcelable {
|
||||||
|
android.net.StaticIpConfiguration baseConfiguration;
|
||||||
|
int leaseDuration;
|
||||||
|
int mtu;
|
||||||
|
String serverAddress;
|
||||||
|
String vendorInfo;
|
||||||
|
String serverHostName;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package android.net;
|
||||||
|
interface INetworkMonitor {
|
||||||
|
oneway void start();
|
||||||
|
oneway void launchCaptivePortalApp();
|
||||||
|
oneway void notifyCaptivePortalAppFinished(int response);
|
||||||
|
oneway void setAcceptPartialConnectivity();
|
||||||
|
oneway void forceReevaluation(int uid);
|
||||||
|
oneway void notifyPrivateDnsChanged(in android.net.PrivateDnsConfigParcel config);
|
||||||
|
oneway void notifyDnsResponse(int returnCode);
|
||||||
|
oneway void notifyNetworkConnected(in android.net.LinkProperties lp, in android.net.NetworkCapabilities nc);
|
||||||
|
oneway void notifyNetworkDisconnected();
|
||||||
|
oneway void notifyLinkPropertiesChanged(in android.net.LinkProperties lp);
|
||||||
|
oneway void notifyNetworkCapabilitiesChanged(in android.net.NetworkCapabilities nc);
|
||||||
|
const int NETWORK_TEST_RESULT_VALID = 0;
|
||||||
|
const int NETWORK_TEST_RESULT_INVALID = 1;
|
||||||
|
const int NETWORK_TEST_RESULT_PARTIAL_CONNECTIVITY = 2;
|
||||||
|
const int NETWORK_VALIDATION_RESULT_VALID = 1;
|
||||||
|
const int NETWORK_VALIDATION_RESULT_PARTIAL = 2;
|
||||||
|
const int NETWORK_VALIDATION_PROBE_DNS = 4;
|
||||||
|
const int NETWORK_VALIDATION_PROBE_HTTP = 8;
|
||||||
|
const int NETWORK_VALIDATION_PROBE_HTTPS = 16;
|
||||||
|
const int NETWORK_VALIDATION_PROBE_FALLBACK = 32;
|
||||||
|
const int NETWORK_VALIDATION_PROBE_PRIVDNS = 64;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package android.net;
|
||||||
|
interface INetworkMonitorCallbacks {
|
||||||
|
oneway void onNetworkMonitorCreated(in android.net.INetworkMonitor networkMonitor);
|
||||||
|
oneway void notifyNetworkTested(int testResult, @nullable String redirectUrl);
|
||||||
|
oneway void notifyPrivateDnsConfigResolved(in android.net.PrivateDnsConfigParcel config);
|
||||||
|
oneway void showProvisioningNotification(String action, String packageName);
|
||||||
|
oneway void hideProvisioningNotification();
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package android.net;
|
||||||
|
interface INetworkStackConnector {
|
||||||
|
oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, in android.net.dhcp.IDhcpServerCallbacks cb);
|
||||||
|
oneway void makeNetworkMonitor(in android.net.Network network, String name, in android.net.INetworkMonitorCallbacks cb);
|
||||||
|
oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks);
|
||||||
|
oneway void fetchIpMemoryStore(in android.net.IIpMemoryStoreCallbacks cb);
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package android.net;
|
||||||
|
interface INetworkStackStatusCallback {
|
||||||
|
oneway void onStatusAvailable(int statusCode);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package android.net;
|
||||||
|
parcelable InitialConfigurationParcelable {
|
||||||
|
android.net.LinkAddress[] ipAddresses;
|
||||||
|
android.net.IpPrefix[] directlyConnectedRoutes;
|
||||||
|
String[] dnsServers;
|
||||||
|
String gateway;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package android.net;
|
||||||
|
parcelable NattKeepalivePacketDataParcelable {
|
||||||
|
byte[] srcAddress;
|
||||||
|
int srcPort;
|
||||||
|
byte[] dstAddress;
|
||||||
|
int dstPort;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package android.net;
|
||||||
|
parcelable PrivateDnsConfigParcel {
|
||||||
|
String hostname;
|
||||||
|
String[] ips;
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package android.net;
|
||||||
|
parcelable ProvisioningConfigurationParcelable {
|
||||||
|
boolean enableIPv4;
|
||||||
|
boolean enableIPv6;
|
||||||
|
boolean usingMultinetworkPolicyTracker;
|
||||||
|
boolean usingIpReachabilityMonitor;
|
||||||
|
int requestedPreDhcpActionMs;
|
||||||
|
android.net.InitialConfigurationParcelable initialConfig;
|
||||||
|
android.net.StaticIpConfiguration staticIpConfig;
|
||||||
|
android.net.apf.ApfCapabilities apfCapabilities;
|
||||||
|
int provisioningTimeoutMs;
|
||||||
|
int ipv6AddrGenMode;
|
||||||
|
android.net.Network network;
|
||||||
|
String displayName;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package android.net;
|
||||||
|
parcelable TcpKeepalivePacketDataParcelable {
|
||||||
|
byte[] srcAddress;
|
||||||
|
int srcPort;
|
||||||
|
byte[] dstAddress;
|
||||||
|
int dstPort;
|
||||||
|
int seq;
|
||||||
|
int ack;
|
||||||
|
int rcvWnd;
|
||||||
|
int rcvWndScale;
|
||||||
|
int tos;
|
||||||
|
int ttl;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package android.net.dhcp;
|
||||||
|
parcelable DhcpServingParamsParcel {
|
||||||
|
int serverAddr;
|
||||||
|
int serverAddrPrefixLength;
|
||||||
|
int[] defaultRouters;
|
||||||
|
int[] dnsServers;
|
||||||
|
int[] excludedAddrs;
|
||||||
|
long dhcpLeaseTimeSecs;
|
||||||
|
int linkMtu;
|
||||||
|
boolean metered;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package android.net.dhcp;
|
||||||
|
interface IDhcpServer {
|
||||||
|
oneway void start(in android.net.INetworkStackStatusCallback cb);
|
||||||
|
oneway void updateParams(in android.net.dhcp.DhcpServingParamsParcel params, in android.net.INetworkStackStatusCallback cb);
|
||||||
|
oneway void stop(in android.net.INetworkStackStatusCallback cb);
|
||||||
|
const int STATUS_UNKNOWN = 0;
|
||||||
|
const int STATUS_SUCCESS = 1;
|
||||||
|
const int STATUS_INVALID_ARGUMENT = 2;
|
||||||
|
const int STATUS_UNKNOWN_ERROR = 3;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package android.net.dhcp;
|
||||||
|
interface IDhcpServerCallbacks {
|
||||||
|
oneway void onDhcpServerCreated(int statusCode, in android.net.dhcp.IDhcpServer server);
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package android.net.ip;
|
||||||
|
interface IIpClient {
|
||||||
|
oneway void completedPreDhcpAction();
|
||||||
|
oneway void confirmConfiguration();
|
||||||
|
oneway void readPacketFilterComplete(in byte[] data);
|
||||||
|
oneway void shutdown();
|
||||||
|
oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req);
|
||||||
|
oneway void stop();
|
||||||
|
oneway void setTcpBufferSizes(in String tcpBufferSizes);
|
||||||
|
oneway void setHttpProxy(in android.net.ProxyInfo proxyInfo);
|
||||||
|
oneway void setMulticastFilter(boolean enabled);
|
||||||
|
oneway void addKeepalivePacketFilter(int slot, in android.net.TcpKeepalivePacketDataParcelable pkt);
|
||||||
|
oneway void removeKeepalivePacketFilter(int slot);
|
||||||
|
oneway void setL2KeyAndGroupHint(in String l2Key, in String groupHint);
|
||||||
|
oneway void addNattKeepalivePacketFilter(int slot, in android.net.NattKeepalivePacketDataParcelable pkt);
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package android.net.ip;
|
||||||
|
interface IIpClientCallbacks {
|
||||||
|
oneway void onIpClientCreated(in android.net.ip.IIpClient ipClient);
|
||||||
|
oneway void onPreDhcpAction();
|
||||||
|
oneway void onPostDhcpAction();
|
||||||
|
oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults);
|
||||||
|
oneway void onProvisioningSuccess(in android.net.LinkProperties newLp);
|
||||||
|
oneway void onProvisioningFailure(in android.net.LinkProperties newLp);
|
||||||
|
oneway void onLinkPropertiesChange(in android.net.LinkProperties newLp);
|
||||||
|
oneway void onReachabilityLost(in String logMsg);
|
||||||
|
oneway void onQuit();
|
||||||
|
oneway void installPacketFilter(in byte[] filter);
|
||||||
|
oneway void startReadPacketFilter();
|
||||||
|
oneway void setFallbackMulticastFilter(boolean enabled);
|
||||||
|
oneway void setNeighborDiscoveryOffload(boolean enable);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user