Searched refs:ExtractedPackage (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom_test.cpp | 148 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()
|
D | XmlUtil.h | 35 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(
|
D | XmlUtil.cpp | 36 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()
|
D | XmlPullParser.cpp | 86 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()
|
D | XmlUtil_test.cpp | 30 std::optional<xml::ExtractedPackage> p = in TEST()
|
D | XmlPullParser.h | 122 std::optional<ExtractedPackage> TransformPackageAlias(android::StringPiece alias) const override; 126 ExtractedPackage package;
|
D | XmlDom.h | 233 std::optional<ExtractedPackage> TransformPackageAlias(android::StringPiece alias) const override; 246 ExtractedPackage package;
|
D | XmlDom.cpp | 548 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/ |
D | ReferenceLinker.cpp | 192 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()
|
D | XmlReferenceLinker.cpp | 69 if (std::optional<xml::ExtractedPackage> maybe_package = in Visit()
|
/frameworks/base/tools/aapt2/compile/ |
D | InlineXmlFormatParser.cpp | 68 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/ |
D | ProguardRules.cpp | 51 std::optional<xml::ExtractedPackage> maybe_package = in Visit()
|