Home
last modified time | relevance | path

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

12

/tools/metalava/src/main/java/com/android/tools/metalava/
DTerminal.kt39 val sb = StringBuilder() in terminalAttributes() constant
40 sb.append("\u001B[") in terminalAttributes()
42 sb.append('3').append('0' + foreground.value) in terminalAttributes()
45 if (sb.last().isDigit()) in terminalAttributes()
46 sb.append(';') in terminalAttributes()
47 sb.append('4').append('0' + background.value) in terminalAttributes()
51 if (sb.last().isDigit()) in terminalAttributes()
52 sb.append(';') in terminalAttributes()
53 sb.append('1') in terminalAttributes()
56 if (sb.last().isDigit()) in terminalAttributes()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DConsoleResultReporter.java79 StringBuilder sb = new StringBuilder(); in getInvocationSummary() local
81 sb.append(getTestRunSummary(testRunResult)); in getInvocationSummary()
84 sb.append("Log Files:\n"); in getInvocationSummary()
87 sb.append(String.format(" %s\n", url != null ? url : logFile.getPath())); in getInvocationSummary()
90 return "Test results:\n" + sb.toString().trim() + "\n"; in getInvocationSummary()
97 StringBuilder sb = new StringBuilder(); in getTestRunSummary() local
98 sb.append(String.format("%s:", testRunResult.getName())); in getTestRunSummary()
100 sb.append(String.format(" %d Test%s, %d Passed, %d Failed, %d Ignored", in getTestRunSummary()
107 sb.append(" No results"); in getTestRunSummary()
109 sb.append("\n"); in getTestRunSummary()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMonkeyLogParserFuncTest.java82 StringBuffer sb = new StringBuffer(); in testParse() local
83 sb.append("Stats for monkey log:\n"); in testParse()
84 sb.append(String.format(" Start time: %s\n", monkeyLog.getStartTime())); in testParse()
85 sb.append(String.format(" Stop time: %s\n", monkeyLog.getStopTime())); in testParse()
86 sb.append(String.format(" Parameters: target-count=%d, throttle=%d, seed=%d, " + in testParse()
90 sb.append(String.format(" Packages: %s\n", monkeyLog.getPackages())); in testParse()
91 sb.append(String.format(" Categories: %s\n", monkeyLog.getCategories())); in testParse()
93 sb.append(" Status: no-activities=true\n"); in testParse()
95 sb.append(String.format(" Status: finished=%b, final-count=%d, " + in testParse()
99 sb.append(" Dropped events:"); in testParse()
[all …]
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt42 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/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 …]
DAdbScreenrecordTest.java329 StringBuilder sb = new StringBuilder(128); in generateAdbScreenRecordCommand() local
330 sb.append("screenrecord --verbose ").append(getAbsoluteFilename()); in generateAdbScreenRecordCommand()
335 sb.append(SPACE).append(OPTION_TIME_LIMIT).append(SPACE).append(timeLimit); in generateAdbScreenRecordCommand()
339 sb.append(SPACE).append(OPTION_SIZE).append(SPACE).append(mVideoSize); in generateAdbScreenRecordCommand()
343 sb.append(SPACE).append(OPTION_BITRATE).append(SPACE).append(mBitRate); in generateAdbScreenRecordCommand()
346 return sb.toString(); in generateAdbScreenRecordCommand()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiMethodItem.kt247 val sb = StringBuilder(100) in <lambda>() constant
255 sb.append(modifierString.toString()) in <lambda>()
259 sb.append(' ') in <lambda>()
260 sb.append(TypeItem.convertTypeString(typeParameters, replacementMap)) in <lambda>()
264 sb.append(returnType?.convertTypeString(replacementMap)) in <lambda>()
266 sb.append(' ') in <lambda>()
267 sb.append(method.name()) in <lambda>()
269 sb.append("(") in <lambda>()
272 sb.append(", ") in <lambda>()
275 sb.append(parameter.type().convertTypeString(replacementMap)) in <lambda>()
[all …]
DPsiItem.kt160 val sb = StringBuilder(documentation.length) in fullyQualifiedDocumentation() constant
164 sb.append(getExpanded(curr)) in fullyQualifiedDocumentation()
166 sb.append(curr.text) in fullyQualifiedDocumentation()
171 return sb.toString() in fullyQualifiedDocumentation()
312 val sb = StringBuilder() in javadoc() constant
313 comments.asSequence().joinTo(buffer = sb, separator = "\n") in javadoc()
314 return sb.toString() in javadoc()
/tools/tradefederation/core/src/com/android/tradefed/util/
DQuotationAwareTokenizer.java132 StringBuilder sb = new StringBuilder(); in combineTokens() local
137 sb.append('"'); in combineTokens()
138 sb.append(token); in combineTokens()
139 sb.append('"'); in combineTokens()
141 sb.append(token); in combineTokens()
145 sb.append(' '); in combineTokens()
148 return sb.toString(); in combineTokens()
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()
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()
DSubprocessTestResultsParser.java213 StringBuilder sb = new StringBuilder(); in SubprocessTestResultsParser() local
214 sb.append(StatusKeys.INVOCATION_FAILED).append("|"); in SubprocessTestResultsParser()
215 sb.append(StatusKeys.TEST_ASSUMPTION_FAILURE).append("|"); in SubprocessTestResultsParser()
216 sb.append(StatusKeys.TEST_ENDED).append("|"); in SubprocessTestResultsParser()
217 sb.append(StatusKeys.TEST_FAILED).append("|"); in SubprocessTestResultsParser()
218 sb.append(StatusKeys.TEST_IGNORED).append("|"); in SubprocessTestResultsParser()
219 sb.append(StatusKeys.TEST_STARTED).append("|"); in SubprocessTestResultsParser()
220 sb.append(StatusKeys.TEST_RUN_ENDED).append("|"); in SubprocessTestResultsParser()
221 sb.append(StatusKeys.TEST_RUN_FAILED).append("|"); in SubprocessTestResultsParser()
222 sb.append(StatusKeys.TEST_RUN_STARTED).append("|"); in SubprocessTestResultsParser()
[all …]
DSimplePerfUtil.java147 StringBuilder sb = new StringBuilder("simpleperf "); in commandPrependPreparer() local
148 sb.append(mType.toString()).append(" "); in commandPrependPreparer()
151 sb.append(argu).append(" "); in commandPrependPreparer()
154 mCachedCommandPrepend = sb; in commandPrependPreparer()
DStreamUtil.java337 StringBuilder sb = new StringBuilder(2 * bytes.length); in bytesToHexString() local
340 sb.append(HEX_CHARS[b]); in bytesToHexString()
342 sb.append(HEX_CHARS[b]); in bytesToHexString()
344 return sb.toString(); in bytesToHexString()
/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 …]
DFat16BootSector.java103 final StringBuilder sb = new StringBuilder(); in getVolumeLabel() local
109 sb.append(c); in getVolumeLabel()
115 return sb.toString(); in getVolumeLabel()
DDummy83BufferGenerator.java90 final StringBuilder sb = new StringBuilder(str.length()); in stripLeadingPeriods() local
94 sb.append(str.substring(i)); in stripLeadingPeriods()
99 return sb.toString(); in stripLeadingPeriods()
DShortName.java179 StringBuilder sb = new StringBuilder(); in toString() local
181 sb.append(Integer.toHexString(name[i])); in toString()
182 sb.append(' '); in toString()
187 sb.toString() + "]"; // NOI18N in toString()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiElement.java205 StringBuilder sb = new StringBuilder(); in encodeAttribute() local
212 sb.append("&quot;"); //$NON-NLS-1$ in encodeAttribute()
214 sb.append("&lt;"); //$NON-NLS-1$ in encodeAttribute()
216 sb.append("&apos;"); //$NON-NLS-1$ in encodeAttribute()
218 sb.append("&amp;"); //$NON-NLS-1$ in encodeAttribute()
220 sb.append(c); in encodeAttribute()
224 return sb.toString(); in encodeAttribute()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTestListTestParser.java85 StringBuilder sb = new StringBuilder(); in getTestClass() local
86 sb.append(mTestRunName); in getTestClass()
87 sb.append("."); in getTestClass()
88 sb.append(name); in getTestClass()
89 return sb.toString(); in getTestClass()
DPythonUnitTestRunner.java129 StringBuilder sb = new StringBuilder(); in setPythonPath() local
130 sb.append(System.getenv(PYTHONPATH)); in setPythonPath()
136 sb.append(":"); in setPythonPath()
137 sb.append(pathdir.getAbsolutePath()); in setPythonPath()
140 sb.append(":"); in setPythonPath()
141 sb.append(getBuild().getFile(PYTHONPATH).getAbsolutePath()); in setPythonPath()
143 mPythonPath = sb.toString(); in setPythonPath()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DTableBuilderTest.java80 StringBuilder sb = new StringBuilder(); in generateString() local
82 sb.append(c); in generateString()
84 return sb.toString(); in generateString()
DStreamUtilTest.java163 StringBuilder sb = new StringBuilder(); in getLargeText() local
165 sb.append(text); in getLargeText()
167 return sb.toString(); in getLargeText()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java120 final StringBuilder sb = new StringBuilder(); in read() local
121 sb.append("read at ").append(devOffset); in read()
122 sb.append(" is off size (").append(getSize()).append(")"); in read()
124 throw new IllegalArgumentException(sb.toString()); in read()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiHelper.java539 StringBuilder sb = new StringBuilder("am instrument"); in buildWifiUtilCmdFromMap() local
542 sb.append(" -e "); in buildWifiUtilCmdFromMap()
543 sb.append(arg.getKey()); in buildWifiUtilCmdFromMap()
544 sb.append(" "); in buildWifiUtilCmdFromMap()
545 sb.append(quote(arg.getValue())); in buildWifiUtilCmdFromMap()
548 sb.append(" -w "); in buildWifiUtilCmdFromMap()
549 sb.append(INSTRUMENTATION_PKG); in buildWifiUtilCmdFromMap()
550 sb.append("/"); in buildWifiUtilCmdFromMap()
551 sb.append(INSTRUMENTATION_CLASS); in buildWifiUtilCmdFromMap()
553 return sb.toString(); in buildWifiUtilCmdFromMap()

12