Home
last modified time | relevance | path

Searched refs:intAbs (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DIpUtils.java38 private static int intAbs(short v) { in intAbs() method in IpUtils
62 sum += intAbs(shortBuf.get(i)); in checksum()
86 partial += intAbs(buf.getShort(headerOffset + 12)); in pseudoChecksumIPv4()
87 partial += intAbs(buf.getShort(headerOffset + 14)); in pseudoChecksumIPv4()
88 partial += intAbs(buf.getShort(headerOffset + 16)); in pseudoChecksumIPv4()
89 partial += intAbs(buf.getShort(headerOffset + 18)); in pseudoChecksumIPv4()
97 partial += intAbs(buf.getShort(headerOffset + offset)); in pseudoChecksumIPv6()
137 int transportLen = intAbs(buf.getShort(transportOffset + 4)); in udpChecksum()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java597 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 2)); in fillInPacket()
598 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 4)); in fillInPacket()
599 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 6)); in fillInPacket()
600 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 8)); in fillInPacket()
621 private static int intAbs(short v) { in intAbs() method in DhcpPacket
646 sum += intAbs(s); in checksum()
666 return intAbs((short) negated); in checksum()