/system/tools/aidl/ |
D | io_delegate.cpp | 71 if (path[0] == OS_PATH_SEPARATOR) { in GetAbsolutePath() 84 *absolute_path += OS_PATH_SEPARATOR; in GetAbsolutePath() 128 if (base_dir[base_dir.size() - 1] != OS_PATH_SEPARATOR) { in CreateNestedDirs() 129 base_dir += OS_PATH_SEPARATOR; in CreateNestedDirs() 158 auto directories = Split(absolute_path, string{OS_PATH_SEPARATOR}); in CreateDirForPath() 170 bool is_file = path.back() != OS_PATH_SEPARATOR; in CreateDirForPath() 213 if (auto ret = add_list_files(dirname + OS_PATH_SEPARATOR + find_data.cFileName, result); in add_list_files() 218 result->emplace_back(dirname + OS_PATH_SEPARATOR + find_data.cFileName); in add_list_files() 257 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files() 259 if (auto ret = add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); !ret.ok()) { in add_list_files() [all …]
|
D | os.h | 20 #define OS_PATH_SEPARATOR '\\' macro 22 #define OS_PATH_SEPARATOR '/' macro
|
D | import_resolver.cpp | 47 if (path[path.size() - 1] != OS_PATH_SEPARATOR) { in ImportResolver() 48 path += OS_PATH_SEPARATOR; in ImportResolver() 57 string relative_path = base::Join(parts, OS_PATH_SEPARATOR) + ".aidl"; in FindImportFile()
|
D | aidl_dumpapi.cpp | 252 string package_as_path = Join(Split(defined_type.GetPackage(), "."), OS_PATH_SEPARATOR); in GetApiDumpPathFor() 253 AIDL_FATAL_IF(options.OutputDir().empty() || options.OutputDir().back() != OS_PATH_SEPARATOR, in GetApiDumpPathFor() 255 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
|
D | aidl.cpp | 120 expected[i] = OS_PATH_SEPARATOR; in check_filename() 136 if (OS_PATH_SEPARATOR != '/') { in check_filename() 141 if (*c == '/') *c = OS_PATH_SEPARATOR; in check_filename() 262 c = OS_PATH_SEPARATOR; in GetOutputFilePath() 266 result += OS_PATH_SEPARATOR; in GetOutputFilePath() 799 AIDL_FATAL_IF(options.PreviousApiDir().back() != OS_PATH_SEPARATOR, "Expecting a separator"); in compile_aidl()
|
D | options.cpp | 283 if (!dir.empty() && dir.back() != OS_PATH_SEPARATOR) { in ToCanonicalDirectory() 284 dir.push_back(OS_PATH_SEPARATOR); in ToCanonicalDirectory() 683 AIDL_FATAL_IF(!output_dir_.empty() && output_dir_.back() != OS_PATH_SEPARATOR, output_dir_); in Options() 684 AIDL_FATAL_IF(!output_header_dir_.empty() && output_header_dir_.back() != OS_PATH_SEPARATOR, in Options()
|
D | generate_cpp_unittest.cpp | 101 StringPrintf("%s%c%s", kHeaderDir, OS_PATH_SEPARATOR, in TEST_F()
|
D | aidl_to_ndk.cpp | 44 char seperator = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in NdkHeaderFile()
|
D | aidl_to_cpp_common.cpp | 100 char separator = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile() 118 std::replace(canonical_name.begin(), canonical_name.end(), '.', OS_PATH_SEPARATOR); in ValidateOutputFilePath()
|
/system/core/libutils/include/utils/ |
D | Compat.h | 88 #define OS_PATH_SEPARATOR '\\' macro 90 #define OS_PATH_SEPARATOR '/' macro
|
/system/extras/simpleperf/ |
D | dso_test.cpp | 55 if (OS_PATH_SEPARATOR != '/') { in ConvertPathSeparator() 56 std::replace(result.begin(), result.end(), '/', OS_PATH_SEPARATOR); in ConvertPathSeparator() 66 GetTestDataDir() + "system" + OS_PATH_SEPARATOR + "libc.so"); in TEST() 68 GetTestDataDir() + "data" + OS_PATH_SEPARATOR + "base.apk!/lib/base.so"); in TEST() 98 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST() 108 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST() 124 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), symfs_dir + OS_PATH_SEPARATOR + "elf"); in TEST() 143 symfs_dir + OS_PATH_SEPARATOR + "elf"); in TEST() 254 std::string vmlinux_path = std::string(tmpdir.path) + OS_PATH_SEPARATOR + "elf"; in TEST()
|
D | gtest_main.cpp | 115 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main() 116 testdata_dir += OS_PATH_SEPARATOR; in main()
|
D | cmd_inject_test.cpp | 57 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + name), &expected_data)); in CheckMatchingExpectedData() 121 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_kernel.data"); in TEST() 145 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_with_unformatted_trace.data"); in TEST() 157 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_with_unformatted_trace.data"); in TEST() 249 GetTestData(std::string("lbr") + OS_PATH_SEPARATOR + "inject_lbr.data"), &expected_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() 172 path = symfs_dir_ + OS_PATH_SEPARATOR + android::base::Basename(dso_path); in FindDebugFile() 187 if (StartsWith(path, OS_PATH_SEPARATOR)) { in GetPathInSymFsDir() 190 return symfs_dir_ + OS_PATH_SEPARATOR + path; in GetPathInSymFsDir() 192 if (OS_PATH_SEPARATOR == '/') { in GetPathInSymFsDir() 201 std::replace(apk_path.begin(), apk_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir() 205 std::replace(elf_path.begin(), elf_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir()
|
D | utils.h | 54 #define OS_PATH_SEPARATOR '\\' macro 57 #define OS_PATH_SEPARATOR '/' macro
|
D | utils.cpp | 204 if (IsDir(dirpath + OS_PATH_SEPARATOR + entries[i])) { in GetSubDirs()
|
/system/tools/aidl/tests/ |
D | fake_io_delegate.cpp | 79 const string dir_name = dir.back() == OS_PATH_SEPARATOR ? dir : dir + OS_PATH_SEPARATOR; in ListFiles()
|
D | test_util.cpp | 42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
|
/system/core/libutils/binder/ |
D | String8.cpp | 432 #define OS_PATH_SEPARATOR '\\' macro 434 #define OS_PATH_SEPARATOR '/' macro 442 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 459 lastSlash = strrchr(str, OS_PATH_SEPARATOR); in find_extension()
|
/system/libbase/ |
D | file.cpp | 43 #define OS_PATH_SEPARATOR '\\' macro 45 #define OS_PATH_SEPARATOR '/' macro 160 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init() 204 snprintf(path, sizeof(path), "%s%cTemporaryDir-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init()
|