/system/tools/aidl/ |
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()
|
D | os.h | 20 #define OS_PATH_SEPARATOR '\\' macro 22 #define OS_PATH_SEPARATOR '/' macro
|
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()
|
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()
|
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()
|
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()
|
D | generate_cpp_unittest.cpp | 131 StringPrintf("%s%c%s", kHeaderDir, OS_PATH_SEPARATOR, in TEST_F()
|
D | aidl_to_cpp_common.cpp | 81 c = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile() 85 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
|
D | aidl_to_ndk.cpp | 34 char seperator = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in NdkHeaderFile()
|
D | generate_cpp.cpp | 1575 std::replace(canonical_name.begin(), canonical_name.end(), '.', OS_PATH_SEPARATOR); in ValidateOutputFilePath()
|
/system/core/libutils/ |
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 …]
|
/system/extras/simpleperf/ |
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()
|
D | gtest_main.cpp | 114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main() 115 testdata_dir += OS_PATH_SEPARATOR; in main()
|
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()
|
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()
|
D | utils.h | 50 #define OS_PATH_SEPARATOR '\\' macro 53 #define OS_PATH_SEPARATOR '/' macro
|
D | utils.cpp | 201 if (IsDir(dirpath + OS_PATH_SEPARATOR + entries[i])) { in GetSubDirs()
|
/system/core/libutils/include/utils/ |
D | Compat.h | 90 #define OS_PATH_SEPARATOR '\\' macro 92 #define OS_PATH_SEPARATOR '/' macro
|
/system/tools/aidl/tests/ |
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()
|
D | test_util.cpp | 42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
|
/system/libbase/ |
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()
|