Lines Matching refs:offset
31 bool MiscWriter::OffsetAndSizeInVendorSpace(size_t offset, size_t size) { in OffsetAndSizeInVendorSpace() argument
33 return size <= total_size && offset <= total_size - size; in OffsetAndSizeInVendorSpace()
36 bool MiscWriter::WriteMiscPartitionVendorSpace(const void* data, size_t size, size_t offset, in WriteMiscPartitionVendorSpace() argument
38 if (!OffsetAndSizeInVendorSpace(offset, size)) { in WriteMiscPartitionVendorSpace()
39 *err = android::base::StringPrintf("Out of bound write (offset %zu size %zu)", offset, size); in WriteMiscPartitionVendorSpace()
46 return write_misc_partition(data, size, misc_blk_device, VENDOR_SPACE_OFFSET_IN_MISC + offset, in WriteMiscPartitionVendorSpace()
51 size_t offset = 0; in PerformAction() local
56 offset = override_offset.value_or(kThemeFlagOffsetInVendorSpace); in PerformAction()
63 offset = override_offset.value_or(kSotaFlagOffsetInVendorSpace); in PerformAction()
73 !WriteMiscPartitionVendorSpace(content.data(), content.size(), offset, &err)) { in PerformAction()
74 LOG(ERROR) << "Failed to write " << content << " at offset " << offset << " : " << err; in PerformAction()