Lines Matching refs:file_fd

1944                 int file_fd = open(buf, O_RDWR | O_CREAT, 0777);  in dumpJpegToFile()  local
1945 if (file_fd >= 0) { in dumpJpegToFile()
1946 ssize_t written_len = write(file_fd, data, size); in dumpJpegToFile()
1947 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpJpegToFile()
1950 close(file_fd); in dumpJpegToFile()
2007 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
2008 if (file_fd >= 0) { in dumpMetadataToFile()
2012 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2015 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2018 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2021 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2024 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2027 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2030 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2033 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2036 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2039 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2040 close(file_fd); in dumpMetadataToFile()
2177 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpFrameToFile() local
2179 if (file_fd >= 0) { in dumpFrameToFile()
2182 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpFrameToFile()
2190 written_len += write(file_fd, data, in dumpFrameToFile()
2198 close(file_fd); in dumpFrameToFile()