Home
last modified time | relevance | path

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

12

/aosp12/system/tools/aidl/
H A 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()
H A 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()
H A 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()
H A Dos.h20 #define OS_PATH_SEPARATOR '\\' macro
22 #define OS_PATH_SEPARATOR '/' macro
H A 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()
H A 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()
/aosp12/system/core/libutils/
H A 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 …]
/aosp12/system/extras/simpleperf/
H A 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()
H A 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()
H A Dgtest_main.cpp114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
115 testdata_dir += OS_PATH_SEPARATOR; in main()
H A 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()
H A Dutils.h50 #define OS_PATH_SEPARATOR '\\' macro
53 #define OS_PATH_SEPARATOR '/' macro
/aosp12/frameworks/compile/slang/
H A Dslang_rs_reflect_utils.cpp39 if (*slash == OS_PATH_SEPARATOR) { in GetFileNameStem()
55 (packaged_path[packaged_path.length() - 1] != OS_PATH_SEPARATOR)) { in ComputePackagedPath()
62 packaged_path[s] = OS_PATH_SEPARATOR; in ComputePackagedPath()
73 if (*slash == OS_PATH_SEPARATOR) { in InternalFileNameConvert()
298 if (fullPath[fullPath.length() - 1] != OS_PATH_SEPARATOR) { in JoinPath()
299 fullPath += OS_PATH_SEPARATOR; in JoinPath()
301 if (path2[0] == OS_PATH_SEPARATOR) { in JoinPath()
H A Dos_sep.h22 #define OS_PATH_SEPARATOR '\\' macro
28 #define OS_PATH_SEPARATOR '/' macro
H A Dllvm-rs-cc.cpp81 (OutputFile[OutputFile.size() - 1]) != OS_PATH_SEPARATOR) in DetermineOutputFile()
82 OutputFile.append(1, OS_PATH_SEPARATOR); in DetermineOutputFile()
86 OutputFile.append(1, OS_PATH_SEPARATOR); in DetermineOutputFile()
/aosp12/system/core/libutils/include/utils/
H A DCompat.h90 #define OS_PATH_SEPARATOR '\\' macro
92 #define OS_PATH_SEPARATOR '/' macro
/aosp12/system/tools/aidl/tests/
H A 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()
/aosp12/packages/modules/adb/
H A Dbugreport_test.cpp183 android::base::StringPrintf("%s%cda_bugreport.zip", cwd_.c_str(), OS_PATH_SEPARATOR); in TEST_F()
200 android::base::StringPrintf("%s%cda_bugreport.zip", cwd_.c_str(), OS_PATH_SEPARATOR); in TEST_F()
340 android::base::StringPrintf("%s%cda_bugreport.zip", td.path, OS_PATH_SEPARATOR); in TEST_F()
373 android::base::StringPrintf("%s%cda_bugreport.zip", td.path, OS_PATH_SEPARATOR); in TEST_F()
H A Dadb_utils_test.cpp39 str += OS_PATH_SEPARATOR; in subdir()
/aosp12/system/libbase/
H A 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()
/aosp12/frameworks/rs/
H A DrsCppUtils.h51 #define OS_PATH_SEPARATOR '\\' macro
53 #define OS_PATH_SEPARATOR '/' macro
H A DrsScriptC.cpp32 #define OS_PATH_SEPARATOR '\\' macro
38 #define OS_PATH_SEPARATOR '/' macro
82 int nextPos = cacheDirString.find(OS_PATH_SEPARATOR, currPos + 1); in createCacheDir()
/aosp12/frameworks/base/tools/aapt/
H A DCrunchCache.cpp50 if (rPathPtr[0] == OS_PATH_SEPARATOR) in crunch()
H A DMain.cpp45 if (path != NULL && OS_PATH_SEPARATOR != '/') { in convertPath()
48 *path = OS_PATH_SEPARATOR; in convertPath()
/aosp12/packages/modules/adb/client/
H A Dconsole.cpp36 auth_token_path += OS_PATH_SEPARATOR; in adb_construct_auth_command()

12