Lines Matching refs:file_fd
1546 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpJpegToFile() local
1547 if (file_fd > 0) { in dumpJpegToFile()
1548 int written_len = write(file_fd, data, size); in dumpJpegToFile()
1551 close(file_fd); in dumpJpegToFile()
1604 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
1605 if (file_fd > 0) { in dumpMetadataToFile()
1609 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1612 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1615 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1618 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1621 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1624 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
1627 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
1630 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
1633 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
1634 close(file_fd); in dumpMetadataToFile()
1767 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpFrameToFile() local
1768 if (file_fd > 0) { in dumpFrameToFile()
1779 written_len += write(file_fd, data, offset.mp[i].width); in dumpFrameToFile()
1786 close(file_fd); in dumpFrameToFile()