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/commands/assemble_cvd/
Dimage_aggregator.cc373 auto file_size = cuttlefish::FileSize(disk.image_file_path); in AggregateImage() local
374 if (!output->CopyFrom(*disk_fd, file_size)) { in AggregateImage()