Lines Matching refs:filename
285 const char* filename = mFilename.c_str(); in create_file() local
287 *fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0660); in create_file()
289 ALOGE("Couldn't open incident file: %s (%s)", filename, strerror(errno)); in create_file()
294 chmod(filename, 0660); in create_file()
296 if (chown(filename, AID_SYSTEM, AID_SYSTEM)) { in create_file()
297 ALOGE("Unable to change ownership of incident file %s: %s\n", filename, strerror(errno)); in create_file()
327 String8 filename = dirbase + entry->d_name; in upload_backlog() local
328 if (stat(filename.string(), &st) != 0) { in upload_backlog()
329 ALOGE("Unable to stat file %s", filename.string()); in upload_backlog()
336 Status status = dropbox->addFile(String16("incident"), filename.string(), 0); in upload_backlog()
345 unlink(filename.string()); in upload_backlog()