Home
last modified time | relevance | path

Searched refs:data_file_fd (Results 1 – 2 of 2) sorted by relevance

/system/nvram/hal/
Dfake_nvram_storage.cpp79 android::base::unique_fd data_file_fd( in LoadFile() local
81 if (data_file_fd.get() < 0) { in LoadFile()
90 if (TEMP_FAILURE_RETRY(fstat(data_file_fd.get(), &data_file_stat))) { in LoadFile()
105 if (!android::base::ReadFully(data_file_fd.get(), blob->data(), in LoadFile()
116 android::base::unique_fd data_file_fd(TEMP_FAILURE_RETRY( in StoreFile() local
119 if (data_file_fd.get() < 0) { in StoreFile()
127 if (!android::base::WriteFully(data_file_fd.get(), blob.data(), in StoreFile()
135 if (TEMP_FAILURE_RETRY(fdatasync(data_file_fd.get()))) { in StoreFile()
141 data_file_fd.reset(); in StoreFile()
/system/update_engine/payload_generator/
Ddelta_diff_generator.cc70 int data_file_fd; in GenerateUpdatePayloadFile() local
72 utils::MakeTempFile(kTempFileTemplate, &temp_file_path, &data_file_fd)); in GenerateUpdatePayloadFile()
74 TEST_AND_RETURN_FALSE(data_file_fd >= 0); in GenerateUpdatePayloadFile()
78 ScopedFdCloser data_file_fd_closer(&data_file_fd); in GenerateUpdatePayloadFile()
79 BlobFileWriter blob_file(data_file_fd, &data_file_size); in GenerateUpdatePayloadFile()