/packages/modules/Connectivity/staticlibs/client-libs/netd/com/android/net/module/util/ |
D | NetdUtils.java | 19 import static android.net.INetd.IF_STATE_DOWN; 20 import static android.net.INetd.IF_STATE_UP; 27 import android.net.INetd; 62 public static InterfaceConfigurationParcel getInterfaceConfigParcel(@NonNull INetd netd, in getInterfaceConfigParcel() 114 public static void setInterfaceConfig(INetd netd, InterfaceConfigurationParcel configParcel) { in setInterfaceConfig() 125 public static void setInterfaceUp(INetd netd, String iface) { in setInterfaceUp() 135 public static void setInterfaceDown(INetd netd, String iface) { in setInterfaceDown() 143 public static void tetherStart(final INetd netd, final boolean usingLegacyDnsProxy, in tetherStart() 152 public static void tetherInterface(final INetd netd, final String iface, final IpPrefix dest) in tetherInterface() 158 public static void tetherInterface(final INetd netd, final String iface, final IpPrefix dest, in tetherInterface() [all …]
|
/packages/modules/DnsResolver/tests/ |
D | resolv_test_utils.h | 41 using INetd = aidl::android::net::INetd; variable 44 ScopeBlockedUIDRule(INetd* netSrv, uid_t testUid) in ScopeBlockedUIDRule() 57 mNetSrv->firewallEnableChildChain(INetd::FIREWALL_CHAIN_STANDBY, true).isOk()); in ScopeBlockedUIDRule() 58 EXPECT_TRUE(mNetSrv->firewallSetUidRule(INetd::FIREWALL_CHAIN_STANDBY, mTestUid, in ScopeBlockedUIDRule() 59 INetd::FIREWALL_RULE_DENY) in ScopeBlockedUIDRule() 72 EXPECT_TRUE(mNetSrv->firewallSetUidRule(INetd::FIREWALL_CHAIN_STANDBY, mTestUid, in ~ScopeBlockedUIDRule() 73 INetd::FIREWALL_RULE_ALLOW) in ~ScopeBlockedUIDRule() 76 mNetSrv->firewallEnableChildChain(INetd::FIREWALL_CHAIN_STANDBY, false).isOk()); in ~ScopeBlockedUIDRule() 81 INetd* mNetSrv; 140 using INetd = aidl::android::net::INetd; variable [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | NetdWrapper.java | 20 import android.net.INetd; 51 private final INetd mNetdService; 159 mNetdService = INetd.Stub.asInterface( in NetdWrapper() 193 nextHop = INetd.NEXTHOP_NONE; in modifyRoute() 197 nextHop = INetd.NEXTHOP_UNREACHABLE; in modifyRoute() 200 nextHop = INetd.NEXTHOP_THROW; in modifyRoute() 203 nextHop = INetd.NEXTHOP_NONE; in modifyRoute() 221 modifyInterfaceInNetwork(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID, iface); in addInterfaceToLocalNetwork() 225 modifyRoute(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID, route); in addInterfaceToLocalNetwork() 230 modifyRoute(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID, in addInterfaceToLocalNetwork() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/ |
D | EthernetService.java | 20 import android.net.INetd; 32 private static INetd getNetd(Context context) { in getNetd() 33 final INetd netd = in getNetd() 34 INetd.Stub.asInterface((IBinder) context.getSystemService(Context.NETD_SERVICE)); in getNetd()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/ |
D | InterfaceController.java | 19 import static android.net.INetd.IF_STATE_DOWN; 20 import static android.net.INetd.IF_STATE_UP; 22 import android.net.INetd; 45 private final INetd mNetd; 48 public InterfaceController(String ifname, INetd netd, SharedLog log) { in InterfaceController()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 27 import android.net.INetd; 70 @NonNull private final INetd mNetd; 95 INetd.Stub.asInterface((IBinder) context.getSystemService(Context.NETD_SERVICE)), in TestNetworkService() 151 INetd.IPV6, INetd.CONF, interfaceName, "router_solicitation_delay", "0"); in createInterface() 152 mNetd.setProcSysNet(INetd.IPV6, INetd.CONF, interfaceName, "dad_transmits", "0"); in createInterface() 342 if (!(iface.startsWith(INetd.IPSEC_INTERFACE_PREFIX) in setupTestNetwork()
|
D | BpfNetMaps.java | 39 import static android.net.INetd.PERMISSION_INTERNET; 40 import static android.net.INetd.PERMISSION_NONE; 41 import static android.net.INetd.PERMISSION_UNINSTALLED; 42 import static android.net.INetd.PERMISSION_UPDATE_DEVICE_STATS; 53 import android.net.INetd; 106 private final INetd mNetd; 365 public BpfNetMaps(final Context context, final INetd netd) { in BpfNetMaps() 370 public BpfNetMaps(final Context context, final INetd netd, final Dependencies deps) { in BpfNetMaps()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/ |
D | RouterAdvertisementDaemonTest.java | 40 import android.net.INetd; 99 private static INetd sNetd; 106 sNetd = INetd.Stub.asInterface(netdIBinder); in setupOnce() 123 sNetd.networkAddInterface(INetd.LOCAL_NET_ID, mTetheredParams.name); in setUp() 135 sNetd.networkRemoveInterface(INetd.LOCAL_NET_ID, mTetheredParams.name); in tearDown() 322 sNetd.setProcSysNet(INetd.IPV6, INetd.CONF, mTetheredParams.name, "forwarding", "1"); in testSolicitRouterAdvertisement() 333 sNetd.networkAddRoute(INetd.LOCAL_NET_ID, mTetheredParams.name, in testSolicitRouterAdvertisement() 334 "fe80::/64", INetd.NEXTHOP_NONE); in testSolicitRouterAdvertisement()
|
D | DadProxyTest.java | 30 import android.net.INetd; 80 private static INetd sNetd; 89 sNetd = INetd.Stub.asInterface(netdIBinder); in setupOnce() 119 sNetd.networkRemoveInterface(INetd.LOCAL_NET_ID, mTetheredParams.name); in tearDown() 122 sNetd.networkRemoveInterface(INetd.LOCAL_NET_ID, mUpstreamParams.name); in tearDown() 215 sNetd.networkAddInterface(INetd.LOCAL_NET_ID, mUpstreamParams.name); in setupProxy() 216 sNetd.networkAddInterface(INetd.LOCAL_NET_ID, mTetheredParams.name); in setupProxy()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpReachabilityMonitor.java | 33 import android.net.INetd; 231 private final INetd mNetd; 255 boolean usingMultinetworkPolicyTracker, Dependencies dependencies, final INetd netd) { 263 Dependencies dependencies, final IpConnectivityLog metricsLog, final INetd netd) { 689 for (int family : new Integer[]{INetd.IPV4, INetd.IPV6}) { 690 mNetd.setProcSysNet(family, INetd.NEIGH, mInterfaceParams.name, "retrans_time_ms", 692 mNetd.setProcSysNet(family, INetd.NEIGH, mInterfaceParams.name, "ucast_solicit", 695 mNetd.setProcSysNet(family, INetd.NEIGH, mInterfaceParams.name, "mcast_resolicit",
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 19 import static android.net.INetd.IF_STATE_DOWN; 20 import static android.net.INetd.IF_STATE_UP; 69 import android.net.INetd; 171 @Mock private INetd mNetd; 372 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTetheredAsBluetooth() 374 inOrder.verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(IFACE_NAME), in canBeTetheredAsBluetooth() 391 inOrder.verify(mNetd).networkRemoveInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canUnrequestTethering() 421 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTetheredAsUsb() 422 inOrder.verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(IFACE_NAME), in canBeTetheredAsUsb() 443 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTetheredAsWifiP2p() [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | RoutingCoordinatorService.java | 22 import android.net.INetd; 46 private final INetd mNetd; 48 public RoutingCoordinatorService(@NonNull INetd netd) { in RoutingCoordinatorService()
|
D | PermissionMonitor.java | 27 import static android.net.INetd.PERMISSION_INTERNET; 28 import static android.net.INetd.PERMISSION_NETWORK; 29 import static android.net.INetd.PERMISSION_NONE; 30 import static android.net.INetd.PERMISSION_SYSTEM; 31 import static android.net.INetd.PERMISSION_UNINSTALLED; 32 import static android.net.INetd.PERMISSION_UPDATE_DEVICE_STATS; 51 import android.net.INetd; 99 private final INetd mNetd; 264 public PermissionMonitor(@NonNull final Context context, @NonNull final INetd netd, in PermissionMonitor() 270 PermissionMonitor(@NonNull final Context context, @NonNull final INetd netd, in PermissionMonitor()
|
D | ClatCoordinator.java | 19 import static android.net.INetd.IF_STATE_UP; 20 import static android.net.INetd.PERMISSION_NETWORK; 21 import static android.net.INetd.PERMISSION_SYSTEM; 29 import android.net.INetd; 130 private final INetd mNetd; 152 public abstract INetd getNetd(); in getNetd()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringDependencies.java | 24 import android.net.INetd; 123 public INetd getINetd(Context context) { in getINetd() 124 return INetd.Stub.asInterface( in getINetd()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder_client_ndk.cpp | 30 using aidl::android::net::INetd; 167 oemNetId, NativeNetworkType::PHYSICAL, INetd::PERMISSION_NONE, /*secure=*/false); in SetupOemNetwork() 173 ret = mNetdSrv->networkCreatePhysical(oemNetId, INetd::PERMISSION_NONE); in SetupOemNetwork() 207 mNetdSrv = INetd::fromBinder(netdBinder); in SetUp()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | RoutingCoordinatorServiceTest.kt | 19 import android.net.INetd in <lambda>() 36 val mNetd = mock(INetd::class.java) in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSActiveNetworkInfoTest.kt | 19 import android.net.INetd.PERMISSION_INTERNET 20 import android.net.INetd.PERMISSION_NONE
|
D | CSSatelliteNetworkTest.kt | 20 import android.net.INetd 100 val permission = if (restricted) {INetd.PERMISSION_SYSTEM} else {INetd.PERMISSION_NONE} in doTestSatelliteNetworkFallbackUids()
|
D | CSLocalAgentCreationTests.kt | 20 import android.net.INetd 108 makeNativeNetworkConfigLocal(localAgent.network.netId, INetd.PERMISSION_NONE)) in keepConnectedScore()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/ |
D | InterfaceControllerTest.java | 26 import android.net.INetd; 51 @Mock private INetd mNetd;
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/ |
D | CSTest.kt | 29 import android.net.INetd 30 import android.net.INetd.PERMISSION_INTERNET 192 val netd = mock<INetd>() 275 override fun getBpfNetMaps(context: Context, netd: INetd) = this@CSTest.bpfNetMaps in getResources() 276 override fun getClatCoordinator(netd: INetd?) = this@CSTest.clatCoordinator in getResources()
|
/packages/modules/Connectivity/staticlibs/client-libs/tests/unit/src/com/android/net/module/util/ |
D | NetdUtilsTest.java | 19 import static android.net.INetd.LOCAL_NET_ID; 41 import android.net.INetd; 62 @Mock private INetd mNetd;
|
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 29 import android.net.INetd 30 import android.net.INetd.PERMISSION_INTERNET 111 private lateinit var netd: INetd 228 override fun getBpfNetMaps(context: Context?, netd: INetd?) = mock(BpfNetMaps::class.java) in getNetworkStack()
|
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/ |
D | BpfCoordinatorShimImpl.java | 19 import android.net.INetd; 47 private final INetd mNetd;
|