Searched refs:uncompressed_length (Results 1 – 13 of 13) sorted by relevance
/system/libziparchive/ |
D | ziptool.cpp | 243 if (entry.uncompressed_length > SIZE_MAX) { in ExtractToPipe() 244 die(0, "entry size %" PRIu64 " is too large to extract.", entry.uncompressed_length); in ExtractToPipe() 246 auto uncompressed_length = static_cast<size_t>(entry.uncompressed_length); in ExtractToPipe() local 247 uint8_t* buffer = new uint8_t[uncompressed_length]; in ExtractToPipe() 248 int err = ExtractToMemory(zah, &entry, buffer, uncompressed_length); in ExtractToPipe() 252 if (!android::base::WriteFully(1, buffer, uncompressed_length)) { in ExtractToPipe() 313 printf("%8" PRIu64 " %s %8" PRIu64 " %3.0f%% %s %08x %s\n", entry.uncompressed_length, in ListOne() 315 CompressionRatio(entry.uncompressed_length, entry.compressed_length), time, entry.crc32, in ListOne() 318 printf("%9" PRIu64 " %s %s\n", entry.uncompressed_length, time, name.c_str()); in ListOne() 378 entry.uncompressed_length, entry.is_text ? 't' : 'b', in InfoOne() [all …]
|
D | zip_writer_test.cc | 69 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F() 101 ASSERT_EQ(2u, data.uncompressed_length); in TEST_F() 107 ASSERT_EQ(3u, data.uncompressed_length); in TEST_F() 113 EXPECT_EQ(0u, data.uncompressed_length); in TEST_F() 247 ASSERT_EQ(4u, data.uncompressed_length); in TEST_F() 279 EXPECT_EQ(kBufSize, data.uncompressed_length); in TEST_F() 373 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F() 409 if (expected.size() != zip_entry->uncompressed_length) { in AssertFileEntryContentsEq() 411 << "uncompressed entry size " << zip_entry->uncompressed_length in AssertFileEntryContentsEq()
|
D | zip_archive_test.cc | 347 ASSERT_EQ(17u, data.uncompressed_length); in TEST() 420 const auto a_size = static_cast<size_t>(data.uncompressed_length); in TEST() 428 const auto b_size = static_cast<size_t>(data.uncompressed_length); in TEST() 444 const auto a_size = static_cast<size_t>(data.uncompressed_length); in TEST() 453 const auto b_size = static_cast<size_t>(data.uncompressed_length); in TEST() 508 ASSERT_EQ(0u, entry.uncompressed_length); in TEST() 534 ASSERT_EQ(kAbUncompressedSize, entry.uncompressed_length); in TEST() 600 std::vector<uint8_t> uncompressed_data(static_cast<size_t>(entry.uncompressed_length)); in TEST() 602 static_cast<size_t>(entry.uncompressed_length))); in TEST() 641 read_data->resize(static_cast<size_t>(entry->uncompressed_length)); in ZipArchiveStreamTest() [all …]
|
D | zip_archive.cc | 678 offset += entry->uncompressed_length; in ValidateDataDescriptor() 693 entry->uncompressed_length >= u32max) { in ValidateDataDescriptor() 704 entry->uncompressed_length != descriptor.uncompressed_size || in ValidateDataDescriptor() 708 entry->compressed_length, entry->uncompressed_length, entry->crc32, in ValidateDataDescriptor() 755 data->uncompressed_length = cdr->uncompressed_size; in FindEntry() 774 data->uncompressed_length = zip64_info.uncompressed_file_size.value_or(cdr->uncompressed_size); in FindEntry() 897 data->uncompressed_length != lfh_uncompressed_size || data->crc32 != lfh->crc32) { in FindEntry() 900 data->compressed_length, data->uncompressed_length, data->crc32, lfh_compressed_size, in FindEntry() 938 if (data->method == kCompressStored && data->uncompressed_length > cd_offset - data_offset) { in FindEntry() 940 static_cast<int64_t>(data_offset), data->uncompressed_length, in FindEntry() [all …]
|
D | zip_archive_stream_entry.cc | 72 length_ = entry.uncompressed_length; in Init() 179 uncompressed_length_ = entry.uncompressed_length; in Init()
|
/system/libziparchive/include/ziparchive/ |
D | zip_archive.h | 105 uint32_t uncompressed_length{0}; 129 uint64_t uncompressed_length{0}; 134 uncompressed_length = zip_entry.uncompressed_length; in ZipEntry64() 380 const uint64_t uncompressed_length, Writer* writer, uint64_t* crc_out);
|
/system/extras/simpleperf/ |
D | read_apk.cpp | 87 file_offset < static_cast<uint64_t>(entry.offset) + entry.uncompressed_length) { in FindElfInApkByOffsetWithoutCache() 105 apk_path, found_entry_name, found_entry.offset, found_entry.uncompressed_length)); in FindElfInApkByOffsetWithoutCache() 118 if (zentry.method != kCompressStored || zentry.compressed_length != zentry.uncompressed_length) { in FindElfInApkByNameWithoutCache() 122 new EmbeddedElf(apk_path, entry_name, zentry.offset, zentry.uncompressed_length)); in FindElfInApkByNameWithoutCache()
|
D | utils.cpp | 147 data->resize(entry.uncompressed_length); in GetEntryData()
|
/system/extras/memory_replay/ |
D | File.cpp | 47 contents.resize(entry.uncompressed_length); in ZipGetContents() 49 entry.uncompressed_length) != 0) { in ZipGetContents()
|
/system/apex/apexd/ |
D | apex_file.cpp | 119 image_size = entry.uncompressed_length; in Open() 135 uint32_t length = entry.uncompressed_length; in Open() 147 length = entry.uncompressed_length; in Open()
|
D | apex_file_test.cpp | 73 zip_image_size = entry.uncompressed_length; in TEST_P()
|
/system/update_engine/payload_consumer/ |
D | certificate_parser_android.cc | 45 std::vector<uint8_t> pem_content(entry.uncompressed_length); in IterateZipEntriesAndSearchForKeys()
|
/system/core/fastboot/ |
D | fastboot.cpp | 556 if (zip_entry.uncompressed_length > std::numeric_limits<size_t>::max()) { in UnzipToMemory() 557 die("entry '%s' is too large: %" PRIu64, entry_name.c_str(), zip_entry.uncompressed_length); in UnzipToMemory() 559 out->resize(zip_entry.uncompressed_length); in UnzipToMemory() 672 zip_entry.uncompressed_length / 1024 / 1024); in unzip_to_file()
|