Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/zip/
DInflaterTest.java40 private static void assertRoundTrip(byte[] dictionary) throws Exception { in assertRoundTrip() argument
46 byte[] deflatedBytes = deflate(expectedBytes, dictionary); in assertRoundTrip()
56 if (dictionary != null) { in assertRoundTrip()
62 assertEquals(adler32(dictionary), inflater.getAdler()); in assertRoundTrip()
63 inflater.setDictionary(dictionary); in assertRoundTrip()
110 private static byte[] deflate(byte[] input, byte[] dictionary) { in deflate() argument
114 if (dictionary != null) { in deflate()
115 deflater.setDictionary(dictionary); in deflate()
/libcore/luni/src/main/native/
DZipUtilities.cpp53 const Bytef* dictionary = reinterpret_cast<const Bytef*>(&dictionaryBytes[0]); in setDictionary() local
56 err = inflateSetDictionary(&stream, dictionary, len); in setDictionary()
58 err = deflateSetDictionary(&stream, dictionary, len); in setDictionary()