Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 140) sorted by relevance

123456

/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIcmpMessage.java34 int checksum = stream.readUnsignedShort(); in IcmpMessage() local
48 throw new IOException("Corrupted message. Checksum: " + checksum); in IcmpMessage()
64 int checksum = Rfc1071.checksum(result, result.length); in getEncoded() local
65 result[checksumPosition + 0] = (byte) ((checksum & 0xFF00) >> 8); in getEncoded()
66 result[checksumPosition + 1] = (byte) ((checksum & 0x00FF)); in getEncoded()
DIpv4Packet.java53 int checksum = stream.readUnsignedShort(); in Ipv4Packet() local
81 throw new IOException("Corrupted message. Checksum: " + checksum); in Ipv4Packet()
116 int checksum = Rfc1071.checksum(result, headerLength); in getEncoded() local
117 result[checksumPosition + 0] = (byte) ((checksum & 0xFF00) >> 8); in getEncoded()
118 result[checksumPosition + 1] = (byte) ((checksum & 0x00FF)); in getEncoded()
DRfc1071.java20 static int checksum(byte[] data, int length) { in checksum() method in Rfc1071
/cts/tools/utils/
Dmonsoon.py283 checksum = (data_len + sum(struct.unpack("B" * len(data), data))) % 256
284 out = struct.pack("B", data_len) + data + struct.pack("B", checksum)
302 checksum = (data_len + sum(struct.unpack("B" * len(body), body))) % 256
303 if result[-1] != struct.pack("B", checksum):
/cts/apps/CtsVerifier/assets/scripts/power_monitors/
Dmonsoon.py390 checksum = (data_len + sum(struct.unpack("B" * len(data), data))) % 256
391 out = struct.pack("B", data_len) + data + struct.pack("B", checksum)
409 checksum = (data_len + sum(struct.unpack("B" * len(body), body))) % 256
410 if result[-1] != struct.pack("B", checksum):
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/d/
DT_f1_1.dfh7 // parsed: offset 8, len 4: checksum : ec6e3629
DT_f1_11.dfh7 // parsed: offset 8, len 4: checksum : 759b34c5
DT_f1_12.dfh7 // parsed: offset 8, len 4: checksum : 07303496
DT_f1_3.dfh8 // parsed: offset 8, len 4: checksum : df0f35a3
DT_f1_4.dfh7 // parsed: offset 8, len 4: checksum : 64f33679
DT_f1_10.dfh8 // parsed: offset 8, len 4: checksum : 847035e6
DT_f1_2.dfh8 // parsed: offset 8, len 4: checksum : 8bce34e8
DT_f1_5.dfh7 // parsed: offset 8, len 4: checksum : 76133706
DT_f1_6.dfh7 // parsed: offset 8, len 4: checksum : 9bbb37a1
/cts/tests/tests/media/libmediandkjni/
Dcodec-utils-jni.cpp69 virtual uint32_t checksum() = 0;
88 uint32_t checksum() { in checksum() function
274 ALOGV("adler %zu/%u", adler.length(), adler.checksum()); in Java_android_media_cts_CodecUtils_getImageChecksumAlder32()
275 return adler.checksum(); in Java_android_media_cts_CodecUtils_getImageChecksumAlder32()
/cts/tests/tests/media/src/android/media/cts/
DAdaptivePlaybackTest.java807 static long checksum(ByteBuffer buf, int size, CRC32 crc) {
1045 sum = checksum(mOutputBuffers[ix], info.size, mCRC);
1058 sum = mSurface.checksum();
1802 public long checksum();
1832 public long checksum() {
1836 return AdaptivePlaybackTest.checksum(mBuf, mBuf.capacity(), mCRC);
1859 public long checksum() {
/cts/tests/media/src/android/mediav2/cts/
DCodecTestBase.java288 void checksum(ByteBuffer buf, int size) { in checksum() method in OutputManager
289 checksum(buf, size, 0, 0, 0); in checksum()
292 void checksum(ByteBuffer buf, int size, int width, int height, int stride) { in checksum() method in OutputManager
334 void checksum(Image image) { in checksum() method in OutputManager
1238 mOutputBuff.checksum(flatBuffer, flatBuffer.limit()); in dequeueOutput()
1240 mOutputBuff.checksum(buf, info.size); in dequeueOutput()
1249 mOutputBuff.checksum(buf, info.size, width, height, stride); in dequeueOutput()
1253 mOutputBuff.checksum(img); in dequeueOutput()
DExtractorTest.java413 CRC32 checksum = new CRC32(); in readAllData() local
439 checksum.update(format.getByteBuffer(csdKey)); in readAllData()
445 checksum.update(buffer); in readAllData()
452 checksum.update(buffer); in readAllData()
461 checksum.update(buffer); in readAllData()
471 return checksum.getValue(); in readAllData()
/cts/tests/media/jni/
DNativeCodecDecoderTest.cpp62 float rmsError, uLong checksum);
302 const char* refFile, float rmsError, uLong checksum) { in testSimpleDecode() argument
382 if (checksum != ref->getChecksum()) { in testSimpleDecode()
/cts/tools/vm-tests-tf/src/dot/junit/verify/a1/d/
DT_a1_1.dfh7 // parsed: offset 8, len 4: checksum : fa4f3449
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/goto_16/d/
DT_goto_16_2.dfh7 // parsed: offset 8, len 4: checksum : e5ec3c50
DT_goto_16_3.dfh7 // parsed: offset 8, len 4: checksum : 77e43d0f
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/goto_32/d/
DT_goto_32_2.dfh7 // parsed: offset 8, len 4: checksum : 66653ef5
DT_goto_32_3.dfh7 // parsed: offset 8, len 4: checksum : d7f03cc2
/cts/tools/vm-tests-tf/src/dot/junit/verify/a3/d/
DT_a3_1.dfh7 // parsed: offset 8, len 4: checksum : be8e34ae

123456