Searched refs:udpChecksum (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/android/net/ |
H A D | IpUtilsTest.java | 135 // UDP checksum, so the udpChecksum rewrites 0 to 0xffff). 137 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); 154 assertChecksumEquals(udpSum, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); 158 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); 160 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH));
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | KeepalivePacketData.java | 133 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH));
|
/frameworks/base/services/net/java/android/net/util/ |
H A D | IpUtils.java | 132 public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) { method in class:IpUtils
|
Completed in 189 milliseconds