Home
last modified time | relevance | path

Searched refs:adler (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DAdler32.java41 private int adler = 1; field in Adler32
56 adler = update(adler, b); in update()
69 adler = updateBytes(adler, b, off, len); in update()
78 adler = updateBytes(adler, b, 0, b.length); in update()
101 adler = updateByteBuffer(adler, ((DirectBuffer)buffer).address(), pos, rem); in update()
103 adler = updateBytes(adler, buffer.array(), pos + buffer.arrayOffset(), rem); in update()
107 adler = updateBytes(adler, b, 0, b.length); in update()
116 adler = 1; in reset()
123 return (long)adler & 0xffffffffL; in getValue()
136 private native static int update(int adler, int b); in update() argument
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidChecksumTest.java41 Adler32 adler = new Adler32(); in adler32Test() local
44 adler.update(values); in adler32Test()
45 assertEquals(adler.getValue(), expected); in adler32Test()
48 adler.reset(); in adler32Test()
50 adler.update(values[i]); in adler32Test()
52 assertEquals(adler.getValue(), expected); in adler32Test()
84 Adler32 adler = new Adler32(); in wrongChecksumWithAdler32Test() local
85 adler.update(bytes); in wrongChecksumWithAdler32Test()
86 long arrayChecksum = adler.getValue(); in wrongChecksumWithAdler32Test()
87 adler.reset(); in wrongChecksumWithAdler32Test()
[all …]
/libcore/ojluni/src/main/native/
DAdler32.c41 Java_java_util_zip_Adler32_update(JNIEnv *env, jclass cls, jint adler, jint b) in Java_java_util_zip_Adler32_update() argument
46 return adler32(adler, buf, 1); in Java_java_util_zip_Adler32_update()
50 Java_java_util_zip_Adler32_updateBytes(JNIEnv *env, jclass cls, jint adler, in Java_java_util_zip_Adler32_updateBytes() argument
55 adler = adler32(adler, buf + off, len); in Java_java_util_zip_Adler32_updateBytes()
58 return adler; in Java_java_util_zip_Adler32_updateBytes()
62 Java_java_util_zip_Adler32_updateByteBuffer(JNIEnv *env, jclass cls, jint adler, in Java_java_util_zip_Adler32_updateByteBuffer() argument
67 adler = adler32(adler, buf + off, len); in Java_java_util_zip_Adler32_updateByteBuffer()
69 return adler; in Java_java_util_zip_Adler32_updateByteBuffer()
Djava_util_zip_Inflater.c176 return ((z_stream *)jlong_to_ptr(addr))->adler; in Inflater_getAdler()
Djava_util_zip_Deflater.c217 return ((z_stream *)jlong_to_ptr(addr))->adler; in Deflater_getAdler()
/libcore/benchmarks/src/benchmarks/regression/
DChecksumBenchmark.java25 Adler32 adler = new Adler32(); in timeAdler_block() local
27 adler.update(bytes); in timeAdler_block()
31 Adler32 adler = new Adler32(); in timeAdler_byte() local
33 adler.update(1); in timeAdler_byte()