Home
last modified time | relevance | path

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

1234

/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 …]
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 …]
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 …]
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.kt281 val sb = StringBuilder(100) in <lambda>() constant
291 sb.append(modifierString.toString()) in <lambda>()
295 sb.append(' ') in <lambda>()
296 sb.append(TypeItem.convertTypeString(typeParameters, replacementMap)) in <lambda>()
300 sb.append(returnType?.convertTypeString(replacementMap)) in <lambda>()
302 sb.append(' ') in <lambda>()
303 sb.append(method.name()) in <lambda>()
305 sb.append("(") in <lambda>()
308 sb.append(", ") in <lambda>()
316 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/
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 …]
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 …]
DReporter.kt336 val sb = StringBuilder(100) in format() constant
339 sb.append(terminalAttributes(bold = true)) in format()
342 sb.append(it).append(": ") in format()
346 … LINT -> sb.append(terminalAttributes(foreground = TerminalColor.CYAN)).append("lint: ") in format()
347 … INFO -> sb.append(terminalAttributes(foreground = TerminalColor.CYAN)).append("info: ") in format()
348 … WARNING -> sb.append(terminalAttributes(foreground = TerminalColor.YELLOW)).append("warning: ") in format()
349 … ERROR -> sb.append(terminalAttributes(foreground = TerminalColor.RED)).append("error: ") in format()
353 sb.append(resetTerminal()) in format()
354 sb.append(message) in format()
356 sb.append(" [").append(it.name).append("]") in format()
[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 …]
DBaseline.kt239 val sb = StringBuilder() in <lambda>() constant
240 sb.append(format.header()) in <lambda>()
241 sb.append(headerComment) in <lambda>()
247 sb.append(issue.name).append(": ") in <lambda>()
248 sb.append(elementId) in <lambda>()
249 sb.append(":\n ") in <lambda>()
250 sb.append(message).append('\n') in <lambda>()
252 sb.append("\n\n") in <lambda>()
255 if (sb.endsWith("\n\n")) { in <lambda>()
256 sb.setLength(sb.length - 2) in <lambda>()
[all …]
DAnnotationsMerger.kt608 val sb = StringBuilder() in createAnnotation() constant
609 sb.append('{') in createAnnotation()
637 sb.append(',').append(' ') in createAnnotation()
639 sb.append(clsName).append('.').append(field.name) in createAnnotation()
643 sb.append('}') in createAnnotation()
644 value = sb.toString() in createAnnotation()
645 if (sb.length > 2) { // 2: { } in createAnnotation()
807 val sb = StringBuilder(30) in originalName() constant
808 sb.append("@") in originalName()
809 sb.append(qualifiedName) in originalName()
[all …]
DExtractAnnotations.kt424 val sb = StringBuilder(100) in <lambda>() constant
425 sb.append(escapeXml(containingClass().qualifiedName())) in <lambda>()
426 sb.append(' ') in <lambda>()
429 sb.append(escapeXml(containingClass().simpleName())) in <lambda>()
431 sb.append(escapeXml(returnType()!!.toTypeString())) in <lambda>()
432 sb.append(' ') in <lambda>()
433 sb.append(escapeXml(name())) in <lambda>()
436 sb.append('(') in <lambda>()
448 sb.append(',').append(' ') in <lambda>()
454 sb.append(type) in <lambda>()
[all …]
DComparisonVisitor.kt455 val sb = StringBuilder(1000) in prettyPrint() constant
456 prettyPrint(sb, 0) in prettyPrint()
457 return sb.toString() in prettyPrint()
460 private fun prettyPrint(sb: StringBuilder, depth: Int) { in prettyPrint()
462 sb.append(" ") in prettyPrint()
464 sb.append(toString()) in prettyPrint()
465 sb.append('\n') in prettyPrint()
467 child.prettyPrint(sb, depth + 1) in prettyPrint()
474 val sb = StringBuilder(1000) in prettyPrint() constant
476 child.prettyPrint(sb, 0) in prettyPrint()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DConsoleResultReporter.java109 StringBuilder sb = new StringBuilder(tag); in testRunEnded() local
110 sb.append(": "); in testRunEnded()
111 sb.append(runName); in testRunEnded()
112 sb.append(": "); in testRunEnded()
116 sb.append(String.format("%s=%s\n", metricKey, metrics.get(metricKey))); in testRunEnded()
118 print(sb.toString()); in testRunEnded()
127 StringBuilder sb = new StringBuilder(); in invocationEnded() local
128 sb.append("========== Result Summary =========="); in invocationEnded()
129 sb.append(String.format("\nResults summary for test-tag '%s': ", mTestTag)); in invocationEnded()
130 sb.append(mResultCountListener.getTotalTests()); in invocationEnded()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTestHelper.java290 final StringBuilder sb = new StringBuilder(512); in toString() local
291 sb.append("{").append(NL); in toString()
292 sb.append("{\nlatencyMs=").append(mLatencyMs).append(NL); in toString()
293 sb.append("latencyConfidence=").append(mLatencyConfidence).append(NL); in toString()
294 sb.append("isTimedOut=").append(mIsTimedOut).append(NL); in toString()
295 sb.append("iteration=").append(mIteration).append(NL); in toString()
296 sb.append("logs=").append(Arrays.toString(mLogs.values().toArray())).append(NL); in toString()
297 sb.append("audioLevel=").append(mAudioLevel).append(NL); in toString()
298 sb.append("deviceTestStartTime=").append(mDeviceTestStartTime).append(NL); in toString()
299 sb.append("rms=").append(mRms).append(NL); in toString()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMonkeyLogParserFuncTest.java74 StringBuffer sb = new StringBuffer(); in testParse() local
75 sb.append("Stats for monkey log:\n"); in testParse()
76 sb.append(String.format(" Start time: %s\n", monkeyLog.getStartTime())); in testParse()
77 sb.append(String.format(" Stop time: %s\n", monkeyLog.getStopTime())); in testParse()
78 sb.append(String.format(" Parameters: target-count=%d, throttle=%d, seed=%d, " + in testParse()
82 sb.append(String.format(" Packages: %s\n", monkeyLog.getPackages())); in testParse()
83 sb.append(String.format(" Categories: %s\n", monkeyLog.getCategories())); in testParse()
85 sb.append(" Status: no-activities=true\n"); in testParse()
87 sb.append(String.format(" Status: finished=%b, final-count=%d, " + in testParse()
91 sb.append(" Dropped events:"); in testParse()
[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/tradefederation/core/src/com/android/tradefed/util/
DSubprocessTestResultsParser.java272 StringBuilder sb = new StringBuilder(); in SubprocessTestResultsParser() local
273 sb.append(StatusKeys.INVOCATION_FAILED).append("|"); in SubprocessTestResultsParser()
274 sb.append(StatusKeys.TEST_ASSUMPTION_FAILURE).append("|"); in SubprocessTestResultsParser()
275 sb.append(StatusKeys.TEST_ENDED).append("|"); in SubprocessTestResultsParser()
276 sb.append(StatusKeys.TEST_FAILED).append("|"); in SubprocessTestResultsParser()
277 sb.append(StatusKeys.TEST_IGNORED).append("|"); in SubprocessTestResultsParser()
278 sb.append(StatusKeys.TEST_STARTED).append("|"); in SubprocessTestResultsParser()
279 sb.append(StatusKeys.TEST_RUN_ENDED).append("|"); in SubprocessTestResultsParser()
280 sb.append(StatusKeys.TEST_RUN_FAILED).append("|"); in SubprocessTestResultsParser()
281 sb.append(StatusKeys.TEST_RUN_STARTED).append("|"); in SubprocessTestResultsParser()
[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/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/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>()

1234