/tools/platform-compat/java/android/processor/compat/changeid/ |
D | ChangeIdProcessor.java | 19 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/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | GameCoreConfigurationXmlParser.java | 108 private <T> List<T> parseList(Element element, String tagName, Function<Element, T> parser) { in parseList() argument 109 NodeList nodeList = element.getElementsByTagName(tagName); in parseList() 124 private CertificationRequirements createCertificationRequirements(Element element) { in createCertificationRequirements() argument 125 if (!element.getTagName().equals("apk")) { in createCertificationRequirements() 128 + element.getNodeName() in createCertificationRequirements() 132 getElement(element, Field.NAME), in createCertificationRequirements() 133 Float.parseFloat(getElement(element, Field.TARGET_FRAME_TIME)), in createCertificationRequirements() 134 Float.parseFloat(getElement(element, Field.MAX_JANK_RATE)), in createCertificationRequirements() 135 Integer.parseInt(getElement(element, Field.MAX_LOAD_TIME))); in createCertificationRequirements() 138 private ApkInfo createApkInfo(Element element) { in createApkInfo() argument [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Baseline.kt | 71 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>() 125 … element.name() + "(" + element.parameters().joinToString { it.type().toSimpleType() } + ")" in <lambda>() 126 is FieldItem -> element.containingClass().qualifiedName() + "#" + element.name() in <lambda>() [all …]
|
D | Reporter.kt | 104 fun report(id: Issues.Issue, element: PsiElement?, message: String): Boolean { in hasErrors() 112 if (element != null && baseline != null && baseline.mark(element, message, id)) { in hasErrors() 116 return report(severity, elementToLocation(element), message, id) in hasErrors() 232 private fun getTextRange(element: PsiElement): TextRange? { in getTextRange() 235 if (element is KotlinUClass) { in getTextRange() 236 range = element.sourcePsi?.textRange in getTextRange() 237 } else if (element is PsiCompiledElement) { in getTextRange() 238 if (element is LightElement) { in getTextRange() 239 range = (element as PsiElement).textRange in getTextRange() 245 range = element.textRange in getTextRange() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | Javadoc.kt | 589 private fun expand(owner: PsiItem, element: PsiElement, sb: StringBuilder) { in expand() 591 element is PsiWhiteSpace -> { in expand() 592 sb.append(element.text) in expand() 594 element is PsiDocToken -> { in expand() 595 assert(element.firstChild == null) in expand() 596 val text = element.text in expand() 604 element is PsiDocMethodOrFieldRef -> { in expand() 605 val text = element.text in expand() 606 var resolved = element.reference?.resolve() in expand() 633 val referenceText = element.reference?.element?.text ?: text in expand() [all …]
|
D | PsiItem.kt | 35 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 …]
|
D | PsiTypeItem.kt | 537 override fun visitElement(element: PsiElement) { in typeParameterList() 538 if (element is PsiTypeParameterList) { in typeParameterList() 539 val typeParameters = element.typeParameters in typeParameterList() 554 } else if (element is PsiTypeParameter) { in typeParameterList() 555 if (PsiTypeParameterItem.isReified(element)) { in typeParameterList() 558 sb.append(element.name) in typeParameterList() 560 val extendsList = element.extendsList in typeParameterList() 585 val extendsListTypes = element.extendsListTypes in typeParameterList() 606 } else if (element is PsiJavaCodeReferenceElement) { in typeParameterList() 607 val resolved = element.resolve() in typeParameterList() [all …]
|
D | PsiModifierItem.kt | 54 …fun create(codebase: PsiBasedCodebase, element: PsiModifierListOwner, documentation: String?): Psi… in <lambda>() 56 if (element is UAnnotated) { in <lambda>() 57 create(codebase, element, element) in <lambda>() 59 create(codebase, element) in <lambda>() 63 ((element as? PsiDocCommentOwner)?.isDeprecated == true) in <lambda>() 71 private fun computeFlag(element: PsiModifierListOwner, modifierList: PsiModifierList): Int { in <lambda>() 111 } else if (modifierList is LightModifierList && element is KotlinUMethod) { in <lambda>() 112 ktModifierList = element.sourcePsi?.modifierList in <lambda>() 140 val func = (element as? UMethod)?.sourcePsi as? KtNamedFunction in <lambda>() 161 if (element is UMethod && (element.sourceElement is KtPropertyAccessor)) { in <lambda>() [all …]
|
D | PsiTypeParameterItem.kt | 46 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()
|
D | PsiBasedCodebase.kt | 138 override fun visitImportStatement(element: PsiImportStatement) { in <lambda>() 139 super.visitImportStatement(element) in <lambda>() 140 if (element.resolve() == null) { in <lambda>() 143 element, in <lambda>() 183 override fun visitErrorElement(element: PsiErrorElement) { in <lambda>() 184 super.visitErrorElement(element) in <lambda>() 187 element, in <lambda>()
|
D | UAnnotationItem.kt | 351 private fun getText(element: UElement): String { in toSource() 352 return element.sourcePsi?.text ?: element.asSourceString() in toSource()
|
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/ |
D | SignatureConverter.java | 29 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 …]
|
D | UnsupportedAppUsageProcessor.java | 41 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/ |
D | SingleAnnotationProcessor.java | 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.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/carrier_settings/java/ |
D | CarrierConfigConverterV2.java | 209 for (Element element : getElementsByTagName(xml.getValue(), TAG_CARRIER_CONFIG)) { in convert() 211 CarrierId id = parseCarrierId(element).setMccMnc(mccMnc).build(); in convert() 227 for (Element element : getElementsByTagName(vendorXml, TAG_CARRIER_CONFIG)) { in convert() 229 if (element.hasAttribute("cid")) { in convert() 230 String cidAsString = element.getAttribute("cid"); in convert() 239 CarrierId.Builder id = parseCarrierId(element); in convert() 545 for (Element element : getElementsByTagName(xmlDoc, TAG_CARRIER_CONFIG)) { in parseCarrierConfigFromXml() 546 if (carrier != null && !checkFilters(element, carrier)) { in parseCarrierConfigFromXml() 549 configMap.putAll(parseCarrierConfigToMap(element)); in parseCarrierConfigFromXml() 563 for (Element element : getElementsByTagName(xmlDoc, TAG_CARRIER_CONFIG)) { in parseCarrierConfigFromVendorXml() [all …]
|
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/ |
D | AtestRunConfiguration.java | 61 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/ |
D | ApiClass.java | 111 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 …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/ |
D | apollo_log_decoder.py | 29 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/platform-compat/build/ |
D | process_compat_config.py | 42 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/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsLite.java | 379 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/asuite/aidegen/lib/ |
D | dom_util.py | 54 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/test/openhst/ |
D | stress_test_common.py | 90 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/asn1/ |
D | Asn1BerParser.java | 299 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/metalava/src/main/java/com/android/resources/ |
D | ResourceType.java | 263 element -> firstNonNull(element.getLocalName(), element.getTagName()), in fromXmlTag()
|
/tools/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 189 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(),
|