Home
last modified time | relevance | path

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

/system/update_engine/common/
Dtest_utils.cc186 int data_fd = open(filename.c_str(), in BindToUnusedLoopDevice() local
188 TEST_AND_RETURN_FALSE_ERRNO(data_fd >= 0); in BindToUnusedLoopDevice()
189 ScopedFdCloser data_fd_closer(&data_fd); in BindToUnusedLoopDevice()
190 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_SET_FD, data_fd) == 0); in BindToUnusedLoopDevice()
/system/update_engine/payload_generator/
Dab_generator_unittest.cc115 int data_fd = open(data_path.c_str(), O_RDWR, 000); in TestSplitReplaceOrReplaceBzOperation() local
116 EXPECT_GE(data_fd, 0); in TestSplitReplaceOrReplaceBzOperation()
117 ScopedFdCloser data_fd_closer(&data_fd); in TestSplitReplaceOrReplaceBzOperation()
121 BlobFileWriter blob_file(data_fd, &data_file_size); in TestSplitReplaceOrReplaceBzOperation()
157 ASSERT_TRUE(utils::PReadAll(data_fd, in TestSplitReplaceOrReplaceBzOperation()
185 ASSERT_TRUE(utils::PReadAll(data_fd, in TestSplitReplaceOrReplaceBzOperation()
284 int data_fd = open(data_path.c_str(), O_RDWR, 000); in TestMergeReplaceOrReplaceBzOperations() local
285 EXPECT_GE(data_fd, 0); in TestMergeReplaceOrReplaceBzOperations()
286 ScopedFdCloser data_fd_closer(&data_fd); in TestMergeReplaceOrReplaceBzOperations()
290 BlobFileWriter blob_file(data_fd, &data_file_size); in TestMergeReplaceOrReplaceBzOperations()
[all …]
/system/core/init/
Ddevices.cpp836 int loading_fd, int data_fd) { in load_firmware() argument
841 int rc = sendfile(data_fd, fw_fd, nullptr, fw_size); in load_firmware()
870 android::base::unique_fd data_fd(open(data.c_str(), O_WRONLY|O_CLOEXEC)); in process_firmware_event() local
871 if (data_fd == -1) { in process_firmware_event()
882 load_firmware(uevent, root, fw_fd, sb.st_size, loading_fd, data_fd); in process_firmware_event()