/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/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() 238 private fun getTextRange(element: PsiElement): TextRange? { in getTextRange() 241 if (element is PsiCompiledElement) { in getTextRange() 242 if (element is LightElement) { in getTextRange() 243 range = (element as PsiElement).textRange in getTextRange() 249 range = element.textRange in getTextRange() 255 private fun elementToLocation(element: PsiElement?, includeDocs: Boolean = true): String? { in elementToLocation() 256 element ?: return null in elementToLocation() [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 | 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 | 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() 229 return isKotlin(element) in isKotlin() 233 fun javadoc(element: PsiElement): String { in javadoc() 234 if (element is PsiCompiledElement) { in javadoc() [all …]
|
D | PsiModifierItem.kt | 52 …fun create(codebase: PsiBasedCodebase, element: PsiModifierListOwner, documentation: String?): Psi… in create() 54 if (element is UAnnotated) { in create() 55 create(codebase, element, element) in create() 57 create(codebase, element) in create() 61 ((element as? PsiDocCommentOwner)?.isDeprecated == true) in create() 69 private fun computeFlag(element: PsiModifierListOwner, modifierList: PsiModifierList): Int { in computeFlag() 109 } else if (modifierList is LightModifierList && element is KotlinUMethod) { in computeFlag() 110 ktModifierList = element.sourcePsi?.modifierList in computeFlag() 138 val func = (element as? UMethod)?.sourcePsi as? KtNamedFunction in computeFlag() 157 if (element is UMethod && element.sourceElement is KtProperty) { in computeFlag() [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 | 139 override fun visitImportStatement(element: PsiImportStatement) { in <lambda>() 140 super.visitImportStatement(element) in <lambda>() 141 if (element.resolve() == null) { in <lambda>() 144 element, in <lambda>() 184 override fun visitErrorElement(element: PsiErrorElement) { in <lambda>() 185 super.visitErrorElement(element) in <lambda>() 188 element, in <lambda>()
|
/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/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/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/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/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 872 for (byte[] element : sequence) { in encodeAsSequenceOfLengthPrefixedElements() 873 payloadSize += 4 + element.length; in encodeAsSequenceOfLengthPrefixedElements() 877 for (byte[] element : sequence) { in encodeAsSequenceOfLengthPrefixedElements() 878 result.putInt(element.length); in encodeAsSequenceOfLengthPrefixedElements() 879 result.put(element); in encodeAsSequenceOfLengthPrefixedElements() 887 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 888 resultSize += 12 + element.getSecond().length; in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 892 for (Pair<Integer, byte[]> element : sequence) { in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 893 byte[] second = element.getSecond(); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes() 895 result.putInt(element.getFirst()); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 539 JSONObject element = jsonArray.getJSONObject(i); in parse() local 543 String cameraId = element.getString(CAMERA_ID_KEY); in parse() 544 String reprocessType = element.getString(REPROCESS_TYPE_KEY); in parse() 545 String captureMessage = element.getString(CAPTURE_MESSAGE_KEY); in parse() 555 JSONArray jsonDataArray = element.getJSONArray(LATENCY_KEY); in parse() 568 JSONObject element = jsonArray.getJSONObject(i); in parse() local 570 String cameraid = element.getString(CAMERA_ID_KEY); in parse() 581 JSONArray jsonDataArray = element.getJSONArray(jsonKey); in parse()
|
/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/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 56 public boolean matches(IManagedTestDevice element) { in matches() argument 57 if (mDeviceSelectionMatcher.matches(element.getIDevice())) { in matches() 62 DeviceEventResponse r = element.handleAllocationEvent(event); in matches() 121 public boolean matches(IManagedTestDevice element) { in find() 122 return serialNumber.equals(element.getSerialNumber()); in find()
|
/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/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 174 for element in root.iter('sourceFolder'): 175 src = element.get(_URL).replace(common_util.get_android_root_dir(), 179 for element in root.iter('root'): 180 jar = element.get(_URL).replace(common_util.get_android_root_dir(),
|
/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/metalava/src/main/java/com/android/resources/ |
D | ResourceType.java | 263 element -> firstNonNull(element.getLocalName(), element.getTagName()), in fromXmlTag()
|