Home
last modified time | relevance | path

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

/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIpv4Packet.java32 int totalLength; field in Ipv4Packet
48 totalLength = stream.readUnsignedShort(); in Ipv4Packet()
70 if (totalLength < headerLength) { in Ipv4Packet()
71 throw new IllegalArgumentException("Total length = " + totalLength in Ipv4Packet()
74 data = new byte[totalLength - headerLength]; in Ipv4Packet()
77 byte[] original = new byte[totalLength]; in Ipv4Packet()
92 totalLength = headerLength + data.length; in setData()
101 stream.writeShort(totalLength); in getEncoded()
130 out.append("\n Total length: ").append(totalLength); in toString()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java375 final double totalLength = (LINE1_END - LINE1_START) + Math.sqrt( in testOfFloat_Path() local
378 final double firstSegEndFraction = (LINE1_END - LINE1_START) / totalLength; in testOfFloat_Path()