• Home
  • Raw
  • Download

Lines Matching refs:source_file

49 static bool GenerateTarget(const Partition& target, const FileContents& source_file,
258 FileContents source_file; in PatchPartitionCheck() local
260 ReadPartitionToBuffer(source, &source_file, true)); in PatchPartitionCheck()
281 FileContents source_file; in PatchPartition() local
282 if (ReadPartitionToBuffer(source, &source_file, backup_source)) { in PatchPartition()
283 return GenerateTarget(target, source_file, patch, bonus, backup_source); in PatchPartition()
302 FileContents source_file; in FlashPartition() local
303 if (!LoadFileContents(source_filename, &source_file)) { in FlashPartition()
314 if (memcmp(source_file.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in FlashPartition()
318 << ", found: " << short_sha1(source_file.sha1); in FlashPartition()
321 if (!WriteBufferToPartition(source_file, partition)) { in FlashPartition()
328 static bool GenerateTarget(const Partition& target, const FileContents& source_file, in GenerateTarget() argument
354 if (backup_source && !CheckAndFreeSpaceOnCache(source_file.data.size())) { in GenerateTarget()
358 if (backup_source && !SaveFileContents(Paths::Get().cache_temp_source(), &source_file)) { in GenerateTarget()
375 result = ApplyBSDiffPatch(source_file.data.data(), source_file.data.size(), patch, 0, sink); in GenerateTarget()
378 ApplyImagePatch(source_file.data.data(), source_file.data.size(), patch, sink, bonus_data); in GenerateTarget()
391 LOG(ERROR) << "source size " << source_file.data.size() << " SHA-1 " in GenerateTarget()
392 << short_sha1(source_file.sha1); in GenerateTarget()