Home
last modified time | relevance | path

Searched refs:ifParams (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInterfaceParamsTest.java46 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback() local
47 assertNotNull(ifParams); in testLoopback()
48 assertEquals("lo", ifParams.name); in testLoopback()
49 assertTrue(ifParams.index > 0); in testLoopback()
50 assertNotNull(ifParams.macAddr); in testLoopback()
51 assertFalse(ifParams.hasMacAddress); in testLoopback()
52 assertTrue(ifParams.defaultMtu >= NetworkStackConstants.ETHER_MTU); in testLoopback()
/packages/modules/NetworkStack/src/android/net/ip/
DConnectivityPacketTracker.java79 public ConnectivityPacketTracker(Handler h, InterfaceParams ifParams, LocalLog log) { in ConnectivityPacketTracker() argument
80 if (ifParams == null) throw new IllegalArgumentException("null InterfaceParams"); in ConnectivityPacketTracker()
82 mTag = TAG + "." + ifParams.name; in ConnectivityPacketTracker()
84 mPacketListener = new PacketListener(h, ifParams); in ConnectivityPacketTracker()
102 PacketListener(Handler h, InterfaceParams ifParams) { in PacketListener() argument
103 super(h, ifParams.defaultMtu); in PacketListener()
104 mInterface = ifParams; in PacketListener()
DIpReachabilityMonitor.java254 Context context, InterfaceParams ifParams, Handler h, SharedLog log, Callback callback,
256 this(context, ifParams, h, log, callback, usingMultinetworkPolicyTracker, dependencies,
261 public IpReachabilityMonitor(Context context, InterfaceParams ifParams, Handler h,
264 if (ifParams == null) throw new IllegalArgumentException("null InterfaceParams");
267 mInterfaceParams = ifParams;
DIpClient.java801 InterfaceParams ifParams, DhcpClient.Dependencies deps) { in makeDhcpClient() argument
802 return DhcpClient.makeDhcpClient(context, controller, ifParams, deps); in makeDhcpClient()
809 InterfaceParams ifParams, Dhcp6Client.Dependencies deps) { in makeDhcp6Client() argument
810 return Dhcp6Client.makeDhcp6Client(context, controller, ifParams, deps); in makeDhcp6Client()
854 InterfaceParams ifParams, Handler h, SharedLog log, in getIpReachabilityMonitor() argument
857 return new IpReachabilityMonitor(context, ifParams, h, log, callback, in getIpReachabilityMonitor()
891 ApfFilter.ApfConfiguration config, InterfaceParams ifParams, in maybeCreateApfFilter() argument
895 return ApfFilter.maybeCreate(context, config, ifParams, cb, networkQuirkMetrics); in maybeCreateApfFilter()
897 return LegacyApfFilter.maybeCreate(context, config, ifParams, cb, in maybeCreateApfFilter()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java368 public ApfFilter(Context context, ApfConfiguration config, InterfaceParams ifParams, in ApfFilter() argument
370 this(context, config, ifParams, ipClientCallback, networkQuirkMetrics, in ApfFilter()
375 public ApfFilter(Context context, ApfConfiguration config, InterfaceParams ifParams, in ApfFilter() argument
378 this(context, config, ifParams, ipClientCallback, networkQuirkMetrics, dependencies, in ApfFilter()
383 public ApfFilter(Context context, ApfConfiguration config, InterfaceParams ifParams, in ApfFilter() argument
389 mInterfaceParams = ifParams; in ApfFilter()
2509 InterfaceParams ifParams, IpClientCallbacksWrapper ipClientCallback, in maybeCreate() argument
2511 if (context == null || config == null || ifParams == null) return null; in maybeCreate()
2527 return new ApfFilter(context, config, ifParams, ipClientCallback, networkQuirkMetrics); in maybeCreate()
DLegacyApfFilter.java385 InterfaceParams ifParams, IpClientCallbacksWrapper ipClientCallback, in LegacyApfFilter() argument
387 this(context, config, ifParams, ipClientCallback, log, networkQuirkMetrics, in LegacyApfFilter()
393 InterfaceParams ifParams, IpClientCallbacksWrapper ipClientCallback, in LegacyApfFilter() argument
398 mInterfaceParams = ifParams; in LegacyApfFilter()
2071 InterfaceParams ifParams, IpClientCallbacksWrapper ipClientCallback, in maybeCreate() argument
2073 if (context == null || config == null || ifParams == null) return null; in maybeCreate()
2091 return new LegacyApfFilter(context, config, ifParams, ipClientCallback, in maybeCreate()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfNewTest.kt121 private val ifParams = constant in android.net.apf.ApfNewTest
1350 ifParams, in doTestEtherTypeAllowListFilter()
1791 ifParams, in testIPv4PacketFilterOnV6OnlyNetwork()
1876 ifParams, in testArpTransmit()
1927 ifParams, in testArpOffloadDisabled()
1962 ifParams, in testNsFilterNoIPv6()
1998 ifParams, in testNsFilter()
2262 ifParams, in testApfProgramUpdate()
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt164 val ifParams = InterfaceParams.getByName(iface.interfaceName) in doTestAttachRaFilter() constant
166 val socketAddr = SocketUtils.makePacketSocketAddress(ETH_P_IPV6, ifParams.index) in doTestAttachRaFilter()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DRouterAdvertisementDaemon.java248 public RouterAdvertisementDaemon(InterfaceParams ifParams) { in RouterAdvertisementDaemon() argument
249 mInterface = ifParams; in RouterAdvertisementDaemon()
DIpServer.java188 public DadProxy getDadProxy(Handler handler, InterfaceParams ifParams) { in getDadProxy() argument
189 return new DadProxy(handler, ifParams); in getDadProxy()
199 public RouterAdvertisementDaemon getRouterAdvertisementDaemon(InterfaceParams ifParams) { in getRouterAdvertisementDaemon() argument
200 return new RouterAdvertisementDaemon(ifParams); in getRouterAdvertisementDaemon()
/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Client.java198 @NonNull final StateMachine controller, @NonNull final InterfaceParams ifParams, in makeDhcp6Client() argument
200 final Dhcp6Client client = new Dhcp6Client(context, controller, ifParams, deps); in makeDhcp6Client()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java567 Context context, StateMachine controller, InterfaceParams ifParams, in makeDhcpClient() argument
569 DhcpClient client = new DhcpClient(context, controller, ifParams.name, deps); in makeDhcpClient()
570 client.mIface = ifParams; in makeDhcpClient()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java524 InterfaceParams ifParams, DhcpClient.Dependencies deps) { in makeDhcpClient() argument
525 mDhcpClient = DhcpClient.makeDhcpClient(context, controller, ifParams, deps); in makeDhcpClient()
531 InterfaceParams ifParams, Dhcp6Client.Dependencies deps) { in makeDhcp6Client() argument
532 mDhcp6Client = Dhcp6Client.makeDhcp6Client(context, controller, ifParams, deps); in makeDhcp6Client()
538 InterfaceParams ifParams, Handler h, SharedLog log, in getIpReachabilityMonitor() argument
541 return new IpReachabilityMonitor(context, ifParams, h, log, callback, in getIpReachabilityMonitor()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java384 Handler handler, InterfaceParams ifParams) { in getDadProxy() argument
390 InterfaceParams ifParams) { in getRouterAdvertisementDaemon() argument