Lines Matching refs:size
270 CHECK_LE(start_ + raw_data_len_, input_file_ptr_->size()); in GetRawData()
283 return uncompressed_data_.size(); in DataLengthForPatch()
408 strm.avail_in = uncompressed_data_.size(); in TryReconstruction()
419 strm.avail_out = buffer.size(); in TryReconstruction()
427 size_t compressed_size = buffer.size() - strm.avail_out; in TryReconstruction()
491 return 4 + 4 + data_.size(); in GetHeaderSize()
504 target_start_, target_len_, data_.size()); in WriteHeaderToFd()
508 return offset + data_.size(); in WriteHeaderToFd()
511 target_start_, target_len_, data_.size()); in WriteHeaderToFd()
522 return offset + data_.size(); in WriteHeaderToFd()
526 Write4(fd, static_cast<int32_t>(data_.size())); in WriteHeaderToFd()
527 if (!android::base::WriteFully(fd, data_.data(), data_.size())) { in WriteHeaderToFd()
528 CHECK(false) << "Failed to write " << data_.size() << " bytes patch"; in WriteHeaderToFd()
541 return GetHeaderSize() + data_.size(); in PatchSize()
561 Write4(patch_fd, static_cast<int32_t>(patch_chunks.size())); in WritePatchDataToFd()
562 LOG(INFO) << "Writing " << patch_chunks.size() << " patch headers..."; in WritePatchDataToFd()
563 for (size_t i = 0; i < patch_chunks.size(); ++i) { in WritePatchDataToFd()
572 if (!android::base::WriteFully(patch_fd, patch.data_.data(), patch.data_.size())) { in WritePatchDataToFd()
573 PLOG(ERROR) << "Failed to write " << patch.data_.size() << " bytes patch to patch_fd"; in WritePatchDataToFd()
582 CHECK_LT(i, chunks_.size()); in operator []()
587 CHECK_LT(i, chunks_.size()); in operator []()
593 while (cur < chunks_.size()) { in MergeAdjacentNormalChunks()
597 while (to_check < chunks_.size() && chunks_[cur].IsAdjacentNormal(chunks_[to_check])) { in MergeAdjacentNormalChunks()
608 if (merged_last < chunks_.size()) { in MergeAdjacentNormalChunks()
616 for (size_t i = 0; i < chunks_.size(); ++i) { in DumpChunks()
719 CHECK_LT(entries_end, file_content_.size()); in InitializeChunks()
721 file_content_.size() - entries_end); in InitializeChunks()
730 while (pos < file_content_.size()) { in InitializeChunks()
731 if (nextentry < temp_entries.size() && in InitializeChunks()
747 if (nextentry < temp_entries.size()) { in InitializeChunks()
750 raw_data_len = file_content_.size() - pos; in InitializeChunks()
803 if (file_content_.size() < 22) { in GetZipFileSize()
810 for (int i = file_content_.size() - 22; i >= 0; i--) { in GetZipFileSize()
818 CHECK_LE(file_size, file_content_.size()); in GetZipFileSize()
831 return ImageChunk(CHUNK_NORMAL, 0, &file_content_, file_content_.size()); in PseudoSource()
987 tgt_image.file_content_.size()); in SplitZipModeImageWithLimit()
1005 while (i < split_tgt_chunks.size()) { in AddSplitImageFromChunkList()
1020 if (i == split_tgt_chunks.size()) { in AddSplitImageFromChunkList()
1031 if (end_offset % BLOCK_SIZE != 0 && end_offset < tgt_image.file_content_.size()) { in AddSplitImageFromChunkList()
1032 size_t tail_block_length = std::min<size_t>(tgt_image.file_content_.size() - end_offset, in AddSplitImageFromChunkList()
1045 size_t end = std::min(src_image.file_content_.size(), r.second * BLOCK_SIZE); in AddSplitImageFromChunkList()
1067 CHECK_EQ(split_tgt_images.size(), split_src_images.size()); in ValidateSplitImages()
1069 LOG(INFO) << "Validating " << split_tgt_images.size() << " images"; in ValidateSplitImages()
1088 CHECK_EQ(split_src_images.size(), split_src_ranges.size()); in ValidateSplitImages()
1090 for (size_t i = 0; i < split_src_ranges.size(); i++) { in ValidateSplitImages()
1127 LOG(INFO) << "patch " << i << " is " << patch_data.size() << " bytes (of " in GeneratePatchesInternal()
1130 if (PatchChunk::RawDataIsSmaller(tgt_chunk, patch_data.size())) { in GeneratePatchesInternal()
1138 CHECK_EQ(patch_chunks->size(), tgt_image.NumOfChunks()); in GeneratePatchesInternal()
1148 CHECK_EQ(tgt_image.NumOfChunks(), patch_chunks.size()); in GeneratePatches()
1166 LOG(INFO) << "Constructing patches for " << split_tgt_images.size() << " split images..."; in GeneratePatches()
1176 for (size_t i = 0; i < split_tgt_images.size(); i++) { in GeneratePatches()
1237 "%zu\n%zu\n", VERSION, split_info_list.size()) + android::base::Join(split_info_list, '\n'); in GeneratePatches()
1251 size_t sz = file_content_.size(); in Initialize()
1363 if (chunks_.size() < 2 || !chunks_[1].SetBonusData(bonus_data)) { in SetBonusData()
1369 LOG(INFO) << " using " << bonus_data.size() << " bytes of bonus data"; in SetBonusData()
1452 LOG(INFO) << "patch " << i << " is " << patch_data.size() << " bytes (of " in GeneratePatches()
1455 if (PatchChunk::RawDataIsSmaller(tgt_chunk, patch_data.size())) { in GeneratePatches()
1462 CHECK_EQ(tgt_image.NumOfChunks(), patch_chunks.size()); in GeneratePatches()