Home
last modified time | relevance | path

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

/tools/carrier_settings/java/
DCarrierConfigConverterV2.java66 import org.w3c.dom.Element;
209 for (Element element : getElementsByTagName(xml.getValue(), TAG_CARRIER_CONFIG)) { in convert()
227 for (Element element : getElementsByTagName(vendorXml, TAG_CARRIER_CONFIG)) { in convert()
462 private static ImmutableList<Element> getElementsByTagName(Document xmlDoc, String tagName) { in getElementsByTagName()
466 ImmutableList.Builder<Element> result = new ImmutableList.Builder<>(); in getElementsByTagName()
472 result.add((Element) node); in getElementsByTagName()
545 for (Element element : getElementsByTagName(xmlDoc, TAG_CARRIER_CONFIG)) { in parseCarrierConfigFromXml()
563 for (Element element : getElementsByTagName(xmlDoc, TAG_CARRIER_CONFIG)) { in parseCarrierConfigFromVendorXml()
578 private static HashMap<String, CarrierConfig.Config> parseCarrierConfigToMap(Element element) in parseCarrierConfigToMap()
589 Element eElement = (Element) nNode; in parseCarrierConfigToMap()
[all …]
/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/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/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/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/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/platform-compat/java/android/processor/compat/unsupportedappusage/
DSignatureConverter.java30 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/metalava/src/main/java/com/android/resources/
DResourceType.java26 import org.w3c.dom.Element;
256 if (!(domNode instanceof Element)) { in fromXmlTag()
260 Element tag = (Element) domNode; in fromXmlTag()
264 Element::getAttribute); in fromXmlTag()
/tools/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py60 from xml.etree.ElementTree import Element
271 self.xml_root = Element("ARCHIVE")
272 version = Element("VERSION")
275 self.xml_pts_pixit = Element("PicsPixit")
277 self.xml_pts_running_log = Element("LOG")
279 self.xml_pts_running_summary = Element("SUMMARY")
/tools/platform-compat/build/
Dprocess_compat_config.py57 self.tree._setroot(ET.Element("config"))
102 new_tree._setroot(ET.Element("config"))
104 new_change = ET.Element("compat-change")
/tools/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsMerger.kt71 import org.w3c.dom.Element
462 item: Element, in mergeMethodOrParameter()
500 …private fun mergeField(item: Element, containingClass: String, classItem: ClassItem, fieldName: St… in mergeField()
515 private fun getAnnotationName(element: Element): String { in getAnnotationName()
524 private fun mergeAnnotations(xmlElement: Element, item: Item) { in mergeAnnotations()
567 private fun createAnnotation(annotationElement: Element): AnnotationItem? { in createAnnotation()