Home
last modified time | relevance | path

Searched refs:UPSTREAM_IFACE (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java130 private static final String UPSTREAM_IFACE = "upstream0"; field in IpServerTest
147 UPSTREAM_IFACE, UPSTREAM_IFINDEX, MacAddress.ALL_ZEROS_ADDRESS, 1500 /* defaultMtu */);
205 when(mDependencies.getInterfaceParams(UPSTREAM_IFACE)).thenReturn(UPSTREAM_IFACE_PARAMS); in initStateMachine()
460 dispatchTetherConnectionChanged(UPSTREAM_IFACE); in handlesFirstUpstreamChange()
465 UPSTREAM_IFACE); in handlesFirstUpstreamChange()
466 inOrder.verify(mBpfCoordinator).maybeAttachProgram(IFACE_NAME, UPSTREAM_IFACE); in handlesFirstUpstreamChange()
467 inOrder.verify(mNetd).tetherAddForward(IFACE_NAME, UPSTREAM_IFACE); in handlesFirstUpstreamChange()
468 inOrder.verify(mNetd).ipfwdAddInterfaceForward(IFACE_NAME, UPSTREAM_IFACE); in handlesFirstUpstreamChange()
475 initTetheredStateMachine(TETHERING_BLUETOOTH, UPSTREAM_IFACE); in handlesChangingUpstream()
481 inOrder.verify(mBpfCoordinator).maybeDetachProgram(IFACE_NAME, UPSTREAM_IFACE); in handlesChangingUpstream()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java198 private static final String UPSTREAM_IFACE = "rmnet0"; field in BpfCoordinatorTest
255 UPSTREAM_IFACE, UPSTREAM_IFINDEX, null /* macAddr, rawip */,
613 when(mIpServerDeps.getInterfaceParams(UPSTREAM_IFACE)).thenReturn(UPSTREAM_IFACE_PARAMS); in makeAndStartIpServer()
632 lp.setInterfaceName(UPSTREAM_IFACE); in makeAndStartIpServer()
634 dispatchTetherConnectionChanged(ipServer, UPSTREAM_IFACE, lp, 0); in makeAndStartIpServer()
1945 mTetherStatsProvider.onSetLimit(UPSTREAM_IFACE, limit); in testSetDataLimitOnRule4Change()
2019 coordinator.maybeAddUpstreamToLookupTable(UPSTREAM_IFINDEX, UPSTREAM_IFACE); in testAddDevMapRule6()
2574 coordinator.maybeAddUpstreamToLookupTable(UPSTREAM_IFINDEX, UPSTREAM_IFACE); in testDumpDoesNotCrash()
2743 coordinator.maybeAddUpstreamToLookupTable(UPSTREAM_IFINDEX, UPSTREAM_IFACE); in verifyUpdateUpstreamNetworkState()
2744 doReturn(UPSTREAM_IFACE_PARAMS).when(mDeps).getInterfaceParams(UPSTREAM_IFACE); in verifyUpdateUpstreamNetworkState()
[all …]