/frameworks/base/services/net/java/android/net/ip/ |
D | InterfaceController.java | 42 private final INetd mNetd; field in InterfaceController 47 mNetd = netd; in InterfaceController() 59 mNetd.interfaceSetCfg(ifConfig); in setInterfaceAddress() 87 mNetd.interfaceSetEnableIPv6(mIfName, enabled); in setEnableIPv6() 115 mNetd.interfaceSetIPv6PrivacyExtensions(mIfName, enabled); in setIPv6PrivacyExtensions() 131 mNetd.setIPv6AddrGenMode(mIfName, mode); in setIPv6AddrGenModeIfSupported() 156 mNetd.interfaceAddAddress(mIfName, ip.getHostAddress(), prefixLen); in addAddress() 169 mNetd.interfaceDelAddress(mIfName, ip.getHostAddress(), prefixLen); in removeAddress() 182 mNetd.interfaceClearAddrs(mIfName); in clearAllAddresses()
|
D | IpServer.java | 183 private final INetd mNetd; field in IpServer 220 mNetd = deps.getNetdService(); in IpServer() 223 mInterfaceCtrl = new InterfaceController(ifaceName, mNetd, mLog); in IpServer() 596 if (mNetd == null) { in configureLocalIPv6Dns() 631 mNetd.tetherApplyDnsInterfaces(); in configureLocalIPv6Dns() 641 mNetd.getProcSysNet(INetd.IPV6, INetd.CONF, upstreamIface, "hop_limit")); in getHopLimit()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 68 @Mock INetd mNetd; field in Nat464XlatTest 77 return new Nat464Xlat(mNai, mNetd, mDnsResolver, mNms) { in makeNat464Xlat() 190 verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX)); 205 verify(mNetd).clatdStop(eq(BASE_IFACE)); 217 verifyNoMoreInteractions(mNetd, mNms, mConnectivity); 223 InOrder inOrder = inOrder(mNetd, mConnectivity); 229 inOrder.verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX)); 243 inOrder.verify(mNetd).clatdStop(eq(BASE_IFACE)); 265 inOrder.verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX)); 287 inOrder.verify(mNetd).clatdStop(eq(BASE_IFACE)); [all …]
|
D | TetheringTest.java | 157 @Mock private INetd mNetd; field in TetheringTest 221 return mNetd; in getNetdService() 600 verify(mNetd, times(1)).tetherApplyDnsInterfaces(); in workingMobileUsbTethering_IPv6() 615 verify(mNetd, times(1)).tetherApplyDnsInterfaces(); in workingMobileUsbTethering_DualStack() 632 verify(mNetd, times(1)).tetherApplyDnsInterfaces(); in workingMobileUsbTethering_MultipleUpstreams() 818 verify(mNetd, times(1)).interfaceSetCfg(argThat(p -> TEST_WLAN_IFNAME.equals(p.ifName))); in failureEnablingIpForwarding()
|
D | LingerMonitorTest.java | 74 @Mock INetd mNetd; field in LingerMonitorTest 358 caps, 50, mCtx, null, mMisc, mConnService, mNetd, mDnsResolver, mNMS, in nai()
|
/frameworks/base/tests/net/java/android/net/ip/ |
D | InterfaceControllerTest.java | 50 @Mock private INetd mNetd; field in InterfaceControllerTest 59 mController = new InterfaceController(TEST_IFACE, mNetd, mLog); in setUp() 61 doNothing().when(mNetd).interfaceSetCfg(mConfigCaptor.capture()); in setUp() 69 verify(mNetd, times(1)).interfaceSetCfg(any()); in testSetIPv4Address() 81 verify(mNetd, times(1)).interfaceSetCfg(any()); in testClearIPv4Address()
|
D | IpServerTest.java | 98 @Mock private INetd mNetd; field in IpServerTest 132 when(mDependencies.getNetdService()).thenReturn(mNetd); in initStateMachine() 231 InOrder inOrder = inOrder(mNMService, mNetd, mStatsService, mCallback); in canUnrequestTethering() 233 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTethering() 326 InOrder inOrder = inOrder(mNMService, mNetd, mStatsService, mCallback); in canUnrequestTetheringWithUpstream() 331 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTetheringWithUpstream()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 84 private final INetd mNetd; field in PermissionMonitor 141 mNetd = netd; in PermissionMonitor() 307 mNetd.networkSetPermissionForUser(INetd.PERMISSION_NETWORK, toIntArray(network)); in update() 308 mNetd.networkSetPermissionForUser(INetd.PERMISSION_SYSTEM, toIntArray(system)); in update() 310 mNetd.networkClearPermissionForUser(toIntArray(network)); in update() 311 mNetd.networkClearPermissionForUser(toIntArray(system)); in update() 588 mNetd.firewallAddUidInterfaceRules(iface, toIntArray(uids)); in updateVpnUids() 590 mNetd.firewallRemoveUidInterfaceRules(toIntArray(uids)); in updateVpnUids() 630 if (mNetd == null) { in sendPackagePermissionsToNetd() 664 mNetd.trafficSetNetPermForUids( in sendPackagePermissionsToNetd() [all …]
|
D | Nat464Xlat.java | 70 private final INetd mNetd; field in Nat464Xlat 92 mNetd = netd; in Nat464Xlat() 181 addrStr = mNetd.clatdStart(baseIface, mNat64Prefix.toString()); in enterStartingState() 254 mNetd.clatdStop(mBaseIface); in stop()
|
D | Vpn.java | 175 private final INetworkManagementService mNetd; field in Vpn 224 mNetd = netService; in Vpn() 750 mNetd.denyProtect(mOwnerUID); in prepareInternal() 760 mNetd.allowProtect(mOwnerUID); in prepareInternal() 1412 mNetd.setAllowOnlyVpnForUids(enforce, rangesArray); in setAllowOnlyVpnForUids()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 68 @NonNull private final INetd mNetd; field in TestNetworkService 85 mNetd = checkNotNull(NetdService.getInstance(), "could not get netd instance"); in TestNetworkService() 107 mNetd.interfaceAddAddress( in createInterface()
|
D | ConnectivityService.java | 316 protected INetd mNetd; field in ConnectivityService 886 mNetd = netd; in ConnectivityService() 972 mPermissionMonitor = new PermissionMonitor(mContext, mNetd); in ConnectivityService() 2267 mNetd.setTcpRWmemorySize(rmemValues, wmemValues); in updateTcpBufferSizes() 3084 mNetd.networkCreateVpn(networkAgent.network.netId, in createNativeNetwork() 3088 mNetd.networkCreatePhysical(networkAgent.network.netId, in createNativeNetwork() 3102 mNetd.networkDestroy(networkAgent.network.netId); in destroyNativeNetwork() 5472 mContext, mTrackerHandler, new NetworkMisc(networkMisc), this, mNetd, mDnsResolver, in registerNetworkAgent() 5594 mNetd.wakeupAddInterface(iface, prefix, mark, mask); in wakeupModifyInterface() 5596 mNetd.wakeupDelInterface(iface, prefix, mark, mask); in wakeupModifyInterface()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1133 mNetd = netd; in WrappedConnectivityService()
|