Searched refs:zs (Results 1 – 2 of 2) sorted by relevance
/system/bt/btif/src/ |
D | btif_debug_btsnoop.c | 127 z_stream zs = {.zalloc = Z_NULL, .zfree = Z_NULL, .opaque = Z_NULL}; in btsnoop_compress() local 128 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) in btsnoop_compress() 137 zs.avail_in = ringbuffer_peek(rb_src, i * BLOCK_SIZE, block_src, BLOCK_SIZE); in btsnoop_compress() 138 zs.next_in = block_src; in btsnoop_compress() 141 zs.avail_out = BLOCK_SIZE; in btsnoop_compress() 142 zs.next_out = block_dst; in btsnoop_compress() 144 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in btsnoop_compress() 150 const size_t length = BLOCK_SIZE - zs.avail_out; in btsnoop_compress() 152 } while (zs.avail_out == 0); in btsnoop_compress() 155 deflateEnd(&zs); in btsnoop_compress()
|
/system/extras/ANRdaemon/ |
D | ANRdaemon.cpp | 381 z_stream zs; in dump_trace() local 385 memset(&zs, 0, sizeof(zs)); in dump_trace() 386 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION); in dump_trace() 399 zs.next_out = out; in dump_trace() 400 zs.avail_out = bufSize; in dump_trace() 403 if (zs.avail_in == 0) { in dump_trace() 412 zs.next_in = in; in dump_trace() 413 zs.avail_in = result; in dump_trace() 417 if (zs.avail_out == 0) { in dump_trace() 422 zs.avail_out = bufSize; in dump_trace() [all …]
|