Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 44) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt78 val sb = StringBuilder() in toSourceExpression() constant
79 appendSourceExpression(value, sb, owner) in toSourceExpression()
80 return sb.toString() in toSourceExpression()
83 …private fun appendSourceExpression(value: PsiAnnotationMemberValue, sb: StringBuilder, owner: Item… in appendSourceExpression()
87 sb.append(resolved.containingClass?.qualifiedName).append('.').append(resolved.name) in appendSourceExpression()
91 return appendSourceLiteral(value.value, sb, owner) in appendSourceExpression()
93 sb.append(value.operand.type.canonicalText).append(DOT_CLASS) in appendSourceExpression()
96 sb.append('{') in appendSourceExpression()
98 val initialLength = sb.length in appendSourceExpression()
100 val length = sb.length in appendSourceExpression()
[all …]
DPsiTypePrinter.kt90 sb: StringBuilder, in <lambda>()
94 appendNullnessSuffix(nullable, sb) // else: non null in <lambda>()
107 private fun appendNullnessSuffix(nullable: Boolean?, sb: StringBuilder) { in <lambda>()
109 sb.append('?') in <lambda>()
111 sb.append('!') in <lambda>()
160 val sb = StringBuilder() in <lambda>() constant
161 appendAnnotations(sb, annotations, elementAnnotations) in <lambda>()
163 sb.append('?') in <lambda>()
169 sb.append('?') in <lambda>()
171 sb.append(if (type.isExtends) EXTENDS_PREFIX else SUPER_PREFIX) in <lambda>()
[all …]
DUAnnotationItem.kt61 val sb = StringBuilder(60) in <lambda>() constant
62 appendAnnotation(codebase, sb, uAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
63 return sb.toString() in <lambda>()
143 sb: StringBuilder, in <lambda>()
153 sb.append("@$qualifiedName") in <lambda>()
157 sb.append("@") in <lambda>()
158 sb.append(qualifiedName) in <lambda>()
159 sb.append("(") in <lambda>()
162 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
169 sb.append(", ") in <lambda>()
[all …]
DPsiAnnotationItem.kt62 val sb = StringBuilder(60) in <lambda>() constant
63 appendAnnotation(codebase, sb, psiAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
64 return sb.toString() in <lambda>()
158 sb: StringBuilder, in <lambda>()
168 sb.append("@$qualifiedName") in <lambda>()
172 sb.append("@") in <lambda>()
173 sb.append(qualifiedName) in <lambda>()
174 sb.append("(") in <lambda>()
177 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
184 sb.append(", ") in <lambda>()
[all …]
DJavadoc.kt565 val sb = StringBuilder(documentation.length) in toFullyQualifiedDocumentation() constant
566 expand(owner, comment, sb) in toFullyQualifiedDocumentation()
568 return sb.toString() in toFullyQualifiedDocumentation()
589 private fun expand(owner: PsiItem, element: PsiElement, sb: StringBuilder) { in expand()
592 sb.append(element.text) in expand()
599 sb.append("android.") in expand()
602 sb.append(text) in expand()
635 sb.append(text) in expand()
653 sb.append(className) in expand()
654 sb.append('#') in expand()
[all …]
DPsiTypeItem.kt199 val sb = StringBuilder() in internalName() constant
200 appendJvmSignature(sb, psiType) in internalName()
201 return sb.toString() in internalName()
535 val sb = StringBuilder() in typeParameterList() constant
543 sb.append("<") in typeParameterList()
547 sb.append(", ") in typeParameterList()
552 sb.append(">") in typeParameterList()
556 sb.append("reified ") in typeParameterList()
558 sb.append(element.name) in typeParameterList()
563 sb.append(" extends ") in typeParameterList()
[all …]
DPsiMethodItem.kt303 val sb = StringBuilder(100) in <lambda>() constant
313 sb.append(modifierString.toString()) in <lambda>()
317 sb.append(' ') in <lambda>()
318 sb.append(TypeItem.convertTypeString(typeParameters, replacementMap)) in <lambda>()
322 sb.append(returnType?.convertTypeString(replacementMap)) in <lambda>()
324 sb.append(' ') in <lambda>()
325 sb.append(method.name()) in <lambda>()
327 sb.append("(") in <lambda>()
330 sb.append(", ") in <lambda>()
338 sb.append(parameterModifierString.toString()) in <lambda>()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java130 StringBuilder sb = new StringBuilder(); in getInvocationSummary() local
134 sb.append("Log Files:\n"); in getInvocationSummary()
137 sb.append(String.format(" %s\n", url != null ? url : logFile.getPath())); in getInvocationSummary()
139 sb.append("\n"); in getInvocationSummary()
144 sb.append("Unable to certify device. Invocation failed:\n"); in getInvocationSummary()
146 sb.append(" "); in getInvocationSummary()
147 sb.append(t.getMessage()); in getInvocationSummary()
148 sb.append("\n"); in getInvocationSummary()
150 return sb.toString(); in getInvocationSummary()
154 sb.append("Test Results:\n"); in getInvocationSummary()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDiff.kt75 val sb = StringBuilder() in getDiff() constant
98 sb.append("@@ -") in getDiff()
99 sb.append((i + 1).toString()) in getDiff()
100 sb.append(" +") in getDiff()
101 sb.append((j + 1).toString()) in getDiff()
102 sb.append('\n') in getDiff()
106 sb.append(" ") in getDiff()
107 sb.append(before[context]) in getDiff()
108 sb.append("\n") in getDiff()
114 sb.append('-') in getDiff()
[all …]
DDocAnalyzer.kt305 val sb = StringBuilder(100) in <lambda>() constant
306 sb.append("Requires ") in <lambda>()
311 any -> sb.append(" or ") in <lambda>()
312 else -> sb.append(" and ") in <lambda>()
322sb.append("{@link android.telephony.TelephonyManager#hasCarrierPrivileges carrier privileges}") in <lambda>()
340 sb.append(value.toSource()) in <lambda>()
343sb.append("{@link ${field.containingClass().qualifiedName()}#${field.name()}}") in <lambda>()
349sb.append("${field.containingClass().qualifiedName()}.${field.name()}") in <lambda>()
354 appendDocumentation(sb.toString(), item, false) in <lambda>()
393 val sb = StringBuilder(100) in <lambda>() constant
[all …]
DTerminal.kt37 val sb = StringBuilder() in terminalAttributes() constant
38 sb.append("\u001B[") in terminalAttributes()
40 sb.append('3').append('0' + foreground.value) in terminalAttributes()
43 if (sb.last().isDigit()) in terminalAttributes()
44 sb.append(';') in terminalAttributes()
45 sb.append('4').append('0' + background.value) in terminalAttributes()
49 if (sb.last().isDigit()) in terminalAttributes()
50 sb.append(';') in terminalAttributes()
51 sb.append('1') in terminalAttributes()
54 if (sb.last().isDigit()) in terminalAttributes()
[all …]
DReporter.kt332 val sb = StringBuilder(100) in format() constant
335 sb.append(terminalAttributes(bold = true)) in format()
338 sb.append(it).append(": ") in format()
342 … LINT -> sb.append(terminalAttributes(foreground = TerminalColor.CYAN)).append("lint: ") in format()
343 … INFO -> sb.append(terminalAttributes(foreground = TerminalColor.CYAN)).append("info: ") in format()
344 … WARNING -> sb.append(terminalAttributes(foreground = TerminalColor.YELLOW)).append("warning: ") in format()
345 … ERROR -> sb.append(terminalAttributes(foreground = TerminalColor.RED)).append("error: ") in format()
349 sb.append(resetTerminal()) in format()
350 sb.append(message) in format()
352 sb.append(" [").append(it.name).append("]") in format()
[all …]
DBaseline.kt237 val sb = StringBuilder() in <lambda>() constant
238 sb.append(format.header()) in <lambda>()
239 sb.append(headerComment) in <lambda>()
245 sb.append(issue.name).append(": ") in <lambda>()
246 sb.append(elementId) in <lambda>()
247 sb.append(":\n ") in <lambda>()
248 sb.append(message).append('\n') in <lambda>()
250 sb.append("\n\n") in <lambda>()
253 if (sb.endsWith("\n\n")) { in <lambda>()
254 sb.setLength(sb.length - 2) in <lambda>()
[all …]
DExtractAnnotations.kt423 val sb = StringBuilder(100) in <lambda>() constant
424 sb.append(escapeXml(containingClass().qualifiedName())) in <lambda>()
425 sb.append(' ') in <lambda>()
428 sb.append(escapeXml(containingClass().simpleName())) in <lambda>()
430 sb.append(escapeXml(returnType()!!.toTypeString())) in <lambda>()
431 sb.append(' ') in <lambda>()
432 sb.append(escapeXml(name())) in <lambda>()
435 sb.append('(') in <lambda>()
447 sb.append(',').append(' ') in <lambda>()
453 sb.append(type) in <lambda>()
[all …]
DAnnotationsMerger.kt613 val sb = StringBuilder() in createAnnotation() constant
614 sb.append('{') in createAnnotation()
642 sb.append(',').append(' ') in createAnnotation()
644 sb.append(clsName).append('.').append(field.name) in createAnnotation()
648 sb.append('}') in createAnnotation()
649 value = sb.toString() in createAnnotation()
650 if (sb.length > 2) { // 2: { } in createAnnotation()
812 val sb = StringBuilder(30) in originalName() constant
813 sb.append("@") in originalName()
814 sb.append(qualifiedName) in originalName()
[all …]
DComparisonVisitor.kt581 val sb = StringBuilder(1000) in prettyPrint() constant
582 prettyPrint(sb, 0) in prettyPrint()
583 return sb.toString() in prettyPrint()
586 private fun prettyPrint(sb: StringBuilder, depth: Int) { in prettyPrint()
588 sb.append(" ") in prettyPrint()
590 sb.append(toString()) in prettyPrint()
591 sb.append('\n') in prettyPrint()
593 child.prettyPrint(sb, depth + 1) in prettyPrint()
600 val sb = StringBuilder(1000) in prettyPrint() constant
602 child.prettyPrint(sb, 0) in prettyPrint()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DMetricSummary.java128 StringBuilder sb = new StringBuilder(); in toString() local
130 sb.append("Summary\n"); in toString()
131 sb.append("-------\n"); in toString()
132 sb.append("Load time: "); in toString()
134 sb.append("unknown"); in toString()
136 sb.append(getLoadTimeMs()); in toString()
137 sb.append(" ms\n"); in toString()
139 sb.append("\n"); in toString()
142 sb.append("Details\n"); in toString()
143 sb.append("-------\n"); in toString()
[all …]
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt43 val sb = StringBuilder(source.length) in packageNameWithDefault() constant
61 sb.append(c) in packageNameWithDefault()
65 sb.append(c) in packageNameWithDefault()
67 else -> sb.append(c) in packageNameWithDefault()
76 sb.append('/') // because we skipped it in init in packageNameWithDefault()
77 sb.append(c) in packageNameWithDefault()
103 sb.append(c) in packageNameWithDefault()
106 sb.append(c) in packageNameWithDefault()
113 sb.append(c) in packageNameWithDefault()
116 sb.append(c) in packageNameWithDefault()
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFat.java459 final StringBuilder sb = new StringBuilder(); in toString() local
461 sb.append(this.getClass().getSimpleName()); in toString()
462 sb.append("[type="); in toString()
463 sb.append(fatType); in toString()
464 sb.append(", mediumDescriptor=0x"); in toString()
465 sb.append(Integer.toHexString(getMediumDescriptor())); in toString()
466 sb.append(", sectorCount="); in toString()
467 sb.append(sectorCount); in toString()
468 sb.append(", sectorSize="); in toString()
469 sb.append(sectorSize); in toString()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DMethodItem.kt50 val sb = StringBuilder() in <lambda>() constant
51 sb.append("(") in <lambda>()
58 sb.append(containingClass().containingClass()?.toType()?.internalName() ?: "") in <lambda>()
62 sb.append(parameter.type().internalName()) in <lambda>()
65 sb.append(")") in <lambda>()
66sb.append(if (voidConstructorTypes && isConstructor()) "V" else returnType()?.internalName() ?: "V… in <lambda>()
67 return sb.toString() in <lambda>()
350 val sb = StringBuilder() in <lambda>() constant
352 if (sb.isNotEmpty()) { in <lambda>()
353 sb.append(", ") in <lambda>()
[all …]
DCodebase.kt193 val sb = StringBuilder() in <lambda>() constant
195 if (sb.isNotEmpty()) { in <lambda>()
196 sb.append(", ") in <lambda>()
198 sb.append(type.className.replace('/', '.').replace('$', '.')) in <lambda>()
200 sb.toString() in <lambda>()
217 val sb = StringBuilder() in <lambda>() constant
219 if (sb.isNotEmpty()) { in <lambda>()
220 sb.append(", ") in <lambda>()
222 sb.append(type.className.replace('/', '.').replace('$', '.')) in <lambda>()
224 sb.toString() in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiParseException.kt33 val sb = StringBuilder() constant in com.android.tools.metalava.model.text.ApiParseException
35 sb.append(file).append(':')
38 sb.append(line).append(':')
40 if (sb.isNotEmpty()) {
41 sb.append(' ')
43 sb.append(super.message)
44 return sb.toString()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiElement.java209 StringBuilder sb = new StringBuilder(); in encodeAttribute() local
216 sb.append("&quot;"); //$NON-NLS-1$ in encodeAttribute()
218 sb.append("&lt;"); //$NON-NLS-1$ in encodeAttribute()
220 sb.append("&apos;"); //$NON-NLS-1$ in encodeAttribute()
222 sb.append("&amp;"); //$NON-NLS-1$ in encodeAttribute()
224 sb.append(c); in encodeAttribute()
228 return sb.toString(); in encodeAttribute()
/tools/platform-compat/java/com/android/class2nonsdklist/
DApiComponents.java44 StringBuilder sb = new StringBuilder() in toString() local
49 sb.append("#").append(mMemberName).append("(").append(mMethodParameterTypes).append( in toString()
52 return sb.toString(); in toString()
158 StringBuilder sb = new StringBuilder(); in parseJniType() local
159 sb.append(parseJniTypeWithoutArrayDimensions(sc)); in parseJniType()
161 sb.append("[]"); in parseJniType()
163 return sb.toString(); in parseJniType()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAttestationApplicationId.java96 StringBuilder sb = new StringBuilder(); in toString() local
100 sb.append("\n### Package info " + i + "/" + noOfInfos + " ###\n"); in toString()
101 sb.append(info); in toString()
106 sb.append("\nSignature digest " + i++ + "/" + noOfSigs + ":"); in toString()
108 sb.append(String.format(" %02X", b)); in toString()
111 return sb.toString(); in toString()

12