Home
last modified time | relevance | path

Searched refs:FindAttribute (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp104 static xml::Attribute* FindAttribute(xml::Element *el, uint32_t resd_id) { in FindAttribute() function
116 static xml::Attribute* FindAttribute(xml::Element *el, const std::string &package, in FindAttribute() function
118 return el->FindAttribute(package, name); in FindAttribute()
572 package = GetAttributeStringDefault(FindAttribute(manifest, {}, "package"), ""); in Extract()
573 versionCode = GetAttributeIntegerDefault(FindAttribute(manifest, VERSION_CODE_ATTR), 0); in Extract()
574 versionName = GetAttributeStringDefault(FindAttribute(manifest, VERSION_NAME_ATTR), ""); in Extract()
575 split = GetAttributeString(FindAttribute(manifest, {}, "split")); in Extract()
578 platformVersionName = GetAttributeString(FindAttribute(manifest, {}, in Extract()
580 platformVersionCode = GetAttributeString(FindAttribute(manifest, {}, in Extract()
582 platformVersionNameInt = GetAttributeInteger(FindAttribute(manifest, {}, in Extract()
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp51 xml::Attribute* data_scheme_attr = data_el->FindAttribute(xml::kSchemaAndroid, "scheme"); in HasDeepLink()
67 xml::Attribute* attr = data_el->FindAttribute(xml::kSchemaAndroid, attr_name); in VerifyDeeplinkPathAttribute()
122 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty()
159 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName()
166 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaClassName()
176 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaPackage()
193 if (el->FindAttribute(xml::kSchemaAndroid, attr) == nullptr) { in RequiredAndroidAttribute()
205 xml::Attribute* attr1 = el->FindAttribute(xml::kSchemaAndroid, attrName1); in RequiredOneAndroidAttribute()
206 xml::Attribute* attr2 = el->FindAttribute(xml::kSchemaAndroid, attrName2); in RequiredOneAndroidAttribute()
227 xml::Attribute* attr = el->FindAttribute({}, kFeatureSplit); in AutoGenerateIsFeatureSplit()
[all …]
DFeatureFlagsFilter.cpp54 auto* attr = el->FindAttribute(xml::kSchemaAndroid, "featureFlag"); in ShouldRemove()
DXmlReferenceLinker.cpp57 if (!el->FindAttribute(xml::kSchemaAndroid, "angle")) { in Visit()
DXmlCompatVersioner.cpp39 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
DManifestFixer_test.cpp770 xml::Attribute* attr = el->FindAttribute("", "coreApp"); in TEST_F()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp196 node->FindAttribute(xml::kSchemaAndroid, "fragment"); in Visit()
216 const auto& attr = node->FindAttribute(xml::kSchemaAndroid, "name"); in Visit()
241 xml::Attribute* attr = node->FindAttribute({}, "class"); in Visit()
265 xml::Attribute* attr = node->FindAttribute({}, "package"); in Visit()
271 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "backupAgent"); in Visit()
279 attr = node->FindAttribute(xml::kSchemaAndroid, "appComponentFactory"); in Visit()
288 attr = node->FindAttribute(xml::kSchemaAndroid, "zygotePreloadName"); in Visit()
298 xml::Attribute* default_process = node->FindAttribute(xml::kSchemaAndroid, "process"); in Visit()
308 xml::Attribute* component_process = node->FindAttribute(xml::kSchemaAndroid, "process"); in Visit()
319 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "name"); in Visit()
DManifestClassGenerator.cpp59 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in WriteSymbol()
/frameworks/base/cmds/idmap2/libidmap2/
DXmlParser.cpp92 Result<Res_value> FindAttribute(const ResXMLParser& parser, const std::string& label, in FindAttribute() function
127 return FindAttribute(parser_, label, [&](size_t index) -> bool { in GetAttributeValue()
134 return FindAttribute(parser_, name, [&](size_t index) -> bool { in GetAttributeValue()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp400 const xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromBinaryManifest()
417 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromBinaryManifest()
428 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCodeMajor")) { in ExtractAppInfoFromBinaryManifest()
439 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromBinaryManifest()
449 if (const xml::Attribute* split_name_attr = manifest_el->FindAttribute({}, "split")) { in ExtractAppInfoFromBinaryManifest()
462 uses_sdk_el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion")) { in ExtractAppInfoFromBinaryManifest()
DLink.cpp800 xml::Attribute* attr = manifest_xml->root->FindAttribute(xml::kSchemaAndroid, "versionCode"); in ExtractCompileSdkVersions()
823 xml::Attribute* attr = manifest_xml->root->FindAttribute(xml::kSchemaAndroid, "versionName"); in ExtractCompileSdkVersions()
940 xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromManifest()
949 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromManifest()
960 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCodeMajor")) { in ExtractAppInfoFromManifest()
972 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromManifest()
982 if (xml::Attribute* split_name_attr = manifest_el->FindAttribute({}, "split")) { in ExtractAppInfoFromManifest()
990 uses_sdk_el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion")) { in ExtractAppInfoFromManifest()
998 child_el->FindAttribute(xml::kSchemaAndroid, "name")) { in ExtractAppInfoFromManifest()
1079 application->FindAttribute(xml::kSchemaAndroid, "localeConfig"); in VerifyLocaleFormat()
[all …]
DUtil_test.cpp53 EXPECT_EQ(root->FindAttribute("", "split")->value, "config.b_sr_Latn_en_rUS_land"); in TEST()
55 EXPECT_EQ(root->FindAttribute("", "targetConfig")->value, "b+sr+Latn,en-rUS-land"); in TEST()
DDump.h57 xml::Attribute* attr = manifest_el->FindAttribute({}, "package"); in GetPackageName()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.h155 const_iterator FindAttribute(android::StringPiece namespace_uri, android::StringPiece name) const;
194 std::optional<android::StringPiece> FindAttribute(const XmlPullParser* parser,
305 inline XmlPullParser::const_iterator XmlPullParser::FindAttribute( in FindAttribute() function
DXmlPullParser.cpp309 std::optional<StringPiece> FindAttribute(const XmlPullParser* parser, StringPiece name) { in FindAttribute() function
310 auto iter = parser->FindAttribute("", name); in FindAttribute()
318 auto iter = parser->FindAttribute("", name); in FindNonEmptyAttribute()
DXmlDom.cpp420 Attribute* Element::FindAttribute(StringPiece ns, StringPiece name) { in FindAttribute() function in aapt::xml::Element
421 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
424 const Attribute* Element::FindAttribute(StringPiece ns, StringPiece name) const { in FindAttribute() function in aapt::xml::Element
443 Attribute* attr = FindAttribute(ns, name); in FindOrCreateAttribute()
475 const Attribute* attr = el->FindAttribute(attr_ns, attr_name); in FindChildWithAttribute()
DXmlDom.h99 Attribute* FindAttribute(android::StringPiece ns, android::StringPiece name);
100 const Attribute* FindAttribute(android::StringPiece ns, android::StringPiece name) const;
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp291 auto version_code = manifest_el->FindAttribute(kSchemaAndroid, "versionCode"); in UpdateManifest()
305 auto version_code_major = manifest_el->FindAttribute(kSchemaAndroid, "versionCodeMajor"); in UpdateManifest()
328 uses_sdk_el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion")) { in UpdateManifest()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp52 xml::Attribute* attr = el->FindAttribute({}, "name"); in Visit()
/frameworks/base/tools/aapt2/
DResourceParser.cpp836 if (std::optional<StringPiece> formatted_attr = xml::FindAttribute(parser, "formatted")) { in ParseString()
847 if (std::optional<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseString()
1314 std::optional<StringPiece> maybe_format = xml::FindAttribute(parser, "format"); in ParseAttrImpl()
1326 if (std::optional<StringPiece> maybe_min_str = xml::FindAttribute(parser, "min")) { in ParseAttrImpl()
1343 if (std::optional<StringPiece> maybe_max_str = xml::FindAttribute(parser, "max")) { in ParseAttrImpl()
1526 std::optional<StringPiece> maybe_parent = xml::FindAttribute(parser, "parent"); in ParseStyle()
1611 if (std::optional<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseArrayImpl()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp110 const xml::Attribute* version = element->FindAttribute("", "version-code-order"); in GetVersionCodeOrder()