/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/ |
D | MainTest.java | 30 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 …]
|
D | DiagnosticTest.java | 25 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 …]
|
D | PartialFormattingTest.java | 27 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 …]
|
D | FormatterTest.java | 29 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/ |
D | string_writer_unittest.cc | 28 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/ |
D | BasicGeneratorFilteringTest.java | 109 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/ |
D | SequenceWriterTest.java | 5 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/ |
D | DataReadWriteTest.java | 15 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/ |
D | DataReadWriteTest.java | 16 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/ |
D | PrettyPrinterTest.java | 52 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()
|
D | WriteTypeIdTest.java | 3 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()
|
D | GeneratorBasicTest.java | 83 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()
|
D | GeneratorCopyTest.java | 23 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()
|
D | GeneratorMiscTest.java | 31 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()
|
D | ArrayWriteTest.java | 17 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()
|
D | ObjectWriteTest.java | 19 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/ |
D | GeneratorFeaturesTest.java | 21 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 …]
|
D | CustomQuoteCharTest.java | 29 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/ |
D | CommandTestBase.java | 19 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/ |
D | CaliperTestWatcher.java | 31 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/ |
D | TestTreeSerialization.java | 35 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/ |
D | CharStreamsTest.java | 26 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/ |
D | CharStreamsTest.java | 26 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/ |
D | trace_to_systrace.cc | 89 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/ |
D | TestDefaultPrettyPrinter.java | 5 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()
|