Home
last modified time | relevance | path

Searched refs:absolute_path (Results 1 – 3 of 3) sorted by relevance

/system/tools/aidl/
Dio_delegate_unittest.cpp29 string absolute_path; in TEST() local
30 EXPECT_FALSE(IoDelegate::GetAbsolutePath("", &absolute_path)); in TEST()
31 EXPECT_TRUE(absolute_path.empty()); in TEST()
35 string absolute_path; in TEST() local
36 EXPECT_TRUE(IoDelegate::GetAbsolutePath("foo", &absolute_path)); in TEST()
37 ASSERT_FALSE(absolute_path.empty()); in TEST()
40 EXPECT_TRUE(absolute_path.rfind("/foo") == absolute_path.length() - 4); in TEST()
42 EXPECT_EQ(absolute_path[0], '/'); in TEST()
Dio_delegate.cpp46 bool IoDelegate::GetAbsolutePath(const string& path, string* absolute_path) { in GetAbsolutePath() argument
55 *absolute_path = buf; in GetAbsolutePath()
67 *absolute_path = path; in GetAbsolutePath()
78 *absolute_path = buf; in GetAbsolutePath()
79 *absolute_path += OS_PATH_SEPARATOR; in GetAbsolutePath()
80 *absolute_path += path; in GetAbsolutePath()
154 string absolute_path; in CreateDirForPath() local
155 if (!GetAbsolutePath(path, &absolute_path)) { in CreateDirForPath()
159 auto directories = Split(absolute_path, string{OS_PATH_SEPARATOR}); in CreateDirForPath()
Dio_delegate.h40 std::string* absolute_path);