Home
last modified time | relevance | path

Searched refs:stringBuilder (Results 1 – 7 of 7) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DStringReplaceAllBenchmark.java44 StringBuilder stringBuilder = new StringBuilder(length); in makeString() local
48 stringBuilder.append(sequence8); in makeString()
52 stringBuilder.append("qrstuvwx"); in makeString()
54 return stringBuilder.toString(); in makeString()
DStringReplaceBenchmark.java39 StringBuilder stringBuilder = new StringBuilder(length); in makeString() local
43 stringBuilder.append(sequence8); in makeString()
47 stringBuilder.append("qrstuvwx"); in makeString()
49 return stringBuilder.toString(); in makeString()
/libcore/luni/src/test/java/libcore/libcore/reflect/
DParameterizedTypeRegressionTest.java249 StringBuilder stringBuilder = new StringBuilder(); in toString() local
251 stringBuilder.append(ownerType.getTypeName()); in toString()
252 stringBuilder.append('$'); in toString()
253 stringBuilder.append(rawType.getSimpleName()); in toString()
255 stringBuilder.append(rawType.getName()); in toString()
257 stringBuilder.append('<'); in toString()
261 stringBuilder.append(Joiner.on(", ").join(typeArgumentNames)); in toString()
262 stringBuilder.append('>'); in toString()
263 return stringBuilder.toString(); in toString()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DStandardCharsetsEncoderTest.java165 StringBuilder stringBuilder = new StringBuilder(); in createCodePointInfo() local
169 stringBuilder.append(Integer.toString(codePoint)); in createCodePointInfo()
170 stringBuilder.append(DELIMITER); in createCodePointInfo()
171 stringBuilder.append(Boolean.toString(encoder.canEncode(utf16))); in createCodePointInfo()
172 stringBuilder.append(DELIMITER); in createCodePointInfo()
186 stringBuilder.append(createBytesString(bytes)); in createCodePointInfo()
191 return stringBuilder.toString(); in createCodePointInfo()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DCharacterDataImpl.java57 public void appendDataTo(StringBuilder stringBuilder) { in appendDataTo() argument
58 stringBuilder.append(buffer); in appendDataTo()
/libcore/libart/src/main/java/java/lang/
DStringFactory.java148 public static String newStringFromStringBuilder(StringBuilder stringBuilder) { in newStringFromStringBuilder() argument
149 return newStringFromChars(stringBuilder.getValue(), 0, stringBuilder.length()); in newStringFromStringBuilder()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java4847 StringBuilder stringBuilder = new StringBuilder(); in test_findWithinHorizon_LPatternI() local
4849 stringBuilder.append('a'); in test_findWithinHorizon_LPatternI()
4851 s = new Scanner(stringBuilder.toString()); in test_findWithinHorizon_LPatternI()
4854 assertEquals(stringBuilder.toString().length(), result.length()); in test_findWithinHorizon_LPatternI()
4855 assertEquals(stringBuilder.toString(), result); in test_findWithinHorizon_LPatternI()
4859 stringBuilder = new StringBuilder(); in test_findWithinHorizon_LPatternI()
4861 stringBuilder.append('a'); in test_findWithinHorizon_LPatternI()
4863 s = new Scanner(stringBuilder.toString()); in test_findWithinHorizon_LPatternI()
4867 assertEquals(stringBuilder.subSequence(0, 1022), result); in test_findWithinHorizon_LPatternI()
4870 stringBuilder = new StringBuilder(); in test_findWithinHorizon_LPatternI()
[all …]