Home
last modified time | relevance | path

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

123

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt85 val sb = StringBuilder() in toSourceExpression() constant
86 appendSourceExpression(value, sb, owner) in toSourceExpression()
87 return sb.toString() in toSourceExpression()
92 sb: StringBuilder, in appendSourceExpression()
98 sb.append(resolved.containingClass?.qualifiedName).append('.').append(resolved.name) in appendSourceExpression()
102 return appendSourceLiteral(value.value, sb, owner) in appendSourceExpression()
104 sb.append(value.operand.type.canonicalText).append(DOT_CLASS) in appendSourceExpression()
107 sb.append('{') in appendSourceExpression()
109 val initialLength = sb.length in appendSourceExpression()
111 val length = sb.length in appendSourceExpression()
[all …]
DUAnnotationItem.kt63 val sb = StringBuilder(60) in toSource() constant
64 appendAnnotation(codebase, sb, uAnnotation, qualifiedName, target, showDefaultAttrs) in toSource()
65 return sb.toString() in toSource()
129 sb: StringBuilder, in appendAnnotation()
140 sb.append("@$qualifiedName") in appendAnnotation()
144 sb.append("@") in appendAnnotation()
145 sb.append(qualifiedName) in appendAnnotation()
146 sb.append("(") in appendAnnotation()
152 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in appendAnnotation()
159 sb.append(", ") in appendAnnotation()
[all …]
DPsiAnnotationItem.kt61 val sb = StringBuilder(60) in toSource() constant
62 appendAnnotation(codebase, sb, psiAnnotation, qualifiedName, target, showDefaultAttrs) in toSource()
63 return sb.toString() in toSource()
129 sb: StringBuilder, in appendAnnotation()
141 sb.append("@$outputName") in appendAnnotation()
145 sb.append("@") in appendAnnotation()
146 sb.append(outputName) in appendAnnotation()
147 sb.append("(") in appendAnnotation()
155 sb, in appendAnnotation()
167 sb.append(", ") in appendAnnotation()
[all …]
DJavadoc.kt571 val sb = StringBuilder(documentation.length) in toFullyQualifiedDocumentation() constant
572 expand(owner, comment, sb) in toFullyQualifiedDocumentation()
574 return sb.toString() in toFullyQualifiedDocumentation()
599 private fun expand(owner: PsiItem, element: PsiElement, sb: StringBuilder) { in expand()
602 sb.append(element.text) in expand()
609 sb.append("android.") in expand()
612 sb.append(text) in expand()
649 sb.append(text) in expand()
672 sb.append(className) in expand()
673 sb.append('#') in expand()
[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/metalava/src/main/java/com/android/tools/metalava/cli/common/
DTerminal.kt86 val sb = StringBuilder() in attributes() constant
87 sb.append("\u001B[") in attributes()
89 sb.append('3').append('0' + foreground.value) in attributes()
92 if (sb.last().isDigit()) sb.append(';') in attributes()
93 sb.append('4').append('0' + background.value) in attributes()
96 if (sb.last().isDigit()) sb.append(';') in attributes()
97 sb.append('1') in attributes()
100 if (sb.last().isDigit()) sb.append(';') in attributes()
101 sb.append('3') in attributes()
104 if (sb.last().isDigit()) sb.append(';') in attributes()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DConsoleResultReporter.java122 StringBuilder sb = new StringBuilder(tag); in testRunEnded() local
123 sb.append(": "); in testRunEnded()
124 sb.append(runName); in testRunEnded()
125 sb.append(": "); in testRunEnded()
129 sb.append(String.format("%s=%s\n", metricKey, metrics.get(metricKey))); in testRunEnded()
131 print(sb.toString()); in testRunEnded()
140 StringBuilder sb = new StringBuilder(); in invocationEnded() local
141 sb.append("========== Result Summary =========="); in invocationEnded()
142 sb.append(String.format("\nResults summary for test-tag '%s': ", mTestTag)); in invocationEnded()
143 sb.append(mResultCountListener.getTotalTests()); in invocationEnded()
[all …]
DReportPassedTests.java134 StringBuilder sb = new StringBuilder(); in createPassedLog() local
136 sb.append(createFilters(result, getBaseName(result), false)); in createPassedLog()
138 if (sb.length() > 0) { in createPassedLog()
140 FileUtil.writeToFile(sb.toString(), mPassedTests, true); in createPassedLog()
174 StringBuilder sb = new StringBuilder(); in createFilters() local
176 sb.append(baseName); in createFilters()
177 sb.append("\n"); in createFilters()
178 return sb.toString(); in createFilters()
188 sb.append(baseName + " " + res.getKey().toString()); in createFilters()
189 sb.append("\n"); in createFilters()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/
DDDBenchmarkTest.java281 StringBuilder sb = new StringBuilder(); in buildDDCommand()
282 sb.append(ddBinary); in buildDDCommand()
284 sb.append(" if="); in buildDDCommand()
285 sb.append(inputFile); in buildDDCommand()
288 sb.append(" of="); in buildDDCommand()
289 sb.append(outputFile); in buildDDCommand()
292 sb.append(" ibs="); in buildDDCommand()
293 sb.append(inputBlockSize); in buildDDCommand()
296 sb.append(" obs="); in buildDDCommand()
297 sb.append(outputBlockSize); in buildDDCommand()
[all …]
DInodeopBenchmarkTest.java181 StringBuilder sb = new StringBuilder(); in buildInodeopCommand()
182 sb.append(inodeopBinary); in buildInodeopCommand()
184 sb.append(" -d "); in buildInodeopCommand()
185 sb.append(directory); in buildInodeopCommand()
188 sb.append(" -f "); in buildInodeopCommand()
189 sb.append(fromDirectory); in buildInodeopCommand()
192 sb.append(" -t "); in buildInodeopCommand()
193 sb.append(toDirectory); in buildInodeopCommand()
195 if (maintainState) sb.append(" -s"); in buildInodeopCommand()
196 sb.append(" -n "); in buildInodeopCommand()
[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/testtype/suite/
DSuiteTestFilter.java128 StringBuilder sb = new StringBuilder(); in toString() local
130 sb.append(mShardIndex.toString()); in toString()
131 sb.append(" "); in toString()
134 sb.append(mAbi.trim()); in toString()
135 sb.append(" "); in toString()
138 sb.append(mName.trim()); in toString()
141 sb.append(" "); in toString()
142 sb.append(mTest.trim()); in toString()
144 return sb.toString(); in toString()
163 StringBuilder sb = new StringBuilder(); in getModuleId() local
[all …]
/tools/metalava/metalava-model-source/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt46 val sb = StringBuilder(source.length) in packageNameWithDefault() constant
66 sb.append(c) in packageNameWithDefault()
70 sb.append(c) in packageNameWithDefault()
72 else -> sb.append(c) in packageNameWithDefault()
84 sb.append('/') // because we skipped it in init in packageNameWithDefault()
85 sb.append(c) in packageNameWithDefault()
128 sb.append(c) in packageNameWithDefault()
131 sb.append(c) in packageNameWithDefault()
138 sb.append(c) in packageNameWithDefault()
141 sb.append(c) in packageNameWithDefault()
[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/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt316 val sb = StringBuilder(100) in <lambda>() constant
317 sb.append("Requires ") in <lambda>()
322 any -> sb.append(" or ") in <lambda>()
323 else -> sb.append(" and ") in <lambda>()
333 sb.append( in <lambda>()
355 sb.append(value.toSource()) in <lambda>()
358 sb.append( in <lambda>()
367 sb.append( in <lambda>()
374 appendDocumentation(sb.toString(), item, false) in <lambda>()
406 val sb = StringBuilder(100) in <lambda>() constant
[all …]
/tools/metalava/metalava-reporter/src/main/java/com/android/tools/metalava/reporter/
DBaseline.kt197 val sb = StringBuilder() in <lambda>() constant
198 sb.append(BASELINE_FILE_HEADER) in <lambda>()
199 sb.append(headerComment) in <lambda>()
208 sb.append(issue.name).append(": ") in <lambda>()
209 sb.append(elementId) in <lambda>()
210 sb.append(":\n ") in <lambda>()
211 sb.append(message).append('\n') in <lambda>()
213 sb.append("\n\n") in <lambda>()
216 if (sb.endsWith("\n\n")) { in <lambda>()
217 sb.setLength(sb.length - 2) in <lambda>()
[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/tradefederation/core/src/com/android/tradefed/util/
DQuotationAwareTokenizer.java164 StringBuilder sb = new StringBuilder(); in combineTokens() local
169 sb.append('"'); in combineTokens()
170 sb.append(token); in combineTokens()
171 sb.append('"'); in combineTokens()
173 sb.append(token); in combineTokens()
177 sb.append(' '); in combineTokens()
180 return sb.toString(); in combineTokens()
DStringUtil.java42 final StringBuffer sb = new StringBuffer(); in expand() local
48 m.appendReplacement(sb, Matcher.quoteReplacement(value)); in expand()
50 m.appendTail(sb); in expand()
51 return sb.toString(); in expand()
DAbiFormatter.java58 StringBuffer sb = new StringBuffer(); in formatCmdForAbi() local
62 m.appendReplacement(sb, ""); in formatCmdForAbi()
64 m.appendReplacement(sb, abi); in formatCmdForAbi()
67 m.appendTail(sb); in formatCmdForAbi()
68 return sb.toString(); in formatCmdForAbi()
/tools/loganalysis/src/com/android/loganalysis/util/
DArrayUtil.java76 StringBuilder sb = new StringBuilder(); in internalJoin() local
83 sb.append(sep); in internalJoin()
88 sb.append("null"); in internalJoin()
90 sb.append(obj.toString()); in internalJoin()
93 return sb.toString(); in internalJoin()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DArrayUtil.java75 StringBuilder sb = new StringBuilder(); in internalJoin() local
82 sb.append(sep); in internalJoin()
87 sb.append("null"); in internalJoin()
89 sb.append(obj.toString()); in internalJoin()
92 return sb.toString(); in internalJoin()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DDefaultReporter.kt252 val sb = StringBuilder(100) in format() constant
254 sb.append(terminal.attributes(bold = true)) in format()
255 location?.let { sb.append(it).append(": ") } in format()
257 INFO -> sb.append(terminal.attributes(foreground = TerminalColor.CYAN)).append("info: ") in format()
260 sb.append(terminal.attributes(foreground = TerminalColor.YELLOW)) in format()
263 sb.append(terminal.attributes(foreground = TerminalColor.RED)).append("error: ") in format()
267 sb.append(terminal.reset()) in format()
268 sb.append(message) in format()
269 sb.append(severity.messageSuffix) in format()
270 id?.let { sb.append(" [").append(it.name).append("]") } in format()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DDeviceAllocationResult.java57 StringBuilder sb = new StringBuilder(); in createReasonMessage() local
63 sb.append(String.format("device '%s': %s", serial, reason)); in createReasonMessage()
66 sb.append("No reason returned."); in createReasonMessage()
68 return sb.toString(); in createReasonMessage()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestListTestParser.java90 StringBuilder sb = new StringBuilder(); in getTestClass() local
91 sb.append(mTestRunName); in getTestClass()
92 sb.append("."); in getTestClass()
93 sb.append(name); in getTestClass()
94 return sb.toString(); in getTestClass()

123