Home
last modified time | relevance | path

Searched refs:tmp_dir (Results 1 – 4 of 4) sorted by relevance

/system/core/base/
Dtest_utils.cpp60 char tmp_dir[MAX_PATH]; in GetSystemTempDir()
61 DWORD result = GetTempPathA(sizeof(tmp_dir), tmp_dir); in GetSystemTempDir()
63 CHECK_LT(result, sizeof(tmp_dir)) << "path truncated to: " << result; in GetSystemTempDir()
67 CHECK_EQ(tmp_dir[result - 1], '\\'); in GetSystemTempDir()
68 tmp_dir[result - 1] = '\0'; in GetSystemTempDir()
69 return tmp_dir; in GetSystemTempDir()
84 void TemporaryFile::init(const std::string& tmp_dir) { in init() argument
85 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(), in init()
98 bool TemporaryDir::init(const std::string& tmp_dir) { in init() argument
99 snprintf(path, sizeof(path), "%s%cTemporaryDir-XXXXXX", tmp_dir.c_str(), in init()
/system/core/adb/client/
Dmain.cpp57 const char* tmp_dir = getenv("TMPDIR"); in GetLogFilePath()
58 if (tmp_dir == nullptr) tmp_dir = "/tmp"; in GetLogFilePath()
59 return android::base::StringPrintf("%s/adb.%u.log", tmp_dir, getuid()); in GetLogFilePath()
/system/core/base/include/android-base/
Dtest_utils.h33 void init(const std::string& tmp_dir);
46 bool init(const std::string& tmp_dir);
/system/extras/simpleperf/
Dgtest_main.cpp162 std::unique_ptr<TemporaryDir> tmp_dir; in main() local
164 tmp_dir.reset(new TemporaryDir); in main()
165 testdata_dir = std::string(tmp_dir->path) + "/"; in main()