Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 148) 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/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DSharedMemoryTestService.java38 int checksum = 0; in readBufData() local
46 checksum += mappedBuffer.get(); in readBufData()
54 return checksum; in readBufData()
DSharedMemoryFileDescriptorTest.java112 int checksum = 0; in testReadBufData() local
115 checksum += (byte) i; in testReadBufData()
123 assertEquals(checksum, returnedChecksum); in testReadBufData()
/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/tests/media/common/src/android/mediav2/common/cts/
DOutputManager.java173 public void checksum(ByteBuffer buf, int size) { in checksum() method in OutputManager
174 checksum(buf, size, 0, 0, 0, 0); in checksum()
177 public void checksum(ByteBuffer buf, MediaCodec.BufferInfo info) { in checksum() method in OutputManager
180 checksum(buf, info.size, 0, 0, 0, 0); in checksum()
184 public void checksum(ByteBuffer buf, int size, int width, int height, int stride, in checksum() method in OutputManager
240 public void checksum(Image image) { in checksum() method in OutputManager
DCodecDecoderBlockModelTestBase.java201 mOutputBuff.checksum(mFlatBuffer, mFlatBuffer.limit()); in dequeueOutput()
204 mOutputBuff.checksum(buf, info.size); in dequeueOutput()
DCodecDecoderTestBase.java262 mOutputBuff.checksum(mFlatBuffer, mFlatBuffer.limit()); in dequeueOutput()
264 mOutputBuff.checksum(buf, info); in dequeueOutput()
271 mOutputBuff.checksum(img); in dequeueOutput()
280 mOutputBuff.checksum(buf, info.size, width, height, stride, bytesPerSample); in dequeueOutput()
DCodecEncoderBlockModelTestBase.java167 mOutputBuff.checksum(buf, info); in dequeueOutput()
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/d/
DT_f1_1.dfh7 // parsed: offset 8, len 4: checksum : ec6e3629
DT_f1_9.dfh8 // parsed: offset 8, len 4: checksum : a9763611
DT_f1_3.dfh8 // parsed: offset 8, len 4: checksum : df0f35a3
DT_f1_4.dfh7 // parsed: offset 8, len 4: checksum : 64f33679
DT_f1_5.dfh7 // parsed: offset 8, len 4: checksum : 76133706
/cts/tests/tests/media/common/jni/
Dcodec-utils-jni.cpp74 virtual uint32_t checksum() = 0;
93 uint32_t checksum() { in checksum() function
286 ALOGV("adler %zu/%u", adler.length(), adler.checksum()); in Java_android_media_cts_CodecUtils_getImageChecksumAlder32()
287 return adler.checksum(); in Java_android_media_cts_CodecUtils_getImageChecksumAlder32()
/cts/tests/media/jni/
DNativeCodecDecoderTestCommon.cpp66 int colorFormat, float rmsError, uLong checksum);
358 uLong checksum) { in testSimpleDecode() argument
402 RETURN_IF_TRUE(checksum != ref->getChecksum(), in testSimpleDecode()
406 checksum, ref->getChecksum())) in testSimpleDecode()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DAdaptivePlaybackTest.java833 static long checksum(ByteBuffer buf, int size, CRC32 crc) {
1083 sum = checksum(mOutputBuffers[ix], info.size, mCRC);
1096 sum = mSurface.checksum();
1849 public long checksum();
1879 public long checksum() {
1883 return AdaptivePlaybackTest.checksum(mBuf, mBuf.capacity(), mCRC);
1906 public long checksum() {
/cts/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp257 static int checksum(const uint8_t *in, int len, AMediaFormat *format) { in checksum() function
413 int adler = checksum(buf, info.size, format[tt]); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java427 CRC32 checksum = new CRC32(); in readAllData() local
453 checksum.update(format.getByteBuffer(csdKey)); in readAllData()
459 checksum.update(buffer); in readAllData()
466 checksum.update(buffer); in readAllData()
475 checksum.update(buffer); in readAllData()
485 return checksum.getValue(); in readAllData()
DCodecEncoderMultiAccessUnitTest.java188 mOutputBuff.checksum(buf, info); in dequeueOutputs()
/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/sput_object/d/
DT_sput_object_3.dfh7 // parsed: offset 8, len 4: checksum : c2134499
/cts/tools/vm-tests-tf/src/dot/junit/verify/a3/d/
DT_a3_1.dfh7 // parsed: offset 8, len 4: checksum : be8e34ae

123456