Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/src/com/android/tradefed/util/xml/
DAndroidManifestWriter.java16 package com.android.tradefed.util.xml;
24 import org.xml.sax.SAXException;
25 import org.xml.sax.helpers.DefaultHandler;
30 import javax.xml.parsers.DocumentBuilder;
31 import javax.xml.parsers.DocumentBuilderFactory;
32 import javax.xml.parsers.ParserConfigurationException;
33 import javax.xml.transform.Result;
34 import javax.xml.transform.Source;
35 import javax.xml.transform.Transformer;
36 import javax.xml.transform.TransformerConfigurationException;
[all …]
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/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.kt83 val xml = output.readText(UTF_8) in Extract API levels() constant
84 assertTrue(xml.contains("<class name=\"android/Manifest\$permission\" since=\"1\">")) in Extract API levels()
85 …assertTrue(xml.contains("<field name=\"BIND_CARRIER_MESSAGING_SERVICE\" since=\"22\" deprecated=\"… in Extract API levels()
86 assertTrue(xml.contains("<class name=\"android/pkg/MyTest\" since=\"36\"")) in Extract API levels()
87 assertFalse(xml.contains("<implements name=\"java/lang/annotation/Annotation\" removed=\"")) in Extract API levels()
88 assertFalse(xml.contains("<extends name=\"java/lang/Enum\" removed=\"")) in Extract API levels()
89 assertFalse(xml.contains("<method name=\"append(C)Ljava/lang/AbstractStringBuilder;\"")) in Extract API levels()
91 val document = XmlUtils.parseDocumentSilently(xml, false) in Extract API levels()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java36 import com.google.common.xml.XmlEscapers;
45 import org.xml.sax.InputSource;
57 import javax.xml.xpath.XPath;
58 import javax.xml.xpath.XPathConstants;
59 import javax.xml.xpath.XPathExpressionException;
60 import javax.xml.xpath.XPathFactory;
643 private NodeList getXmlNodes(String xml, String xPathExpression) in getXmlNodes() argument
646 InputSource inputSource = new InputSource(new StringReader(xml)); in getXmlNodes()
652 private NodeList assertXmlContainsNode(String xml, String xPathExpression) in assertXmlContainsNode() argument
654 NodeList nodes = getXmlNodes(xml, xPathExpression); in assertXmlContainsNode()
[all …]
/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/contrib/src/com/android/framework/tests/
DPackageManagerOTATestUtils.java31 import javax.xml.parsers.DocumentBuilder;
32 import javax.xml.parsers.DocumentBuilderFactory;
33 import javax.xml.xpath.XPath;
34 import javax.xml.xpath.XPathConstants;
35 import javax.xml.xpath.XPathExpression;
36 import javax.xml.xpath.XPathFactory;
/tools/tradefederation/core/src/com/android/tradefed/testtype/testdefs/
DXmlDefsParser.java18 import com.android.tradefed.util.xml.AbstractXmlParser;
20 import org.xml.sax.Attributes;
21 import org.xml.sax.SAXException;
22 import org.xml.sax.helpers.DefaultHandler;
/tools/tradefederation/core/src/com/android/tradefed/util/net/
DXmlRpcHelper.java19 import com.android.tradefed.util.xml.AbstractXmlParser;
20 import com.android.tradefed.util.xml.AbstractXmlParser.ParseException;
23 import org.xml.sax.Attributes;
24 import org.xml.sax.SAXException;
25 import org.xml.sax.helpers.DefaultHandler;
/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/tradefederation/core/src/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/metalava/
D.gitignore4 /.idea/modules.xml
5 /.idea/workspace.xml
7 /.idea/usage.statistics.xml
/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.py26 import xml.etree.ElementTree
27 import xml.parsers.expat
102 tree = xml.etree.ElementTree.parse(filename)
113 xml.parsers.expat.ExpatError) as err:
/tools/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsMerger.kt73 import org.xml.sax.SAXParseException
165 val xml = Files.asCharSource(file, UTF_8).read() in mergeQualifierAnnotationsFromFile() constant
166 mergeAnnotationsXml(file.path, xml) in mergeQualifierAnnotationsFromFile()
195 val xml = String(bytes, UTF_8) in mergeFromJar() constant
196 mergeAnnotationsXml(jar.path + ": " + entry, xml) in mergeFromJar()
211 private fun mergeAnnotationsXml(path: String, xml: String) { in mergeAnnotationsXml()
213 val document = parseDocument(xml, false) in mergeAnnotationsXml()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DGLBenchmarkTest.java35 import org.xml.sax.SAXException;
43 import javax.xml.parsers.DocumentBuilder;
44 import javax.xml.parsers.DocumentBuilderFactory;
45 import javax.xml.parsers.ParserConfigurationException;
/tools/metalava/stub-annotations/
D.gitignore4 /.idea/modules.xml
5 /.idea/workspace.xml
/tools/test/connectivity/tools/
D.gitignore44 nosetests.xml
45 coverage.xml
/tools/test/connectivity/acts/
D.gitignore44 nosetests.xml
45 coverage.xml
/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/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.
DAndroid.mk30 $(LOCAL_PATH)/AndroidTest.xml \
31 $(LOCAL_PATH)/dist/certification-tests.xml \
/tools/metalava/src/test/java/com/android/tools/metalava/
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/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

123