/aosp12/system/tools/aidl/ |
H A D | io_delegate.cpp | 69 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 D | import_resolver.cpp | 46 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 D | options.cpp | 321 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 D | os.h | 20 #define OS_PATH_SEPARATOR '\\' macro 22 #define OS_PATH_SEPARATOR '/' macro
|
H A D | aidl_dumpapi.cpp | 154 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 D | aidl.cpp | 115 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 D | String8.cpp | 446 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 D | dso_test.cpp | 54 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 D | cmd_inject_test.cpp | 57 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 D | gtest_main.cpp | 114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main() 115 testdata_dir += OS_PATH_SEPARATOR; in main()
|
H A D | dso.cpp | 50 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 D | utils.h | 50 #define OS_PATH_SEPARATOR '\\' macro 53 #define OS_PATH_SEPARATOR '/' macro
|
/aosp12/frameworks/compile/slang/ |
H A D | slang_rs_reflect_utils.cpp | 39 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 D | os_sep.h | 22 #define OS_PATH_SEPARATOR '\\' macro 28 #define OS_PATH_SEPARATOR '/' macro
|
H A D | llvm-rs-cc.cpp | 81 (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 D | Compat.h | 90 #define OS_PATH_SEPARATOR '\\' macro 92 #define OS_PATH_SEPARATOR '/' macro
|
/aosp12/system/tools/aidl/tests/ |
H A D | fake_io_delegate.cpp | 94 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 D | bugreport_test.cpp | 183 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 D | adb_utils_test.cpp | 39 str += OS_PATH_SEPARATOR; in subdir()
|
/aosp12/system/libbase/ |
H A D | file.cpp | 42 #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 D | rsCppUtils.h | 51 #define OS_PATH_SEPARATOR '\\' macro 53 #define OS_PATH_SEPARATOR '/' macro
|
H A D | rsScriptC.cpp | 32 #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 D | CrunchCache.cpp | 50 if (rPathPtr[0] == OS_PATH_SEPARATOR) in crunch()
|
H A D | Main.cpp | 45 if (path != NULL && OS_PATH_SEPARATOR != '/') { in convertPath() 48 *path = OS_PATH_SEPARATOR; in convertPath()
|
/aosp12/packages/modules/adb/client/ |
H A D | console.cpp | 36 auth_token_path += OS_PATH_SEPARATOR; in adb_construct_auth_command()
|