Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/ip/
DIpServerTest.java97 @Mock private INetworkManagementService mNMService; field in IpServerTest
136 mNMService, mStatsService, mCallback, usingLegacyDhcp, mDependencies); in initStateMachine()
141 reset(mNMService, mStatsService, mCallback); in initStateMachine()
142 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration); in initStateMachine()
159 reset(mNMService, mStatsService, mCallback); in initTetheredStateMachine()
160 when(mNMService.getInterfaceConfig(IFACE_NAME)).thenReturn(mInterfaceConfiguration); in initTetheredStateMachine()
171 TETHERING_BLUETOOTH, mSharedLog, mNMService, mStatsService, mCallback, in startsOutAvailable()
178 verifyNoMoreInteractions(mCallback, mNMService, mStatsService); in startsOutAvailable()
197 verifyNoMoreInteractions(mNMService, mStatsService, mCallback); in shouldDoNothingUntilRequested()
209 verifyNoMoreInteractions(mNMService, mStatsService, mCallback); in handlesImmediateInterfaceDown()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java144 @Mock private INetworkManagementService mNMService; field in TetheringTest
351 when(mNMService.listInterfaces()) in setUp()
354 when(mNMService.getInterfaceConfig(anyString())) in setUp()
374 verify(mNMService).registerTetheringStatsProvider(any(), anyString()); in setUp()
378 return new Tethering(mServiceContext, mNMService, mStatsService, mPolicyManager, in makeTethering()
416 verify(mNMService, times(1)).getInterfaceConfig(TEST_WLAN_IFNAME); in verifyInterfaceServingModeStarted()
417 verify(mNMService, times(1)) in verifyInterfaceServingModeStarted()
419 verify(mNMService, times(1)).tetherInterface(TEST_WLAN_IFNAME); in verifyInterfaceServingModeStarted()
449 verifyNoMoreInteractions(mNMService); in failingLocalOnlyHotspotLegacyApBroadcast()
472 verifyNoMoreInteractions(mNMService); in testUsbConfiguredBroadcastStartsTethering()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DNetworkManagementServiceTest.java59 private NetworkManagementService mNMService; field in NetworkManagementServiceTest
94 mNMService = NetworkManagementService.create(mContext, mServices); in setUp()
99 mNMService.shutdown(); in tearDown()
113 mNMService.registerObserver(observer); in testNetworkObservers()
/frameworks/base/services/net/java/android/net/ip/
DIpServer.java182 private final INetworkManagementService mNMService; field in IpServer
219 mNMService = nMService; in IpServer()
414 final InterfaceConfiguration ifcg = mNMService.getInterfaceConfig(mIfaceName); in configureIPv4()
439 mNMService.setInterfaceConfig(mIfaceName, ifcg); in configureIPv4()
556 final int removalFailures = mNMService.removeRoutesFromLocalNetwork(toBeRemoved); in configureLocalIPv6Routes()
583 mNMService.addInterfaceToLocalNetwork(mIfaceName, toBeAdded); in configureLocalIPv6Routes()
733 mNMService.tetherInterface(mIfaceName); in enter()
755 mNMService.untetherInterface(mIfaceName); in exit()
875 mNMService.stopInterfaceForwarding(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
880 mNMService.disableNat(mIfaceName, upstreamIface); in cleanupUpstreamInterface()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java71 private final INetworkManagementService mNMService; field in Nat464Xlat
93 mNMService = nmService; in Nat464Xlat()
173 mNMService.registerObserver(this); in enterStartingState()
208 mNMService.unregisterObserver(this); in leaveStartedState()
367 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in getLinkAddress()
DTethering.java174 private final INetworkManagementService mNMService; field in Tethering
208 mNMService = nmService; in Tethering()
224 mContext.getContentResolver(), mNMService, in Tethering()
886 ifaces = mNMService.listInterfaces(); in tetherMatchingInterfaces()
1148 mNMService.setIpForwardingEnabled(true); in turnOnMasterTetherSettings()
1161 mNMService.startTethering(dhcpRanges); in turnOnMasterTetherSettings()
1164 mNMService.stopTethering(); in turnOnMasterTetherSettings()
1165 mNMService.startTethering(dhcpRanges); in turnOnMasterTetherSettings()
1178 mNMService.stopTethering(); in turnOffMasterTetherSettings()
1185 mNMService.setIpForwardingEnabled(false); in turnOffMasterTetherSettings()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java76 private final INetworkManagementService mNMService; field in EthernetTracker
91 mNMService = INetworkManagementService.Stub.asInterface(b); in EthernetTracker()
122 mNMService.registerObserver(new InterfaceObserver()); in start()
178 mNMService.setInterfaceUp(iface); in addInterface()
179 config = mNMService.getInterfaceConfig(iface); in addInterface()
257 final String[] ifaces = mNMService.listInterfaces(); in trackAvailableInterfaces()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java97 @Mock private INetworkManagementService mNMService; field in OffloadControllerTest
141 mHardware, mContentResolver, mNMService, new SharedLog("test")); in makeOffloadController()
142 verify(mNMService).registerTetheringStatsProvider( in makeOffloadController()
555 verify(mNMService, times(1)).tetherLimitReached(mTetherStatsProviderCaptor.getValue()); in testDataLimitCallback()
654 verify(mNMService, times(1)).tetherLimitReached(mTetherStatsProviderCaptor.getValue()); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
655 verifyNoMoreInteractions(mNMService); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
714 verify(mNMService, times(1)).tetherLimitReached(mTetherStatsProviderCaptor.getValue()); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
715 verifyNoMoreInteractions(mNMService); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
/frameworks/base/core/java/android/net/
DConnectivityManager.java790 private INetworkManagementService mNMService; field in ConnectivityManager
2176 if (mNMService != null) { in getNetworkManagementService()
2177 return mNMService; in getNetworkManagementService()
2180 mNMService = INetworkManagementService.Stub.asInterface(b); in getNetworkManagementService()
2181 return mNMService; in getNetworkManagementService()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt45812 Landroid/net/ConnectivityManager;->mNMService:Landroid/os/INetworkManagementService;