Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/util/nanotool/
Dcalibrationfile.cpp48 off64_t file_size = file_->seekTo(0, SEEK_END); in Initialize() local
49 if (file_size > 0) { in Initialize()
50 auto file_data = std::vector<char>(file_size); in Initialize()
52 ssize_t bytes_read = file_->read(file_data.data(), file_size); in Initialize()
53 if (bytes_read != file_size) { in Initialize()
55 bytes_read, file_size); in Initialize()
59 sp<JSONCompound> json = JSONCompound::Parse(file_data.data(), file_size); in Initialize()
Dcontexthub.cpp153 long file_size = ftell(firmware_file); in Flash() local
156 auto firmware_data = std::vector<uint8_t>(file_size); in Flash()
158 file_size, firmware_file); in Flash()
161 if (bytes_read != static_cast<size_t>(file_size)) { in Flash()
163 bytes_read, file_size); in Flash()
/device/google/cuttlefish/host/libs/image_aggregator/
Dimage_aggregator.cc167 std::uint64_t file_size = FileSize(file_path); in ExpandedStorageSize() local
172 std::string magic(std::min(file_size, MAGIC_BLOCK_SIZE), '\0'); in ExpandedStorageSize()
218 return file_size; in ExpandedStorageSize()
483 auto file_size = FileSize(disk.image_file_path); in AggregateImage() local
484 if (!output->CopyFrom(*disk_fd, file_size)) { in AggregateImage()
489 std::uint64_t padding = AlignToPartitionSize(file_size) - file_size; in AggregateImage()