/aosp12/system/tools/aidl/tests/ |
H A D | fake_io_delegate.cpp | 106 string package, class_name, rel_path; in AddStubParcelable() local 107 SplitPackageClass(canonical_name, &rel_path, &package, &class_name); in AddStubParcelable() 117 SetFileContents(rel_path, contents); in AddStubParcelable() 121 string package, class_name, rel_path; in AddStubInterface() local 122 SplitPackageClass(canonical_name, &rel_path, &package, &class_name); in AddStubInterface() 125 SetFileContents(rel_path, contents); in AddStubInterface() 130 string package, class_name, rel_path; in AddCompoundParcelable() local 131 SplitPackageClass(canonical_name, &rel_path, &package, &class_name); in AddCompoundParcelable() 137 SetFileContents(rel_path, contents); in AddCompoundParcelable()
|
H A D | test_util.cpp | 39 string rel_path{package_class}; in CanonicalNameToPath() local 40 for (char& c : rel_path) { in CanonicalNameToPath() 45 rel_path += extension; in CanonicalNameToPath() 46 return rel_path; in CanonicalNameToPath() 50 string* rel_path, in SplitPackageClass() argument 55 *rel_path = CanonicalNameToPath(package_class.c_str(), ".aidl"); in SplitPackageClass()
|
H A D | test_util.h | 30 std::string* rel_path,
|
/aosp12/bionic/libc/kernel/tools/ |
H A D | update_all.py | 45 rel_path = src_file[src_dir_len:] 47 if os.path.exists(os.path.join(mod_src_dir, rel_path)): 48 src_file = os.path.join(mod_src_dir, rel_path) 49 src_str = os.path.join("<modified>", src_rel_dir, rel_path) 51 src_str = os.path.join("<original>", src_rel_dir, rel_path) 52 dst_file = os.path.join(update_dir, rel_path) 53 new_data = clean_header.cleanupFile(dst_file, src_file, rel_path) 64 update_path = os.path.join(update_rel_dir, rel_path)
|
H A D | clean_header.py | 82 def cleanupFile(dst_file, src_file, rel_path, no_update = True): argument 97 m = re.search(r"(^|/)asm-([\w\d_\+\.\-]+)/.*", rel_path)
|
/aosp12/system/core/libprocessgroup/ |
H A D | cgroup_map.cpp | 85 std::string CgroupController::GetTasksFilePath(const std::string& rel_path) const { in GetTasksFilePath() 88 if (!rel_path.empty()) { in GetTasksFilePath() 89 tasks_path += "/" + rel_path; in GetTasksFilePath() 94 std::string CgroupController::GetProcsFilePath(const std::string& rel_path, uid_t uid, in GetProcsFilePath() argument 97 proc_path.append("/").append(rel_path); in GetProcsFilePath()
|
/aosp12/system/core/fastboot/ |
H A D | vendor_boot_img_utils_test.cpp | 165 TestFileHandle(const std::filesystem::path& rel_path) in TestFileHandle() 166 : abs_path_(std::move(std::filesystem::path(GetExecutableDirectory()) / rel_path)) {} in TestFileHandle() 175 ReadOnlyTestFileHandle(const std::filesystem::path& rel_path) : TestFileHandle(rel_path) {} in ReadOnlyTestFileHandle() 188 ReadWriteTestFileHandle(const std::filesystem::path& rel_path) : TestFileHandle(rel_path) {} in ReadWriteTestFileHandle() 231 void OpenTestFile(const char* rel_path, std::unique_ptr<TestFileHandle>* handle, in OpenTestFile() argument 233 *handle = std::make_unique<ReadOnlyTestFileHandle>(rel_path); in OpenTestFile()
|
/aosp12/build/make/tools/releasetools/ |
H A D | test_check_target_files_vintf.py | 74 for rel_path, content in SKELETON_TARGET_FILE_STRUCTURE.items(): 75 write_string_to_file(content, os.path.join(test_dir, rel_path))
|
H A D | check_target_files_vintf.py | 171 return [rel_path + suffix for rel_path in target_files_rel_paths]
|
/aosp12/bionic/tools/versioner/src/ |
H A D | Preprocessor.cpp | 449 std::string rel_path = path.substr(src_dir.length() + 1).str(); in preprocessHeaders() local 450 std::string dst_path = dst_dir + "/" + rel_path; in preprocessHeaders() 487 llvm::StringRef rel_path = file_path.substr(src_dir.size(), file_path.size() - src_dir.size()); in preprocessHeaders() local 488 std::string output_path = (llvm::Twine(dst_dir) + rel_path).str(); in preprocessHeaders()
|