Merge "Make Ethernet interfaces more testable." am: e7ff9d5e6d am: 6b37362b14
Change-Id: I5a73dc5ad6576573bcac6c7ac6f1270dfbb97470
This commit is contained in:
@@ -199,6 +199,21 @@ public class EthernetManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to treat interfaces created by {@link TestNetworkManager#createTapInterface}
|
||||||
|
* as Ethernet interfaces. The effects of this method apply to any test interfaces that are
|
||||||
|
* already present on the system.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
@TestApi
|
||||||
|
public void setIncludeTestInterfaces(boolean include) {
|
||||||
|
try {
|
||||||
|
mService.setIncludeTestInterfaces(include);
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
throw e.rethrowFromSystemServer();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A request for a tethered interface.
|
* A request for a tethered interface.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ interface IEthernetManager
|
|||||||
boolean isAvailable(String iface);
|
boolean isAvailable(String iface);
|
||||||
void addListener(in IEthernetServiceListener listener);
|
void addListener(in IEthernetServiceListener listener);
|
||||||
void removeListener(in IEthernetServiceListener listener);
|
void removeListener(in IEthernetServiceListener listener);
|
||||||
|
void setIncludeTestInterfaces(boolean include);
|
||||||
void requestTetheredInterface(in ITetheredInterfaceCallback callback);
|
void requestTetheredInterface(in ITetheredInterfaceCallback callback);
|
||||||
void releaseTetheredInterface(in ITetheredInterfaceCallback callback);
|
void releaseTetheredInterface(in ITetheredInterfaceCallback callback);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user