Home
last modified time | relevance | path

Searched refs:Element (Results 1 – 25 of 26) sorted by relevance

12

/tools/treble/split/
Dxml_diff.py20 Element = ET.Element variable
68 def element_string(e: Element) -> str: argument
72 def attribute_changes(e1: Element, e2: Element, argument
104 p1: Element, argument
105 p2: Element, argument
107 key_fn: Callable[[Element], str], argument
108 diff_fn: Callable[[Element, Element, Set[str]], Any]) -> ChangeMap: argument
Dmanifest_diff.py28 Element = ET.Element variable
101 def subelement_file_changes(tag: str, p1: Element, p2: Element) -> ChangeMap: argument
121 def project_changes(p1: Element, p2: Element, argument
139 def compare_single_node_elements(manifest_e1: Element, manifest_e2: Element, argument
168 def compare_remote_elements(manifest_e1: Element, manifest_e2: Element, argument
/tools/asuite/atest/bazel/reporter/src/com/android/tradefed/result/
DBazelXmlResultReporter.java30 import org.w3c.dom.Element;
208 Element testSuites = writeTestSuites(doc, testRunResult); in writeTestResult()
211 Element testSuite = writeTestSuite(doc, testRunResult); in writeTestResult()
225 private Element writeTestSuites(Document doc, TestRunResult testRunResult) { in writeTestSuites()
226 Element testSuites = doc.createElementNS(null, "testsuites"); in writeTestSuites()
234 private Element writeTestSuite(Document doc, TestRunResult testRunResult) { in writeTestSuite()
235 Element testSuite = doc.createElementNS(null, "testsuite"); in writeTestSuite()
259 private Element writeTestCase(Document doc, TestDescription description, TestResult result) { in writeTestCase()
261 Element testCase = doc.createElement("testcase"); in writeTestCase()
280 Element node = doc.createElement(tag); in writeStackTraceTag()
[all …]
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/
DAtestRunConfiguration.java37 import org.jdom.Element;
61 public void readExternal(@NotNull Element element) throws InvalidDataException { in readExternal()
62 Element child = element.getChild(TEST_TARGET_KEY); in readExternal()
78 private boolean hasValue(Element element) { in hasValue()
88 public void writeExternal(@NotNull Element element) { in writeExternal()
101 private void setElementChild(@NotNull Element element, String key, String value) { in setElementChild()
102 Element child = new Element(key); in setElementChild()
/tools/platform-compat/java/android/processor/compat/
DSingleAnnotationProcessor.java41 import javax.lang.model.element.Element;
90 Table<PackageElement, String, List<Element>> annotatedElements = HashBasedTable.create(); in process()
91 for (Element annotatedElement : roundEnvironment.getElementsAnnotatedWith(annotation)) { in process()
122 Table<PackageElement, String, List<Element>> annotatedElements); in process()
125 protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) { in ignoreAnnotatedElement()
136 Element element) { in getSupportedAnnotationMirror()
150 protected final SourcePosition getSourcePosition(Element element, in getSourcePosition()
172 Element element, AnnotationMirror annotation, String propertyName) { in getAnnotationValue()
189 private String getEnclosingElementName(Element element) { in getEnclosingElementName()
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java41 import javax.lang.model.element.Element;
82 Table<PackageElement, String, List<Element>> annotatedElements) { in process()
86 for (Element element : annotatedElements.get(packageElement, in process()
108 protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) { in ignoreAnnotatedElement()
113 Element enclosingMethod = element.getEnclosingElement(); in ignoreAnnotatedElement()
114 Element enclosingElement = enclosingMethod.getEnclosingElement(); in ignoreAnnotatedElement()
134 private boolean isValidChangeId(Element element) { in isValidChangeId()
173 private Change createChange(String packageName, String enclosingElementName, Element element) { in createChange()
224 private String getLineNumber(Element element, AnnotationMirror mirror) { in getLineNumber()
229 private Change verifyChange(Element element, Change change) { in verifyChange()
DXmlWriter.java20 import org.w3c.dom.Element;
76 private Element mRoot;
85 Element newElement = mDocument.createElement(XML_CHANGE_ELEMENT); in addChange()
106 Element metaData = mDocument.createElement(XML_METADATA_ELEMENT); in addChange()
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java19 import org.w3c.dom.Element;
108 private <T> List<T> parseList(Element element, String tagName, Function<Element, T> parser) { in parseList() argument
118 result.add(parser.apply((Element) child)); in parseList()
124 private CertificationRequirements createCertificationRequirements(Element element) { in createCertificationRequirements()
138 private ApkInfo createApkInfo(Element element) { in createApkInfo()
165 private ApkInfo.Argument createArgument(Element element) { in createArgument()
176 private String getElement(Element element, Field field) { in getElement()
/tools/carrier_settings/java/
DCarrierConfigConverterV2.java66 import org.w3c.dom.Element;
216 for (Element element : getElementsByTagName(xml.getValue(), TAG_CARRIER_CONFIG)) { in convert()
234 for (Element element : getElementsByTagName(vendorXml, TAG_CARRIER_CONFIG)) { in convert()
502 private static ImmutableList<Element> getElementsByTagName(Document xmlDoc, String tagName) { in getElementsByTagName()
506 ImmutableList.Builder<Element> result = new ImmutableList.Builder<>(); in getElementsByTagName()
512 result.add((Element) node); in getElementsByTagName()
585 for (Element element : getElementsByTagName(xmlDoc, TAG_CARRIER_CONFIG)) { in parseCarrierConfigFromXml()
603 for (Element element : getElementsByTagName(xmlDoc, TAG_CARRIER_CONFIG)) { in parseCarrierConfigFromVendorXml()
608 Element parent_config = findParentConfigByUniqueRuleId(element); in parseCarrierConfigFromVendorXml()
624 private static HashMap<String, CarrierConfig.Config> parseCarrierConfigToMap(Element element) in parseCarrierConfigToMap()
[all …]
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
DSignatureConverter.java29 import javax.lang.model.element.Element;
67 String getSignature(Types types, TypeElement annotation, Element element) { in getSignature()
94 private List<Element> getEnclosingElements(Element element) { in getEnclosingElements()
95 List<Element> enclosing = new ArrayList<>(); in getEnclosingElements()
110 for (Element enclosing : getEnclosingElements(clazz)) { in getClassSignature()
152 Element declaring = ((DeclaredType) type).asElement(); in getTypeSignature()
215 private String verifyExpectedSignature(Types types, String signature, Element element, in verifyExpectedSignature()
DUnsupportedAppUsageProcessor.java43 import javax.lang.model.element.Element;
82 Table<PackageElement, String, List<Element>> annotatedElements) { in process()
86 Map<String, List<Element>> row = annotatedElements.row(packageElement); in process()
89 for (Element annotatedElement : row.get(enclosingElementName)) { in process()
122 protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) { in ignoreAnnotatedElement()
141 private String getAnnotationIndex(String signature, TypeElement annotation, Element element) { in getAnnotationIndex()
163 private String getSourcePositionOverride(Element element, AnnotationMirror annotation) { in getSourcePositionOverride()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DSubprocessConfigBuilderTest.java31 import org.w3c.dom.Element;
99 Element reporter = (Element) reporters.item(reporters.getLength() - 1); in verifyWrapperXml()
104 String optionName = ((Element) option.item(0)).getAttribute("name"); in verifyWrapperXml()
106 String optionPort = ((Element) option.item(0)).getAttribute("value"); in verifyWrapperXml()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestXmlResultParser.java26 import org.w3c.dom.Element;
122 Element rootNode = result.getDocumentElement(); in parseResult()
131 ((Element)testSuiteList.item(i)).getElementsByTagName(TEST_CASE_TAG); in parseResult()
135 processTestResult((Element)testcasesList.item(j)); in parseResult()
154 private void getTestSuitesInfo(Element rootNode) { in getTestSuitesInfo()
174 private void processTestResult(Element testcase) { in processTestResult()
208 String trace = ((Element)testcase.getElementsByTagName("failure").item(0)) in processTestResult()
/tools/test/mobly_extensions/tools/results_uploader/src/
Dmobly_result_converter.py132 mobly_root: ElementTree.Element, argument
135 ) -> Iterator[ElementTree.Element]:
170 element: ElementTree.Element, argument
171 ) -> ElementTree.Element:
180 properties_element: ElementTree.Element, name: str, value: str argument
199 properties_element: ElementTree.Element, argument
245 ) -> ElementTree.Element:
253 main_wrapper = ElementTree.Element(ResultstoreTreeTags.TESTSUITES.value)
288 ) -> ElementTree.Element:
298 class_element = ElementTree.Element(ResultstoreTreeTags.TESTSUITE.value)
[all …]
/tools/platform-compat/build/
Dprocess_compat_config.py57 self.tree._setroot(ET.Element("config"))
103 new_tree._setroot(ET.Element("config"))
105 new_change = ET.Element("compat-change")
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessConfigBuilder.java26 import org.w3c.dom.Element;
141 final Element reporter = doc.createElement(Configuration.RESULT_REPORTER_TYPE_NAME); in build()
143 final Element options = doc.createElement(ConfigurationUtil.OPTION_NAME); in build()
/tools/external_updater/tests/endtoend/treebuilder/
Dfakerepo.py77 def _create_manifest_xml(self) -> ElementTree.Element:
90 root = ElementTree.Element("manifest")
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsMerger.kt83 import org.w3c.dom.Element in <lambda>()
515 item: Element, in <lambda>()
546 item: Element, in <lambda>()
566 private fun getAnnotationName(element: Element): String { in <lambda>()
575 private fun mergeAnnotations(xmlElement: Element, item: Item) { in <lambda>()
619 private fun createAnnotation(annotationElement: Element): AnnotationItem? { in <lambda>()
741 val parseChild: (Element) -> Unit = { child: Element -> in <lambda>()
/tools/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py59 from xml.etree.ElementTree import Element
270 self.xml_root = Element("ARCHIVE")
271 version = Element("VERSION")
274 self.xml_pts_pixit = Element("PicsPixit")
276 self.xml_pts_running_log = Element("LOG")
278 self.xml_pts_running_summary = Element("SUMMARY")
/tools/netsim/ui/ts/
Ddevice-dragzone.ts41 simulationState.patchSelected((ev.target as Element).id);
/tools/security/fuzzing/llm/tinyxml2_fuzzer/
Dgen_corpus2.py20 element = ET.Element(tag_name)
/tools/external_updater/
Dmanifest.py50 node: ElementTree.Element, default_remote: str, default_revision: str argument
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/
DTurbineTypeItemFactory.kt38 import javax.lang.model.element.Element in <lambda>()
259 private fun createOuterClassType(element: Element): ClassTypeItem? { in <lambda>()
/tools/tradefederation/core/javatests/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java45 import org.w3c.dom.Element;
914 Element element = (Element) nodes.item(i); in assertXmlContainsValue()
939 Element element = (Element) nodes.item(i); in assertXmlContainsAttribute()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dgnss_test_utils.py401 root = ElementTree.Element('glgps')

12