Lines Matching refs:i
563 for (size_t i = 0; i < patch_chunks.size(); ++i) { in WritePatchDataToFd() local
564 offset = patch_chunks[i].WriteHeaderToFd(patch_fd, offset, i); in WritePatchDataToFd()
581 ImageChunk& Image::operator[](size_t i) { in operator []() argument
582 CHECK_LT(i, chunks_.size()); in operator []()
583 return chunks_[i]; in operator []()
586 const ImageChunk& Image::operator[](size_t i) const { in operator []()
587 CHECK_LT(i, chunks_.size()); in operator []()
588 return chunks_[i]; in operator []()
616 for (size_t i = 0; i < chunks_.size(); ++i) { in DumpChunks() local
617 chunks_[i].Dump(i); in DumpChunks()
835 for (int i = file_content_.size() - 22; i >= 0; i--) { in GetZipFileSize() local
836 if (file_content_[i] == 0x50) { in GetZipFileSize()
837 if (get_unaligned<uint32_t>(&file_content_[i]) == 0x06054b50) { in GetZipFileSize()
839 CHECK_EQ(get_unaligned<uint16_t>(&file_content_[i + 4]), 0); in GetZipFileSize()
841 uint16_t comment_length = get_unaligned<uint16_t>(&file_content_[i + 20]); in GetZipFileSize()
842 size_t file_size = i + 22 + comment_length; in GetZipFileSize()
1029 size_t i = 0; in AddSplitImageFromChunkList() local
1030 while (i < split_tgt_chunks.size()) { in AddSplitImageFromChunkList()
1031 size_t tgt_start = split_tgt_chunks[i].GetStartOffset(); in AddSplitImageFromChunkList()
1032 size_t tgt_length = split_tgt_chunks[i].GetRawDataLength(); in AddSplitImageFromChunkList()
1041 i++; in AddSplitImageFromChunkList()
1045 if (i == split_tgt_chunks.size()) { in AddSplitImageFromChunkList()
1049 aligned_tgt_chunks.insert(aligned_tgt_chunks.end(), split_tgt_chunks.begin() + i + 1, in AddSplitImageFromChunkList()
1116 for (size_t i = 0; i < split_src_ranges.size(); i++) { in ValidateSplitImages() local
1117 CHECK(!used_src_ranges.Overlaps(split_src_ranges[i])) in ValidateSplitImages()
1118 << "src range " << split_src_ranges[i].ToString() << " overlaps " in ValidateSplitImages()
1120 used_src_ranges.Insert(split_src_ranges[i]); in ValidateSplitImages()
1131 for (size_t i = 0; i < tgt_image.NumOfChunks(); i++) { in GeneratePatchesInternal() local
1132 const auto& tgt_chunk = tgt_image[i]; in GeneratePatchesInternal()
1153 LOG(INFO) << "patch " << i << " is " << patch_data.size() << " bytes (of " in GeneratePatchesInternal()
1202 for (size_t i = 0; i < split_tgt_images.size(); i++) { in GeneratePatches() local
1204 if (!ZipModeImage::GeneratePatchesInternal(split_tgt_images[i], split_src_images[i], in GeneratePatches()
1212 p.UpdateSourceOffset(split_src_ranges[i]); in GeneratePatches()
1220 size_t split_tgt_size = split_tgt_images[i].chunks_.back().GetStartOffset() + in GeneratePatches()
1221 split_tgt_images[i].chunks_.back().GetRawDataLength() - in GeneratePatches()
1222 split_tgt_images[i].chunks_.front().GetStartOffset(); in GeneratePatches()
1224 "%zu %zu %s", total_patch_size, split_tgt_size, split_src_ranges[i].ToString().c_str()); in GeneratePatches()
1229 std::string src_name = android::base::StringPrintf("%s/src-%zu", debug_dir.c_str(), i); in GeneratePatches()
1237 if (!android::base::WriteFully(fd, split_src_images[i].PseudoSource().DataForPatch(), in GeneratePatches()
1238 split_src_images[i].PseudoSource().DataLengthForPatch())) { in GeneratePatches()
1243 std::string patch_name = android::base::StringPrintf("%s/patch-%zu", debug_dir.c_str(), i); in GeneratePatches()
1412 for (size_t i = 0; i < tgt_image->NumOfChunks(); ++i) { in CheckAndProcessChunks() local
1413 if ((*tgt_image)[i].GetType() != (*src_image)[i].GetType()) { in CheckAndProcessChunks()
1414 LOG(ERROR) << "Source and target don't have same chunk structure! (chunk " << i << ")"; in CheckAndProcessChunks()
1421 for (size_t i = 0; i < tgt_image->NumOfChunks(); ++i) { in CheckAndProcessChunks() local
1422 auto& tgt_chunk = (*tgt_image)[i]; in CheckAndProcessChunks()
1423 auto& src_chunk = (*src_image)[i]; in CheckAndProcessChunks()
1435 LOG(WARNING) << "Failed to reconstruct target deflate chunk " << i << " [" in CheckAndProcessChunks()
1464 for (size_t i = 0; i < tgt_image.NumOfChunks(); i++) { in GeneratePatches() local
1465 const auto& tgt_chunk = tgt_image[i]; in GeneratePatches()
1466 const auto& src_chunk = src_image[i]; in GeneratePatches()
1475 LOG(ERROR) << "Failed to generate patch for target chunk " << i; in GeneratePatches()
1478 LOG(INFO) << "patch " << i << " is " << patch_data.size() << " bytes (of " in GeneratePatches()