Home
last modified time | relevance | path

Searched refs:mTetherConfig (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java183 @Mock private TetheringConfiguration mTetherConfig; field in IpServerTest
218 when(mTetherConfig.isBpfOffloadEnabled()).thenReturn(usingBpfOffload); in initStateMachine()
219 when(mTetherConfig.useLegacyDhcpServer()).thenReturn(usingLegacyDhcp); in initStateMachine()
220 when(mTetherConfig.getP2pLeasesSubnetPrefixLength()).thenReturn(P2P_SUBNET_PREFIX_LENGTH); in initStateMachine()
281 when(mTetherConfig.isBpfOffloadEnabled()).thenReturn(DEFAULT_USING_BPF_OFFLOAD); in setUp()
282 when(mTetherConfig.useLegacyDhcpServer()).thenReturn(false /* default value */); in setUp()
310 mRoutingCoordinatorManager, mCallback, mTetherConfig, mAddressCoordinator, in createIpServer()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java123 @Mock private TetheringConfiguration mTetherConfig; field in OffloadControllerTest
136 return mTetherConfig;
148 when(mTetherConfig.getOffloadPollInterval()).thenReturn(-1); // Disabled. in setUp()
169 when(mTetherConfig.getOffloadPollInterval()).thenReturn(interval); in setOffloadPollInterval()
DBpfCoordinatorTest.java449 @Mock private TetheringConfiguration mTetherConfig; field in BpfCoordinatorTest
516 return mTetherConfig;
575 when(mTetherConfig.isBpfOffloadEnabled()).thenReturn(true /* default value */); in setUp()
625 bpfCoordinator, mRoutingCoordinatorManager, mIpServerCallback, mTetherConfig, in makeAndStartIpServer()
1590 when(mTetherConfig.isBpfOffloadEnabled()).thenReturn(false); in testBpfDisabledbyConfig()
1764 when(mTetherConfig.getOffloadPollInterval()).thenReturn(interval); in testTetheringConfigSetPollingInterval()
1774 when(mTetherConfig.getOffloadPollInterval()).thenReturn(pollingInterval); in testTetheringConfigSetPollingInterval()
3031 when(mTetherConfig.isBpfOffloadEnabled()).thenReturn(false); in enableDisableUsingBpfOffload()
3054 when(mTetherConfig.isBpfOffloadEnabled()).thenReturn(false); in doesNotStartIpNeighborMonitorIfBpfOffloadDisabled()