/tools/platform-compat/build/ |
D | process-compat-config-test.py | 23 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 …]
|
D | process_compat_config.py | 25 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/ |
D | XmlSuiteResultFormatterTest.java | 44 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/ |
D | xml_gen_unittest.py | 25 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/ |
D | Xml.kt | 21 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/ |
D | ApiGeneratorTest.kt | 86 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/ |
D | MetricsXmlParser.java | 24 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/ |
D | SubprocessConfigBuilder.java | 28 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/ |
D | XmlWriter.java | 25 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/ |
D | AbstractXmlParser.java | 16 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/ |
D | ConfigurationXmlParser.java | 19 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/ |
D | AnnotationsMerger.kt | 72 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/ |
D | GTestXmlResultParser.java | 28 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/ |
D | JUnitXmlParser.java | 23 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/ |
D | GameCoreConfigurationXmlParser.java | 22 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/ |
D | aidegen_functional_test_main.py | 29 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/ |
D | AndroidBinXmlParser.java | 85 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/ |
D | common_util.py | 30 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/ |
D | DriverTest.kt | 1296 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>()
|
D | RewriteAnnotationsTest.kt | 21 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/ |
D | bluetooth_pts_device.py | 57 import xml.etree.ElementTree as ET 59 from xml.dom import minidom 60 from xml.etree.ElementTree import Element
|
/tools/treble/split/ |
D | Android.bp | 39 "default_config.xml", 55 test_config: "test.xml",
|
/tools/test/graphicsbenchmark/ |
D | README | 14 $ 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/ |
D | SubprocessConfigBuilderTest.java | 37 import javax.xml.parsers.DocumentBuilder; 38 import javax.xml.parsers.DocumentBuilderFactory;
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | help_verify.txt | 5 by the APK (as declared using minSdkVersion in AndroidManifest.xml). Use 17 verified. By default, the value from AndroidManifest.xml
|