Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/zip/
DAdler32.java45 private int adler = 1; field in Adler32
60 adler = update(adler, b); in update()
78 adler = updateBytes(adler, b, off, len); in update()
87 adler = updateBytes(adler, b, 0, b.length); in update()
112 adler = updateByteBuffer(adler, ((DirectBuffer)buffer).address(), pos, rem); in update()
114 adler = updateBytes(adler, buffer.array(), pos + buffer.arrayOffset(), rem); in update()
118 adler = updateBytes(adler, b, 0, b.length); in update()
127 adler = 1; in reset()
134 return (long)adler & 0xffffffffL; in getValue()
137 private native static int update(int adler, int b); in update() argument
[all …]
DCRC32.java137 private native static int updateByteBuffer(int adler, long addr, in updateByteBuffer() argument
/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.c42 Java_java_util_zip_Adler32_update(JNIEnv *env, jclass cls, jint adler, jint b) in Java_java_util_zip_Adler32_update() argument
47 return adler32(adler, buf, 1); in Java_java_util_zip_Adler32_update()
51 Java_java_util_zip_Adler32_updateBytes(JNIEnv *env, jclass cls, jint adler, in Java_java_util_zip_Adler32_updateBytes() argument
56 adler = adler32(adler, buf + off, len); in Java_java_util_zip_Adler32_updateBytes()
59 return adler; in Java_java_util_zip_Adler32_updateBytes()
63 Java_java_util_zip_Adler32_updateByteBuffer(JNIEnv *env, jclass cls, jint adler, in Java_java_util_zip_Adler32_updateByteBuffer() argument
68 adler = adler32(adler, buf + off, len); in Java_java_util_zip_Adler32_updateByteBuffer()
70 return adler; in Java_java_util_zip_Adler32_updateByteBuffer()
DInflater.c183 return ((z_stream *)jlong_to_ptr(addr))->adler; in Inflater_getAdler()
DDeflater.c222 return ((z_stream *)jlong_to_ptr(addr))->adler; in Deflater_getAdler()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DAdler32.java62 private static native int update(int adler, int b); in update() argument
64 private static native int updateBytes(int adler, byte[] b, int off, int len); in updateBytes() argument
66 private static native int updateByteBuffer(int adler, long addr, int off, int len); in updateByteBuffer() argument
68 private int adler = 1; // 0x1 field in Adler32
DCRC32.java66 private static native int updateByteBuffer(int adler, long addr, int off, int len); in updateByteBuffer() argument
/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()