Home
last modified time | relevance | path

Searched refs:target_path (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/system/update_engine/payload_consumer/
H A Dverity_writer_android_unittest.cc33 partition_.target_path = temp_file_.path(); in SetUp()
42 partition_fd_->Open(partition_.target_path.c_str(), O_RDWR); in SetUp()
53 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
59 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
101 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
107 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
124 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
132 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
150 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
155 utils::ReadFile(partition_.target_path, &actual_part); in TEST_F()
H A Dfilesystem_verifier_action_unittest.cc118 part.target_path = target_part_.path(); in AddFakePartition()
119 part.readonly_target_path = part.target_path; in AddFakePartition()
288 part.target_path = a_dev; in DoTest()
408 part.target_path = "/no/such/file"; in TEST_F()
448 string target_path; in TEST_F() local
450 part_file.path(), true, &target_path); in TEST_F()
454 part.target_path = target_path; in TEST_F()
509 string target_path; in TEST_F() local
511 part_file.path(), true, &target_path); in TEST_F()
516 part.target_path = target_path; in TEST_F()
[all …]
H A Dinstall_plan.cc119 {"target_path", partition.target_path}, in ToString()
168 partition.target_path = device->rw_device_path; in LoadPartitionsFromSlots()
171 partition.target_path.clear(); in LoadPartitionsFromSlots()
181 target_path == that.target_path && target_size == that.target_size && in operator ==()
H A Dpostinstall_runner_action.cc145 LOG(ERROR) << "Cannot make mountable device from " << partition.target_path; in PerformPartitionPostinstall()
205 << abs_path << ") installed on device " << partition.target_path in PerformPartitionPostinstall()
223 command.push_back(partition.target_path); in PerformPartitionPostinstall()
H A Dinstall_plan_unittest.cc40 .target_path = "foo-target-path", in TEST()
H A Dverity_writer_android.cc119 LOG(INFO) << "Writing verity hash tree to " << partition_->target_path; in Finalize()
131 LOG(INFO) << "Writing verity FEC to " << partition_->target_path; in Finalize()
H A Ddelta_performer_fuzzer.cc60 .target_path = "/dev/null", in FuzzDeltaPerformer()
H A Dpostinstall_runner_action_unittest.cc197 part.target_path = device_path; in RunPostinstallAction()
362 part.target_path = "/dev/null"; in TEST_F()
H A Dinstall_plan.h109 std::string target_path; member
/aosp12/frameworks/base/cmds/idmap2/idmap2d/
H A DIdmap2Service.cpp108 Status Idmap2Service::verifyIdmap(const std::string& target_path, const std::string& overlay_path, in verifyIdmap() argument
125 const auto target = GetTargetContainer(target_path); in verifyIdmap()
128 LOG(WARNING) << "failed to load target '" << target_path << "'"; in verifyIdmap()
151 Status Idmap2Service::createIdmap(const std::string& target_path, const std::string& overlay_path, in createIdmap() argument
156 SYSTRACE << "Idmap2Service::createIdmap " << target_path << " " << overlay_path; in createIdmap()
174 const auto target = GetTargetContainer(target_path); in createIdmap()
176 return error("failed to load target '%s'" + target_path); in createIdmap()
209 const std::string& target_path) { in GetTargetContainer() argument
210 if (target_path == kFrameworkPath) { in GetTargetContainer()
213 auto target = TargetResourceContainer::FromPath(target_path); in GetTargetContainer()
[all …]
H A DIdmap2Service.h46 binder::Status verifyIdmap(const std::string& target_path, const std::string& overlay_path,
51 binder::Status createIdmap(const std::string& target_path, const std::string& overlay_path,
83 idmap2::Result<TargetResourceContainerPtr> GetTargetContainer(const std::string& target_path);
/aosp12/system/linkerconfig/contents/tests/configuration/include/
H A Dlinkerconfigparser.h73 std::vector<std::string>* target_path = nullptr; in ParseNamespacePath() local
75 target_path = &current_namespace.search_path; in ParseNamespacePath()
77 target_path = &current_namespace.permitted_path; in ParseNamespacePath()
79 target_path = &current_namespace.asan_search_path; in ParseNamespacePath()
81 target_path = &current_namespace.asan_permitted_path; in ParseNamespacePath()
84 ASSERT_NE(nullptr, target_path) << line; in ParseNamespacePath()
85 EXPECT_EQ(is_additional, target_path->size() != 0) in ParseNamespacePath()
89 target_path->push_back(path); in ParseNamespacePath()
/aosp12/frameworks/base/cmds/idmap2/idmap2/
H A DLookup.cpp178 std::string target_path; in Lookup() local
190 target_path = idmap_header->GetTargetPath(); in Lookup()
191 auto target_apk = ApkAssets::Load(target_path); in Lookup()
193 return Error("failed to read target apk from %s", target_path.c_str()); in Lookup()
208 } else if (target_path != idmap_header->GetTargetPath()) { in Lookup()
210 target_path.c_str(), idmap_path.c_str(), idmap_header->GetTargetPath().c_str()); in Lookup()
H A DCommandUtils.cpp35 Result<Unit> Verify(const std::string& idmap_path, const std::string& target_path, in Verify() argument
46 auto target = TargetResourceContainer::FromPath(target_path); in Verify()
48 return Error("failed to load target '%s'", target_path.c_str()); in Verify()
H A DCommandUtils.h26 const std::string& idmap_path, const std::string& target_path, const std::string& overlay_path,
/aosp12/system/linkerconfig/generator/
H A Dvariableloader.cc46 Result<std::string> GetRealPath(std::string target_path) { in GetRealPath() argument
48 if (realpath(target_path.c_str(), resolved_path) != nullptr) { in GetRealPath()
52 return ErrnoErrorf("Failed to get realpath from {}", target_path); in GetRealPath()
/aosp12/frameworks/base/cmds/idmap2/
H A Dvalgrind.sh48 target_path="${prefix}/tests/data/target/target.apk"
53 _eval "idmap2 create" "$valgrind idmap2 create --policy public --target-apk-path $target_path --ove…
/aosp12/system/libufdt/
H A Dufdt_overlay.c325 const char *target_path; in ufdt_overlay_get_target() local
341 target_path = in ufdt_overlay_get_target()
343 if (target_path == NULL) { in ufdt_overlay_get_target()
347 *target_node = ufdt_get_node_by_path(tree, target_path); in ufdt_overlay_get_target()
349 dto_error("failed to find target-path %s\n", target_path); in ufdt_overlay_get_target()
/aosp12/frameworks/base/libs/androidfw/
H A DIdmap.cpp282 std::optional<std::string_view> target_path = ReadString(&data_ptr, &data_size, "target path"); in Load() local
283 if (!target_path) { in Load()
333 *target_path, *overlay_path)); in Load()
/aosp12/art/runtime/
H A Doat_file_assistant_test.cc1158 std::vector<std::string> target_path; in MakePathRelative() local
1160 Split(target, '/', &target_path); in MakePathRelative()
1164 std::reverse(target_path.begin(), target_path.end()); in MakePathRelative()
1169 while (!target_path.empty() && !cwd_path.empty() in MakePathRelative()
1170 && target_path.back() == cwd_path.back()) { in MakePathRelative()
1171 target_path.pop_back(); in MakePathRelative()
1179 target_path.push_back(".."); in MakePathRelative()
1183 std::reverse(target_path.begin(), target_path.end()); in MakePathRelative()
1184 return android::base::Join(target_path, '/'); in MakePathRelative()
/aosp12/frameworks/base/cmds/idmap2/libidmap2/
H A DIdmap.cpp133 Result<Unit> IdmapHeader::IsUpToDate(const std::string& target_path, in IsUpToDate() argument
166 if (target_path != target_path_) { in IsUpToDate()
167 return Error("bad target path: idmap version %s, file system version %s", target_path.c_str(), in IsUpToDate()
/aosp12/frameworks/base/cmds/idmap2/tests/
H A DResourceMappingTests.cpp49 const std::string target_path = (local_target_path[0] == '/') in TestGetResourceMapping() local
52 auto target = TargetResourceContainer::FromPath(target_path); in TestGetResourceMapping()
54 return Error(target.GetError(), R"(Failed to load target "%s")", target_path.c_str()); in TestGetResourceMapping()
H A DIdmapTests.cpp375 const std::string target_path(GetTestDataPath() + local_target_path); in TestIdmapDataFromApkAssets() local
376 auto target = TargetResourceContainer::FromPath(target_path); in TestIdmapDataFromApkAssets()
378 return Error(R"(Failed to load target "%s")", target_path.c_str()); in TestIdmapDataFromApkAssets()
/aosp12/system/update_engine/payload_generator/
H A Dgenerate_delta_main.cc202 const string& target_path = config.target.partitions[i].path; in ApplyPayload() local
204 part_name, install_plan.target_slot, target_path); in ApplyPayload()
216 << " source: " << source_path << "\ttarget: " << target_path; in ApplyPayload()
/aosp12/frameworks/base/cmds/idmap2/include/idmap2/
H A DIdmap.h138 Result<Unit> IsUpToDate(const std::string& target_path, const std::string& overlay_path,

12