/frameworks/base/tests/net/java/android/net/ip/ |
D | IpServerTest.java | 97 @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/ |
D | TetheringTest.java | 144 @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/ |
D | NetworkManagementServiceTest.java | 59 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/ |
D | IpServer.java | 182 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/ |
D | Nat464Xlat.java | 71 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()
|
D | Tethering.java | 174 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/ |
D | EthernetTracker.java | 76 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/ |
D | OffloadControllerTest.java | 97 @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/ |
D | ConnectivityManager.java | 790 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/ |
D | hiddenapi-greylist-max-o.txt | 45812 Landroid/net/ConnectivityManager;->mNMService:Landroid/os/INetworkManagementService;
|