/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 140 @Mock private INetd mNetd; field in IpServerTest 186 IFACE_NAME, mLooper.getLooper(), interfaceType, mSharedLog, mNetd, mBpfCoordinator, in initStateMachine() 194 reset(mNetd, mCallback); in initStateMachine() 214 reset(mNetd, mCallback, mAddressCoordinator); in initTetheredStateMachine() 247 return mNetd; in setUp() 274 mNetd, mBpfCoordinator, mCallback, false /* usingLegacyDhcp */, in startsOutAvailable() 281 verifyNoMoreInteractions(mCallback, mNetd); in startsOutAvailable() 300 verifyNoMoreInteractions(mNetd, mCallback); in shouldDoNothingUntilRequested() 312 verifyNoMoreInteractions(mNetd, mCallback); in handlesImmediateInterfaceDown() 320 InOrder inOrder = inOrder(mCallback, mNetd); in canBeTethered() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 94 @Mock private INetd mNetd; field in BpfCoordinatorTest 113 return mNetd; 142 when(mNetd.tetherOffloadGetStats()).thenReturn(new TetherStatsParcel[0]); in setupFunctioningNetdInterface() 183 when(mNetd.tetherOffloadGetStats()).thenReturn(tetherStatsList); in setTetherOffloadStatsList() 250 clearInvocations(mNetd); in testGetForwardedStats() 255 verify(mNetd, never()).tetherOffloadGetStats(); in testGetForwardedStats() 275 when(mNetd.tetherOffloadGetStats()).thenReturn( in testOnSetAlert() 283 when(mNetd.tetherOffloadGetStats()).thenReturn( in testOnSetAlert() 355 final InOrder inOrder = inOrder(mNetd); in testSetDataLimit() 357 inOrder.verify(mNetd).tetherOffloadRuleAdd(matches(rule)); in testSetDataLimit() [all …]
|
D | TetheringTest.java | 202 @Mock private INetd mNetd; field in TetheringTest 413 return mNetd; in getINetd() 515 when(mNetd.interfaceGetList()) in setUp() 543 verify(mNetd).registerUnsolicitedEventListener(any()); in setUp() 662 verify(mNetd, times(1)).interfaceSetCfg(any(InterfaceConfigurationParcel.class)); in verifyInterfaceServingModeStarted() 663 verify(mNetd, times(1)).tetherInterfaceAdd(ifname); in verifyInterfaceServingModeStarted() 664 verify(mNetd, times(1)).networkAddInterface(INetd.LOCAL_NET_ID, ifname); in verifyInterfaceServingModeStarted() 665 verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(ifname), in verifyInterfaceServingModeStarted() 699 verifyNoMoreInteractions(mNetd); in failingLocalOnlyHotspotLegacyApBroadcast() 729 verifyNoMoreInteractions(mNetd); in testUsbConfiguredBroadcastStartsTethering() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 69 @Mock INetd mNetd; field in Nat464XlatTest 79 return new Nat464Xlat(mNai, mNetd, mDnsResolver, mNms) { in makeNat464Xlat() 210 verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX)); 226 verify(mNetd).clatdStop(eq(BASE_IFACE)); 238 verifyNoMoreInteractions(mNetd, mNms, mConnectivity); 254 InOrder inOrder = inOrder(mNetd, mConnectivity); 262 inOrder.verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX)); 276 inOrder.verify(mNetd).clatdStop(eq(BASE_IFACE)); 298 inOrder.verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX)); 320 inOrder.verify(mNetd).clatdStop(eq(BASE_IFACE)); [all …]
|
D | LingerMonitorTest.java | 74 @Mock INetd mNetd; field in LingerMonitorTest 357 caps, 50, mCtx, null, null /* config */, mConnService, mNetd, mDnsResolver, mNMS, in nai()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 91 private final INetd mNetd; field in PermissionMonitor 142 mNetd = netd; in PermissionMonitor() 274 mNetd.networkSetPermissionForUser(PERMISSION_NETWORK, convertToIntArray(network)); in update() 275 mNetd.networkSetPermissionForUser(PERMISSION_SYSTEM, convertToIntArray(system)); in update() 277 mNetd.networkClearPermissionForUser(convertToIntArray(network)); in update() 278 mNetd.networkClearPermissionForUser(convertToIntArray(system)); in update() 581 mNetd.firewallAddUidInterfaceRules(iface, toIntArray(uids)); in updateVpnUids() 583 mNetd.firewallRemoveUidInterfaceRules(toIntArray(uids)); in updateVpnUids() 623 if (mNetd == null) { in sendPackagePermissionsToNetd() 657 mNetd.trafficSetNetPermForUids( in sendPackagePermissionsToNetd() [all …]
|
D | Nat464Xlat.java | 71 private final INetd mNetd; field in Nat464Xlat 104 mNetd = netd; in Nat464Xlat() 186 addrStr = mNetd.clatdStart(baseIface, mNat64PrefixInUse.toString()); in enterStartingState() 273 mNetd.clatdStop(mBaseIface); in stop()
|
D | Vpn.java | 205 private final INetworkManagementService mNetd; field in Vpn 266 mNetd = netService; in Vpn() 861 mNetd.denyProtect(mOwnerUID); in prepareInternal() 871 mNetd.allowProtect(mOwnerUID); in prepareInternal() 1559 mNetd.setAllowOnlyVpnForUids(enforce, rangesArray); 2401 mNetd.setInterfaceUp(mTunnelIface.getInterfaceName());
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 231 private final INetd mNetd; field in IpServer 291 mNetd = netd; in IpServer() 294 mInterfaceCtrl = new InterfaceController(ifaceName, mNetd, mLog); in IpServer() 751 mNetd, toBeRemoved); in removeRoutesFromLocalNetwork() 764 mNetd.networkAddInterface(INetd.LOCAL_NET_ID, mIfaceName); in addRoutesToLocalNetwork() 768 RouteUtils.addRoutesToLocalNetwork(mNetd, mIfaceName, toBeAdded); in addRoutesToLocalNetwork() 804 if (mNetd == null) { in configureLocalIPv6Dns() 839 mNetd.tetherApplyDnsInterfaces(); in configureLocalIPv6Dns() 957 mNetd.tetherApplyDnsInterfaces(); in handleNewPrefixRequest() 986 mNetd.getProcSysNet(INetd.IPV6, INetd.CONF, upstreamIface, "hop_limit")); in getHopLimit() [all …]
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 84 private final INetd mNetd; field in BpfCoordinator 177 mNetd = mDeps.getNetd(); in BpfCoordinator() 245 mNetd.tetherOffloadRuleAdd(rule.toTetherOffloadRuleParcel()); in tetherOffloadRuleAdd() 286 mNetd.tetherOffloadRuleRemove(rule.toTetherOffloadRuleParcel()); in tetherOffloadRuleRemove() 311 mNetd.tetherOffloadGetAndClearStats(upstreamIfindex); in tetherOffloadRuleRemove() 617 mNetd.tetherOffloadSetInterfaceQuota(ifIndex, quotaBytes); in sendDataLimitToNetd() 733 tetherStatsList = mNetd.tetherOffloadGetStats(); in updateForwardedStatsFromNetd()
|
D | Tethering.java | 230 private final INetd mNetd; field in Tethering 267 mNetd = mDeps.getINetd(mContext); in Tethering() 339 return mNetd; in Tethering() 367 mNetd.registerUnsolicitedEventListener(mNetdCallback); in startStateMachineUpdaters() 1215 ifaces = mNetd.interfaceGetList(); in tetherMatchingInterfaces() 1485 mNetd.ipfwdEnableForwarding(TAG); in turnOnMainTetherSettings() 1497 NetdUtils.tetherStart(mNetd, true /** usingLegacyDnsProxy */, dhcpRanges); in turnOnMainTetherSettings() 1501 mNetd.tetherStop(); in turnOnMainTetherSettings() 1502 NetdUtils.tetherStart(mNetd, true /** usingLegacyDnsProxy */, dhcpRanges); in turnOnMainTetherSettings() 1515 mNetd.tetherStop(); in turnOffMainTetherSettings() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 70 @NonNull private final INetd mNetd; field in TestNetworkService 87 mNetd = Objects.requireNonNull(NetdService.getInstance(), "could not get netd instance"); in TestNetworkService() 109 mNetd.interfaceAddAddress( in createInterface()
|
D | ConnectivityService.java | 337 protected INetd mNetd; field in ConnectivityService 1013 mNetd = netd; in ConnectivityService() 1105 mPermissionMonitor = new PermissionMonitor(mContext, mNetd); in ConnectivityService() 2443 mNetd.setTcpRWmemorySize(rmemValues, wmemValues); in updateTcpBufferSizes() 3391 mNetd.networkCreateVpn(networkAgent.network.netId, in createNativeNetwork() 3395 mNetd.networkCreatePhysical(networkAgent.network.netId, in createNativeNetwork() 3411 mNetd.networkDestroy(networkAgent.network.netId); in destroyNativeNetwork() 5902 this, mNetd, mDnsResolver, mNMS, providerId, Binder.getCallingUid()); in registerNetworkAgent() 6034 mNetd.wakeupAddInterface(iface, prefix, mark, mask); in wakeupModifyInterface() 6036 mNetd.wakeupDelInterface(iface, prefix, mark, mask); in wakeupModifyInterface() [all …]
|