Delete unused createTapInterface method
Test: TH Change-Id: Iab107c5804204295e714775b3b026a8e64795378
This commit is contained in:
parent
2bef486f76
commit
d14f094e12
1 changed files with 0 additions and 20 deletions
|
|
@ -197,26 +197,6 @@ public class TestNetworkManager {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a tap interface for testing purposes
|
||||
*
|
||||
* @param bringUp whether to bring up the interface before returning it.
|
||||
*
|
||||
* @return A ParcelFileDescriptor of the underlying TAP interface. Close this to tear down the
|
||||
* TAP interface.
|
||||
* @hide
|
||||
*/
|
||||
@RequiresPermission(Manifest.permission.MANAGE_TEST_NETWORKS)
|
||||
@NonNull
|
||||
public TestNetworkInterface createTapInterface(boolean bringUp) {
|
||||
try {
|
||||
return mService.createInterface(TAP, CARRIER_UP, bringUp, USE_IPV6_PROV_DELAY,
|
||||
NO_ADDRS, null /* iface */);
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a tap interface with a given interface name for testing purposes
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue