Home
last modified time | relevance | path

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

/packages/modules/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 …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java129 @Mock private INetd mNetdService; field in PermissionMonitorTest
157 mPermissionMonitor = spy(new PermissionMonitor(mContext, mNetdService, mDeps)); in setUp()
524 final NetdMonitor netdMonitor = new NetdMonitor(mNetdService); in testUserAndPackageAddRemove()
621 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
624 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
629 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
631 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
634 reset(mNetdService); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
639 verify(mNetdService).firewallRemoveUidInterfaceRules(aryEq(new int[] {MOCK_UID1})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
641 verify(mNetdService).firewallAddUidInterfaceRules(eq("tun0"), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNetworkManagementServiceTest.java75 @Mock private INetd.Stub mNetdService; field in NetworkManagementServiceTest
102 return mNetdService; in getNetd()
114 doNothing().when(mNetdService) in setUp()
236 doReturn(true).when(mNetdService).bandwidthEnableDataSaver(anyBoolean()); in testMeteredNetworkRestrictions()
244 verify(mNetdService).bandwidthEnableDataSaver(true); in testMeteredNetworkRestrictions()
257 verify(mNetdService).bandwidthEnableDataSaver(false); in testMeteredNetworkRestrictions()