Home
last modified time | relevance | path

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

/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.java111 @Mock private INetd mNetdService; field in PermissionMonitorTest
130 mPermissionMonitor = spy(new PermissionMonitor(mContext, mNetdService, mDeps)); in setUp()
376 final NetdMonitor mNetdMonitor = new NetdMonitor(mNetdService); in testUserAndPackageAddRemove()
457 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
460 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
465 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
467 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
470 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
475 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
477 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()