Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap2/idmap2/
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()
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()
DCommandUtils.h26 const std::string& idmap_path, const std::string& target_path, const std::string& overlay_path,
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp107 Status Idmap2Service::verifyIdmap(const std::string& target_path, const std::string& overlay_path, in verifyIdmap() argument
124 const auto target = GetTargetContainer(target_path); in verifyIdmap()
127 LOG(WARNING) << "failed to load target '" << target_path << "'"; in verifyIdmap()
150 Status Idmap2Service::createIdmap(const std::string& target_path, const std::string& overlay_path, in createIdmap() argument
155 SYSTRACE << "Idmap2Service::createIdmap " << target_path << " " << overlay_path; in createIdmap()
173 const auto target = GetTargetContainer(target_path); in createIdmap()
175 return error("failed to load target '%s'" + target_path); in createIdmap()
208 const std::string& target_path) { in GetTargetContainer() argument
209 if (target_path == kFrameworkPath) { in GetTargetContainer()
212 auto target = TargetResourceContainer::FromPath(target_path); in GetTargetContainer()
[all …]
DIdmap2Service.h49 binder::Status verifyIdmap(const std::string& target_path, const std::string& overlay_path,
54 binder::Status createIdmap(const std::string& target_path, const std::string& overlay_path,
88 idmap2::Result<TargetResourceContainerPtr> GetTargetContainer(const std::string& target_path);
/frameworks/base/cmds/idmap2/
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…
/frameworks/base/libs/androidfw/
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()
/frameworks/base/cmds/idmap2/libidmap2/
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()
/frameworks/base/cmds/idmap2/tests/
DResourceMappingTests.cpp47 const std::string target_path = (local_target_path[0] == '/') in TestGetResourceMapping() local
50 auto target = TargetResourceContainer::FromPath(target_path); in TestGetResourceMapping()
52 return Error(target.GetError(), R"(Failed to load target "%s")", target_path.c_str()); in TestGetResourceMapping()
DIdmapTests.cpp374 const std::string target_path(GetTestDataPath() + local_target_path); in TestIdmapDataFromApkAssets() local
375 auto target = TargetResourceContainer::FromPath(target_path); in TestIdmapDataFromApkAssets()
377 return Error(R"(Failed to load target "%s")", target_path.c_str()); in TestIdmapDataFromApkAssets()
/frameworks/base/cmds/idmap2/include/idmap2/
DIdmap.h138 Result<Unit> IsUpToDate(const std::string& target_path, const std::string& overlay_path,