Home
last modified time | relevance | path

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

/system/tools/aidl/
Dio_delegate_unittest.cpp34 string absolute_path; in TEST() local
35 EXPECT_FALSE(IoDelegate::GetAbsolutePath("", &absolute_path)); in TEST()
36 EXPECT_TRUE(absolute_path.empty()); in TEST()
41 string absolute_path; in TEST() local
42 EXPECT_TRUE(IoDelegate::GetAbsolutePath("foo", &absolute_path)); in TEST()
43 ASSERT_FALSE(absolute_path.empty()); in TEST()
46 EXPECT_TRUE(absolute_path.rfind("/foo") == absolute_path.length() - 4); in TEST()
48 EXPECT_EQ(absolute_path[0], '/'); in TEST()
Dio_delegate.cpp50 bool IoDelegate::GetAbsolutePath(const string& path, string* absolute_path) { in GetAbsolutePath() argument
59 *absolute_path = buf; in GetAbsolutePath()
70 *absolute_path = path; in GetAbsolutePath()
81 *absolute_path = buf; in GetAbsolutePath()
82 *absolute_path += OS_PATH_SEPARATOR; in GetAbsolutePath()
83 *absolute_path += path; in GetAbsolutePath()
156 string absolute_path; in CreateDirForPath() local
157 if (!GetAbsolutePath(path, &absolute_path)) { in CreateDirForPath()
161 auto directories = Split(absolute_path, string{OS_PATH_SEPARATOR}); in CreateDirForPath()
Dio_delegate.h45 std::string* absolute_path);