Home
last modified time | relevance | path

Searched refs:mNetdService (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java51 private final INetd mNetdService; field in NetdWrapper
153 mNetdService = INetd.Stub.asInterface( in NetdWrapper()
159 mNetdService.registerUnsolicitedEventListener(mNetdUnsolicitedEventListener); in NetdWrapper()
168 mNetdService.networkAddInterface(netId, iface); in modifyInterfaceInNetwork()
170 mNetdService.networkRemoveInterface(netId, iface); in modifyInterfaceInNetwork()
202 mNetdService.networkAddRoute(netId, ifName, dst, nextHop); in modifyRoute()
204 mNetdService.networkRemoveRoute(netId, ifName, dst, nextHop); in modifyRoute()
240 mNetdService.interfaceClearAddrs(iface); in clearInterfaceAddresses()
251 mNetdService.interfaceSetEnableIPv6(iface, true); in enableIpv6()
262 mNetdService.interfaceSetEnableIPv6(iface, false); in disableIpv6()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java162 private INetd mNetdService; field in NetworkManagementService
514 mNetdService = mServices.getNetd(); in connectNativeNetdService()
516 mNetdService.registerUnsolicitedEventListener(mNetdUnsolicitedEventListener); in connectNativeNetdService()
754 return mNetdService.interfaceGetList(); in listInterfaces()
807 result = mNetdService.interfaceGetCfg(iface); in getInterfaceConfig()
833 mNetdService.interfaceSetCfg(cfgParcel); in setInterfaceConfig()
859 mNetdService.interfaceSetIPv6PrivacyExtensions(iface, enable); in setInterfaceIpv6PrivacyExtensions()
871 mNetdService.interfaceClearAddrs(iface); in clearInterfaceAddresses()
881 mNetdService.interfaceSetEnableIPv6(iface, true); in enableIpv6()
891 mNetdService.setIPv6AddrGenMode(iface, mode); in setIPv6AddrGenMode()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java116 @Mock private INetd mNetdService; field in PermissionMonitorTest
134 mPermissionMonitor = spy(new PermissionMonitor(mContext, mNetdService)); in setUp()
420 final NetdMonitor mNetdMonitor = new NetdMonitor(mNetdService); in testUserAndPackageAddRemove()
498 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
501 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
505 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
507 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
510 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
515 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
517 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DNetworkManagementServiceTest.java63 @Mock private INetd.Stub mNetdService; field in NetworkManagementServiceTest
84 return mNetdService;
91 doNothing().when(mNetdService) in setUp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java73 private INetd mNetdService; field in NetworkStatsFactory
301 if (mNetdService == null) { in requestSwapActiveStatsMapLocked()
302 mNetdService = NetdService.getInstance(); in requestSwapActiveStatsMapLocked()
304 mNetdService.trafficSwapActiveStatsMap(); in requestSwapActiveStatsMapLocked()