Searched refs:data_fd (Results 1 – 6 of 6) 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/update_engine/common/ |
D | test_utils.cc | 136 bool BindToUnusedLoopDeviceLegacy(int data_fd, in BindToUnusedLoopDeviceLegacy() argument 171 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_SET_FD, data_fd) == 0); in BindToUnusedLoopDeviceLegacy() 179 int data_fd = open(filename.c_str(), in BindToUnusedLoopDevice() local 181 TEST_AND_RETURN_FALSE_ERRNO(data_fd >= 0); in BindToUnusedLoopDevice() 182 ScopedFdCloser data_fd_closer(&data_fd); in BindToUnusedLoopDevice() 188 TEST_AND_RETURN_FALSE(loop_control.Attach(data_fd, 5s, out_lo_dev_name)); in BindToUnusedLoopDevice() 197 data_fd, filename, writable, out_lo_dev_name); in BindToUnusedLoopDevice()
|
/system/core/trusty/utils/rpmb_dev/ |
D | rpmb_dev.c | 85 int data_fd; member 127 ret = lseek(s->data_fd, pos, SEEK_SET); in rpmb_file_seek() 145 ret = lseek(s->data_fd, 0, SEEK_SET); in rpmb_dev_program_key() 151 ret = write(s->data_fd, &s->header, sizeof(s->header)); in rpmb_dev_program_key() 196 ret = write(s->data_fd, s->cmd[i].data, RPMB_PACKET_DATA_SIZE); in rpmb_dev_data_write() 205 ret = lseek(s->data_fd, 0, SEEK_SET); in rpmb_dev_data_write() 211 ret = write(s->data_fd, &s->header.write_counter, sizeof(s->header.write_counter)); in rpmb_dev_data_write() 233 ret = read(s->data_fd, s->res[i].data, RPMB_PACKET_DATA_SIZE); in rpmb_dev_data_read() 599 s.data_fd = open(data_file_name, open_flags, S_IWUSR | S_IRUSR); in main() 600 if (s.data_fd < 0) { in main() [all …]
|
/system/update_engine/payload_generator/ |
D | ab_generator_unittest.cc | 111 int data_fd = open(data_file.path().c_str(), O_RDWR, 000); in TestSplitReplaceOrReplaceXzOperation() local 112 EXPECT_GE(data_fd, 0); in TestSplitReplaceOrReplaceXzOperation() 113 ScopedFdCloser data_fd_closer(&data_fd); in TestSplitReplaceOrReplaceXzOperation() 115 BlobFileWriter blob_file(data_fd, &data_file_size); in TestSplitReplaceOrReplaceXzOperation() 152 ASSERT_TRUE(utils::PReadAll(data_fd, in TestSplitReplaceOrReplaceXzOperation() 181 ASSERT_TRUE(utils::PReadAll(data_fd, in TestSplitReplaceOrReplaceXzOperation() 273 int data_fd = open(data_file.path().c_str(), O_RDWR, 000); in TestMergeReplaceOrReplaceXzOperations() local 274 EXPECT_GE(data_fd, 0); in TestMergeReplaceOrReplaceXzOperations() 275 ScopedFdCloser data_fd_closer(&data_fd); in TestMergeReplaceOrReplaceXzOperations() 277 BlobFileWriter blob_file(data_fd, &data_file_size); in TestMergeReplaceOrReplaceXzOperations() [all …]
|
/system/core/init/ |
D | firmware_handler.cpp | 65 size_t fw_size, int loading_fd, int data_fd) { in LoadFirmware() argument 70 int rc = sendfile(data_fd, fw_fd, nullptr, fw_size); in LoadFirmware() 232 unique_fd data_fd(open(data.c_str(), O_WRONLY | O_CLOEXEC)); in ProcessFirmwareEvent() local 233 if (data_fd == -1) { in ProcessFirmwareEvent() 253 LoadFirmware(firmware, root, fw_fd, sb.st_size, loading_fd, data_fd); in ProcessFirmwareEvent()
|
/system/extras/simpleperf/ |
D | RecordReadThread.cpp | 243 int data_fd[2]; in RegisterDataCallback() local 244 if (pipe2(cmd_fd, O_CLOEXEC) != 0 || pipe2(data_fd, O_CLOEXEC) != 0) { in RegisterDataCallback() 251 read_data_fd_.reset(data_fd[0]); in RegisterDataCallback() 252 write_data_fd_.reset(data_fd[1]); in RegisterDataCallback()
|