Searched refs:file_ (Results 1 – 2 of 2) sorted by relevance
40 file_ = std::unique_ptr<File>(new File(kCalibrationFile, "rw")); in Initialize()42 status_t err = file_->initCheck(); in Initialize()48 off64_t file_size = file_->seekTo(0, SEEK_END); in Initialize()51 file_->seekTo(0, SEEK_SET); in Initialize()52 ssize_t bytes_read = file_->read(file_data.data(), file_size); in Initialize()123 file_->seekTo(0, SEEK_SET); in Save()124 ssize_t bytes_written = file_->write(json_str.c_str(), json_str.size()); in Save()
48 CalibrationFile() : file_(nullptr), json_root_(nullptr) {} in CalibrationFile()53 std::unique_ptr<File> file_; variable