Home
last modified time | relevance | path

Searched refs:ExtractedPackage (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tools/aapt2/xml/
DXmlDom_test.cpp148 EXPECT_THAT(TransformPackageAlias("one"), Eq(ExtractedPackage{"com.one", false})); in Visit()
150 EXPECT_THAT(TransformPackageAlias("one"), Eq(ExtractedPackage{"com.one", false})); in Visit()
151 EXPECT_THAT(TransformPackageAlias("two"), Eq(ExtractedPackage{"com.two", false})); in Visit()
153 EXPECT_THAT(TransformPackageAlias("one"), Eq(ExtractedPackage{"com.one", false})); in Visit()
154 EXPECT_THAT(TransformPackageAlias("two"), Eq(ExtractedPackage{"com.two", false})); in Visit()
155 EXPECT_THAT(TransformPackageAlias("three"), Eq(ExtractedPackage{"com.three", false})); in Visit()
157 EXPECT_THAT(TransformPackageAlias("one"), Eq(ExtractedPackage{"com.one", false})); in Visit()
158 EXPECT_THAT(TransformPackageAlias("two"), Eq(ExtractedPackage{"com.two", false})); in Visit()
159 EXPECT_THAT(TransformPackageAlias("three"), Eq(ExtractedPackage{"com.three", false})); in Visit()
160 EXPECT_THAT(TransformPackageAlias("four"), Eq(ExtractedPackage{"", true})); in Visit()
DXmlUtil.h35 struct ExtractedPackage { struct
44 friend inline bool operator==(const ExtractedPackage& a, const ExtractedPackage& b) { argument
55 std::optional<ExtractedPackage> ExtractPackageFromNamespace(const std::string& namespace_uri);
70 virtual std::optional<ExtractedPackage> TransformPackageAlias(
DXmlUtil.cpp36 std::optional<ExtractedPackage> ExtractPackageFromNamespace(const std::string& namespace_uri) { in ExtractPackageFromNamespace()
44 return ExtractedPackage{std::string(package), false /* is_private */}; in ExtractPackageFromNamespace()
53 return ExtractedPackage{std::string(package), true /* is_private */}; in ExtractPackageFromNamespace()
56 return ExtractedPackage{std::string(), true /* is_private */}; in ExtractPackageFromNamespace()
63 if (std::optional<ExtractedPackage> transformed_package = in ResolvePackage()
65 ExtractedPackage& extracted_package = transformed_package.value(); in ResolvePackage()
DXmlPullParser.cpp86 std::optional<ExtractedPackage> result = ExtractPackageFromNamespace(namespace_uri()); in Next()
143 std::optional<ExtractedPackage> XmlPullParser::TransformPackageAlias(StringPiece alias) const { in TransformPackageAlias()
145 return ExtractedPackage{{}, false /*private*/}; in TransformPackageAlias()
152 return ExtractedPackage{{}, iter->package.private_namespace}; in TransformPackageAlias()
DXmlUtil_test.cpp30 std::optional<xml::ExtractedPackage> p = in TEST()
DXmlPullParser.h122 std::optional<ExtractedPackage> TransformPackageAlias(android::StringPiece alias) const override;
126 ExtractedPackage package;
DXmlDom.h233 std::optional<ExtractedPackage> TransformPackageAlias(android::StringPiece alias) const override;
246 ExtractedPackage package;
DXmlDom.cpp548 if (std::optional<ExtractedPackage> maybe_package = ExtractPackageFromNamespace(decl.uri)) { in BeforeVisitElement()
559 std::optional<ExtractedPackage> PackageAwareVisitor::TransformPackageAlias( in TransformPackageAlias()
562 return ExtractedPackage{{}, false /*private*/}; in TransformPackageAlias()
573 return ExtractedPackage{{}, decl.package.private_namespace}; in TransformPackageAlias()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp192 std::optional<xml::ExtractedPackage> TransformPackageAlias(StringPiece alias) const override { in TransformPackageAlias()
194 return xml::ExtractedPackage{{}, true /*private*/}; in TransformPackageAlias()
208 std::optional<xml::ExtractedPackage> TransformPackageAlias(StringPiece alias) const override { in TransformPackageAlias()
210 return xml::ExtractedPackage{{}, true /*private*/}; in TransformPackageAlias()
214 return xml::ExtractedPackage{it->package_name, it->is_private}; in TransformPackageAlias()
DXmlReferenceLinker.cpp69 if (std::optional<xml::ExtractedPackage> maybe_package = in Visit()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp68 std::optional<xml::ExtractedPackage> maybe_pkg = TransformPackageAlias(name.package); in Visit()
76 const xml::ExtractedPackage& pkg = maybe_pkg.value(); in Visit()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp51 std::optional<xml::ExtractedPackage> maybe_package = in Visit()