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(make_value(ExtractedPackage{"com.one", false}))); in Visit()
150 EXPECT_THAT(TransformPackageAlias("one"), Eq(make_value(ExtractedPackage{"com.one", false}))); in Visit()
151 EXPECT_THAT(TransformPackageAlias("two"), Eq(make_value(ExtractedPackage{"com.two", false}))); in Visit()
153 EXPECT_THAT(TransformPackageAlias("one"), Eq(make_value(ExtractedPackage{"com.one", false}))); in Visit()
154 EXPECT_THAT(TransformPackageAlias("two"), Eq(make_value(ExtractedPackage{"com.two", false}))); in Visit()
156 Eq(make_value(ExtractedPackage{"com.three", false}))); in Visit()
158 EXPECT_THAT(TransformPackageAlias("one"), Eq(make_value(ExtractedPackage{"com.one", false}))); in Visit()
159 EXPECT_THAT(TransformPackageAlias("two"), Eq(make_value(ExtractedPackage{"com.two", false}))); in Visit()
161 Eq(make_value(ExtractedPackage{"com.three", false}))); in Visit()
162 EXPECT_THAT(TransformPackageAlias("four"), Eq(make_value(ExtractedPackage{"", true}))); in Visit()
DXmlUtil.h36 struct ExtractedPackage { struct
45 friend inline bool operator==(const ExtractedPackage& a, const ExtractedPackage& b) { argument
56 Maybe<ExtractedPackage> ExtractPackageFromNamespace(const std::string& namespace_uri);
72 virtual Maybe<ExtractedPackage> TransformPackageAlias(
DXmlUtil.cpp37 Maybe<ExtractedPackage> ExtractPackageFromNamespace( in ExtractPackageFromNamespace()
46 return ExtractedPackage{package.to_string(), false /* is_private */}; in ExtractPackageFromNamespace()
55 return ExtractedPackage{package.to_string(), true /* is_private */}; in ExtractPackageFromNamespace()
58 return ExtractedPackage{std::string(), true /* is_private */}; in ExtractPackageFromNamespace()
65 if (Maybe<ExtractedPackage> transformed_package = in ResolvePackage()
67 ExtractedPackage& extracted_package = transformed_package.value(); in ResolvePackage()
DXmlPullParser.cpp87 Maybe<ExtractedPackage> result = in Next()
145 Maybe<ExtractedPackage> XmlPullParser::TransformPackageAlias(const StringPiece& alias) const { in TransformPackageAlias()
147 return ExtractedPackage{{}, false /*private*/}; in TransformPackageAlias()
154 return ExtractedPackage{{}, iter->package.private_namespace}; in TransformPackageAlias()
DXmlUtil_test.cpp30 Maybe<xml::ExtractedPackage> p = in TEST()
DXmlPullParser.h124 Maybe<ExtractedPackage> TransformPackageAlias(const android::StringPiece& alias) const override;
186 ExtractedPackage package;
DXmlDom.h238 Maybe<ExtractedPackage> TransformPackageAlias(const android::StringPiece& alias) const override;
251 ExtractedPackage package;
DXmlDom.cpp547 if (Maybe<ExtractedPackage> maybe_package = ExtractPackageFromNamespace(decl.uri)) { in BeforeVisitElement()
558 Maybe<ExtractedPackage> PackageAwareVisitor::TransformPackageAlias(const StringPiece& alias) const { in TransformPackageAlias()
560 return ExtractedPackage{{}, false /*private*/}; in TransformPackageAlias()
571 return ExtractedPackage{{}, decl.package.private_namespace}; in TransformPackageAlias()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp68 Maybe<xml::ExtractedPackage> maybe_pkg = TransformPackageAlias(name.package); in Visit()
76 const xml::ExtractedPackage& pkg = maybe_pkg.value(); in Visit()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp165 Maybe<xml::ExtractedPackage> TransformPackageAlias(const StringPiece& alias) const override { in TransformPackageAlias()
167 return xml::ExtractedPackage{{}, true /*private*/}; in TransformPackageAlias()
DXmlReferenceLinker.cpp93 if (Maybe<xml::ExtractedPackage> maybe_package = in Visit()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp51 Maybe<xml::ExtractedPackage> maybe_package = in Visit()