Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp96 static xml::Attribute* FindAttribute(xml::Element *el, uint32_t resd_id) { in FindAttribute() function
108 static xml::Attribute* FindAttribute(xml::Element *el, const std::string &package, in FindAttribute() function
110 return el->FindAttribute(package, name); in FindAttribute()
433 package = GetAttributeStringDefault(FindAttribute(manifest, {}, "package"), ""); in Extract()
434 versionCode = GetAttributeIntegerDefault(FindAttribute(manifest, VERSION_CODE_ATTR), 0); in Extract()
435 versionName = GetAttributeStringDefault(FindAttribute(manifest, VERSION_NAME_ATTR), ""); in Extract()
436 split = GetAttributeString(FindAttribute(manifest, {}, "split")); in Extract()
439 platformVersionName = GetAttributeString(FindAttribute(manifest, {}, in Extract()
441 platformVersionCode = GetAttributeString(FindAttribute(manifest, {}, in Extract()
445 compilesdkVersion = GetAttributeInteger(FindAttribute(manifest, COMPILE_SDK_VERSION_ATTR)); in Extract()
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp34 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty()
72 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName()
79 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaClassName()
89 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaPackage()
106 if (el->FindAttribute(xml::kSchemaAndroid, attr) == nullptr) { in RequiredAndroidAttribute()
119 xml::Attribute* attr = el->FindAttribute({}, kFeatureSplit); in AutoGenerateIsFeatureSplit()
126 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, kIsFeatureSplit); in AutoGenerateIsFeatureSplit()
146 xml::Attribute* attr = el->FindAttribute({}, "package"); in VerifyManifest()
162 attr = el->FindAttribute({}, "split"); in VerifyManifest()
176 if (xml::Attribute* attr = el->FindAttribute("", "coreApp")) { in FixCoreAppAttribute()
[all …]
DXmlCompatVersioner.cpp37 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
DManifestFixer_test.cpp585 xml::Attribute* attr = el->FindAttribute("", "coreApp"); in TEST_F()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp190 node->FindAttribute(xml::kSchemaAndroid, "fragment"); in Visit()
210 const auto& attr = node->FindAttribute(xml::kSchemaAndroid, "name"); in Visit()
235 xml::Attribute* attr = node->FindAttribute({}, "class"); in Visit()
259 xml::Attribute* attr = node->FindAttribute({}, "package"); in Visit()
265 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "backupAgent"); in Visit()
272 attr = node->FindAttribute(xml::kSchemaAndroid, "appComponentFactory"); in Visit()
280 attr = node->FindAttribute(xml::kSchemaAndroid, "zygotePreloadName"); in Visit()
289 xml::Attribute* default_process = node->FindAttribute(xml::kSchemaAndroid, "process"); in Visit()
299 xml::Attribute* component_process = node->FindAttribute(xml::kSchemaAndroid, "process"); in Visit()
310 xml::Attribute* attr = node->FindAttribute(xml::kSchemaAndroid, "name"); in Visit()
DManifestClassGenerator.cpp60 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in WriteSymbol()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp348 const xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromBinaryManifest()
364 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromBinaryManifest()
375 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCodeMajor")) { in ExtractAppInfoFromBinaryManifest()
386 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromBinaryManifest()
396 if (const xml::Attribute* split_name_attr = manifest_el->FindAttribute({}, "split")) { in ExtractAppInfoFromBinaryManifest()
408 uses_sdk_el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion")) { in ExtractAppInfoFromBinaryManifest()
DUtil_test.cpp51 EXPECT_EQ(root->FindAttribute("", "split")->value, "config.b_sr_Latn_en_rUS_land"); in TEST()
53 EXPECT_EQ(root->FindAttribute("", "targetConfig")->value, "b+sr+Latn,en-rUS-land"); in TEST()
DLink.cpp775 xml::Attribute* attr = manifest_xml->root->FindAttribute(xml::kSchemaAndroid, "versionCode"); in ExtractCompileSdkVersions()
798 xml::Attribute* attr = manifest_xml->root->FindAttribute(xml::kSchemaAndroid, "versionName"); in ExtractCompileSdkVersions()
914 xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromManifest()
923 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromManifest()
934 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCodeMajor")) { in ExtractAppInfoFromManifest()
946 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromManifest()
956 if (xml::Attribute* split_name_attr = manifest_el->FindAttribute({}, "split")) { in ExtractAppInfoFromManifest()
964 uses_sdk_el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion")) { in ExtractAppInfoFromManifest()
DDump.h53 xml::Attribute* attr = manifest_el->FindAttribute({}, "package"); in GetPackageName()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.h150 const_iterator FindAttribute(android::StringPiece namespace_uri, android::StringPiece name) const;
194 Maybe<android::StringPiece> FindAttribute(const XmlPullParser* parser,
305 inline XmlPullParser::const_iterator XmlPullParser::FindAttribute( in FindAttribute() function
DXmlPullParser.cpp307 Maybe<StringPiece> FindAttribute(const XmlPullParser* parser, in FindAttribute() function
309 auto iter = parser->FindAttribute("", name); in FindAttribute()
318 auto iter = parser->FindAttribute("", name); in FindNonEmptyAttribute()
DXmlDom.cpp417 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute() function in aapt::xml::Element
418 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
421 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute() function in aapt::xml::Element
440 Attribute* attr = FindAttribute(ns, name); in FindOrCreateAttribute()
474 const Attribute* attr = el->FindAttribute(attr_ns, attr_name); in FindChildWithAttribute()
DXmlDom.h100 Attribute* FindAttribute(const android::StringPiece& ns, const android::StringPiece& name);
101 const Attribute* FindAttribute(const android::StringPiece& ns,
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp281 auto version_code = manifest_el->FindAttribute(kSchemaAndroid, "versionCode"); in UpdateManifest()
294 auto version_code_major = manifest_el->FindAttribute(kSchemaAndroid, "versionCodeMajor"); in UpdateManifest()
317 uses_sdk_el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion")) { in UpdateManifest()
/frameworks/base/tools/aapt2/
DResourceParser.cpp791 xml::FindAttribute(parser, "formatted")) { in ParseString()
803 if (Maybe<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseString()
1218 Maybe<StringPiece> maybe_format = xml::FindAttribute(parser, "format"); in ParseAttrImpl()
1230 if (Maybe<StringPiece> maybe_min_str = xml::FindAttribute(parser, "min")) { in ParseAttrImpl()
1247 if (Maybe<StringPiece> maybe_max_str = xml::FindAttribute(parser, "max")) { in ParseAttrImpl()
1431 Maybe<StringPiece> maybe_parent = xml::FindAttribute(parser, "parent"); in ParseStyle()
1514 if (Maybe<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseArrayImpl()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp52 xml::Attribute* attr = el->FindAttribute({}, "name"); in Visit()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp117 const xml::Attribute* version = element->FindAttribute("", "version-code-order"); in GetVersionCodeOrder()