Home
last modified time | relevance | path

Searched refs:parent_path (Results 1 – 22 of 22) sorted by relevance

/aosp12/frameworks/compile/mclinker/unittests/
H A DPathTest.cpp135 TEST_F(PathTest, parent_path) { in TEST_F() argument
137 EXPECT_STREQ("aa/bb/cc", m_pTestee->parent_path().c_str()); in TEST_F()
140 EXPECT_STREQ("/aa/bb", m_pTestee->parent_path().c_str()); in TEST_F()
143 EXPECT_STREQ("/aa", m_pTestee->parent_path().c_str()); in TEST_F()
146 EXPECT_STREQ("aa", m_pTestee->parent_path().c_str()); in TEST_F()
149 EXPECT_TRUE(m_pTestee->parent_path().empty()); in TEST_F()
/aosp12/system/bt/test/
H A Drun_host_unit_tests.py73 parent_path = os.path.abspath(os.path.join(current_path, os.pardir))
74 if parent_path == current_path:
77 current_path = parent_path
/aosp12/packages/providers/MediaProvider/jni/
H A DFuseDaemon.cpp695 string parent_path = parent_node->BuildPath(); in do_lookup() local
705 const string child_path = parent_path + "/" + name; in do_lookup()
934 string parent_path = parent_node->BuildPath(); in pf_mknod() local
942 const string child_path = parent_path + "/" + name; in pf_mknod()
972 const string parent_path = parent_node->BuildPath(); in pf_mkdir() local
980 const string child_path = parent_path + "/" + name; in pf_mkdir()
1013 const string parent_path = parent_node->BuildPath(); in pf_unlink() local
1021 const string child_path = parent_path + "/" + name; in pf_unlink()
1048 if (is_transforms_dir_path(parent_path, fuse)) { in pf_rmdir()
1057 const string child_path = parent_path + "/" + name; in pf_rmdir()
[all …]
/aosp12/art/runtime/
H A Dvdex_file.cc234 std::string parent_path = child_path.substr(0, last_slash_pos); in CreateDirectories() local
235 if (OS::DirectoryExists(parent_path.c_str())) { in CreateDirectories()
237 } else if (CreateDirectories(parent_path, error_msg)) { in CreateDirectories()
238 if (mkdir(parent_path.c_str(), 0700) == 0) { in CreateDirectories()
241 *error_msg = "Could not create directory " + parent_path; in CreateDirectories()
/aosp12/bionic/tools/versioner/src/
H A DPreprocessor.cpp451 llvm::StringRef parent_path = llvm::sys::path::parent_path(dst_path); in preprocessHeaders() local
452 if (llvm::sys::fs::create_directories(parent_path)) { in preprocessHeaders()
453 errx(1, "failed to ensure existence of directory '%s'", parent_path.str().c_str()); in preprocessHeaders()
/aosp12/art/libartbase/base/
H A Dcommon_art_test.cc157 for (; path.parent_path() != path; path = path.parent_path()) { in GetAndroidBuildTop()
160 android_build_top = path.parent_path().parent_path().parent_path(); in GetAndroidBuildTop()
/aosp12/frameworks/base/tools/aapt2/util/
H A DFiles.cpp128 std::string parent_path = path.substr(0, current_pos); in mkdirs() local
129 if (parent_path.empty()) { in mkdirs()
133 int result = ::android::base::utf8::mkdir(parent_path.c_str(), mode); in mkdirs()
/aosp12/frameworks/compile/slang/
H A Dslang_rs_reflect_utils.cpp266 llvm::sys::path::parent_path(output_path))) { in GenerateJavaBitCodeAccessor()
354 llvm::sys::path::parent_path(outDirectory))) { in startFile()
H A Dslang.cpp140 llvm::sys::path::parent_path(OutputFile)); in OpenOutputFile()
/aosp12/hardware/interfaces/automotive/can/1.0/default/
H A DCanController.cpp79 fs::recursive_directory_iterator fsItr(serialPath.parent_path(), kOpts, fsStatus); in getIfaceName()
81 LOG(ERROR) << "Failed to open " << serialPath.parent_path(); in getIfaceName()
/aosp12/system/apex/tests/native/
H A Dapex_shared_libraries_test.cpp52 if (fs::path(entry.mount_point).parent_path() != kApexRoot) { in TEST()
/aosp12/system/bt/gd/packet/parser/
H A Dgen_cpp.cc63 auto gen_relative_path = input_file.lexically_relative(include_dir).parent_path(); in generate_cpp_headers_one_file()
264 auto gen_relative_path = input_file.lexically_relative(include_dir).parent_path(); in generate_pybind11_sources_one_file()
H A Dgen_rust.cc68 auto gen_relative_path = input_file.lexically_relative(include_dir).parent_path(); in generate_rust_source_one_file()
/aosp12/frameworks/compile/mclinker/include/mcld/Support/
H A DPath.h80 Path parent_path() const;
/aosp12/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp158 Path Path::parent_path() const { in parent_path() function in mcld::sys::fs::Path
/aosp12/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp1080 static std::string getAppDataDirName(std::string_view parent_path, std::string_view package_name, in getAppDataDirName() argument
1084 snprintf(tmpPath, PATH_MAX, "%s/%s", parent_path.data(), package_name.data()); in getAppDataDirName()
1097 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(parent_path.data()), closedir); in getAppDataDirName()
1099 fail_fn(CREATE_ERROR("Failed to opendir %s", parent_path.data())); in getAppDataDirName()
1118 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(parent_path.data()), closedir); in getAppDataDirName()
1120 fail_fn(CREATE_ERROR("Failed to opendir %s", parent_path.data())); in getAppDataDirName()
1134 ce_data_inode, parent_path.data())); in getAppDataDirName()
/aosp12/system/apex/apexd/
H A Dapex_database.cpp279 if (fs::path(mount_point).parent_path() != kApexRoot) { in PopulateFromMounts()
H A Dapexd_test.cpp1760 sharedlibs.push_back(p.path().parent_path().string() + "->" + in TEST_F()
1761 src.parent_path().string()); in TEST_F()
1851 sharedlibs.push_back(p.path().parent_path().string() + "->" + in TEST_F()
1852 src.parent_path().string()); in TEST_F()
/aosp12/frameworks/compile/mclinker/lib/LD/
H A DGNUArchiveReader.cpp217 sys::fs::Path input_path(pArchiveFile.path().parent_path()); in readMemberHeader()
/aosp12/frameworks/native/services/inputflinger/reader/
H A DEventHub.cpp224 sysfsPath = sysfsPath.parent_path(); in getSysfsRootPath()
228 sysfsPath = sysfsPath.parent_path(); in getSysfsRootPath()
270 for (auto path = sysfsRoot; path != "/" && nodes.empty(); path = path.parent_path()) { in findSysfsNodes()
/aosp12/hardware/interfaces/automotive/can/1.0/default/libc++fs/src/filesystem/
H A Doperations.cpp852 const path parent = p.parent_path(); in __create_directories()
/aosp12/hardware/interfaces/automotive/can/1.0/default/libc++fs/include/automotive/
H A Dfilesystem1113 _LIBCPP_INLINE_VISIBILITY path parent_path() const {
2041 __p_ = __p_.parent_path() / __p;