Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/util/
DIpUtils.java37 private static int intAbs(short v) { in intAbs() method in IpUtils
60 sum += intAbs(shortBuf.get(i)); in checksum()
79 return intAbs((short) negated); in checksum()
85 partial += intAbs(buf.getShort(headerOffset + 12)); in pseudoChecksumIPv4()
86 partial += intAbs(buf.getShort(headerOffset + 14)); in pseudoChecksumIPv4()
87 partial += intAbs(buf.getShort(headerOffset + 16)); in pseudoChecksumIPv4()
88 partial += intAbs(buf.getShort(headerOffset + 18)); in pseudoChecksumIPv4()
96 partial += intAbs(buf.getShort(headerOffset + offset)); in pseudoChecksumIPv6()
133 int transportLen = intAbs(buf.getShort(transportOffset + 4)); in udpChecksum()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java451 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 2)); in fillInPacket()
452 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 4)); in fillInPacket()
453 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 6)); in fillInPacket()
454 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 8)); in fillInPacket()
475 private static int intAbs(short v) { in intAbs() method in DhcpPacket
500 sum += intAbs(s); in checksum()
520 return intAbs((short) negated); in checksum()