Home
last modified time | relevance | path

Searched refs:xml (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp33 static bool RequiredNameIsNotEmpty(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsNotEmpty()
34 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty()
50 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName()
71 static bool OptionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in OptionalNameIsJavaClassName()
72 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName()
78 static bool RequiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsJavaClassName()
79 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaClassName()
88 static bool RequiredNameIsJavaPackage(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsJavaPackage()
89 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaPackage()
104 static xml::XmlNodeAction::ActionFuncWithDiag RequiredAndroidAttribute(const std::string& attr) { in RequiredAndroidAttribute()
[all …]
DXmlCompatVersioner.cpp25 static xml::Attribute CopyAttr(const xml::Attribute& src, StringPool* out_string_pool) { in CopyAttr()
26 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
35 static bool CopyAttribute(const xml::Attribute& src_attr, bool generated, xml::Element* dst_el, in CopyAttribute()
37 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
54 void XmlCompatVersioner::ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr, in ProcessRule()
57 xml::Element* dst_el, in ProcessRule()
102 std::unique_ptr<xml::XmlResource> XmlCompatVersioner::ProcessDoc( in ProcessDoc()
103 ApiVersion target_api, ApiVersion max_api, xml::XmlResource* doc, in ProcessDoc()
107 std::unique_ptr<xml::XmlResource> cloned_doc = util::make_unique<xml::XmlResource>(doc->file); in ProcessDoc()
110 cloned_doc->root = doc->root->CloneElement([&](const xml::Element& el, xml::Element* out_el) { in ProcessDoc()
[all …]
DXmlCompatVersioner.h37 xml::Attribute attr;
46 virtual std::vector<DegradeResult> Degrade(const xml::Element& src_el,
47 const xml::Attribute& src_attr,
60 std::vector<std::unique_ptr<xml::XmlResource>> Process(IAaptContext* context,
61 xml::XmlResource* doc,
67 std::unique_ptr<xml::XmlResource> ProcessDoc(ApiVersion target_api, ApiVersion max_api,
68 xml::XmlResource* doc,
70 void ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr,
72 const util::Range<ApiVersion>& api_range, bool generated, xml::Element* dst_el,
89 std::vector<DegradeResult> Degrade(const xml::Element& src_el, const xml::Attribute& src_attr,
/frameworks/base/tools/aapt2/
DResourceParser.h68 bool Parse(xml::XmlPullParser* parser);
80 bool FlattenXmlSubtree(xml::XmlPullParser* parser, std::string* out_raw_string,
91 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
94 bool ParseResources(xml::XmlPullParser* parser);
95 bool ParseResource(xml::XmlPullParser* parser, ParsedResource* out_resource);
97 bool ParseItem(xml::XmlPullParser* parser, ParsedResource* out_resource, uint32_t format);
98 bool ParseString(xml::XmlPullParser* parser, ParsedResource* out_resource);
100 bool ParsePublic(xml::XmlPullParser* parser, ParsedResource* out_resource);
101 bool ParsePublicGroup(xml::XmlPullParser* parser, ParsedResource* out_resource);
102 bool ParseSymbolImpl(xml::XmlPullParser* parser, ParsedResource* out_resource);
[all …]
DResourceParser.cpp233 xml::XmlPullParser* parser, std::string* out_raw_string, StyleString* out_style_string, in FlattenXmlSubtree()
250 while (depth > 0 && xml::XmlPullParser::IsGoodEvent(parser->Next())) { in FlattenXmlSubtree()
251 const xml::XmlPullParser::Event event = parser->event(); in FlattenXmlSubtree()
254 if (event == xml::XmlPullParser::Event::kStartElement in FlattenXmlSubtree()
255 || event == xml::XmlPullParser::Event::kEndElement) { in FlattenXmlSubtree()
269 case xml::XmlPullParser::Event::kText: { in FlattenXmlSubtree()
274 case xml::XmlPullParser::Event::kStartElement: { in FlattenXmlSubtree()
321 case xml::XmlPullParser::Event::kEndElement: { in FlattenXmlSubtree()
383 bool ResourceParser::Parse(xml::XmlPullParser* parser) { in Parse()
386 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in Parse()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java246 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, in writeUsageStats() argument
248 xml.startTag(null, PACKAGE_TAG); in writeUsageStats()
251 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATTR, in writeUsageStats()
253 XmlUtils.writeLongAttribute(xml, LAST_TIME_VISIBLE_ATTR, in writeUsageStats()
255 XmlUtils.writeLongAttribute(xml, LAST_TIME_SERVICE_USED_ATTR, in writeUsageStats()
257 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName); in writeUsageStats()
258 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground); in writeUsageStats()
259 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_VISIBLE_ATTR, usageStats.mTotalTimeVisible); in writeUsageStats()
260 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_SERVICE_USED_ATTR, in writeUsageStats()
262 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent); in writeUsageStats()
[all …]
DUsageStatsXml.java66 FastXmlSerializer xml = new FastXmlSerializer(); in write() local
67 xml.setOutput(out, "utf-8"); in write()
68 xml.startDocument("utf-8", true); in write()
69 xml.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in write()
70 xml.startTag(null, USAGESTATS_TAG); in write()
71 xml.attribute(null, VERSION_ATTR, Integer.toString(CURRENT_VERSION)); in write()
73 UsageStatsXmlV1.write(xml, stats); in write()
75 xml.endTag(null, USAGESTATS_TAG); in write()
76 xml.endDocument(); in write()
/frameworks/base/tests/privapp-permissions/
DAndroid.bp5 manifest: "system/AndroidManifest.xml",
6 required: ["privapp-permissions-test.xml"],
10 name: "privapp-permissions-test.xml",
11 src: "system/privapp-permissions-test.xml",
19 manifest: "vendor/AndroidManifest.xml",
21 required: ["vendorprivapp-permissions-test.xml"],
25 name: "vendorprivapp-permissions-test.xml",
26 src: "vendor/privapp-permissions-test.xml",
35 manifest: "product/AndroidManifest.xml",
37 required: ["productprivapp-permissions-test.xml"],
[all …]
/frameworks/av/services/audiopolicy/config/
DAndroid.bp21 name: "a2dp_in_audio_policy_configuration.xml",
26 name: "a2dp_audio_policy_configuration.xml",
31 name: "audio_policy_configuration.xml",
36 name: "r_submix_audio_policy_configuration.xml",
41 name: "audio_policy_volumes.xml",
46 name: "default_volume_tables.xml",
51 name: "surround_sound_configuration_5_0.xml",
56 name: "usb_audio_policy_configuration.xml",
61 name: "primary_audio_policy_configuration.xml",
68 srcs: ["a2dp_in_audio_policy_configuration.xml"],
[all …]
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp31 xml::Element* el;
37 class Visitor : public xml::PackageAwareVisitor {
39 using xml::PackageAwareVisitor::Visit;
41 explicit Visitor(IAaptContext* context, xml::XmlResource* xml_resource) in Visitor()
44 void Visit(xml::Element* el) override { in Visit()
45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
46 xml::PackageAwareVisitor::Visit(el); in Visit()
52 xml::Attribute* attr = el->FindAttribute({}, "name"); in Visit()
68 Maybe<xml::ExtractedPackage> maybe_pkg = TransformPackageAlias(name.package); in Visit()
76 const xml::ExtractedPackage& pkg = maybe_pkg.value(); in Visit()
[all …]
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp139 static xml::AaptAttribute CreateAttributeWithId(const ResourceId& id) { in CreateAttributeWithId()
140 return xml::AaptAttribute(Attribute(), id); in CreateAttributeWithId()
143 static xml::NamespaceDecl CreateAndroidNamespaceDecl() { in CreateAndroidNamespaceDecl()
144 xml::NamespaceDecl decl; in CreateAndroidNamespaceDecl()
146 decl.uri = xml::kSchemaAndroid; in CreateAndroidNamespaceDecl()
175 std::unique_ptr<xml::XmlResource> GenerateSplitManifest(const AppInfo& app_info, in GenerateSplitManifest()
182 std::unique_ptr<xml::Element> manifest_el = util::make_unique<xml::Element>(); in GenerateSplitManifest()
185 manifest_el->attributes.push_back(xml::Attribute{"", "package", app_info.package}); in GenerateSplitManifest()
189 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
190 xml::kSchemaAndroid, "versionCode", std::to_string(version_code), in GenerateSplitManifest()
[all …]
/frameworks/base/data/etc/
DAndroid.bp19 name: "framework-sysconfig.xml",
21 src: "framework-sysconfig.xml",
25 name: "hiddenapi-package-whitelist.xml",
27 src: "hiddenapi-package-whitelist.xml",
33 name: "platform.xml",
35 src: "platform.xml",
39 name: "privapp-permissions-platform.xml",
41 src: "privapp-permissions-platform.xml",
48 src: "com.android.carrierconfig.xml",
56 src: "com.android.cellbroadcastreceiver.xml",
[all …]
DCleanSpec.mk46 …add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.carrierconfig.xml)
47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.carrierconfig.xml)
48 …all add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.emergency.xml)
49 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.emergency.xml)
50 …all add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.provision.xml)
51 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.provision.xml)
52 …call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.settings.xml)
53 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.settings.xml)
54 …all add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.launcher3.xml)
55 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.launcher3.xml)
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlUtil_test.cpp24 ASSERT_FALSE(xml::ExtractPackageFromNamespace("com.android")); in TEST()
25 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk")); in TEST()
26 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res")); in TEST()
27 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res/")); in TEST()
28 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/")); in TEST()
30 Maybe<xml::ExtractedPackage> p = in TEST()
31 xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res/a"); in TEST()
36 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/android"); in TEST()
41 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/com.test"); in TEST()
46 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res-auto"); in TEST()
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone/
DAndroid.bp26 name: "audio_policy_engine_configuration.xml",
30 ":audio_policy_engine_criterion_types.xml",
31 ":audio_policy_engine_criteria.xml",
32 ":audio_policy_engine_product_strategies.xml",
33 ":audio_policy_engine_volumes.xml",
37 name: "audio_policy_engine_product_strategies.xml",
39 src: "audio_policy_engine_product_strategies.xml",
42 name: "audio_policy_engine_stream_volumes.xml",
47 name: "audio_policy_engine_default_stream_volumes.xml",
52 name: "audio_policy_engine_criterion_types.xml",
[all …]
/frameworks/base/core/tests/coretests/apks/keyset/
DAndroid.bp7 manifest: "uNone/AndroidManifest.xml",
15 manifest: "uA/AndroidManifest.xml",
23 manifest: "uB/AndroidManifest.xml",
31 manifest: "uAB/AndroidManifest.xml",
39 manifest: "uAuB/AndroidManifest.xml",
47 manifest: "permDef/AndroidManifest.xml",
55 manifest: "permUse/AndroidManifest.xml",
64 manifest: "uA/AndroidManifest.xml",
72 manifest: "uB/AndroidManifest.xml",
80 manifest: "permUse/AndroidManifest.xml",
[all …]
/frameworks/av/services/audiopolicy/enginedefault/config/example/
DAndroid.bp23 name: "audio_policy_engine_configuration.xml",
25 src: "phone/audio_policy_engine_configuration.xml",
27 ":audio_policy_engine_stream_volumes.xml",
28 ":audio_policy_engine_default_stream_volumes.xml",
29 ":audio_policy_engine_product_strategies.xml",
33 name: "audio_policy_engine_product_strategies.xml",
35 src: "phone/audio_policy_engine_product_strategies.xml",
38 name: "audio_policy_engine_stream_volumes.xml",
40 src: "phone/audio_policy_engine_stream_volumes.xml",
43 name: "audio_policy_engine_default_stream_volumes.xml",
[all …]
/frameworks/base/data/etc/car/
DAndroid.bp22 src: "android.car.cluster.loggingrenderer.xml",
29 src: "android.car.cluster.sample.xml",
36 src: "android.car.cluster.xml",
43 src: "android.car.usb.handler.xml",
50 src: "com.android.car.carlauncher.xml",
57 src: "com.android.car.dialer.xml",
64 src: "com.android.car.hvac.xml",
71 src: "com.android.car.media.xml",
78 src: "com.android.car.notification.xml",
85 src: "com.android.car.radio.xml",
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive/
DAndroid.bp26 name: "audio_policy_engine_configuration.xml",
30 ":audio_policy_engine_criterion_types.xml",
31 ":audio_policy_engine_criteria.xml",
32 ":audio_policy_engine_product_strategies.xml",
33 ":audio_policy_engine_volumes.xml",
37 name: "audio_policy_engine_product_strategies.xml",
39 src: "audio_policy_engine_product_strategies.xml",
42 name: "audio_policy_engine_volumes.xml",
47 name: "audio_policy_engine_criterion_types.xml",
79 srcs: ["audio_policy_engine_configuration.xml"],
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/
DAndroid.bp20 name: "PolicyClass.xml",
26 name: "PolicySubsystem.xml",
32 name: "PolicySubsystem-CommonTypes.xml",
44 srcs: ["examples/common/Structure/ProductStrategies.xml.in"],
48 srcs: ["examples/common/Structure/PolicySubsystem.xml"],
52 srcs: ["examples/common/Structure/PolicySubsystem-no-strategy.xml"],
56 srcs: ["examples/common/Structure/PolicySubsystem-CommonTypes.xml.in"],
60 srcs: ["examples/common/Structure/PolicyClass.xml"],
71 name: "ParameterFrameworkConfigurationPolicy.userdebug.xml",
72 srcs: ["examples/ParameterFrameworkConfigurationPolicy.userdebug.xml"],
[all …]
/frameworks/base/core/xsd/schema/
Dcurrent.txt2 package com.android.xml.permission.configfile {
130 …method public java.util.List<com.android.xml.permission.configfile.OemPermissions.DenyPermission> …
131 …method public java.util.List<com.android.xml.permission.configfile.OemPermissions.Permission> getP…
156 …method public java.util.List<com.android.xml.permission.configfile.AllowAssociation> getAllowAssoc…
157 …method public java.util.List<com.android.xml.permission.configfile.AllowIgnoreLocationSettings> ge…
158 …method public java.util.List<com.android.xml.permission.configfile.AllowImplicitBroadcast> getAllo…
159 …method public java.util.List<com.android.xml.permission.configfile.AllowInDataUsageSave> getAllowI…
160 …method public java.util.List<com.android.xml.permission.configfile.AllowInPowerSaveExceptIdle> get…
161 …method public java.util.List<com.android.xml.permission.configfile.AllowInPowerSave> getAllowInPow…
162 …method public java.util.List<com.android.xml.permission.configfile.AllowUnthrottledLocation> getAl…
[all …]
/frameworks/base/wifi/tests/assets/pps/
DREADME.txt1 PerProviderSubscription.xml - valid PPS XML file
2 PerProviderSubscription_DuplicateHomeSP.xml - containing multiple HomeSP node
3 PerProviderSubscription_DuplicateValue.xml - FriendlyName node contains multiple Value
4 PerProviderSubscription_MissingValue.xml - FriendlyName node is missing Value
5 PerProviderSubscription_MissingName.xml - HomeSP node is missing NodeName
6 PerProviderSubscription_InvalidNode.xml - FQDN node contains both Value and a child node
7 PerProviderSubscription_InvalidName.xml - FriendlyName node have a typo in its name
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp38 class BaseVisitor : public xml::Visitor {
40 using xml::Visitor::Visit;
49 void Visit(xml::Element* node) override { in Visit()
51 Maybe<xml::ExtractedPackage> maybe_package = in Visit()
52 xml::ExtractPackageFromNamespace(node->namespace_uri); in Visit()
116 void Visit(xml::Element* node) override { in Visit()
134 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit()
138 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "onClick") { in Visit()
155 void Visit(xml::Element* node) override { in Visit()
158 if (attr.namespace_uri == xml::kSchemaAndroid) { in Visit()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-packages.txt22 org.apache.xml.dtm
23 org.apache.xml.dtm.ref
24 org.apache.xml.dtm.ref.dom2dtm
25 org.apache.xml.dtm.ref.sax2dtm
26 org.apache.xml.res
27 org.apache.xml.serializer
28 org.apache.xml.serializer.dom3
29 org.apache.xml.serializer.utils
30 org.apache.xml.utils
31 org.apache.xml.utils.res
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java60 assertEquals(R.xml.metadata, md.getInt("com.android.frameworks.coretests.reference")); in checkMetaData()
62 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), in checkMetaData() local
64 assertNotNull(xml); in checkMetaData()
67 while ((type = xml.next()) != XmlPullParser.START_TAG in checkMetaData()
71 assertEquals("thedata", xml.getName()); in checkMetaData()
74 final String rawAttr = xml.getAttributeValue(null, "rawText"); in checkMetaData()
78 final int rawColorIntAttr = xml.getAttributeIntValue(null, "rawColor", 0); in checkMetaData()
80 final String rawColorStrAttr = xml.getAttributeValue(null, "rawColor"); in checkMetaData()
85 final int colorIntAttr = xml.getAttributeIntValue(nameSpace, "color", 0); in checkMetaData()
87 final String colorStrAttr = xml.getAttributeValue(nameSpace, "color"); in checkMetaData()
[all …]

12345678910>>...13