Home
last modified time | relevance | path

Searched refs:Z_OK (Results 1 – 25 of 211) sorted by relevance

123456789

/external/rust/crates/libz-sys/src/zlib/test/
Dinfcover.c297 if (ret != Z_OK) { in inf()
309 ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK); in inf()
321 if (ret != Z_OK && ret != Z_BUF_ERROR && ret != Z_NEED_DICT) in inf()
332 assert(ret == Z_OK); in inf()
335 ret = inflateCopy(&copy, &strm); assert(ret == Z_OK); in inf()
336 ret = inflateEnd(&copy); assert(ret == Z_OK); in inf()
344 ret = inflateReset2(&strm, -8); assert(ret == Z_OK); in inf()
345 ret = inflateEnd(&strm); assert(ret == Z_OK); in inf()
358 ret = inflateInit(&strm); assert(ret == Z_OK); in cover_support()
360 ret = inflatePrime(&strm, 5, 31); assert(ret == Z_OK); in cover_support()
[all …]
/external/zlib/contrib/tests/
Dinfcover.cc319 if (ret != Z_OK) { in inf()
331 ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK); in inf()
343 if (ret != Z_OK && ret != Z_BUF_ERROR && ret != Z_NEED_DICT) in inf()
354 assert(ret == Z_OK); in inf()
357 ret = inflateCopy(&copy, &strm); assert(ret == Z_OK); in inf()
358 ret = inflateEnd(&copy); assert(ret == Z_OK); in inf()
366 ret = inflateReset2(&strm, -8); assert(ret == Z_OK); in inf()
367 ret = inflateEnd(&strm); assert(ret == Z_OK); in inf()
380 ret = inflateInit(&strm); assert(ret == Z_OK); in cover_support()
382 ret = inflatePrime(&strm, 5, 31); assert(ret == Z_OK); in cover_support()
[all …]
Dutils_unittest.cc31 ASSERT_EQ(result, Z_OK); in TestPayloads()
38 ASSERT_EQ(result, Z_OK); in TestPayloads()
82 ASSERT_EQ(result, Z_OK); in TEST()
89 ASSERT_EQ(result, Z_OK); in TEST()
110 ASSERT_EQ(ret, Z_OK); in TEST()
124 ASSERT_EQ(ret, Z_OK); in TEST()
132 ASSERT_TRUE(ret == Z_OK || ret == Z_STREAM_END || ret == Z_BUF_ERROR); in TEST()
143 EXPECT_EQ(ret, Z_OK); in TEST()
145 EXPECT_EQ(ret, Z_OK); in TEST()
188 ASSERT_EQ(ret, Z_OK); in TEST()
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/test/
Dinfcover.c297 if (ret != Z_OK) { in inf()
310 assert(ret == Z_OK); in inf()
323 if (ret != Z_OK && ret != Z_BUF_ERROR && ret != Z_NEED_DICT) in inf()
334 assert(ret == Z_OK); in inf()
339 assert(ret == Z_OK); in inf()
340 ret = PREFIX(inflateEnd)(&copy); assert(ret == Z_OK); in inf()
348 ret = PREFIX(inflateReset2)(&strm, -8); assert(ret == Z_OK); in inf()
349 ret = PREFIX(inflateEnd)(&strm); assert(ret == Z_OK); in inf()
362 ret = PREFIX(inflateInit)(&strm); assert(ret == Z_OK); in cover_support()
364 ret = PREFIX(inflatePrime)(&strm, 5, 31); assert(ret == Z_OK); in cover_support()
[all …]
/external/protobuf/src/google/protobuf/io/
Dgzip_stream.cc51 : format_(format), sub_stream_(sub_stream), zerror_(Z_OK), byte_count_(0) { in GzipInputStream()
95 if ((zerror_ == Z_OK) && (zcontext_.avail_out == 0)) { in Inflate()
111 if (error != Z_OK) { in Inflate()
131 bool ok = (zerror_ == Z_OK) || (zerror_ == Z_STREAM_END) || in Next()
145 if (zerror_ != Z_OK) { in Next()
149 if (zerror_ != Z_OK) { in Next()
163 ok = (zerror_ == Z_OK) || (zerror_ == Z_STREAM_END) || in Next()
252 int error = Z_OK; in Deflate()
266 } while (error == Z_OK && zcontext_.avail_out == 0); in Deflate()
279 if ((zerror_ != Z_OK) && (zerror_ != Z_BUF_ERROR)) { in Next()
[all …]
/external/zlib/contrib/tests/fuzzers/
Dstreaming_inflate_fuzzer.cc29 ASSERT(ret == Z_OK); in LLVMFuzzerTestOneInput()
48 ASSERT(ret == Z_OK); in LLVMFuzzerTestOneInput()
57 ASSERT(ret == Z_OK || ret == Z_STREAM_END || ret == Z_BUF_ERROR); in LLVMFuzzerTestOneInput()
67 ASSERT(ret == Z_OK); in LLVMFuzzerTestOneInput()
71 ASSERT(ret == Z_OK); in LLVMFuzzerTestOneInput()
/external/llvm-project/compiler-rt/test/fuzzer/
DCompressedTest.cpp19 if (Z_OK != uncompress(Uncompressed, &UncompressedLen, Data, Size)) in LLVMFuzzerTestOneInput()
43 if (Z_OK != uncompress(Uncompressed, &UncompressedLen, Data, Size)) { in LLVMFuzzerCustomMutator()
49 if (Z_OK != compress(Data, &CompressedLen, Dummy, sizeof(Dummy))) in LLVMFuzzerCustomMutator()
56 if (Z_OK != compress(Data, &CompressedLen, Uncompressed, UncompressedLen)) in LLVMFuzzerCustomMutator()
/external/zstd/zlibWrapper/
Dzstd_zlibwrapper.c216 return Z_OK; in ZWRAP_initializeCStream()
246 return Z_OK; in ZWRAP_setPledgedSrcSize()
277 return Z_OK; in z_deflateInit_()
309 return Z_OK; in ZWRAP_deflateReset_keepDict()
324 return Z_OK; in z_deflateReset()
345 if (res != Z_OK) return ZWRAPC_finishWithError(zwc, strm, res); } in z_deflateSetDictionary()
349 return Z_OK; in z_deflateSetDictionary()
370 if (initErr != Z_OK) return ZWRAPC_finishWithError(zwc, strm, initErr); } in z_deflate()
383 if (res != Z_OK) return ZWRAPC_finishWithError(zwc, strm, res); in z_deflate()
449 return Z_OK; in z_deflate()
[all …]
Dgzwrite.c51 if (ret != Z_OK) {
106 ret = Z_OK;
264 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
295 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
326 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
372 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
400 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK) in gzvprintf()
494 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
571 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
606 if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
[all …]
/external/rust/crates/libz-sys/src/zlib/examples/
Dzpipe.c49 if (ret != Z_OK) in def()
83 return Z_OK; in def()
107 if (ret != Z_OK) in inf()
147 return ret == Z_STREAM_END ? Z_OK : Z_DATA_ERROR; in inf()
187 if (ret != Z_OK) in main()
195 if (ret != Z_OK) in main()
/external/rust/crates/libz-sys/src/zlib-ng/
Dgzwrite.c46 if (ret != Z_OK) { in gz_init()
104 ret = Z_OK; in gz_comp()
242 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
271 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
299 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
341 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
369 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
431 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
462 if (state->mode != GZ_WRITE || state->err != Z_OK) in PREFIX()
467 return Z_OK; in PREFIX()
[all …]
Dgzread.c52 if (state->err != Z_OK && state->err != Z_BUF_ERROR) in gz_avail()
102 if (PREFIX(inflateInit2)(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */ in gz_look()
163 int ret = Z_OK; in gz_decomp()
356 (state->err != Z_OK && state->err != Z_BUF_ERROR)) in PREFIX()
370 if (len == 0 && state->err != Z_OK && state->err != Z_BUF_ERROR) in PREFIX()
393 (state->err != Z_OK && state->err != Z_BUF_ERROR)) in PREFIX()
420 if (state->mode != GZ_READ || (state->err != Z_OK && state->err != Z_BUF_ERROR)) in PREFIX()
448 if (state->mode != GZ_READ || (state->err != Z_OK && state->err != Z_BUF_ERROR)) in PREFIX()
507 if (state->mode != GZ_READ || (state->err != Z_OK && state->err != Z_BUF_ERROR)) in PREFIX()
595 err = state->err == Z_BUF_ERROR ? Z_BUF_ERROR : Z_OK; in PREFIX()
[all …]
Dcompress.c40 if (err != Z_OK) in PREFIX()
58 } while (err == Z_OK); in PREFIX()
62 return err == Z_STREAM_END ? Z_OK : err; in PREFIX()
/external/libwebsockets/win32port/zlib/
Dgzwrite.c39 if (ret != Z_OK) {
72 ret = Z_OK;
160 if (state->mode != GZ_WRITE || state->err != Z_OK)
236 if (state->mode != GZ_WRITE || state->err != Z_OK)
295 if (state->mode != GZ_WRITE || state->err != Z_OK) in gzprintf()
370 if (state->mode != GZ_WRITE || state->err != Z_OK)
438 if (state->mode != GZ_WRITE || state->err != Z_OK)
473 if (state->mode != GZ_WRITE || state->err != Z_OK)
478 return Z_OK;
496 return Z_OK;
[all …]
/external/zlib/google/
Dcompression_utils.cc29 static_cast<uLongf>(input.size()), malloc_fn, free_fn) != Z_OK) { in GzipCompress()
58 input_size, nullptr, nullptr) != Z_OK) { in GzipCompress()
86 static_cast<uLongf>(input.length())) == Z_OK) { in GzipUncompress()
106 static_cast<uLongf>(input.size())) == Z_OK; in GzipUncompress()
121 static_cast<uLongf>(input.size())) == Z_OK; in GzipUncompress()
/external/libevent/test/
Dregress_zlib.c98 assert(deflateEnd(p) == Z_OK); in zlib_deflate_free()
107 assert(inflateEnd(p) == Z_OK); in zlib_inflate_free()
174 assert(res == Z_OK || res == Z_STREAM_END); in zlib_input_filter()
228 assert(res == Z_OK || res == Z_STREAM_END); in zlib_output_filter()
301 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
304 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
/external/zlib/
Dgzwrite.c46 if (ret != Z_OK) {
101 ret = Z_OK;
259 if (state->mode != GZ_WRITE || state->err != Z_OK)
289 if (state->mode != GZ_WRITE || state->err != Z_OK)
320 if (state->mode != GZ_WRITE || state->err != Z_OK)
366 if (state->mode != GZ_WRITE || state->err != Z_OK)
394 if (state->mode != GZ_WRITE || state->err != Z_OK) in gzvprintf()
488 if (state->mode != GZ_WRITE || state->err != Z_OK)
565 if (state->mode != GZ_WRITE || state->err != Z_OK)
600 if (state->mode != GZ_WRITE || state->err != Z_OK)
[all …]
Dgzread.c62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
115 if (inflateInit2(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */
178 int ret = Z_OK;
389 (state->err != Z_OK && state->err != Z_BUF_ERROR))
403 if (len == 0 && state->err != Z_OK && state->err != Z_BUF_ERROR)
427 (state->err != Z_OK && state->err != Z_BUF_ERROR))
465 (state->err != Z_OK && state->err != Z_BUF_ERROR))
500 (state->err != Z_OK && state->err != Z_BUF_ERROR))
564 (state->err != Z_OK && state->err != Z_BUF_ERROR))
652 err = state->err == Z_BUF_ERROR ? Z_BUF_ERROR : Z_OK;
[all …]
/external/rust/crates/libz-sys/src/zlib/
Dgzwrite.c46 if (ret != Z_OK) {
101 ret = Z_OK;
259 if (state->mode != GZ_WRITE || state->err != Z_OK)
289 if (state->mode != GZ_WRITE || state->err != Z_OK)
320 if (state->mode != GZ_WRITE || state->err != Z_OK)
366 if (state->mode != GZ_WRITE || state->err != Z_OK)
394 if (state->mode != GZ_WRITE || state->err != Z_OK) in gzvprintf()
488 if (state->mode != GZ_WRITE || state->err != Z_OK)
565 if (state->mode != GZ_WRITE || state->err != Z_OK)
600 if (state->mode != GZ_WRITE || state->err != Z_OK)
[all …]
Dgzread.c62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
115 if (inflateInit2(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */
178 int ret = Z_OK;
389 (state->err != Z_OK && state->err != Z_BUF_ERROR))
403 if (len == 0 && state->err != Z_OK && state->err != Z_BUF_ERROR)
427 (state->err != Z_OK && state->err != Z_BUF_ERROR))
461 (state->err != Z_OK && state->err != Z_BUF_ERROR))
496 (state->err != Z_OK && state->err != Z_BUF_ERROR))
560 (state->err != Z_OK && state->err != Z_BUF_ERROR))
648 err = state->err == Z_BUF_ERROR ? Z_BUF_ERROR : Z_OK;
[all …]
/external/python/cpython2/Modules/zlib/
Dgzwrite.c46 if (ret != Z_OK) {
101 ret = Z_OK;
259 if (state->mode != GZ_WRITE || state->err != Z_OK)
289 if (state->mode != GZ_WRITE || state->err != Z_OK)
320 if (state->mode != GZ_WRITE || state->err != Z_OK)
366 if (state->mode != GZ_WRITE || state->err != Z_OK)
394 if (state->mode != GZ_WRITE || state->err != Z_OK) in gzvprintf()
488 if (state->mode != GZ_WRITE || state->err != Z_OK)
565 if (state->mode != GZ_WRITE || state->err != Z_OK)
600 if (state->mode != GZ_WRITE || state->err != Z_OK)
[all …]
Dgzread.c62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
115 if (inflateInit2(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */
178 int ret = Z_OK;
389 (state->err != Z_OK && state->err != Z_BUF_ERROR))
403 if (len == 0 && state->err != Z_OK && state->err != Z_BUF_ERROR)
427 (state->err != Z_OK && state->err != Z_BUF_ERROR))
461 (state->err != Z_OK && state->err != Z_BUF_ERROR))
496 (state->err != Z_OK && state->err != Z_BUF_ERROR))
560 (state->err != Z_OK && state->err != Z_BUF_ERROR))
648 err = state->err == Z_BUF_ERROR ? Z_BUF_ERROR : Z_OK;
[all …]
/external/pdfium/third_party/libtiff/
Dtif_zip.c112 inflateInit(&sp->stream) != Z_OK) { in ZIPSetupDecode()
141 return (inflateReset(&sp->stream) == Z_OK); in ZIPPreDecode()
178 if (state != Z_OK) { in ZIPDecode()
208 if (deflateInit(&sp->stream, sp->zipquality) != Z_OK) { in ZIPSetupEncode()
236 return (deflateReset(&sp->stream) == Z_OK); in ZIPPreEncode()
260 if (deflate(&sp->stream, Z_NO_FLUSH) != Z_OK) { in ZIPEncode()
293 case Z_OK: in ZIPPostEncode()
347 sp->zipquality, Z_DEFAULT_STRATEGY) != Z_OK) { in ZIPVSetField()
/external/python/cpython2/Modules/
Dzlibmodule.c223 case Z_OK: in PyZlib_compress()
266 if (err == Z_OK) { in PyZlib_compress()
311 case Z_OK: in PyZlib_decompress()
339 case Z_OK: /* fall through */ in PyZlib_decompress()
366 if (err != Z_OK) { in PyZlib_decompress()
400 case Z_OK: in PyZlib_compressobj()
436 case Z_OK: in PyZlib_decompressobj()
588 int err = Z_OK; in PyZlib_objdecompress()
636 case Z_OK: /* fall through */ in PyZlib_objdecompress()
655 if (err != Z_STREAM_END && err != Z_OK && err != Z_BUF_ERROR) { in PyZlib_objdecompress()
[all …]
/external/python/cpython3/Modules/
Dzlibmodule.c234 case Z_OK: in zlib_compress_impl()
277 if (err == Z_OK) { in zlib_compress_impl()
364 case Z_OK: in zlib_decompress_impl()
392 case Z_OK: /* fall through */ in zlib_decompress_impl()
419 if (err != Z_OK) { in zlib_decompress_impl()
487 case Z_OK: in zlib_compressobj_impl()
495 case Z_OK: in zlib_compressobj_impl()
541 if (err != Z_OK) { in set_inflate_zdict()
587 case Z_OK: in zlib_decompressobj_impl()
776 int err = Z_OK; in zlib_Decompress_decompress_impl()
[all …]

123456789