Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/netlink/
DInetDiagSocketTest.java161 UdpConnection udp = new UdpConnection(conn.remoteAddress.getHostAddress(), in findLikelyFreeUdpPort() local
163 final int localPort = udp.local.getPort(); in findLikelyFreeUdpPort()
164 udp.close(); in findLikelyFreeUdpPort()
184 UdpConnection udp = new UdpConnection(to,from); in checkGetConnectionOwnerUid() local
185 checkConnectionOwnerUid(udp.protocol, udp.local, udp.remote, true); in checkGetConnectionOwnerUid()
186 checkConnectionOwnerUid(udp.protocol, udp.local, new InetSocketAddress(0), true); in checkGetConnectionOwnerUid()
187 checkConnectionOwnerUid(IPPROTO_TCP, udp.local, udp.remote, false); in checkGetConnectionOwnerUid()
188 checkConnectionOwnerUid(udp.protocol, new InetSocketAddress(findLikelyFreeUdpPort(udp)), in checkGetConnectionOwnerUid()
189 udp.remote, false); in checkGetConnectionOwnerUid()
190 udp.close(); in checkGetConnectionOwnerUid()
DConntrackMessageTest.java123 final byte[] udp = ConntrackMessage.newIPv4TimeoutUpdateRequest( in testConntrackIPv4UdpTimeoutUpdate()
128 assertArrayEquals(CT_V4UPDATE_UDP_BYTES, udp); in testConntrackIPv4UdpTimeoutUpdate()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java94 final int udp = 17; in testWakeupEventLogging() local
102 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
103 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
107 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
109 wakeupEvent(iface, uids[8], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
167 final int udp = 17; in testWakeupStatsLogging() local
172 wakeupEvent("wlan0", 1000, v4, udp, mac, srcIp, dstIp, sport, dport, now); in testWakeupStatsLogging()
177 wakeupEvent("wlan0", 10004, v4, udp, mac, srcIp, dstIp, sport, dport, now); in testWakeupStatsLogging()
179 wakeupEvent("wlan0", 0, v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupStatsLogging()
182 wakeupEvent("wlan0", 0, v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupStatsLogging()
[all …]
DIpConnectivityMetricsTest.java321 final int udp = 17; in testEndToEndLogging() local
324 wakeupEvent("wlan0", 1000, v4, udp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging()
325 wakeupEvent("wlan0", 10008, v4, udp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging()
326 wakeupEvent("wlan0", -1, v4, udp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging()