Lines Matching refs:data

253   size_t Write(const uint8_t* data, size_t size) {  in Write()  argument
271 if (!android::base::WriteFully(fd_, data, write_now)) { in Write()
277 data += write_now; in Write()
362 static bool receive_new_data(const uint8_t* data, size_t size, void* cookie) { in receive_new_data() argument
381 if (nti->writer->Write(data, write_now) != write_now) { in receive_new_data()
386 data += write_now; in receive_new_data()
402 static bool receive_brotli_new_data(const uint8_t* data, size_t size, void* cookie) { in receive_brotli_new_data() argument
433 nti->brotli_decoder_state, &available_in, &data, &available_out, &next_out, nullptr); in receive_brotli_new_data()
490 if (!android::base::ReadFully(fd, buffer->data() + p, size)) { in ReadBlocks()
515 if (!android::base::WriteFully(fd, buffer.data() + written, size)) { in WriteBlocks()
611 SHA1(buffer.data() + buffer_index * BLOCKSIZE, BLOCKSIZE, digest); in PrintHashForCorruptedSourceBlocks()
629 SHA1(buffer.data() + i * BLOCKSIZE, BLOCKSIZE, digest); in PrintHashForCorruptedStashedBlocks()
656 const uint8_t* data = buffer.data(); in VerifyBlocks() local
658 SHA1(data, blocks * BLOCKSIZE, digest); in VerifyBlocks()
786 if (!android::base::ReadFully(fd, buffer->data(), sb.st_size)) { in LoadStash()
854 if (!android::base::WriteFully(fd, buffer.data(), blocks * BLOCKSIZE)) { in WriteStash()
965 const uint8_t* from = source.data(); in MoveRange()
966 uint8_t* to = dest.data(); in MoveRange()
1287 memset(params.buffer.data(), 0, BLOCKSIZE); in PerformCommandZero()
1302 if (!android::base::WriteFully(params.fd, params.buffer.data(), BLOCKSIZE)) { in PerformCommandZero()
1400 if (ApplyImagePatch(params.buffer.data(), blocks * BLOCKSIZE, patch_value, in PerformCommandDiff()
1409 if (ApplyBSDiffPatch(params.buffer.data(), blocks * BLOCKSIZE, patch_value, 0, in PerformCommandDiff()
1603 SHA1(reinterpret_cast<const uint8_t*>(dm_target_name.data()), dm_target_name.size(), digest); in Sha1DevicePath()
1622 SHA1(reinterpret_cast<const uint8_t*>(path.data()), path.size(), digest); in Sha1DevicePath()
1677 auto block_device_path = updater->FindBlockDeviceName(blockdev_filename->data); in PerformBlockImageUpdate()
1679 LOG(ERROR) << "Block device path for " << blockdev_filename->data << " not found. " << name in PerformBlockImageUpdate()
1689 std::string_view path_data(patch_data_fn->data); in PerformBlockImageUpdate()
1692 LOG(ERROR) << name << "(): no file \"" << patch_data_fn->data << "\" in package"; in PerformBlockImageUpdate()
1697 std::string_view new_data(new_data_fn->data); in PerformBlockImageUpdate()
1700 LOG(ERROR) << name << "(): no file \"" << new_data_fn->data << "\" in package"; in PerformBlockImageUpdate()
1738 std::vector<std::string> lines = android::base::Split(transfer_list_value->data, "\n"); in PerformBlockImageUpdate()
1785 params.nti.brotli_compressed = android::base::EndsWith(new_data_fn->data, ".br"); in PerformBlockImageUpdate()
2091 auto block_device_path = state->updater->FindBlockDeviceName(blockdev_filename->data); in RangeSha1Fn()
2093 LOG(ERROR) << "Block device path for " << blockdev_filename->data << " not found. " << name in RangeSha1Fn()
2106 RangeSet rs = RangeSet::Parse(ranges->data); in RangeSha1Fn()
2121 if (!android::base::ReadFully(fd, buffer.data(), BLOCKSIZE)) { in RangeSha1Fn()
2128 SHA1_Update(&ctx, buffer.data(), BLOCKSIZE); in RangeSha1Fn()
2162 auto block_device_path = state->updater->FindBlockDeviceName(arg_filename->data); in CheckFirstBlockFn()
2164 LOG(ERROR) << "Block device path for " << arg_filename->data << " not found. " << name in CheckFirstBlockFn()
2231 RangeSet rs = RangeSet::Parse(ranges->data); in BlockImageRecoverFn()
2233 ErrorAbort(state, kArgsParsingFailure, "failed to parse ranges: %s", ranges->data.c_str()); in BlockImageRecoverFn()
2237 auto block_device_path = state->updater->FindBlockDeviceName(filename->data); in BlockImageRecoverFn()
2239 LOG(ERROR) << "Block device path for " << filename->data << " not found. " << name in BlockImageRecoverFn()