Lines Matching refs:size
65 SHA1(file->data.data(), file->data.size(), file->sha1); in LoadFileContents()
82 std::vector<unsigned char> buffer(partition.size); in ReadPartitionToBuffer()
83 if (!android::base::ReadFully(dev, buffer.data(), buffer.size())) { in ReadPartitionToBuffer()
84 PLOG(ERROR) << "Failed to read " << buffer.size() << " bytes of data for partition " in ReadPartitionToBuffer()
87 SHA1(buffer.data(), buffer.size(), out->sha1); in ReadPartitionToBuffer()
117 if (!android::base::WriteFully(fd, file->data.data(), file->data.size())) { in SaveFileContents()
118 PLOG(ERROR) << "Failed to write " << file->data.size() << " bytes of data to " << filename; in SaveFileContents()
138 size_t len = file_contents.data.size(); in WriteBufferToPartition()
342 size_t header_bytes_read = patch.data.size(); in GenerateTarget()
354 if (!CheckAndFreeSpaceOnCache(source_file.data.size())) { 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()
390 LOG(ERROR) << "target size " << patched.data.size() << " SHA-1 " << short_sha1(patched.sha1); in GenerateTarget()
391 LOG(ERROR) << "source size " << source_file.data.size() << " SHA-1 " in GenerateTarget()
395 SHA1(reinterpret_cast<const uint8_t*>(patch.data.data()), patch.data.size(), patch_digest); in GenerateTarget()
396 LOG(ERROR) << "patch size " << patch.data.size() << " SHA-1 " << short_sha1(patch_digest); in GenerateTarget()
400 SHA1(reinterpret_cast<const uint8_t*>(bonus_data->data.data()), bonus_data->data.size(), in GenerateTarget()
402 LOG(ERROR) << "bonus size " << bonus_data->data.size() << " SHA-1 " in GenerateTarget()
431 if (pieces.size() != 4 || pieces[0] != "EMMC") { in Parse()
436 size_t size; in Parse() local
437 if (!android::base::ParseUint(pieces[2], &size) || size == 0) { in Parse()
442 return Partition(pieces[1], size, pieces[3]); in Parse()
447 return "EMMC:"s + name + ":" + std::to_string(size) + ":" + hash; in ToString()