/system/tools/aidl/ |
D | import_resolver.cpp | 43 if (path[path.size() - 1] != OS_PATH_SEPARATOR) { in ImportResolver() 44 path += OS_PATH_SEPARATOR; in ImportResolver() 55 c = OS_PATH_SEPARATOR; in FindImportFile() 72 relative_path.insert(0, 1, OS_PATH_SEPARATOR); in FindImportFile()
|
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 | options.cpp | 245 if (output_dir_.back() != OS_PATH_SEPARATOR) { in Options() 246 output_dir_.push_back(OS_PATH_SEPARATOR); in Options() 251 if (output_header_dir_.back() != OS_PATH_SEPARATOR) { in Options() 252 output_header_dir_.push_back(OS_PATH_SEPARATOR); in Options() 331 if (output_header_dir_.back() != OS_PATH_SEPARATOR) { in Options() 332 output_header_dir_.push_back(OS_PATH_SEPARATOR); in Options() 435 CHECK(output_dir_.empty() || output_dir_.back() == OS_PATH_SEPARATOR); in Options() 436 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() 278 package[i] = OS_PATH_SEPARATOR; in generate_outputFileName() 286 result += OS_PATH_SEPARATOR; in generate_outputFileName() 834 string package_as_path = Join(Split(defined_type.GetPackage(), "."), OS_PATH_SEPARATOR); in GetApiDumpPathFor() 836 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
|
D | aidl_to_cpp_common.cpp | 56 c = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile() 60 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
|
D | generate_cpp_unittest.cpp | 1521 StringPrintf("%s%c%s", kHeaderDir, OS_PATH_SEPARATOR, in TEST_F()
|
/system/extras/simpleperf/ |
D | dso_test.cpp | 53 GetTestDataDir() + "system" + OS_PATH_SEPARATOR + "libc.so"); in TEST() 55 GetTestDataDir() + "data" + OS_PATH_SEPARATOR + "base.apk!/lib/base.so"); in TEST() 61 std::replace(apk_path.begin(), apk_path.end(), '/', OS_PATH_SEPARATOR); in TEST() 82 std::replace(symfs_dir.begin(), symfs_dir.end(), '/', OS_PATH_SEPARATOR); in TEST() 85 symfs_dir + OS_PATH_SEPARATOR + "elf_for_build_id_check"); in TEST()
|
D | gtest_main.cpp | 107 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main() 108 testdata_dir += OS_PATH_SEPARATOR; in main()
|
D | dso.cpp | 41 if (android::base::EndsWith(path, OS_PATH_SEPARATOR) && path.size() > 1u) { in RemovePathSeparatorSuffix() 60 std::string build_id_list_file = symfs_dir_ + OS_PATH_SEPARATOR + "build_id_list"; in SetSymFsDir() 66 build_id_to_file_map_[items[0]] = symfs_dir_ + OS_PATH_SEPARATOR + items[1]; in SetSymFsDir() 85 std::string path = dir + OS_PATH_SEPARATOR + entry; in CollectBuildIdInDir() 152 if (android::base::StartsWith(path, OS_PATH_SEPARATOR)) { in GetPathInSymFsDir() 155 return symfs_dir_ + OS_PATH_SEPARATOR + path; in GetPathInSymFsDir() 157 if (OS_PATH_SEPARATOR == '/') { in GetPathInSymFsDir() 166 std::replace(apk_path.begin(), apk_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir() 170 std::replace(elf_path.begin(), elf_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir()
|
D | utils.h | 38 #define OS_PATH_SEPARATOR '\\' macro 41 #define OS_PATH_SEPARATOR '/' macro
|
/system/core/libutils/include/utils/ |
D | Compat.h | 82 #define OS_PATH_SEPARATOR '\\' macro 84 #define OS_PATH_SEPARATOR '/' macro
|
/system/core/libutils/ |
D | String8.cpp | 507 if (len > 0 && buf[len-1] == OS_PATH_SEPARATOR) in setPathName() 520 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf() 532 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 545 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() 549 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() 575 lastSlash = strrchr(str, OS_PATH_SEPARATOR); in find_extension() 616 if (name[0] != OS_PATH_SEPARATOR) { in appendPath() 635 if (buf[len-1] != OS_PATH_SEPARATOR) in appendPath() 636 buf[len++] = OS_PATH_SEPARATOR; in appendPath() 652 #if OS_PATH_SEPARATOR != RES_PATH_SEPARATOR in convertToResPath() [all …]
|
/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() 165 clean_path[1] == OS_PATH_SEPARATOR) { in CleanPath()
|
D | test_util.cpp | 42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
|
/system/core/base/ |
D | file.cpp | 42 #define OS_PATH_SEPARATOR '\\' macro 44 #define OS_PATH_SEPARATOR '/' macro 129 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init() 169 snprintf(path, sizeof(path), "%s%cTemporaryDir-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init()
|
/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 | 69 #define OS_PATH_SEPARATOR '\\' macro 339 #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/core/adb/client/ |
D | console.cpp | 36 auth_token_path += OS_PATH_SEPARATOR; in adb_construct_auth_command()
|
D | auth.cpp | 208 result |= load_key((path + OS_PATH_SEPARATOR + name)); in load_keys() 218 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_client.cpp | 227 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adb." + std::to_string(port); in adb_get_server_executable_path()
|
/system/core/adb/daemon/ |
D | file_sync_service.cpp | 108 if (partial_path.empty() || partial_path.back() != OS_PATH_SEPARATOR) { in secure_mkdirs() 109 partial_path += OS_PATH_SEPARATOR; in secure_mkdirs()
|