Home
last modified time | relevance | path

Searched refs:mNMService (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/tethering/
DTetherInterfaceStateMachineTest.java58 @Mock private INetworkManagementService mNMService; field in TetherInterfaceStateMachineTest
68 mNMService, mStatsService, mTetherHelper); in initStateMachine()
73 reset(mNMService, mStatsService, mTetherHelper); in initStateMachine()
74 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration); in initStateMachine()
83 reset(mNMService, mStatsService, mTetherHelper); in initTetheredStateMachine()
84 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration); in initTetheredStateMachine()
94 ConnectivityManager.TETHERING_BLUETOOTH, mNMService, mStatsService, mTetherHelper); in startsOutAvailable()
99 verifyNoMoreInteractions(mTetherHelper, mNMService, mStatsService); in startsOutAvailable()
118 verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper); in shouldDoNothingUntilRequested()
129 verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper); in handlesImmediateInterfaceDown()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetherInterfaceStateMachine.java84 private final INetworkManagementService mNMService; field in TetherInterfaceStateMachine
99 mNMService = nMService; in TetherInterfaceStateMachine()
104 mIPv6TetherSvc = new IPv6TetheringInterfaceServices(mIfaceName, mNMService); in TetherInterfaceStateMachine()
140 ifcg = mNMService.getInterfaceConfig(mIfaceName); in configureIfaceIp()
150 mNMService.setInterfaceConfig(mIfaceName, ifcg); in configureIfaceIp()
209 mNMService.tetherInterface(mIfaceName); in enter()
236 mNMService.untetherInterface(mIfaceName); in exit()
258 mNMService.stopInterfaceForwarding(mIfaceName, mMyUpstreamIfaceName); in cleanupUpstream()
264 mNMService.disableNat(mIfaceName, mMyUpstreamIfaceName); in cleanupUpstream()
297 mNMService.enableNat(mIfaceName, newUpstreamIfaceName); in processMessage()
[all …]
DIPv6TetheringInterfaceServices.java53 private final INetworkManagementService mNMService; field in IPv6TetheringInterfaceServices
63 mNMService = nms; in IPv6TetheringInterfaceServices()
152 final int removalFailures = mNMService.removeRoutesFromLocalNetwork(toBeRemoved); in configureLocalRoutes()
186 mNMService.addInterfaceToLocalNetwork(mIfName, toBeAdded); in configureLocalRoutes()
269 if (mNMService != null) { in getNetdServiceOrNull()
271 return mNMService.getNetdService(); in getNetdServiceOrNull()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java55 private final INetworkManagementService mNMService; field in Nat464Xlat
82 mNMService = nmService; in Nat464Xlat()
134 mNMService.registerObserver(this); in start()
150 mNMService.startClatd(mBaseIface); in start()
163 mNMService.stopClatd(mBaseIface); in stop()
221 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in getLinkAddress()
235 mNMService.setInterfaceIpv6NdOffload(iface, on); in maybeSetIpv6NdOffload()
276 mNMService.unregisterObserver(this); in interfaceRemoved()
277 mNMService.stopClatd(mBaseIface); in interfaceRemoved()
DTethering.java124 private final INetworkManagementService mNMService; field in Tethering
182 mNMService = nmService; in Tethering()
843 ifaces = mNMService.listInterfaces(); in tetherMatchingInterfaces()
1342 mNMService.setIpForwardingEnabled(true); in turnOnMasterTetherSettings()
1348 mNMService.startTethering(mDhcpRange); in turnOnMasterTetherSettings()
1351 mNMService.stopTethering(); in turnOnMasterTetherSettings()
1352 mNMService.startTethering(mDhcpRange); in turnOnMasterTetherSettings()
1363 mNMService.stopTethering(); in turnOffMasterTetherSettings()
1369 mNMService.setIpForwardingEnabled(false); in turnOffMasterTetherSettings()
1490 mNMService.setDnsForwarders(network, dnsServers); in setDnsForwarders()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java85 private INetworkManagementService mNMService; field in EthernetNetworkFactory
189 mNMService.setInterfaceUp(iface); in setInterfaceUp()
191 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in setInterfaceUp()
205 mNMService.setInterfaceDown(iface); in setInterfaceUp()
249 InterfaceConfiguration config = mNMService.getInterfaceConfig(mIface); in setStaticIpAddress()
251 mNMService.setInterfaceConfig(mIface, config); in setStaticIpAddress()
379 mNMService.clearInterfaceAddresses(mIface); in onRequestNetwork()
415 mNMService = INetworkManagementService.Stub.asInterface(b); in start()
433 mNMService.registerObserver(mInterfaceObserver); in start()
441 final String[] ifaces = mNMService.listInterfaces(); in start()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkManagementServiceTest.java45 private NetworkManagementService mNMService; field in NetworkManagementServiceTest
61 mNMService = NetworkManagementService.create(context, SOCKET_NAME); in setUp()
91 mNMService.registerObserver(observer); in testNetworkObservers()
/frameworks/base/core/java/android/net/
DConnectivityManager.java595 private INetworkManagementService mNMService; field in ConnectivityManager
1739 if (mNMService != null) { in getNetworkManagementService()
1740 return mNMService; in getNetworkManagementService()
1743 mNMService = INetworkManagementService.Stub.asInterface(b); in getNetworkManagementService()
1744 return mNMService; in getNetworkManagementService()