Lines Matching refs:path
28 CHWJpegBase::CHWJpegBase(const char *path) : m_iFD(-1), m_uiDeviceCaps(0), m_uiAuxFlags(0) { in CHWJpegBase() argument
29 m_iFD = open(path, O_RDWR); in CHWJpegBase()
30 if (m_iFD < 0) ALOGERR("Failed to open '%s'", path); in CHWJpegBase()
92 bool WriteToFile(const char *path, const char *data, size_t len) { in WriteToFile() argument
93 int fd = open(path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH | S_IWGRP); in WriteToFile()
95 ALOGERR("Failed to open '%s' for write/create", path); in WriteToFile()
102 ALOGERR("Failed to write %zu bytes to '%s'", len, path); in WriteToFile()
106 ALOGI("%zu/%zu bytes from ptr %p are written to '%s'", written, len, data, path); in WriteToFile()
111 bool WriteToFile(const char *path, int dmabuf, size_t len) { in WriteToFile() argument
119 int fd = open(path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH | S_IWGRP); in WriteToFile()
121 ALOGERR("Failed to open '%s' for write/create", path); in WriteToFile()
128 ALOGERR("Failed to write %zu bytes to '%s'", len, path); in WriteToFile()
130 ALOGI("%zu/%zu bytes from dmabuf fd %d are written to '%s'", written, len, dmabuf, path); in WriteToFile()