Home
last modified time | relevance | path

Searched refs:OS_PATH_SEPARATOR (Results 1 – 21 of 21) sorted by relevance

/system/tools/aidl/
Dio_delegate.cpp69 if (path[0] == OS_PATH_SEPARATOR) { in GetAbsolutePath()
82 *absolute_path += OS_PATH_SEPARATOR; in GetAbsolutePath()
131 if (base_dir[base_dir.size() - 1] != OS_PATH_SEPARATOR) { in CreateNestedDirs()
132 base_dir += OS_PATH_SEPARATOR; in CreateNestedDirs()
161 auto directories = Split(absolute_path, string{OS_PATH_SEPARATOR}); in CreateDirForPath()
173 bool is_file = path.back() != OS_PATH_SEPARATOR; in CreateDirForPath()
227 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files()
229 if (auto ret = add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); !ret.ok()) { in add_list_files()
Dos.h20 #define OS_PATH_SEPARATOR '\\' macro
22 #define OS_PATH_SEPARATOR '/' macro
Dimport_resolver.cpp46 if (path[path.size() - 1] != OS_PATH_SEPARATOR) { in ImportResolver()
47 path += OS_PATH_SEPARATOR; in ImportResolver()
58 c = OS_PATH_SEPARATOR; in FindImportFile()
Doptions.cpp321 if (output_dir_.back() != OS_PATH_SEPARATOR) { in Options()
322 output_dir_.push_back(OS_PATH_SEPARATOR); in Options()
327 if (output_header_dir_.back() != OS_PATH_SEPARATOR) { in Options()
328 output_header_dir_.push_back(OS_PATH_SEPARATOR); in Options()
419 if (output_header_dir_.back() != OS_PATH_SEPARATOR) { in Options()
420 output_header_dir_.push_back(OS_PATH_SEPARATOR); in Options()
534 AIDL_FATAL_IF(!output_dir_.empty() && output_dir_.back() != OS_PATH_SEPARATOR, output_dir_); in Options()
535 AIDL_FATAL_IF(!output_header_dir_.empty() && output_header_dir_.back() != OS_PATH_SEPARATOR, in Options()
Daidl_dumpapi.cpp154 string package_as_path = Join(Split(defined_type.GetPackage(), "."), OS_PATH_SEPARATOR); in GetApiDumpPathFor()
156 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
Daidl.cpp115 expected[i] = OS_PATH_SEPARATOR; in check_filename()
131 if (OS_PATH_SEPARATOR != '/') { in check_filename()
136 if (*c == '/') *c = OS_PATH_SEPARATOR; in check_filename()
230 c = OS_PATH_SEPARATOR; in GetOutputFilePath()
234 result += OS_PATH_SEPARATOR; in GetOutputFilePath()
Dgenerate_cpp_unittest.cpp131 StringPrintf("%s%c%s", kHeaderDir, OS_PATH_SEPARATOR, in TEST_F()
Daidl_to_cpp_common.cpp81 c = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
85 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
Daidl_to_ndk.cpp34 char seperator = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in NdkHeaderFile()
Dgenerate_cpp.cpp1575 std::replace(canonical_name.begin(), canonical_name.end(), '.', OS_PATH_SEPARATOR); in ValidateOutputFilePath()
/system/core/libutils/
DString8.cpp446 if (len > 0 && buf[len-1] == OS_PATH_SEPARATOR) in setPathName()
459 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf()
471 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir()
484 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
488 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
514 lastSlash = strrchr(str, OS_PATH_SEPARATOR); in find_extension()
555 if (name[0] != OS_PATH_SEPARATOR) { in appendPath()
574 if (buf[len-1] != OS_PATH_SEPARATOR) in appendPath()
575 buf[len++] = OS_PATH_SEPARATOR; in appendPath()
591 #if OS_PATH_SEPARATOR != RES_PATH_SEPARATOR in convertToResPath()
[all …]
/system/extras/simpleperf/
Ddso_test.cpp54 if (OS_PATH_SEPARATOR != '/') { in ConvertPathSeparator()
55 std::replace(result.begin(), result.end(), '/', OS_PATH_SEPARATOR); in ConvertPathSeparator()
64 GetTestDataDir() + "system" + OS_PATH_SEPARATOR + "libc.so"); in TEST()
66 GetTestDataDir() + "data" + OS_PATH_SEPARATOR + "base.apk!/lib/base.so"); in TEST()
94 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST()
103 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST()
118 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), symfs_dir + OS_PATH_SEPARATOR + "elf"); in TEST()
136 symfs_dir + OS_PATH_SEPARATOR + "elf"); in TEST()
241 std::string vmlinux_path = std::string(tmpdir.path) + OS_PATH_SEPARATOR + "elf"; in TEST()
Dgtest_main.cpp114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
115 testdata_dir += OS_PATH_SEPARATOR; in main()
Dcmd_inject_test.cpp57 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_inject.data"), &expected_data)); in CheckMatchingExpectedData()
92 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_with_recording_process.data"); in TEST()
132 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_kernel.data"); in TEST()
Ddso.cpp50 if (EndsWith(path, OS_PATH_SEPARATOR) && path.size() > 1u) { in RemovePathSeparatorSuffix()
69 std::string build_id_list_file = symfs_dir_ + OS_PATH_SEPARATOR + "build_id_list"; in SetSymFsDir()
75 build_id_to_file_map_[items[0]] = symfs_dir_ + OS_PATH_SEPARATOR + items[1]; in SetSymFsDir()
94 std::string path = dir + OS_PATH_SEPARATOR + entry; in CollectBuildIdInDir()
169 path = symfs_dir_ + OS_PATH_SEPARATOR + android::base::Basename(dso_path); in FindDebugFile()
184 if (StartsWith(path, OS_PATH_SEPARATOR)) { in GetPathInSymFsDir()
187 return symfs_dir_ + OS_PATH_SEPARATOR + path; in GetPathInSymFsDir()
189 if (OS_PATH_SEPARATOR == '/') { in GetPathInSymFsDir()
198 std::replace(apk_path.begin(), apk_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir()
202 std::replace(elf_path.begin(), elf_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir()
Dutils.h50 #define OS_PATH_SEPARATOR '\\' macro
53 #define OS_PATH_SEPARATOR '/' macro
Dutils.cpp201 if (IsDir(dirpath + OS_PATH_SEPARATOR + entries[i])) { in GetSubDirs()
/system/core/libutils/include/utils/
DCompat.h90 #define OS_PATH_SEPARATOR '\\' macro
92 #define OS_PATH_SEPARATOR '/' macro
/system/tools/aidl/tests/
Dfake_io_delegate.cpp94 const string dir_name = dir.back() == OS_PATH_SEPARATOR ? dir : dir + OS_PATH_SEPARATOR; in ListFiles()
174 clean_path[1] == OS_PATH_SEPARATOR) { in CleanPath()
Dtest_util.cpp42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
/system/libbase/
Dfile.cpp42 #define OS_PATH_SEPARATOR '\\' macro
44 #define OS_PATH_SEPARATOR '/' macro
159 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init()
203 snprintf(path, sizeof(path), "%s%cTemporaryDir-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init()