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

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
H A DTetherInterfaceStateMachineTest.java73 @Mock private INetworkManagementService mNMService; field in class:TetherInterfaceStateMachineTest
87 mNMService, mStatsService, mTetherHelper);
92 reset(mNMService, mStatsService, mTetherHelper);
93 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration);
102 reset(mNMService, mStatsService, mTetherHelper);
103 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration);
114 TETHERING_BLUETOOTH, mSharedLog, mNMService, mStatsService, mTetherHelper);
120 verifyNoMoreInteractions(mTetherHelper, mNMService, mStatsService);
139 verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper);
151 verifyNoMoreInteractions(mNMService, mStatsServic
[all...]
H A DOffloadControllerTest.java96 @Mock private INetworkManagementService mNMService; field in class:OffloadControllerTest
140 mHardware, mContentResolver, mNMService, new SharedLog("test"));
141 verify(mNMService).registerTetheringStatsProvider(
554 verify(mNMService, times(1)).tetherLimitReached(mTetherStatsProviderCaptor.getValue());
653 verify(mNMService, times(1)).tetherLimitReached(mTetherStatsProviderCaptor.getValue());
654 verifyNoMoreInteractions(mNMService);
713 verify(mNMService, times(1)).tetherLimitReached(mTetherStatsProviderCaptor.getValue());
714 verifyNoMoreInteractions(mNMService);
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DTetheringTest.java97 @Mock private INetworkManagementService mNMService; field in class:TetheringTest
159 when(mNMService.listInterfaces())
161 when(mNMService.getInterfaceConfig(anyString()))
178 mTethering = new Tethering(mServiceContext, mNMService, mStatsService, mPolicyManager,
181 verify(mNMService).registerTetheringStatsProvider(any(), anyString());
264 verify(mNMService, times(1)).getInterfaceConfig(mTestIfname);
265 verify(mNMService, times(1))
267 verify(mNMService, times(1)).tetherInterface(mTestIfname);
300 verifyNoMoreInteractions(mNMService);
320 verifyNoMoreInteractions(mNMService);
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNat464Xlat.java55 private final INetworkManagementService mNMService; field in class:Nat464Xlat
73 mNMService = nmService;
130 mNMService.registerObserver(this);
137 mNMService.startClatd(baseIface);
164 mNMService.stopClatd(mBaseIface);
177 mNMService.unregisterObserver(this);
206 // TODO: should we only do this if mNMService.startClatd() succeeds?
270 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
285 mNMService.setInterfaceIpv6NdOffload(iface, on);
H A DTethering.java172 private final INetworkManagementService mNMService; field in class:Tethering
202 mNMService = nmService;
218 mContext.getContentResolver(), mNMService,
960 ifaces = mNMService.listInterfaces();
1259 mNMService.setIpForwardingEnabled(true);
1268 mNMService.startTethering(cfg.dhcpRanges);
1271 mNMService.stopTethering();
1272 mNMService.startTethering(cfg.dhcpRanges);
1285 mNMService.stopTethering();
1292 mNMService
[all...]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java86 private INetworkManagementService mNMService; field in class:EthernetNetworkFactory
206 mNMService.setInterfaceUp(iface);
208 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
221 mNMService.setInterfaceDown(iface);
257 InterfaceConfiguration config = mNMService.getInterfaceConfig(mIface);
259 mNMService.setInterfaceConfig(mIface, config);
394 mNMService = INetworkManagementService.Stub.asInterface(b);
412 mNMService.registerObserver(mInterfaceObserver);
424 final String[] ifaces = mNMService.listInterfaces();
431 if (mNMService
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DTetherInterfaceStateMachine.java109 private final INetworkManagementService mNMService; field in class:TetherInterfaceStateMachine
138 mNMService = nMService;
202 final InterfaceConfiguration ifcg = mNMService.getInterfaceConfig(mIfaceName);
224 mNMService.setInterfaceConfig(mIfaceName, ifcg);
335 final int removalFailures = mNMService.removeRoutesFromLocalNetwork(toBeRemoved);
372 mNMService.addInterfaceToLocalNetwork(mIfaceName, toBeAdded);
516 mNMService.tetherInterface(mIfaceName);
538 mNMService.untetherInterface(mIfaceName);
658 mNMService.stopInterfaceForwarding(mIfaceName, upstreamIface);
663 mNMService
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkManagementServiceTest.java46 private NetworkManagementService mNMService; field in class:NetworkManagementServiceTest
62 mNMService = NetworkManagementService.create(context, SOCKET_NAME);
92 mNMService.registerObserver(observer);
/frameworks/base/tests/net/java/android/net/ip/
H A DIpManagerTest.java82 @Mock private INetworkManagementService mNMService; field in class:IpManagerTest
106 final IpManager ipm = new IpManager(mContext, ifname, mCb, mNMService, mNetd);
107 verify(mNMService, timeout(100).times(1)).disableIpv6(ifname);
108 verify(mNMService, timeout(100).times(1)).clearInterfaceAddresses(ifname);
111 verify(mNMService, times(1)).registerObserver(arg.capture());
113 reset(mNMService);
119 final IpManager ipm = new IpManager(mContext, "lo", null, mNMService);
124 final IpManager ipm = new IpManager(mContext, "test_wlan0", mCb, mNMService);
145 verify(mNMService, timeout(100).times(1)).disableIpv6(iface);
146 verify(mNMService, timeou
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiStateMachinePrimeTest.java59 @Mock INetworkManagementService mNMService; field in class:WifiStateMachinePrimeTest
80 return new WifiStateMachinePrime(mWifiInjector, mLooper.getLooper(), mNMService);
108 assertEquals(mNMService, (INetworkManagementService) args[0]);
138 new WifiStateMachinePrime(mWifiInjector, mLooper.getLooper(), mNMService);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiStateMachinePrime.java49 private final INetworkManagementService mNMService; field in class:WifiStateMachinePrime
72 mNMService = nmService;
419 this.mActiveModeManager = mWifiInjector.makeSoftApManager(mNMService,
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java633 private INetworkManagementService mNMService; field in class:ConnectivityManager
1798 if (mNMService != null) {
1799 return mNMService;
1802 mNMService = INetworkManagementService.Stub.asInterface(b);
1803 return mNMService;

Completed in 265 milliseconds