Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_utils_test.cpp70 TemporaryDir second_dir; in TEST() local
71 auto result = FindFirstExistingDirectory(first_dir.path, second_dir.path); in TEST()
78 auto second_dir = "/data/local/tmp/does/not/exist"; in TEST() local
79 auto result = FindFirstExistingDirectory(first_dir.path, second_dir); in TEST()
86 TemporaryDir second_dir; in TEST() local
87 auto result = FindFirstExistingDirectory(first_dir, second_dir.path); in TEST()
89 ASSERT_EQ(*result, second_dir.path); in TEST()
94 auto second_dir = "/data/local/tmp/also/does/not/exist"; in TEST() local
95 auto result = FindFirstExistingDirectory(first_dir, second_dir); in TEST()
101 TemporaryDir second_dir; in TEST() local
[all …]
Dapexd_utils.h286 const std::string& first_dir, const std::string& second_dir) { in FindFirstExistingDirectory() argument
290 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
291 return android::base::ErrnoError() << "Failed to stat " << second_dir; in FindFirstExistingDirectory()
294 return android::base::Error() << second_dir << " is not a directory"; in FindFirstExistingDirectory()
296 return second_dir; in FindFirstExistingDirectory()
304 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
305 return android::base::ErrnoError() << "Failed to stat " << second_dir; in FindFirstExistingDirectory()
308 return android::base::Error() << second_dir << " is not a directory"; in FindFirstExistingDirectory()
310 return second_dir; in FindFirstExistingDirectory()