Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 35) sorted by relevance

12

/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java19 import static javax.lang.model.element.ElementKind.CLASS;
20 import static javax.lang.model.element.ElementKind.PARAMETER;
39 import javax.lang.model.element.AnnotationMirror;
40 import javax.lang.model.element.AnnotationValue;
41 import javax.lang.model.element.Element;
42 import javax.lang.model.element.ElementKind;
43 import javax.lang.model.element.Modifier;
44 import javax.lang.model.element.PackageElement;
45 import javax.lang.model.element.TypeElement;
46 import javax.lang.model.element.VariableElement;
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DBaseline.kt71 fun mark(element: Item, message: String, issue: Issues.Issue): Boolean { in <lambda>()
72 val elementId = getBaselineKey(element) in <lambda>()
77 fun mark(element: PsiElement, message: String, issue: Issues.Issue): Boolean { in <lambda>()
78 val elementId = getBaselineKey(element) in <lambda>()
121 private fun getBaselineKey(element: Item): String { in <lambda>()
122 return when (element) { in <lambda>()
123 is ClassItem -> element.qualifiedName() in <lambda>()
124 is MethodItem -> element.containingClass().qualifiedName() + "#" + in <lambda>()
125element.name() + "(" + element.parameters().joinToString { it.type().toSimpleType() } + ")" in <lambda>()
126 is FieldItem -> element.containingClass().qualifiedName() + "#" + element.name() in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt35 val element: PsiElement, constant in com.android.tools.metalava.model.psi.PsiItem
80 override fun psi(): PsiElement? = element in psi()
84 return if (element is UElement) { in psi()
85 (element.sourcePsi ?: element.javaPsi) is PsiCompiledElement in psi()
87 element is PsiCompiledElement in psi()
97 if (element is PsiCompiledElement) { in isCloned()
166 … documentation = mergeDocumentation(documentation, element, comment.trim(), tagSection, append) in appendDocumentation()
233 return isKotlin(element) in isKotlin()
237 fun javadoc(element: PsiElement): String { in javadoc()
238 if (element is PsiCompiledElement) { in javadoc()
[all …]
DPsiTypeParameterItem.kt46 return isReified(element as? PsiTypeParameter) in bounds()
80 fun isReified(element: PsiTypeParameter?): Boolean { in isReified()
81 element ?: return false in isReified()
82 if (element is KtLightTypeParameter && in isReified()
83 element.kotlinOrigin.text.startsWith("reified")) { in isReified()
85 } else if (element is KotlinLightTypeParameterBuilder) { in isReified()
86 if (element.sourcePsi.text.startsWith("reified")) { in isReified()
DUAnnotationItem.kt351 private fun getText(element: UElement): String { in toSource()
352 return element.sourcePsi?.text ?: element.asSourceString() in toSource()
DPsiFieldItem.kt43 element = psiField
DPsiPackageItem.kt35 element = psiPackage
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
DSignatureConverter.java29 import javax.lang.model.element.AnnotationMirror;
30 import javax.lang.model.element.Element;
31 import javax.lang.model.element.ExecutableElement;
32 import javax.lang.model.element.PackageElement;
33 import javax.lang.model.element.TypeElement;
34 import javax.lang.model.element.VariableElement;
67 String getSignature(Types types, TypeElement annotation, Element element) { in getSignature() argument
70 switch (element.getKind()) { in getSignature()
72 signature = buildMethodSignature((ExecutableElement) element); in getSignature()
75 signature = buildConstructorSignature((ExecutableElement) element); in getSignature()
[all …]
DUnsupportedAppUsageProcessor.java41 import javax.lang.model.element.AnnotationMirror;
42 import javax.lang.model.element.AnnotationValue;
43 import javax.lang.model.element.Element;
44 import javax.lang.model.element.ExecutableElement;
45 import javax.lang.model.element.PackageElement;
46 import javax.lang.model.element.TypeElement;
122 protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) { in ignoreAnnotatedElement() argument
141 private String getAnnotationIndex(String signature, TypeElement annotation, Element element) { in getAnnotationIndex() argument
142 AnnotationMirror annotationMirror = getSupportedAnnotationMirror(annotation, element); in getAnnotationIndex()
143 String position = getSourcePositionOverride(element, annotationMirror); in getAnnotationIndex()
[all …]
/tools/platform-compat/java/android/processor/compat/
DSingleAnnotationProcessor.java39 import javax.lang.model.element.AnnotationMirror;
40 import javax.lang.model.element.AnnotationValue;
41 import javax.lang.model.element.Element;
42 import javax.lang.model.element.PackageElement;
43 import javax.lang.model.element.QualifiedNameable;
44 import javax.lang.model.element.TypeElement;
125 protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) { in ignoreAnnotatedElement() argument
136 Element element) { in getSupportedAnnotationMirror() argument
137 for (AnnotationMirror mirror : element.getAnnotationMirrors()) { in getSupportedAnnotationMirror()
150 protected final SourcePosition getSourcePosition(Element element, in getSourcePosition() argument
[all …]
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/
DAtestRunConfiguration.java61 public void readExternal(@NotNull Element element) throws InvalidDataException { in readExternal() argument
62 Element child = element.getChild(TEST_TARGET_KEY); in readExternal()
66 child = element.getChild(LUNCH_TARGET_KEY); in readExternal()
78 private boolean hasValue(Element element) { in hasValue() argument
79 return element != null && !Strings.isNullOrEmpty(element.getTextTrim()); in hasValue()
88 public void writeExternal(@NotNull Element element) { in writeExternal() argument
89 setElementChild(element, TEST_TARGET_KEY, mTestTarget); in writeExternal()
90 setElementChild(element, LUNCH_TARGET_KEY, mLunchTarget); in writeExternal()
91 super.writeExternal(element); in writeExternal()
101 private void setElementChild(@NotNull Element element, String key, String value) { in setElementChild() argument
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiClass.java111 ApiElement element = elements.get(name); in addToMap() local
112 if (element == null) { in addToMap()
113 element = new ApiElement(name, version, deprecated); in addToMap()
114 elements.put(name, element); in addToMap()
116 element.update(version, deprecated); in addToMap()
121 ApiElement element = findByName(elements, name); in addToArray() local
122 if (element == null) { in addToArray()
123 element = new ApiElement(name, version); in addToArray()
124 elements.add(element); in addToArray()
126 element.update(version); in addToArray()
[all …]
DApiElement.java183 for (ApiElement element : sortedList(elements)) { in print()
184 element.print(tag, this, indent, stream); in print()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/
Dapollo_log_decoder.py29 msg = [element.split(':') for element in str(proto).split('\n') if element]
30 for element in msg:
31 key = element[0].strip()
32 value = element[1].strip()
/tools/asuite/aidegen/lib/
Ddom_util.py54 def compare_element_with_attributes(element, attributes=None): argument
115 def update_element_with_condition(element, attributes, target_name, argument
138 def insert_element_data(element, attributes, target_name, target_value): argument
/tools/platform-compat/build/
Dprocess_compat_config.py42 def change_element_tostring(element): argument
43 s = "%s(%s)" % (element.attrib['name'], element.attrib['id'])
44 metadata = element.find('meta-data')
51 return " From: %s:\n %s" % (self.source, change_element_tostring(self.element))
/tools/test/openhst/
Dstress_test_common.py90 element = old_list[i]
91 if not any([getattr(x, key) == getattr(element, key)
93 new_list.append(element)
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsLite.java379 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
380 resultSize += 12 + element.getSecond().length; in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
384 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
385 byte[] second = element.getSecond(); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
387 result.putInt(element.getFirst()); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
/tools/metalava/src/main/java/com/android/resources/
DResourceType.java263 element -> firstNonNull(element.getLocalName(), element.getTagName()), in fromXmlTag()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParameterItem.kt146 val element = s.substring(begin, end) in add() constant
147 list.add(element) in add()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java299 T element; in parseSetOf() local
301 element = (T) dataValue.getEncodedContents(); in parseSetOf()
303 element = (T) new Asn1OpaqueObject(dataValue.getEncoded()); in parseSetOf()
305 element = parse(dataValue, elementClass); in parseSetOf()
307 result.add(element); in parseSetOf()
/tools/apifinder/src/main/com/android/apifinder/
DJavaApiUsedByMainlineModule.java36 import javax.lang.model.element.ElementKind;
37 import javax.lang.model.element.Modifier;
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py189 for element in root.iter('sourceFolder'):
190 src = element.get(_URL).replace(common_util.get_android_root_dir(),
194 for element in root.iter('root'):
195 jar = element.get(_URL).replace(common_util.get_android_root_dir(),
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/rtt/
Drtt_test_utils.py179 def takeRssi(element): argument
180 return element['level']
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_retail_ap/
D__init__.py216 element = self.find_by_id(check_for_element)
217 if not element:

12