/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.cpp | 28 static bool nameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in nameIsJavaClassName() 54 static bool optionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in optionalNameIsJavaClassName() 55 if (xml::Attribute* attr = el->findAttribute(xml::kSchemaAndroid, u"name")) { in optionalNameIsJavaClassName() 61 static bool requiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in requiredNameIsJavaClassName() 62 if (xml::Attribute* attr = el->findAttribute(xml::kSchemaAndroid, u"name")) { in requiredNameIsJavaClassName() 70 static bool verifyManifest(xml::Element* el, SourcePathDiagnostics* diag) { in verifyManifest() 71 xml::Attribute* attr = el->findAttribute({}, u"package"); in verifyManifest() 88 bool ManifestFixer::buildRules(xml::XmlActionExecutor* executor, IDiagnostics* diag) { in buildRules() 107 xml::XmlNodeAction intentFilterAction; in buildRules() 113 xml::XmlNodeAction metaDataAction; in buildRules() [all …]
|
D | XmlReferenceLinker.cpp | 40 ReferenceVisitor(IAaptContext* context, SymbolTable* symbols, xml::IPackageDeclStack* decls, in ReferenceVisitor() 59 xml::IPackageDeclStack* mDecls; 67 class XmlVisitor : public xml::PackageAwareVisitor { 69 using xml::PackageAwareVisitor::visit; 77 void visit(xml::Element* el) override { in visit() 79 for (xml::Attribute& attr : el->attributes) { in visit() 80 Maybe<xml::ExtractedPackage> maybePackage = in visit() 81 xml::extractPackageFromNamespace(attr.namespaceUri); in visit() 142 xml::PackageAwareVisitor::visit(el); in visit() 161 bool XmlReferenceLinker::consume(IAaptContext* context, xml::XmlResource* resource) { in consume()
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser.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::XmlPullParser* parser, ParsedResource* outResource); 86 bool parseSymbolImpl(xml::XmlPullParser* parser, ParsedResource* outResource); [all …]
|
D | ResourceParser.cpp | 133 bool ResourceParser::flattenXmlSubtree(xml::XmlPullParser* parser, std::u16string* outRawString, in flattenXmlSubtree() 142 while (xml::XmlPullParser::isGoodEvent(parser->next())) { in flattenXmlSubtree() 143 const xml::XmlPullParser::Event event = parser->getEvent(); in flattenXmlSubtree() 144 if (event == xml::XmlPullParser::Event::kEndElement) { in flattenXmlSubtree() 159 } else if (event == xml::XmlPullParser::Event::kText) { in flattenXmlSubtree() 163 } else if (event == xml::XmlPullParser::Event::kStartElement) { in flattenXmlSubtree() 196 } else if (event == xml::XmlPullParser::Event::kComment) { in flattenXmlSubtree() 208 bool ResourceParser::parse(xml::XmlPullParser* parser) { in parse() 211 while (xml::XmlPullParser::nextChildNode(parser, depth)) { in parse() 212 if (parser->getEvent() != xml::XmlPullParser::Event::kStartElement) { in parse() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsXmlV1.java | 127 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, in writeUsageStats() argument 129 xml.startTag(null, PACKAGE_TAG); in writeUsageStats() 132 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATTR, in writeUsageStats() 135 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName); in writeUsageStats() 136 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground); in writeUsageStats() 137 XmlUtils.writeIntAttribute(xml, LAST_EVENT_ATTR, usageStats.mLastEvent); in writeUsageStats() 139 xml.endTag(null, PACKAGE_TAG); in writeUsageStats() 142 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, in writeConfigStats() argument 144 xml.startTag(null, CONFIG_TAG); in writeConfigStats() 147 XmlUtils.writeLongAttribute(xml, LAST_TIME_ACTIVE_ATTR, in writeConfigStats() [all …]
|
D | UsageStatsXml.java | 117 FastXmlSerializer xml = new FastXmlSerializer(); in write() local 118 xml.setOutput(out, "utf-8"); in write() 119 xml.startDocument("utf-8", true); in write() 120 xml.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in write() 121 xml.startTag(null, USAGESTATS_TAG); in write() 122 xml.attribute(null, VERSION_ATTR, Integer.toString(CURRENT_VERSION)); in write() 124 UsageStatsXmlV1.write(xml, stats); in write() 126 xml.endTag(null, USAGESTATS_TAG); in write() 127 xml.endDocument(); in write()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/ |
D | Android.mk | 25 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/tools/aapt2/xml/ |
D | XmlPullParser_test.cpp | 29 xml::XmlPullParser parser(str); in TEST() 32 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthOuter)); in TEST() 34 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST() 38 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthA)); in TEST() 39 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST() 43 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthB)); in TEST() 44 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST() 47 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthB)); in TEST() 48 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST() 51 ASSERT_FALSE(xml::XmlPullParser::nextChildNode(&parser, depthOuter)); in TEST() [all …]
|
D | XmlUtil_test.cpp | 25 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"com.android")); in TEST() 26 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"http://schemas.android.com/apk")); in TEST() 27 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res")); in TEST() 28 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res/")); in TEST() 29 AAPT_ASSERT_FALSE(xml::extractPackageFromNamespace( in TEST() 32 Maybe<xml::ExtractedPackage> p = in TEST() 33 xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res/a"); in TEST() 38 p = xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/prv/res/android"); in TEST() 43 p = xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/prv/res/com.test"); in TEST() 48 p = xml::extractPackageFromNamespace(u"http://schemas.android.com/apk/res-auto"); in TEST()
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 27 class BaseVisitor : public xml::Visitor { 32 virtual void visit(xml::Text*) override {}; in visit() 34 virtual void visit(xml::Namespace* node) override { in visit() 40 virtual void visit(xml::Element* node) override { in visit() 42 Maybe<xml::ExtractedPackage> maybePackage = xml::extractPackageFromNamespace( in visit() 78 virtual void visit(xml::Element* node) override { in visit() 83 } else if (node->namespaceUri == xml::kSchemaAndroid) { in visit() 91 } else if (checkName && attr.namespaceUri == xml::kSchemaAndroid && in visit() 94 } else if (attr.namespaceUri == xml::kSchemaAndroid && attr.name == u"onClick") { in visit() 107 virtual void visit(xml::Element* node) override { in visit() [all …]
|
/frameworks/base/docs/html-intl/intl/ko/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 75 <?xml version="1.0" encoding="utf-8"?> 126 <li><code>res/layout/main.xml</code>, 단일 창(기본값) 레이아웃: 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 130 <li><code>res/layout-large/main.xml</code>, 이중 창 레이아웃: 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 146 <li><code>res/layout/main.xml</code>, 단일 창(기본값) 레이아웃: 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 150 <li><code>res/layout-sw600dp/main.xml</code>, 이중 창 레이아웃: 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 75 <?xml version="1.0" encoding="utf-8"?> 126 <li><code>res/layout/main.xml</code>,单面板(默认)布局: 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 130 <li><code>res/layout-large/main.xml</code>,双面板布局: 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 146 <li><code>res/layout/main.xml</code>,单面板(默认)布局: 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 150 <li><code>res/layout-sw600dp/main.xml</code>,双面板布局: 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} [all …]
|
/frameworks/base/docs/html-intl/intl/ja/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 75 <?xml version="1.0" encoding="utf-8"?> 126 <li><code>res/layout/main.xml</code>、シングルペイン(デフォルト)レイアウト: 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 130 <li><code>res/layout-large/main.xml</code>、2 ペイン レイアウト: 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 146 <li><code>res/layout/main.xml</code>、シングルペイン(デフォルト)レイアウト: 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 150 <li><code>res/layout-sw600dp/main.xml</code>、2 ペイン レイアウト: 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} [all …]
|
/frameworks/base/docs/html-intl/intl/ru/training/multiscreen/ |
D | screensizes.jd | 58 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane_with_bar.xml all} 75 <?xml version="1.0" encoding="utf-8"?> 126 <li><code>res/layout/main.xml</code>, однопанельный макет (по умолчанию): 128 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 130 <li><code>res/layout-large/main.xml</code>, двухпанельный макет: 132 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} 146 <li><code>res/layout/main.xml</code>, однопанельный макет (по умолчанию): 148 {@sample development/samples/training/multiscreen/newsreader/res/layout/onepane.xml all} 150 <li><code>res/layout-sw600dp/main.xml</code>, двухпанельный макет: 152 {@sample development/samples/training/multiscreen/newsreader/res/layout/twopanes.xml all} [all …]
|
/frameworks/base/core/tests/coretests/apks/keyset/ |
D | Android.mk | 8 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/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 47 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_config); in testEmptyConfigFile() 66 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_trust); in testEmptyAnchors() 84 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.domain1); in testBasicDomainConfig() 120 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.pins1); in testBasicPinning() 135 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.expired_pin); in testExpiredPin() 149 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.override_pins); in testOverridesPins() 163 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.bad_pin); in testBadPin() 178 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.multiple_domains); in testMultipleDomains() 199 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.multiple_configs); in testMultipleDomainConfigs() 214 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.subdomains); in testIncludeSubdomains() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 57 assertEquals(R.xml.metadata, md.getInt("com.android.frameworks.coretests.reference")); in checkMetaData() 59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), in checkMetaData() local 61 assertNotNull(xml); in checkMetaData() 64 while ((type = xml.next()) != XmlPullParser.START_TAG in checkMetaData() 68 assertEquals("thedata", xml.getName()); in checkMetaData() 71 final String rawAttr = xml.getAttributeValue(null, "rawText"); in checkMetaData() 75 final int rawColorIntAttr = xml.getAttributeIntValue(null, "rawColor", 0); in checkMetaData() 77 final String rawColorStrAttr = xml.getAttributeValue(null, "rawColor"); in checkMetaData() 82 final int colorIntAttr = xml.getAttributeIntValue(nameSpace, "color", 0); in checkMetaData() 84 final String colorStrAttr = xml.getAttributeValue(nameSpace, "color"); in checkMetaData() [all …]
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener.cpp | 36 struct XmlFlattenerVisitor : public xml::Visitor { 37 using xml::Visitor::visit; 52 std::vector<xml::Attribute*> mFilteredAttrs; 74 void writeNamespace(xml::Namespace* node, uint16_t type) { in writeNamespace() 88 void visit(xml::Namespace* node) override { in visit() 90 xml::Visitor::visit(node); in visit() 94 void visit(xml::Text* node) override { in visit() 111 void visit(xml::Element* node) override { in visit() 130 xml::Visitor::visit(node); in visit() 147 static bool cmpXmlAttributeById(const xml::Attribute* a, const xml::Attribute* b) { in cmpXmlAttributeById() [all …]
|
/frameworks/base/docs/html-intl/intl/ru/training/articles/ |
D | security-config.jd | 73 <?xml version="1.0" encoding="utf-8"?> 77 android:resource="@xml/network_security_config" /> 121 <code>res/xml/network_security_config.xml</code>: 123 <?xml version="1.0" encoding="utf-8"?> 155 <code>res/xml/network_security_config.xml</code>: 157 <?xml version="1.0" encoding="utf-8"?> 191 <code>res/xml/network_security_config.xml</code>: 193 <?xml version="1.0" encoding="utf-8"?> 226 <code>res/xml/network_security_config.xml</code>: 228 <?xml version="1.0" encoding="utf-8"?> [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
D | OMAParser.java | 3 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
D | OMAParser.java | 3 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/ |
D | XMLParser.java | 5 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/base/tools/aapt2/compile/ |
D | XmlIdCollector.cpp | 33 struct IdCollector : public xml::Visitor { 34 using xml::Visitor::visit; 41 void visit(xml::Element* element) override { in visit() 42 for (xml::Attribute& attr : element->attributes) { in visit() 57 xml::Visitor::visit(element); in visit() 63 bool XmlIdCollector::consume(IAaptContext* context, xml::XmlResource* xmlRes) { in consume()
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/ |
D | LayoutFileParser.java | 40 import org.xml.sax.SAXException; 51 import javax.xml.parsers.DocumentBuilder; 52 import javax.xml.parsers.DocumentBuilderFactory; 53 import javax.xml.parsers.ParserConfigurationException; 54 import javax.xml.xpath.XPath; 55 import javax.xml.xpath.XPathConstants; 56 import javax.xml.xpath.XPathExpression; 57 import javax.xml.xpath.XPathExpressionException; 58 import javax.xml.xpath.XPathFactory; 290 private void parseData(File xml, XMLParser.ElementContext data, in parseData() argument [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/articles/ |
D | security-config.jd | 73 <?xml version="1.0" encoding="utf-8"?> 77 android:resource="@xml/network_security_config" /> 122 <code>res/xml/network_security_config.xml</code>: 124 <?xml version="1.0" encoding="utf-8"?> 156 <code>res/xml/network_security_config.xml</code>: 158 <?xml version="1.0" encoding="utf-8"?> 192 <code>res/xml/network_security_config.xml</code>: 194 <?xml version="1.0" encoding="utf-8"?> 227 <code>res/xml/network_security_config.xml</code>: 229 <?xml version="1.0" encoding="utf-8"?> [all …]
|