Home
last modified time | relevance | path

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

1234

/tools/platform-compat/build/
Dprocess-compat-config-test.py23 import xml.dom.minidom
38 self.xml = io.BytesIO()
41 got = xml.dom.minidom.parseString(got).toprettyxml()
42 expected = xml.dom.minidom.parseString(expected).toprettyxml()
47 self.merger.write(self.xml)
48 self.assert_same_xml(self.xml.getvalue(), "<config />")
52 self.merger.write(self.xml)
53 …self.assert_same_xml(self.xml.getvalue(), '<config><compat-change id="1234" name="TEST_CHANGE" /><…
58 self.merger.write(self.xml)
59 self.assert_same_xml(self.xml.getvalue(),
[all …]
Dprocess_compat_config.py25 import xml.etree.ElementTree as ET
39 with jar.open(info.filename, 'r') as xml:
40 yield XmlContent(xml, info.filename)
65 xml = ET.parse(xmlFile)
66 for child in xml.getroot():
130 config.merge(xml_content.xml, "%s:%s" % (jar.name, xml_content.source))
131 if args.xml:
132 for xml in args.xml:
133 config.merge(xml, xml.name)
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java44 import org.xml.sax.InputSource;
56 import javax.xml.xpath.XPath;
57 import javax.xml.xpath.XPathConstants;
58 import javax.xml.xpath.XPathExpressionException;
59 import javax.xml.xpath.XPathFactory;
705 private NodeList getXmlNodes(String xml, String xPathExpression) in getXmlNodes() argument
708 InputSource inputSource = new InputSource(new StringReader(xml)); in getXmlNodes()
714 private NodeList assertXmlContainsNode(String xml, String xPathExpression) in assertXmlContainsNode() argument
716 NodeList nodes = getXmlNodes(xml, xPathExpression); in assertXmlContainsNode()
718 String.format("XML '%s' returned null for xpath '%s'.", xml, xPathExpression), in assertXmlContainsNode()
[all …]
/tools/asuite/aidegen/idea/
Dxml_gen_unittest.py25 from xml.etree import ElementTree
51 self.xml = xml_gen.XMLGenerator(self._TEST_DIR, self._XML_NAME)
52 common_util.file_generate(self.xml.xml_path, self._DEFAULT_XML)
53 self.xml.parse()
61 node = self.xml.xml_obj.getroot()
63 elements = self.xml.find_elements_by_name('a', 'b')
68 node = self.xml.xml_obj.getroot()
69 self.xml.append_node(node, '<a />')
76 self.xml.create_xml()
109 mock_xml_gen.return_value = self.xml
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DXml.kt21 import org.xml.sax.ErrorHandler
22 import org.xml.sax.InputSource
23 import org.xml.sax.SAXParseException
27 import javax.xml.parsers.DocumentBuilder
28 import javax.xml.parsers.DocumentBuilderFactory
29 import javax.xml.parsers.ParserConfigurationException
45 fun parseDocument(xml: String, namespaceAware: Boolean, errorWriter: PrintWriter = PrintWriter(Syst… in parseDocument()
46 return parseDocument(StringReader(stripBom(xml)), namespaceAware, errorWriter) in parseDocument()
58 fun parseDocument(xml: Reader, namespaceAware: Boolean, errorWriter: PrintWriter = PrintWriter(Syst… in parseDocument()
59 val inputStream = InputSource(xml) in parseDocument()
/tools/metalava/src/test/java/com/android/tools/metalava/apilevels/
DApiGeneratorTest.kt86 val xml = output.readText(UTF_8) in Extract API levels() constant
87 assertTrue(xml.contains("<class name=\"android/Manifest\$permission\" since=\"1\">")) in Extract API levels()
88 …assertTrue(xml.contains("<field name=\"BIND_CARRIER_MESSAGING_SERVICE\" since=\"22\" deprecated=\"… in Extract API levels()
89 assertTrue(xml.contains("<class name=\"android/pkg/MyTest\" since=\"36\"")) in Extract API levels()
90 assertFalse(xml.contains("<implements name=\"java/lang/annotation/Annotation\" removed=\"")) in Extract API levels()
91 assertFalse(xml.contains("<extends name=\"java/lang/Enum\" removed=\"")) in Extract API levels()
92 assertFalse(xml.contains("<method name=\"append(C)Ljava/lang/AbstractStringBuilder;\"")) in Extract API levels()
95 assertFalse(xml.contains("<extends name=\"android/icu/util/CECalendar\"")) in Extract API levels()
97 val document = XmlUtils.parseDocumentSilently(xml, false) in Extract API levels()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetricsXmlParser.java24 import org.xml.sax.Attributes;
25 import org.xml.sax.SAXException;
26 import org.xml.sax.helpers.DefaultHandler;
36 import javax.xml.parsers.ParserConfigurationException;
37 import javax.xml.parsers.SAXParser;
38 import javax.xml.parsers.SAXParserFactory;
136 for (File xml : metricXmlFiles) { in parse()
137 try (InputStream is = new BufferedInputStream(new FileInputStream(xml))) { in parse()
140 throw new ParseException("Unable to parse " + xml.getPath(), e); in parse()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessConfigBuilder.java28 import org.xml.sax.SAXException;
39 import javax.xml.parsers.DocumentBuilder;
40 import javax.xml.parsers.DocumentBuilderFactory;
41 import javax.xml.parsers.ParserConfigurationException;
42 import javax.xml.transform.Transformer;
43 import javax.xml.transform.TransformerException;
44 import javax.xml.transform.TransformerFactory;
45 import javax.xml.transform.dom.DOMSource;
46 import javax.xml.transform.stream.StreamResult;
/tools/platform-compat/java/android/processor/compat/changeid/
DXmlWriter.java25 import javax.xml.parsers.DocumentBuilder;
26 import javax.xml.parsers.DocumentBuilderFactory;
27 import javax.xml.parsers.ParserConfigurationException;
28 import javax.xml.transform.Transformer;
29 import javax.xml.transform.TransformerException;
30 import javax.xml.transform.TransformerFactory;
31 import javax.xml.transform.dom.DOMSource;
32 import javax.xml.transform.stream.StreamResult;
/tools/tradefederation/core/src/com/android/tradefed/util/xml/
DAbstractXmlParser.java16 package com.android.tradefed.util.xml;
20 import org.xml.sax.InputSource;
21 import org.xml.sax.SAXException;
22 import org.xml.sax.helpers.DefaultHandler;
27 import javax.xml.parsers.ParserConfigurationException;
28 import javax.xml.parsers.SAXParser;
29 import javax.xml.parsers.SAXParserFactory;
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java19 import org.xml.sax.Attributes;
20 import org.xml.sax.InputSource;
21 import org.xml.sax.SAXException;
22 import org.xml.sax.helpers.DefaultHandler;
34 import javax.xml.parsers.ParserConfigurationException;
35 import javax.xml.parsers.SAXParser;
36 import javax.xml.parsers.SAXParserFactory;
/tools/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsMerger.kt72 import org.xml.sax.SAXParseException
164 val xml = Files.asCharSource(file, UTF_8).read() in mergeQualifierAnnotationsFromFile() constant
165 mergeAnnotationsXml(file.path, xml) in mergeQualifierAnnotationsFromFile()
194 val xml = String(bytes, UTF_8) in mergeFromJar() constant
195 mergeAnnotationsXml(jar.path + ": " + entry, xml) in mergeFromJar()
210 private fun mergeAnnotationsXml(path: String, xml: String) { in mergeAnnotationsXml()
212 val document = parseDocument(xml, false) in mergeAnnotationsXml()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestXmlResultParser.java28 import org.xml.sax.SAXException;
29 import org.xml.sax.helpers.DefaultHandler;
38 import javax.xml.parsers.DocumentBuilder;
39 import javax.xml.parsers.DocumentBuilderFactory;
40 import javax.xml.parsers.ParserConfigurationException;
/tools/tradefederation/core/src/com/android/tradefed/util/
DJUnitXmlParser.java23 import com.android.tradefed.util.xml.AbstractXmlParser;
27 import org.xml.sax.Attributes;
28 import org.xml.sax.SAXException;
29 import org.xml.sax.helpers.DefaultHandler;
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java22 import org.xml.sax.SAXException;
34 import javax.xml.parsers.DocumentBuilder;
35 import javax.xml.parsers.DocumentBuilderFactory;
36 import javax.xml.parsers.ParserConfigurationException;
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py29 import xml.etree.ElementTree
30 import xml.parsers.expat
171 tree = xml.etree.ElementTree.parse(filename)
184 xml.parsers.expat.ExpatError) as err:
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java85 public AndroidBinXmlParser(ByteBuffer xml) throws XmlParserException { in AndroidBinXmlParser() argument
86 xml.order(ByteOrder.LITTLE_ENDIAN); in AndroidBinXmlParser()
89 while (xml.hasRemaining()) { in AndroidBinXmlParser()
90 Chunk chunk = Chunk.get(xml); in AndroidBinXmlParser()
/tools/asuite/aidegen/lib/
Dcommon_util.py30 import xml.dom.minidom
34 from xml.etree import ElementTree
698 xml_string = xml.dom.minidom.parseString(
/tools/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt1296 for ((pkg, xml) in extractAnnotations) { in <lambda>() constant
1297 assertPackageXml(pkg, extractedAnnotationsZip, xml) in <lambda>()
1430 val xml = String(bytes, UTF_8).replace("\r\n", "\n") in <lambda>() constant
1431 assertEquals(expected.trimIndent().trim(), xml.trimIndent().trim()) in <lambda>()
DRewriteAnnotationsTest.kt21 import com.android.tools.lint.checks.infrastructure.TestFiles.xml
137 xml("foo/bar/baz.xml", "<hello-world/>") in Test rewriting the bytecode for one of the public annotations in a jar file()
/tools/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py57 import xml.etree.ElementTree as ET
59 from xml.dom import minidom
60 from xml.etree.ElementTree import Element
/tools/treble/split/
DAndroid.bp39 "default_config.xml",
55 test_config: "test.xml",
/tools/test/graphicsbenchmark/
DREADME14 $ tradefed.sh run commandAndExit AndroidTest.xml
19 file named 'apk-info.xml' exists in --apk-dir, that file will be used as the apk-info.
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DSubprocessConfigBuilderTest.java37 import javax.xml.parsers.DocumentBuilder;
38 import javax.xml.parsers.DocumentBuilderFactory;
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_verify.txt5 by the APK (as declared using minSdkVersion in AndroidManifest.xml). Use
17 verified. By default, the value from AndroidManifest.xml

1234