Home
last modified time | relevance | path

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

12

/system/tools/aidl/
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
Dimport_resolver.cpp46 if (path[path.size() - 1] != OS_PATH_SEPARATOR) { in ImportResolver()
47 path += OS_PATH_SEPARATOR; in ImportResolver()
58 c = OS_PATH_SEPARATOR; in FindImportFile()
Doptions.cpp285 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()
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()
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()
Daidl_to_cpp_common.cpp60 c = (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
64 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile()
/system/extras/simpleperf/
Ddso_test.cpp52 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()
Dgtest_main.cpp114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
115 testdata_dir += OS_PATH_SEPARATOR; in main()
Ddso.cpp43 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()
Dutils.h39 #define OS_PATH_SEPARATOR '\\' macro
42 #define OS_PATH_SEPARATOR '/' macro
Dcmd_inject_test.cpp51 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_inject.data"), &expected_data)); in CheckMatchingExpectedData()
/system/core/libutils/
DString8.cpp473 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/
DCompat.h90 #define OS_PATH_SEPARATOR '\\' macro
92 #define OS_PATH_SEPARATOR '/' macro
/system/tools/aidl/tests/
Dfake_io_delegate.cpp93 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()
Dtest_util.cpp42 c = OS_PATH_SEPARATOR; in CanonicalNameToPath()
/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.h75 #define OS_PATH_SEPARATOR '\\' macro
391 #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/libbase/
Dfile.cpp42 #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/
Dconsole.cpp36 auth_token_path += OS_PATH_SEPARATOR; in adb_construct_auth_command()
Dauth.cpp198 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()
Dbugreport.cpp101 OS_PATH_SEPARATOR, dest_file_.c_str()); in Done()
Dadb_wifi.cpp97 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adb_known_hosts.pb"; in get_user_known_hosts_path()
Dadb_client.cpp245 return adb_get_android_dir_path() + OS_PATH_SEPARATOR + "adb." + std::to_string(port); in adb_get_server_executable_path()

12