Home
last modified time | relevance | path

Searched refs:OS_PATH_SEPARATOR (Results 1 – 25 of 28) sorted by relevance

12

/system/tools/aidl/
Dimport_resolver.cpp43 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()
Dio_delegate.cpp66 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()
Dos.h20 #define OS_PATH_SEPARATOR '\\' macro
22 #define OS_PATH_SEPARATOR '/' macro
Doptions.cpp245 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()
Daidl.cpp114 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()
Daidl_to_cpp_common.cpp56 c = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
60 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
Dgenerate_cpp_unittest.cpp1521 StringPrintf("%s%c%s", kHeaderDir, OS_PATH_SEPARATOR, in TEST_F()
/system/extras/simpleperf/
Ddso_test.cpp53 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()
Dgtest_main.cpp107 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
108 testdata_dir += OS_PATH_SEPARATOR; in main()
Ddso.cpp41 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()
Dutils.h38 #define OS_PATH_SEPARATOR '\\' macro
41 #define OS_PATH_SEPARATOR '/' macro
/system/core/libutils/include/utils/
DCompat.h82 #define OS_PATH_SEPARATOR '\\' macro
84 #define OS_PATH_SEPARATOR '/' macro
/system/core/libutils/
DString8.cpp507 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/
Dfake_io_delegate.cpp93 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()
Dtest_util.cpp42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
/system/core/base/
Dfile.cpp42 #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/
Dbugreport_test.cpp183 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()
Dadb_utils_test.cpp39 str += OS_PATH_SEPARATOR; in subdir()
Dsysdeps.h69 #define OS_PATH_SEPARATOR '\\' macro
339 #define OS_PATH_SEPARATOR '/' macro
Dadb_utils.cpp312 std::string android_dir = user_dir + OS_PATH_SEPARATOR + ".android"; in adb_get_android_dir_path()
/system/core/adb/client/
Dconsole.cpp36 auth_token_path += OS_PATH_SEPARATOR; in adb_construct_auth_command()
Dauth.cpp208 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()
Dbugreport.cpp101 OS_PATH_SEPARATOR, dest_file_.c_str()); in Done()
Dadb_client.cpp227 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adb." + std::to_string(port); in adb_get_server_executable_path()
/system/core/adb/daemon/
Dfile_sync_service.cpp108 if (partial_path.empty() || partial_path.back() != OS_PATH_SEPARATOR) { in secure_mkdirs()
109 partial_path += OS_PATH_SEPARATOR; in secure_mkdirs()

12