Searched refs:data_fd (Results 1 – 5 of 5) sorted by relevance
/system/extras/verity/ |
D | build_verity_tree.cpp | 30 android::base::unique_fd data_fd(open(data_filename.c_str(), O_RDONLY)); in generate_verity_tree() local 31 if (data_fd == -1) { in generate_verity_tree() 38 file = sparse_file_import(data_fd, false, false); in generate_verity_tree() 40 file = sparse_file_import_auto(data_fd, false, verbose); in generate_verity_tree()
|
/system/core/init/ |
D | firmware_handler.cpp | 39 int loading_fd, int data_fd) { in LoadFirmware() argument 44 int rc = sendfile(data_fd, fw_fd, nullptr, fw_size); in LoadFirmware() 77 unique_fd data_fd(open(data.c_str(), O_WRONLY | O_CLOEXEC)); in ProcessFirmwareEvent() local 78 if (data_fd == -1) { in ProcessFirmwareEvent() 89 LoadFirmware(uevent, root, fw_fd, sb.st_size, loading_fd, data_fd); in ProcessFirmwareEvent()
|
/system/update_engine/common/ |
D | test_utils.cc | 150 int data_fd = open(filename.c_str(), in BindToUnusedLoopDevice() local 152 TEST_AND_RETURN_FALSE_ERRNO(data_fd >= 0); in BindToUnusedLoopDevice() 153 ScopedFdCloser data_fd_closer(&data_fd); in BindToUnusedLoopDevice() 154 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_SET_FD, data_fd) == 0); in BindToUnusedLoopDevice()
|
/system/update_engine/payload_generator/ |
D | ab_generator_unittest.cc | 113 int data_fd = open(data_file.path().c_str(), O_RDWR, 000); in TestSplitReplaceOrReplaceBzOperation() local 114 EXPECT_GE(data_fd, 0); in TestSplitReplaceOrReplaceBzOperation() 115 ScopedFdCloser data_fd_closer(&data_fd); in TestSplitReplaceOrReplaceBzOperation() 117 BlobFileWriter blob_file(data_fd, &data_file_size); in TestSplitReplaceOrReplaceBzOperation() 154 ASSERT_TRUE(utils::PReadAll(data_fd, in TestSplitReplaceOrReplaceBzOperation() 183 ASSERT_TRUE(utils::PReadAll(data_fd, in TestSplitReplaceOrReplaceBzOperation() 277 int data_fd = open(data_file.path().c_str(), O_RDWR, 000); in TestMergeReplaceOrReplaceBzOperations() local 278 EXPECT_GE(data_fd, 0); in TestMergeReplaceOrReplaceBzOperations() 279 ScopedFdCloser data_fd_closer(&data_fd); in TestMergeReplaceOrReplaceBzOperations() 281 BlobFileWriter blob_file(data_fd, &data_file_size); in TestMergeReplaceOrReplaceBzOperations() [all …]
|
/system/extras/simpleperf/ |
D | RecordReadThread.cpp | 226 int data_fd[2]; in RegisterDataCallback() local 227 if (pipe2(cmd_fd, O_CLOEXEC) != 0 || pipe2(data_fd, O_CLOEXEC) != 0) { in RegisterDataCallback() 234 read_data_fd_.reset(data_fd[0]); in RegisterDataCallback() 235 write_data_fd_.reset(data_fd[1]); in RegisterDataCallback()
|