Searched refs:data_file_fd (Results 1 – 3 of 3) sorted by relevance
/system/nvram/hal/ |
D | fake_nvram_storage.cpp | 79 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/ |
D | payload_properties_unittest.cc | 66 int data_file_fd; in SetUp() local 69 utils::MakeTempFile(kTempFileTemplate, &temp_file_path, &data_file_fd)); in SetUp() 71 EXPECT_LE(0, data_file_fd); in SetUp() 96 BlobFileWriter blob_file_writer(data_file_fd, &data_file_size); in SetUp()
|
D | delta_diff_generator.cc | 109 int data_file_fd; in GenerateUpdatePayloadFile() local 111 utils::MakeTempFile(kTempFileTemplate, &temp_file_path, &data_file_fd)); in GenerateUpdatePayloadFile() 113 TEST_AND_RETURN_FALSE(data_file_fd >= 0); in GenerateUpdatePayloadFile() 117 ScopedFdCloser data_file_fd_closer(&data_file_fd); in GenerateUpdatePayloadFile() 118 BlobFileWriter blob_file(data_file_fd, &data_file_size); in GenerateUpdatePayloadFile()
|