Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DTetherInterfaceStateMachineTest.java62 @Mock private INetworkManagementService mNMService; field in TetherInterfaceStateMachineTest
75 mNMService, mStatsService, mTetherHelper, mIPv6TetheringInterfaceServices); in initStateMachine()
80 reset(mNMService, mStatsService, mTetherHelper); in initStateMachine()
81 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration); in initStateMachine()
90 reset(mNMService, mStatsService, mTetherHelper); in initTetheredStateMachine()
91 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration); in initTetheredStateMachine()
102 TETHERING_BLUETOOTH, mSharedLog, mNMService, mStatsService, mTetherHelper, in startsOutAvailable()
108 verifyNoMoreInteractions(mTetherHelper, mNMService, mStatsService); in startsOutAvailable()
127 verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper); in shouldDoNothingUntilRequested()
138 verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper); in handlesImmediateInterfaceDown()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java83 @Mock private INetworkManagementService mNMService; field in TetheringTest
132 when(mNMService.listInterfaces()) in setUp()
134 when(mNMService.getInterfaceConfig(anyString())) in setUp()
147 mTethering = new Tethering(mServiceContext, mNMService, mStatsService, mPolicyManager, in setUp()
223 verify(mNMService, times(1)).getInterfaceConfig(mTestIfname); in verifyInterfaceServingModeStarted()
224 verify(mNMService, times(1)) in verifyInterfaceServingModeStarted()
226 verify(mNMService, times(1)).tetherInterface(mTestIfname); in verifyInterfaceServingModeStarted()
259 verifyNoMoreInteractions(mNMService); in failingLocalOnlyHotspotLegacyApBroadcast()
288 verify(mNMService, times(1)).setIpForwardingEnabled(true); in workingLocalOnlyHotspotEnrichedApBroadcast()
289 verify(mNMService, times(1)).startTethering(any(String[].class)); in workingLocalOnlyHotspotEnrichedApBroadcast()
[all …]
/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.java164 private final INetworkManagementService mNMService; field in Tethering
190 mNMService = nmService; in Tethering()
871 ifaces = mNMService.listInterfaces(); in tetherMatchingInterfaces()
1159 mNMService.setIpForwardingEnabled(true); in turnOnMasterTetherSettings()
1168 mNMService.startTethering(cfg.dhcpRanges); in turnOnMasterTetherSettings()
1171 mNMService.stopTethering(); in turnOnMasterTetherSettings()
1172 mNMService.startTethering(cfg.dhcpRanges); in turnOnMasterTetherSettings()
1185 mNMService.stopTethering(); in turnOffMasterTetherSettings()
1192 mNMService.setIpForwardingEnabled(false); in turnOffMasterTetherSettings()
1324 mNMService.setDnsForwarders(network, dnsServers); in setDnsForwarders()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetherInterfaceStateMachine.java87 private final INetworkManagementService mNMService; field in TetherInterfaceStateMachine
104 mNMService = nMService; in TetherInterfaceStateMachine()
153 ifcg = mNMService.getInterfaceConfig(mIfaceName); in configureIfaceIp()
170 mNMService.setInterfaceConfig(mIfaceName, ifcg); in configureIfaceIp()
241 mNMService.tetherInterface(mIfaceName); in enter()
263 mNMService.untetherInterface(mIfaceName); in exit()
381 mNMService.stopInterfaceForwarding(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
386 mNMService.disableNat(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
413 mNMService.enableNat(mIfaceName, newUpstreamIfaceName); in processMessage()
414 mNMService.startInterfaceForwarding(mIfaceName, in processMessage()
DIPv6TetheringInterfaceServices.java56 private final INetworkManagementService mNMService; field in IPv6TetheringInterfaceServices
68 mNMService = nms; in IPv6TetheringInterfaceServices()
165 final int removalFailures = mNMService.removeRoutesFromLocalNetwork(toBeRemoved); in configureLocalRoutes()
199 mNMService.addInterfaceToLocalNetwork(mIfName, toBeAdded); in configureLocalRoutes()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java86 private INetworkManagementService mNMService; field in EthernetNetworkFactory
206 mNMService.setInterfaceUp(iface); in setInterfaceUp()
208 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in setInterfaceUp()
221 mNMService.setInterfaceDown(iface); in setInterfaceUp()
257 InterfaceConfiguration config = mNMService.getInterfaceConfig(mIface); in setStaticIpAddress()
259 mNMService.setInterfaceConfig(mIface, config); in setStaticIpAddress()
394 mNMService = INetworkManagementService.Stub.asInterface(b); in start()
412 mNMService.registerObserver(mInterfaceObserver); in start()
424 final String[] ifaces = mNMService.listInterfaces(); in trackFirstAvailableInterface()
431 if (mNMService.getInterfaceConfig(iface).hasFlag("running")) { in trackFirstAvailableInterface()
/frameworks/base/tests/net/java/android/net/ip/
DIpManagerTest.java48 @Mock private INetworkManagementService mNMService; field in IpManagerTest
66 final IpManager ipm = new IpManager(mContext, "lo", null, mNMService); in testNullCallbackDoesNotThrow()
72 final IpManager ipm = new IpManager(mContext, "test_wlan0", cb, mNMService); in testInvalidInterfaceDoesNotThrow()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkManagementServiceTest.java46 private NetworkManagementService mNMService; field in NetworkManagementServiceTest
62 mNMService = NetworkManagementService.create(context, SOCKET_NAME); in setUp()
92 mNMService.registerObserver(observer); in testNetworkObservers()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiStateMachinePrimeTest.java59 @Mock INetworkManagementService mNMService; field in WifiStateMachinePrimeTest
80 return new WifiStateMachinePrime(mWifiInjector, mLooper.getLooper(), mNMService); in createWifiStateMachinePrime()
108 assertEquals(mNMService, (INetworkManagementService) args[0]); in enterSoftApActiveMode()
138 new WifiStateMachinePrime(mWifiInjector, mLooper.getLooper(), mNMService); in testWificondExistsOnStartup()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachinePrime.java49 private final INetworkManagementService mNMService; field in WifiStateMachinePrime
72 mNMService = nmService; in WifiStateMachinePrime()
419 this.mActiveModeManager = mWifiInjector.makeSoftApManager(mNMService, in enter()
/frameworks/base/core/java/android/net/
DConnectivityManager.java622 private INetworkManagementService mNMService; field in ConnectivityManager
1769 if (mNMService != null) { in getNetworkManagementService()
1770 return mNMService; in getNetworkManagementService()
1773 mNMService = INetworkManagementService.Stub.asInterface(b); in getNetworkManagementService()
1774 return mNMService; in getNetworkManagementService()