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.java160 private INetd mNetdService; field in NetworkManagementService
514 mNetdService = mServices.getNetd(); in connectNativeNetdService()
516 mNetdService.registerUnsolicitedEventListener(mNetdUnsolicitedEventListener); in connectNativeNetdService()
747 return mNetdService.interfaceGetList(); in listInterfaces()
798 result = mNetdService.interfaceGetCfg(iface); in getInterfaceConfig()
822 mNetdService.interfaceSetCfg(cfgParcel); in setInterfaceConfig()
848 mNetdService.interfaceSetIPv6PrivacyExtensions(iface, enable); in setInterfaceIpv6PrivacyExtensions()
860 mNetdService.interfaceClearAddrs(iface); in clearInterfaceAddresses()
870 mNetdService.interfaceSetEnableIPv6(iface, true); in enableIpv6()
879 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()
417 final NetdMonitor mNetdMonitor = new NetdMonitor(mNetdService); in testUserAndPackageAddRemove()
495 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
498 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
502 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
504 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
507 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
512 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
514 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.java71 private INetd mNetdService; field in NetworkStatsFactory
288 if (mNetdService == null) { in requestSwapActiveStatsMapLocked()
289 mNetdService = NetdService.getInstance(); in requestSwapActiveStatsMapLocked()
291 mNetdService.trafficSwapActiveStatsMap(); in requestSwapActiveStatsMapLocked()