/system/tools/aidl/ |
D | io_delegate.cpp | 66 if (path[0] == OS_PATH_SEPARATOR) { in GetAbsolutePath() 79 *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() 159 auto directories = Split(absolute_path, string{OS_PATH_SEPARATOR}); in CreateDirForPath() 171 bool is_file = path.back() != OS_PATH_SEPARATOR; in CreateDirForPath() 212 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files() 214 add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); 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 | 285 if (output_dir_.back() != OS_PATH_SEPARATOR) { in Options() 286 output_dir_.push_back(OS_PATH_SEPARATOR); in Options() 291 if (output_header_dir_.back() != OS_PATH_SEPARATOR) { in Options() 292 output_header_dir_.push_back(OS_PATH_SEPARATOR); in Options() 386 if (output_header_dir_.back() != OS_PATH_SEPARATOR) { in Options() 387 output_header_dir_.push_back(OS_PATH_SEPARATOR); in Options() 490 CHECK(output_dir_.empty() || output_dir_.back() == OS_PATH_SEPARATOR); in Options() 491 CHECK(output_header_dir_.empty() || output_header_dir_.back() == OS_PATH_SEPARATOR); in Options()
|
D | aidl.cpp | 114 expected[i] = OS_PATH_SEPARATOR; in check_filename() 130 if (OS_PATH_SEPARATOR != '/') { in check_filename() 135 if (*c == '/') *c = OS_PATH_SEPARATOR; in check_filename() 229 package[i] = OS_PATH_SEPARATOR; in generate_outputFileName() 237 result += OS_PATH_SEPARATOR; in generate_outputFileName() 857 string package_as_path = Join(Split(defined_type.GetPackage(), "."), OS_PATH_SEPARATOR); in GetApiDumpPathFor() 859 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
|
D | aidl_to_cpp_common.cpp | 60 c = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile() 64 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
|
/system/extras/simpleperf/ |
D | dso_test.cpp | 52 if (OS_PATH_SEPARATOR != '/') { in ConvertPathSeparator() 53 std::replace(result.begin(), result.end(), '/', OS_PATH_SEPARATOR); in ConvertPathSeparator() 62 GetTestDataDir() + "system" + OS_PATH_SEPARATOR + "libc.so"); in TEST() 64 GetTestDataDir() + "data" + OS_PATH_SEPARATOR + "base.apk!/lib/base.so"); in TEST() 92 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST() 101 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST() 116 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), symfs_dir + OS_PATH_SEPARATOR + "elf"); in TEST() 134 symfs_dir + 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 | dso.cpp | 43 if (android::base::EndsWith(path, OS_PATH_SEPARATOR) && path.size() > 1u) { in RemovePathSeparatorSuffix() 62 std::string build_id_list_file = symfs_dir_ + OS_PATH_SEPARATOR + "build_id_list"; in SetSymFsDir() 68 build_id_to_file_map_[items[0]] = symfs_dir_ + OS_PATH_SEPARATOR + items[1]; in SetSymFsDir() 87 std::string path = dir + OS_PATH_SEPARATOR + entry; in CollectBuildIdInDir() 162 path = symfs_dir_ + OS_PATH_SEPARATOR + android::base::Basename(dso_path); in FindDebugFile() 177 if (android::base::StartsWith(path, OS_PATH_SEPARATOR)) { in GetPathInSymFsDir() 180 return symfs_dir_ + OS_PATH_SEPARATOR + path; in GetPathInSymFsDir() 182 if (OS_PATH_SEPARATOR == '/') { in GetPathInSymFsDir() 191 std::replace(apk_path.begin(), apk_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir() 195 std::replace(elf_path.begin(), elf_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir()
|
D | utils.h | 39 #define OS_PATH_SEPARATOR '\\' macro 42 #define OS_PATH_SEPARATOR '/' macro
|
D | cmd_inject_test.cpp | 51 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_inject.data"), &expected_data)); in CheckMatchingExpectedData()
|
/system/core/libutils/ |
D | String8.cpp | 473 if (len > 0 && buf[len-1] == OS_PATH_SEPARATOR) in setPathName() 486 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf() 498 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 511 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() 515 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() 541 lastSlash = strrchr(str, OS_PATH_SEPARATOR); in find_extension() 582 if (name[0] != OS_PATH_SEPARATOR) { in appendPath() 601 if (buf[len-1] != OS_PATH_SEPARATOR) in appendPath() 602 buf[len++] = OS_PATH_SEPARATOR; in appendPath() 618 #if OS_PATH_SEPARATOR != RES_PATH_SEPARATOR in convertToResPath() [all …]
|
/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 | 93 const string dir_name = dir.back() == OS_PATH_SEPARATOR ? dir : dir + OS_PATH_SEPARATOR; in ListFiles() 173 clean_path[1] == OS_PATH_SEPARATOR) { in CleanPath()
|
D | test_util.cpp | 42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
|
/system/core/adb/ |
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()
|
D | adb_utils_test.cpp | 39 str += OS_PATH_SEPARATOR; in subdir()
|
D | sysdeps.h | 75 #define OS_PATH_SEPARATOR '\\' macro 391 #define OS_PATH_SEPARATOR '/' macro
|
D | adb_utils.cpp | 312 std::string android_dir = user_dir + OS_PATH_SEPARATOR + ".android"; in adb_get_android_dir_path()
|
/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()
|
/system/core/adb/client/ |
D | console.cpp | 36 auth_token_path += OS_PATH_SEPARATOR; in adb_construct_auth_command()
|
D | auth.cpp | 198 result |= load_key((path + OS_PATH_SEPARATOR + name)); in load_keys() 208 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adbkey"; in get_user_key_path()
|
D | bugreport.cpp | 101 OS_PATH_SEPARATOR, dest_file_.c_str()); in Done()
|
D | adb_wifi.cpp | 97 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adb_known_hosts.pb"; in get_user_known_hosts_path()
|
D | adb_client.cpp | 245 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adb." + std::to_string(port); in adb_get_server_executable_path()
|