Home
last modified time | relevance | path

Searched refs:tnm (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestNetworkTracker.kt94 val tnm = context.getSystemService(TestNetworkManager::class.java)!! in initTestNetwork() constant
95 val iface = if (isAtLeastS()) tnm.createTunInterface(linkAddrs) in initTestNetwork()
96 else tnm.createTunInterface(linkAddrs.toTypedArray()) in initTestNetwork()
100 return TestNetworkTracker(context, iface, tnm, lpWithIface, setupTimeoutMs) in initTestNetwork()
111 val tnm: TestNetworkManager, constant in com.android.testutils.TestNetworkTracker
141 tnm.setupTestNetwork(lp, true /* isMetered */, binder)
143 tnm.setupTestNetwork(iface.interfaceName, binder)
156 tnm.teardownTestNetwork(network) in teardown()
DPacketBridge.kt49 private val tnm = context.getSystemService(TestNetworkManager::class.java)!! constant
53 private val internalIface = tnm.createTunInterface(addresses)
55 private val externalIface = tnm.createTunInterface(addresses)
132 tnm.setupTestNetwork(lp, true /* isMetered */, binder) in createTestNetwork()
DTapPacketReaderRule.kt82 val tnm = ctx.getSystemService(TestNetworkManager::class.java) in start() constant
84 tnm.createTapInterface() in start()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DTestNetworkRunnable.java60 final TestNetworkManager tnm = sContext.getSystemService(TestNetworkManager.class); in runTest() local
81 testIface = tnm.createTunInterface(linkAddresses); in runTest()
101 tnm.teardownTestNetwork(testNetwork); in runTest()
DConnectivityDiagnosticsManagerTest.java215 final TestNetworkManager tnm = mContext.getSystemService(TestNetworkManager.class); in tearDown() local
216 tnm.teardownTestNetwork(mTestNetwork); in tearDown()
503 final TestNetworkManager tnm = in setUpTestNetwork()
505 final TestNetworkInterface tni = tnm.createTunInterface(new LinkAddress[0]); in setUpTestNetwork()
506 tnm.setupTestNetwork(tni.getInterfaceName(), administratorUids, BINDER); in setUpTestNetwork()
DNetworkValidationTest.kt87 private val tnm by lazy { context.assertHasService(TestNetworkManager::class.java) } in <lambda>() constant in android.net.cts.NetworkValidationTest
122 iface = tnm.createTapInterface() in setUp()
DEthernetManagerTest.kt156 private val tnm: TestNetworkManager in <lambda>() constant
161 tnm = runAsShell(MANAGE_TEST_NETWORKS) { in <lambda>()
169 tnm.createTapInterface(hasCarrier, false /* bringUp */) in <lambda>()
186 tnm.setCarrierEnabled(tapInterface, enabled) in <lambda>()
DDscpPolicyTest.kt163 val tnm = realContext.getSystemService(TestNetworkManager::class.java)!! in <lambda>() constant
167 iface = tnm.createTapInterface(arrayOf(LinkAddress(LOCAL_IPV4_ADDRESS, IP4_PREFIX_LEN))) in <lambda>()
DConnectivityManagerTest.java2416 final TestNetworkManager tnm = runWithShellPermissionIdentity(() ->
2420 tnm.createTunInterface(new LinkAddress[]{TEST_LINKADDR}),
2453 tnm.setupTestNetwork(testNetworkInterface.getInterfaceName(), binder),
2476 tnm.teardownTestNetwork(n);
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt103 val tnm = context.assertHasService(TestNetworkManager::class) in setUp() constant
104 iface = tnm.createTapInterface() in setUp()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1837 final TestNetworkManager tnm = mTestContext.getSystemService(TestNetworkManager.class); in testBlockIncomingPackets()
1838 final TestNetworkInterface iface = tnm.createTunInterface(List.of( in testBlockIncomingPackets()
1960 final TestNetworkManager tnm = mTestContext.getSystemService(TestNetworkManager.class); in doTestDropPacketToVpnAddress()
1966 final TestNetworkInterface iface = tnm.createTunInterface(linkAddresses); in doTestDropPacketToVpnAddress()
1967 tnm.setupTestNetwork(iface.getInterfaceName(), new Binder()); in doTestDropPacketToVpnAddress()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DEthernetTetheringTestBase.java645 TestNetworkManager tnm = runAsShell(MANAGE_TEST_NETWORKS, () -> in createTestInterface() local
648 tnm.createTapInterface()); in createTestInterface()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java871 final TestNetworkManager tnm =
874 return tnm.createTapInterface(true /* carrierUp */, true /* bringUp */,
879 return tnm.createTapInterface();
903 final TestNetworkManager tnm =
905 return tnm.createTapInterface(false /* bringUp */, CLAT_PREFIX + baseIface);