Home
last modified time | relevance | path

Searched refs:StringWriter (Results 1 – 25 of 225) sorted by relevance

123456789

/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DMainTest.java30 import java.io.StringWriter;
55 StringWriter out = new StringWriter(); in testUsageOutput()
56 StringWriter err = new StringWriter(); in testUsageOutput()
81 StringWriter out = new StringWriter(); in version()
82 StringWriter err = new StringWriter(); in version()
160 StringWriter out = new StringWriter(); in javadoc()
196 StringWriter out = new StringWriter(); in imports()
237 StringWriter out = new StringWriter(); in optimizeImportsDoesNotLeaveEmptyLines()
266 StringWriter out = new StringWriter(); in importRemovalLines()
289 StringWriter out = new StringWriter(); in importRemoveErrorParseError()
[all …]
DDiagnosticTest.java25 import java.io.StringWriter;
73 StringWriter stdout = new StringWriter(); in parseError()
74 StringWriter stderr = new StringWriter(); in parseError()
91 StringWriter stdout = new StringWriter(); in lexError()
92 StringWriter stderr = new StringWriter(); in lexError()
111 StringWriter stdout = new StringWriter(); in oneFileParseError()
112 StringWriter stderr = new StringWriter(); in oneFileParseError()
133 StringWriter stdout = new StringWriter(); in oneFileParseErrorReplace()
134 StringWriter stderr = new StringWriter(); in oneFileParseErrorReplace()
161 StringWriter out = new StringWriter(); in parseError2()
[all …]
DPartialFormattingTest.java27 import java.io.StringWriter;
402 StringWriter out = new StringWriter(); in testLength()
403 StringWriter err = new StringWriter(); in testLength()
434 StringWriter out = new StringWriter(); in testLengthRange()
435 StringWriter err = new StringWriter(); in testLengthRange()
480 StringWriter out = new StringWriter(); in statementAndComments()
481 StringWriter err = new StringWriter(); in statementAndComments()
526 StringWriter out = new StringWriter(); in statementAndComments2()
527 StringWriter err = new StringWriter(); in statementAndComments2()
572 StringWriter out = new StringWriter(); in statementAndComments3()
[all …]
DFormatterTest.java29 import java.io.StringWriter;
68 StringWriter out = new StringWriter(); in testFormatAosp()
69 StringWriter err = new StringWriter(); in testFormatAosp()
79 StringWriter out = new StringWriter(); in testFormatNonJavaFiles()
80 StringWriter err = new StringWriter(); in testFormatNonJavaFiles()
98 StringWriter out = new StringWriter(); in testFormatStdinStdoutWithDashFlag()
99 StringWriter err = new StringWriter(); in testFormatStdinStdoutWithDashFlag()
120 StringWriter out = new StringWriter(); in testFormatLengthUpToEOF()
121 StringWriter err = new StringWriter(); in testFormatLengthUpToEOF()
137 StringWriter out = new StringWriter(); in testFormatLengthOutOfRange()
[all …]
/external/perfetto/src/base/
Dstring_writer_unittest.cc28 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
33 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
38 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
43 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
48 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
53 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
58 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
63 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
68 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
73 base::StringWriter writer(buffer, sizeof(buffer)); in TEST()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/
DBasicGeneratorFilteringTest.java109 StringWriter w = new StringWriter(); in testNonFiltering()
120 StringWriter w = new StringWriter(); in testSingleMatchFilteringWithoutPath()
139 StringWriter w = new StringWriter(); in testSingleMatchFilteringWithPath()
161 StringWriter w = new StringWriter(); in testSingleMatchFilteringWithPathSkippedArray()
189 StringWriter w = new StringWriter(); in _testSingleMatchFilteringWithPathAlternate1()
239 StringWriter w = new StringWriter(); in testSingleMatchFilteringWithPathRawBinary()
290 StringWriter w = new StringWriter(); in testMultipleMatchFilteringWithPath1()
301 w = new StringWriter(); in testMultipleMatchFilteringWithPath1()
308 w = new StringWriter(); in testMultipleMatchFilteringWithPath1()
317 StringWriter w = new StringWriter(); in testMultipleMatchFilteringWithPath2()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/seq/
DSequenceWriterTest.java5 import java.io.StringWriter;
98 StringWriter strw = new StringWriter(); in testSimpleNonArray()
111 strw = new StringWriter(); in testSimpleNonArray()
126 StringWriter strw = new StringWriter(); in testSimpleArray()
135 strw = new StringWriter(); in testSimpleArray()
157 StringWriter strw = new StringWriter(); in testPolymorphicNonArrayWithoutType()
170 StringWriter strw = new StringWriter(); in testPolymorphicArrayWithoutType()
182 StringWriter strw = new StringWriter(); in testPolymorphicArrayWithType()
203 StringWriter out = new StringWriter(); in testSimpleCloseable()
220 StringWriter out = new StringWriter(); in testWithExplicitType()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DDataReadWriteTest.java15 import java.io.StringWriter;
48 StringWriter sw = new StringWriter(); in testOpenClose()
64 StringWriter sw = new StringWriter(); in testBool()
99 StringWriter sw = new StringWriter(); in testBoolArray()
120 StringWriter sw = new StringWriter(); in testCharacter()
155 StringWriter sw = new StringWriter(); in testCharacterArray()
176 StringWriter sw = new StringWriter(); in testNamedIndex()
214 StringWriter sw = new StringWriter(); in testNamedIndexArray()
235 StringWriter sw = new StringWriter(); in testString()
286 StringWriter sw = new StringWriter(); in testStringArray()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DDataReadWriteTest.java16 import java.io.StringWriter;
51 StringWriter sw = new StringWriter(); in testOpenClose()
67 StringWriter sw = new StringWriter(); in testBool()
102 StringWriter sw = new StringWriter(); in testBoolArray()
123 StringWriter sw = new StringWriter(); in testCharacter()
158 StringWriter sw = new StringWriter(); in testCharacterArray()
179 StringWriter sw = new StringWriter(); in testNamedIndex()
217 StringWriter sw = new StringWriter(); in testNamedIndexArray()
238 StringWriter sw = new StringWriter(); in testString()
289 StringWriter sw = new StringWriter(); in testStringArray()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/
DPrettyPrinterTest.java52 StringWriter sw = new StringWriter(); in testObjectCount()
77 StringWriter sw = new StringWriter(); in testArrayCount()
98 StringWriter sw = new StringWriter(); in testSimpleDocWithDefault()
108 StringWriter sw = new StringWriter(); in testSimpleDocWithMinimal()
150 StringWriter sw = new StringWriter(); in testCustomRootSeparatorWithFactory()
161 StringWriter sw = new StringWriter(); in testCustomSeparatorsWithMinimal()
189 StringWriter sw = new StringWriter(); in testCustomSeparatorsWithPP()
207 StringWriter sw = new StringWriter(); in testCustomSeparatorsWithPPWithoutSpaces()
230 private String _verifyPrettyPrinter(JsonGenerator gen, StringWriter sw) throws Exception in _verifyPrettyPrinter()
287 StringWriter sw = new StringWriter(); in _generateRoot()
DWriteTypeIdTest.java3 import java.io.StringWriter;
19 StringWriter sw = new StringWriter(); in testNoNativeTypeIdForJson()
42 StringWriter sw = new StringWriter(); in testBasicTypeIdWriteForObject()
53 sw = new StringWriter(); in testBasicTypeIdWriteForObject()
65 sw = new StringWriter(); in testBasicTypeIdWriteForObject()
77 sw = new StringWriter(); in testBasicTypeIdWriteForObject()
99 StringWriter sw = new StringWriter(); in testBasicTypeIdWriteForArray()
112 sw = new StringWriter(); in testBasicTypeIdWriteForArray()
DGeneratorBasicTest.java83 StringWriter sw = new StringWriter(); in testBooleanWrite()
108 StringWriter sw = new StringWriter(); in testNullWrite()
137 StringWriter sw = new StringWriter(); in _testRootIntsWrite()
177 StringWriter sw = new StringWriter(); in _testFieldValueWrites()
209 StringWriter sw = new StringWriter(); in testOutputContext()
282 StringWriter sw = new StringWriter(); in testGetOutputTarget()
296 StringWriter sw = new StringWriter(); in testGetOutputBufferd()
348 StringWriter sw = new StringWriter(); in doTestIntValueWrite()
404 StringWriter sw = new StringWriter(); in doTestLongValueWrite()
DGeneratorCopyTest.java23 StringWriter sw = new StringWriter(); in testCopyRootTokens()
45 StringWriter sw = new StringWriter(); in testCopyArrayTokens()
71 StringWriter sw = new StringWriter(); in testCopyObjectTokens()
84 sw = new StringWriter(); in testCopyObjectTokens()
DGeneratorMiscTest.java31 JSON_F.createGenerator(new StringWriter()) in testIsClosed()
50 StringWriter sw = new StringWriter(); in testSimpleWriteObject()
67 sw = new StringWriter(); in testSimpleWriteObject()
78 sw = new StringWriter(); in testSimpleWriteObject()
98 StringWriter sw = new StringWriter(); in testRaw()
120 StringWriter sw = new StringWriter(); in testRawValue()
241 StringWriter sw = new StringWriter(); in testAsEmbedded()
DArrayWriteTest.java17 StringWriter sw = new StringWriter(); in testEmptyArrayWrite()
54 sw = new StringWriter(); in testEmptyArrayWrite()
74 StringWriter sw = new StringWriter(); in testInvalidArrayWrite()
90 StringWriter sw = new StringWriter(); in testSimpleArrayWrite()
DObjectWriteTest.java19 StringWriter sw = new StringWriter(); in testEmptyObjectWrite()
61 StringWriter sw = new StringWriter(); in testInvalidObjectWrite()
77 StringWriter sw = new StringWriter(); in testSimpleObjectWrite()
113 StringWriter sw = new StringWriter(); in testConvenienceMethods()
221 StringWriter sw = new StringWriter(); in testConvenienceMethodsWithNulls()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/
DGeneratorFeaturesTest.java21 JsonGenerator g = JSON_F.createGenerator(new StringWriter()); in testConfigDefaults()
40 JsonGenerator g = JSON_F.createGenerator(new StringWriter()); in testConfigOverrides()
118 StringWriter sw = new StringWriter(); in testBigDecimalAsPlain()
125 sw = new StringWriter(); in testBigDecimalAsPlain()
140 StringWriter sw = new StringWriter(); in testBigDecimalAsPlainString()
174 g = f.createGenerator(new StringWriter()); in testTooBigBigDecimal()
192 g = f.createGenerator(new StringWriter()); in testTooBigBigDecimal()
213 StringWriter sw = new StringWriter(); in _writeNumbers()
269 StringWriter sw = useBytes ? null : new StringWriter(); in _testFieldNameQuotingEnabled()
290 StringWriter w = new StringWriter(); in testChangeOnGenerator()
[all …]
DCustomQuoteCharTest.java29 StringWriter w; in testBasicAposWithCharBased()
33 w = new StringWriter(); in testBasicAposWithCharBased()
40 w = new StringWriter(); in testBasicAposWithCharBased()
69 StringWriter w; in testAposQuotingWithCharBased()
73 w = new StringWriter(); in testAposQuotingWithCharBased()
81 w = new StringWriter(); in testAposQuotingWithCharBased()
/external/jacoco/org.jacoco.cli.test/src/org/jacoco/cli/internal/
DCommandTestBase.java19 import java.io.StringWriter;
30 protected StringWriter out;
31 protected StringWriter err;
36 out = new StringWriter(); in before()
37 err = new StringWriter(); in before()
54 protected void assertNoOutput(StringWriter buffer) { in assertNoOutput()
58 protected void assertContains(String expected, StringWriter buffer) { in assertContains()
63 protected void assertContainsNot(String expected, StringWriter buffer) { in assertContainsNot()
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DCaliperTestWatcher.java31 import java.io.StringWriter;
46 private StringWriter stdout;
47 private final StringWriter stderr = new StringWriter();
84 this.stdout = new StringWriter(); in run()
112 public StringWriter getStderr() { in getStderr()
116 public StringWriter getStdout() { in getStdout()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestTreeSerialization.java35 StringWriter sw = new StringWriter(); in testSimpleViaObjectMapper()
63 StringWriter sw = new StringWriter(); in testPOJOString()
79 StringWriter sw = new StringWriter(); in testPOJOIntArray()
103 StringWriter sw = new StringWriter(); in testPOJOBean()
/external/guava/guava-tests/test/com/google/common/io/
DCharStreamsTest.java26 import java.io.StringWriter;
149 Appendable secretlyAWriter = new StringWriter(); in testAsWriter()
197 StringWriter writer = new StringWriter(); in testCopy_toWriter_fromReader()
202 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReader()
209 StringWriter writer = new StringWriter(); in testCopy_toWriter_fromReadable()
214 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReadable()
/external/guava/android/guava-tests/test/com/google/common/io/
DCharStreamsTest.java26 import java.io.StringWriter;
149 Appendable secretlyAWriter = new StringWriter(); in testAsWriter()
197 StringWriter writer = new StringWriter(); in testCopy_toWriter_fromReader()
202 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReader()
209 StringWriter writer = new StringWriter(); in testCopy_toWriter_fromReadable()
214 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReadable()
/external/perfetto/tools/trace_to_text/
Dtrace_to_systrace.cc89 base::StringWriter* writer) { in FormatProcess()
102 base::StringWriter* writer) { in FormatThread()
128 base::StringWriter line_writer(buffer, base::ArraySize(buffer)); in RunQuery()
159 base::StringWriter global_writer_;
205 auto p_callback = [](Iterator* it, base::StringWriter* writer) { in ExtractSystrace()
223 auto t_callback = [](Iterator* it, base::StringWriter* writer) { in ExtractSystrace()
248 auto e_callback = [&raw_events](Iterator* it, base::StringWriter*) { in ExtractSystrace() argument
255 base::StringWriter* writer) { in ExtractSystrace()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/util/
DTestDefaultPrettyPrinter.java5 import java.io.StringWriter;
91 StringWriter sw = new StringWriter(); in testRootSeparator()
116 sw = new StringWriter(); in testRootSeparator()
136 StringWriter sw; in _printTestData()
144 sw = new StringWriter(); in _printTestData()

123456789