Home
last modified time | relevance | path

Searched refs:compressed_size (Results 1 – 13 of 13) sorted by relevance

/system/update_engine/lz4diff/
Dlz4diff_compress.cc127 size_t compressed_size = 0; in TryCompressBlob() local
132 compressed_size += block.compressed_length; in TryCompressBlob()
136 output.reserve(utils::RoundUp(compressed_size, kBlockSize)); in TryCompressBlob()
158 size_t compressed_size = 0; in TryDecompressBlob() local
164 compressed_size += block.compressed_length; in TryDecompressBlob()
166 if (blob.size() < compressed_size) { in TryDecompressBlob()
168 << compressed_size << ", actual size: " << blob.size(); in TryDecompressBlob()
Dlz4patch.cc205 size_t compressed_size = 0; in GetCompressedSize() local
207 compressed_size += block.compressed_length(); in GetCompressedSize()
209 return compressed_size; in GetCompressedSize()
/system/update_engine/payload_generator/
Derofs_filesystem_unittest.cc113 size_t compressed_size = 0; in TEST_F() local
116 compressed_size += block.compressed_length; in TEST_F()
124 ASSERT_EQ(compressed_size, total_blocks * kBlockSize); in TEST_F()
Derofs_filesystem.cc219 erofs_off_t compressed_size = 0; in GetFiles() local
223 err = GetOccupiedSize(&inode, &compressed_size); in GetFiles()
241 file.is_compressed = compressed_size != uncompressed_size; in GetFiles()
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_compress.cpp83 const auto compressed_size = LZ4_compress_default( in Compress() local
86 if (compressed_size <= 0) { in Compress()
88 << ", compression bound: " << bound << ", ret: " << compressed_size; in Compress()
92 if (compressed_size >= length) { in Compress()
96 buffer.resize(compressed_size); in Compress()
/system/unwinding/libunwindstack/
DMemoryXz.cpp204 .compressed_size = static_cast<uint32_t>((block.totalSize + 3) & ~3u), in ReadBlocks()
208 src_offset += blocks_.back().compressed_size; in ReadBlocks()
224 std::unique_ptr<uint8_t[]> compressed_data(new (std::nothrow) uint8_t[block->compressed_size]); in Decompress()
229 compressed_data.get(), block->compressed_size)) { in Decompress()
245 size_t compressed_size = block->compressed_size; in Decompress() local
250 compressed_data.get(), &compressed_size, true, CODER_FINISH_END, &status); in Decompress()
DMemoryXz.h48 uint32_t compressed_size; member
/system/libziparchive/
Dzip_archive_common.h97 uint32_t compressed_size; member
149 uint32_t compressed_size; member
180 uint64_t compressed_size; member
Dzip_writer.cc185 dst->compressed_size = 0u; in CopyFromFileEntry()
189 dst->compressed_size = src.compressed_size; in CopyFromFileEntry()
381 file->compressed_size += len; in StoreBytes()
409 file->compressed_size += write_bytes; in CompressBytes()
436 file->compressed_size += write_bytes; in FlushCompressedBytes()
452 file->compressed_size += write_bytes; in FlushCompressedBytes()
483 current_file_entry_.compressed_size, current_file_entry_.uncompressed_size}; in FinishEntry()
528 cdr.compressed_size = file.compressed_size; in Finish()
Dzip_archive.cc592 extra_field, extra_length, cdr->uncompressed_size, cdr->compressed_size, in ParseZipArchive()
756 descriptor.compressed_size = ConsumeUnaligned<uint64_t>(&ddReadPtr); in ValidateDataDescriptor()
759 descriptor.compressed_size = ConsumeUnaligned<uint32_t>(&ddReadPtr); in ValidateDataDescriptor()
765 if (entry->compressed_length != descriptor.compressed_size || in ValidateDataDescriptor()
771 descriptor.compressed_size, descriptor.uncompressed_size, descriptor.crc32); in ValidateDataDescriptor()
814 data->compressed_length = cdr->compressed_size; in FindEntry()
823 if (cdr->uncompressed_size == UINT32_MAX || cdr->compressed_size == UINT32_MAX || in FindEntry()
828 extra_field, cdr->extra_field_length, cdr->uncompressed_size, cdr->compressed_size, in FindEntry()
835 data->compressed_length = zip64_info.compressed_file_size.value_or(cdr->compressed_size); in FindEntry()
838 cdr->uncompressed_size == UINT32_MAX || cdr->compressed_size == UINT32_MAX; in FindEntry()
[all …]
Dzip_archive_test.cc1029 uint32_t uncompressed_size, uint32_t compressed_size) { in ConstructLocalFileHeader() argument
1032 lfh.compressed_size = compressed_size; in ConstructLocalFileHeader()
1058 uint32_t compressed_size, uint32_t local_offset, in ConstructCentralDirectoryRecord() argument
1062 cdr.compressed_size = uncompressed_size; in ConstructCentralDirectoryRecord()
1063 cdr.uncompressed_size = compressed_size; in ConstructCentralDirectoryRecord()
1077 auto compressed_size = static_cast<uint32_t>(content.size()); in AddEntry() local
1090 zip64_fields.push_back(compressed_size); in AddEntry()
1091 compressed_size = UINT32_MAX; in AddEntry()
1100 compressed_size); in AddEntry()
1128 ConstructCentralDirectoryRecord(name, uncompressed_size, compressed_size, in AddEntry()
/system/logging/logd/
DCompressionEngine.cpp53 uint32_t compressed_size = strm.total_out; in Compress() local
56 out.Resize(compressed_size); in Compress()
/system/libziparchive/include/ziparchive/
Dzip_writer.h83 uint32_t compressed_size; member