Searched refs:xml (Results 1 - 25 of 161) sorted by relevance

1234567

/frameworks/base/tools/aapt2/
H A DResourceParser.h27 #include "xml/XmlPullParser.h"
57 bool parse(xml::XmlPullParser* parser);
66 bool flattenXmlSubtree(xml::XmlPullParser* parser, std::u16string* outRawString,
75 std::unique_ptr<Item> parseXml(xml::XmlPullParser* parser, const uint32_t typeMask,
78 bool parseResources(xml::XmlPullParser* parser);
79 bool parseResource(xml::XmlPullParser* parser, ParsedResource* outResource);
81 bool parseItem(xml::XmlPullParser* parser, ParsedResource* outResource, uint32_t format);
82 bool parseString(xml::XmlPullParser* parser, ParsedResource* outResource);
84 bool parsePublic(xml::XmlPullParser* parser, ParsedResource* outResource);
85 bool parsePublicGroup(xml
[all...]
/frameworks/base/sax/java/android/sax/
H A DStartElementListener.java19 import org.xml.sax.Attributes;
H A DBadXmlException.java19 import org.xml.sax.SAXParseException;
20 import org.xml.sax.Locator;
/frameworks/base/tools/aapt2/xml/
H A DXmlPullParser_test.cpp18 #include "xml/XmlPullParser.h"
27 str << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
29 xml::XmlPullParser parser(str);
32 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthOuter));
34 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent());
38 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthA));
39 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent());
43 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthB));
44 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent());
47 ASSERT_TRUE(xml
[all...]
H A DXmlUtil_test.cpp18 #include "xml/XmlUtil.h"
25 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"com.android"));
26 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"http://schemas.android.com/apk"));
27 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res"));
28 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res/"));
29 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(
32 Maybe<xml::ExtractedPackage> p =
33 xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res/a");
38 p = xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/prv/res/android");
43 p = xml
[all...]
/frameworks/base/tools/aapt2/compile/
H A DXmlIdCollector.h21 #include "xml/XmlDom.h"
26 bool consume(IAaptContext* context, xml::XmlResource* xmlRes) override;
H A DXmlIdCollector.cpp20 #include "xml/XmlDom.h"
33 struct IdCollector : public xml::Visitor {
34 using xml::Visitor::visit;
41 void visit(xml::Element* element) override {
42 for (xml::Attribute& attr : element->attributes) {
57 xml::Visitor::visit(element);
63 bool XmlIdCollector::consume(IAaptContext* context, xml::XmlResource* xmlRes) {
/frameworks/base/tools/aapt2/java/
H A DManifestClassGenerator.h23 #include "xml/XmlDom.h"
29 std::unique_ptr<ClassDefinition> generateManifestClass(IDiagnostics* diag, xml::XmlResource* res);
H A DProguardRules.cpp19 #include "xml/XmlDom.h"
27 class BaseVisitor : public xml::Visitor {
32 virtual void visit(xml::Text*) override {};
34 virtual void visit(xml::Namespace* node) override {
40 virtual void visit(xml::Element* node) override {
42 Maybe<xml::ExtractedPackage> maybePackage = xml::extractPackageFromNamespace(
78 virtual void visit(xml::Element* node) override {
83 } else if (node->namespaceUri == xml::kSchemaAndroid) {
91 } else if (checkName && attr.namespaceUri == xml
[all...]
/frameworks/base/tools/aapt2/link/
H A DManifestFixer.cpp20 #include "xml/XmlActionExecutor.h"
21 #include "xml/XmlDom.h"
26 * This is how PackageManager builds class names from AndroidManifest.xml entries.
28 static bool nameIsJavaClassName(xml::Element* el, xml::Attribute* attr,
54 static bool optionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) {
55 if (xml::Attribute* attr = el->findAttribute(xml::kSchemaAndroid, u"name")) {
61 static bool requiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) {
62 if (xml
[all...]
/frameworks/base/core/java/android/content/
H A DContentInsertHandler.java20 import org.xml.sax.ContentHandler;
21 import org.xml.sax.SAXException;
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXmlV1.java120 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, argument
122 xml.startTag(null, PACKAGE_TAG);
125 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATTR,
128 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName);
129 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground);
130 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent);
132 xml.endTag(null, PACKAGE_TAG);
135 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, argument
137 xml.startTag(null, CONFIG_TAG);
140 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATT
155 writeEvent(XmlSerializer xml, final IntervalStats stats, final UsageEvents.Event event) argument
228 write(XmlSerializer xml, IntervalStats stats) argument
[all...]
H A DUsageStatsXml.java117 FastXmlSerializer xml = new FastXmlSerializer();
118 xml.setOutput(out, "utf-8");
119 xml.startDocument("utf-8", true);
120 xml.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
121 xml.startTag(null, USAGESTATS_TAG);
122 xml.attribute(null, VERSION_ATTR, Integer.toString(CURRENT_VERSION));
124 UsageStatsXmlV1.write(xml, stats);
126 xml.endTag(null, USAGESTATS_TAG);
127 xml.endDocument();
/frameworks/base/data/etc/
H A DAndroid.mk22 LOCAL_MODULE := platform.xml
37 #LOCAL_MODULE := required_hardware.xml
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener.h22 #include "xml/XmlDom.h"
44 bool consume(IAaptContext* context, xml::XmlResource* resource) override;
50 bool flatten(IAaptContext* context, xml::Node* node);
/frameworks/base/core/tests/coretests/apks/keyset/
H A DAndroid.mk8 LOCAL_MANIFEST_FILE := uNone/AndroidManifest.xml
15 LOCAL_MANIFEST_FILE := uA/AndroidManifest.xml
22 LOCAL_MANIFEST_FILE := uB/AndroidManifest.xml
29 LOCAL_MANIFEST_FILE := uAB/AndroidManifest.xml
36 LOCAL_MANIFEST_FILE := uAuB/AndroidManifest.xml
43 LOCAL_MANIFEST_FILE := permDef/AndroidManifest.xml
50 LOCAL_MANIFEST_FILE := permUse/AndroidManifest.xml
58 LOCAL_MANIFEST_FILE := uA/AndroidManifest.xml
65 LOCAL_MANIFEST_FILE := uB/AndroidManifest.xml
72 LOCAL_MANIFEST_FILE := permUse/AndroidManifest.xml
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
H A DOMAParser.java3 import org.xml.sax.Attributes;
4 import org.xml.sax.InputSource;
5 import org.xml.sax.SAXException;
6 import org.xml.sax.helpers.DefaultHandler;
11 import javax.xml.parsers.ParserConfigurationException;
12 import javax.xml.parsers.SAXParser;
13 import javax.xml.parsers.SAXParserFactory;
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DXMLParser.java5 import org.xml.sax.Attributes;
6 import org.xml.sax.InputSource;
7 import org.xml.sax.SAXException;
8 import org.xml.sax.helpers.DefaultHandler;
16 import javax.xml.parsers.ParserConfigurationException;
17 import javax.xml.parsers.SAXParser;
18 import javax.xml.parsers.SAXParserFactory;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
H A DOMAParser.java3 import org.xml.sax.Attributes;
4 import org.xml.sax.InputSource;
5 import org.xml.sax.SAXException;
6 import org.xml.sax.helpers.DefaultHandler;
11 import javax.xml.parsers.ParserConfigurationException;
12 import javax.xml.parsers.SAXParser;
13 import javax.xml.parsers.SAXParserFactory;
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/
H A DAndroid.mk25 LOCAL_MODULE := ParameterFrameworkConfigurationPolicy.xml
46 LOCAL_MODULE := PolicyClass.xml
54 LOCAL_MODULE := PolicySubsystem.xml
58 PolicySubsystem-CommonTypes.xml \
59 PolicySubsystem-Volume.xml \
67 LOCAL_MODULE := PolicySubsystem-CommonTypes.xml
77 LOCAL_MODULE_STEM := PolicyConfigurableDomains.xml
81 PolicyClass.xml \
82 PolicySubsystem.xml \
83 ParameterFrameworkConfigurationPolicy.xml
[all...]
/frameworks/base/packages/CtsShim/build/
H A DAndroid.mk33 LOCAL_MANIFEST_FILE := shim_priv_upgrade/AndroidManifest.xml
53 gen := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,true)/AndroidManifest.xml
56 $(gen): $(LOCAL_PATH)/shim_priv/AndroidManifest.xml $(my_shim_priv_upgrade_apk)
81 LOCAL_MANIFEST_FILE := shim_priv_upgrade/AndroidManifest.xml
98 LOCAL_MANIFEST_FILE := shim/AndroidManifest.xml
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DMetaDataTest.java57 assertEquals(R.xml.metadata, md.getInt("com.android.frameworks.coretests.reference"));
59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(),
61 assertNotNull(xml);
64 while ((type = xml.next()) != XmlPullParser.START_TAG
68 assertEquals("thedata", xml.getName());
71 final String rawAttr = xml.getAttributeValue(null, "rawText");
75 final int rawColorIntAttr = xml.getAttributeIntValue(null, "rawColor", 0);
77 final String rawColorStrAttr = xml.getAttributeValue(null, "rawColor");
82 final int colorIntAttr = xml.getAttributeIntValue(nameSpace, "color", 0);
84 final String colorStrAttr = xml
[all...]
/frameworks/base/core/tests/coretests/apks/install_complete_package_info/
H A DAndroid.mk9 #LOCAL_MANIFEST_FILE := api_test/AndroidManifest.xml
/frameworks/base/libs/androidfw/tests/data/overlay/
H A Dbuild18 aapt package -M AndroidManifest.xml -S res -F bundle.apk -f && \
/frameworks/base/libs/androidfw/tests/data/system/
H A Dbuild18 aapt package -x -M AndroidManifest.xml -S res -F bundle.apk -f && \

Completed in 2772 milliseconds

1234567