Home
last modified time | relevance | path

Searched refs:tmp_file_ptr (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/dumpstate/
DDumpPool.cpp116 auto tmp_file_ptr = std::make_unique<TmpFile>(); in createTempFile() local
118 snprintf(tmp_file_ptr->path, sizeof(tmp_file_ptr->path), file_name_format.c_str(), in createTempFile()
120 tmp_file_ptr->fd.reset(TEMP_FAILURE_RETRY( in createTempFile()
121 mkostemp(tmp_file_ptr->path, O_CLOEXEC))); in createTempFile()
122 if (tmp_file_ptr->fd.get() == -1) { in createTempFile()
123 MYLOGE("open(%s, %s)\n", tmp_file_ptr->path, strerror(errno)); in createTempFile()
124 tmp_file_ptr = nullptr; in createTempFile()
125 return tmp_file_ptr; in createTempFile()
127 return tmp_file_ptr; in createTempFile()
DDumpPool.h157 std::unique_ptr<TmpFile> tmp_file_ptr = createTempFile(); in post()
158 if (!tmp_file_ptr) { in post()
161 invokeTask(dump_func, duration_title, tmp_file_ptr->fd.get()); in post()
162 fsync(tmp_file_ptr->fd.get()); in post()
163 return std::string(tmp_file_ptr->path); in post()