diff options
Diffstat (limited to 'core/java/android/net/EthernetManager.java')
| -rw-r--r-- | core/java/android/net/EthernetManager.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/net/EthernetManager.java b/core/java/android/net/EthernetManager.java index 83b5f63576f2..d975017f9c8e 100644 --- a/core/java/android/net/EthernetManager.java +++ b/core/java/android/net/EthernetManager.java @@ -200,6 +200,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. */ public static class TetheredInterfaceRequest { |
