Home
last modified time | relevance | path

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

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/utils/
DIndentingPrintWriterTest.java37 private StringWriter stringWriter; field in IndentingPrintWriterTest
42 stringWriter = new StringWriter(); in setUp()
44 new IndentingPrintWriter(new PrintWriter(stringWriter, /* autoFlush= */ true)); in setUp()
51 assertThat(stringWriter.toString()).isEqualTo(TEST_STRING + "\n"); in println_printString_noIndent()
58 assertThat(stringWriter.toString()) in println_printString_withIndent()
66 assertThat(stringWriter.toString()).isEqualTo(TEST_STRING + "\n"); in decreaseIndent_noIndent()
73 assertThat(stringWriter.toString()).isEqualTo(TEST_STRING + "\n"); in decreaseIndent_withIndent()
80 assertThat(stringWriter.toString()).isEqualTo(TEST_KEY + "=" + TEST_VALUE + "\n"); in printPair_singlePair()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DReferenceUtil.java67 StringWriter stringWriter = new StringWriter(); in getMethodProtoDescriptor() local
69 writeMethodProtoDescriptor(stringWriter, methodProtoReference); in getMethodProtoDescriptor()
74 return stringWriter.toString(); in getMethodProtoDescriptor()
146 StringWriter stringWriter = new StringWriter(); in getMethodHandleString() local
148 writeMethodHandle(stringWriter, methodHandleReference); in getMethodHandleString()
153 return stringWriter.toString(); in getMethodHandleString()
170 StringWriter stringWriter = new StringWriter(); in getCallSiteString() local
172 writeCallSite(stringWriter, callSiteReference); in getCallSiteString()
177 return stringWriter.toString(); in getCallSiteString()
/external/smali/dexlib2/src/test/java/org/jf/util/
DIndentingWriterTest.java43 StringWriter stringWriter = new StringWriter(); in testPrintSignedLongAsDec() local
44 IndentingWriter writer = new IndentingWriter(stringWriter); in testPrintSignedLongAsDec()
49 Assert.assertEquals("4294967295", stringWriter.toString()); in testPrintSignedLongAsDec()
/external/junit/src/main/java/junit/framework/
DTestFailure.java52 StringWriter stringWriter = new StringWriter(); in trace() local
53 PrintWriter writer = new PrintWriter(stringWriter); in trace()
55 return stringWriter.toString(); in trace()
DTestSuite.java106 StringWriter stringWriter = new StringWriter();
107 PrintWriter writer = new PrintWriter(stringWriter);
109 return stringWriter.toString();
/external/junit/src/main/java/org/junit/runner/notification/
DFailure.java73 StringWriter stringWriter = new StringWriter(); in getTrace() local
74 PrintWriter writer = new PrintWriter(stringWriter); in getTrace()
76 return stringWriter.toString(); in getTrace()
/external/junit/src/main/java/org/junit/internal/matchers/
DStacktracePrintingMatcher.java40 StringWriter stringWriter = new StringWriter(); in readStacktrace() local
41 throwable.printStackTrace(new PrintWriter(stringWriter)); in readStacktrace()
42 return stringWriter.toString(); in readStacktrace()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DBytecodeTypeInferenceTest.java41 StringWriter stringWriter = new StringWriter(); in testTypeInference() local
42 try (PrintWriter printWriter = new PrintWriter(stringWriter)) { in testTypeInference()
46 String inferenceResult = stringWriter.toString().trim(); in testTypeInference()
/external/smali/baksmali/src/test/java/org/jf/baksmali/
DAnalysisTest.java113 StringWriter stringWriter = new StringWriter(); in runTest() local
114 IndentingWriter writer = new IndentingWriter(stringWriter); in runTest()
125 BaksmaliTestUtils.normalizeWhitespace((stringWriter.toString()))); in runTest()
DBaksmaliTestUtils.java90 StringWriter stringWriter = new StringWriter(); in getNormalizedSmali() local
91 IndentingWriter writer = new IndentingWriter(stringWriter); in getNormalizedSmali()
95 return normalizeSmali(stringWriter.toString(), stripComments); in getNormalizedSmali()
/external/grpc-grpc-java/gae-interop-testing/gae-jdk8/src/main/java/io/grpc/testing/integration/
DNettyClientInteropServlet.java119 StringWriter stringWriter = new StringWriter(); in doGetHelper() local
120 PrintWriter printWriter = new PrintWriter(stringWriter); in doGetHelper()
122 writer.println(stringWriter); in doGetHelper()
/external/dagger2/javatests/dagger/internal/codegen/
DDaggerModuleMethodSubject.java171 StringWriter stringWriter = new StringWriter(); in moduleSource() local
172 PrintWriter writer = new PrintWriter(stringWriter); in moduleSource()
181 return stringWriter.toString(); in moduleSource()
/external/boringssl/src/util/fipstools/delocate/
Ddelocate.go48 type stringWriter interface { interface
62 output stringWriter
474 func establishTOC(w stringWriter) { argument
495 func (d *delocation) loadFromTOC(w stringWriter, symbol, offset, dest string) wrapperFunc {
857 func push(w stringWriter) wrapperFunc { argument
865 func compare(w stringWriter, instr, a, b string) wrapperFunc { argument
872 func (d *delocation) loadFromGOT(w stringWriter, destination, symbol, section string, redzoneCleare…
890 func saveFlags(w stringWriter, redzoneCleared bool) wrapperFunc { argument
902 func saveRegister(w stringWriter, avoidRegs []string) (wrapperFunc, string) { argument
931 func moveTo(w stringWriter, target string, isAVX bool, source string) wrapperFunc { argument
[all …]
/external/grpc-grpc-java/gae-interop-testing/gae-jdk7/src/main/java/io/grpc/testing/integration/
DOkHttpClientInteropServlet.java156 StringWriter stringWriter = new StringWriter(); in doGetHelper()
157 PrintWriter printWriter = new PrintWriter(stringWriter); in doGetHelper()
159 sb.append(stringWriter); in doGetHelper()
/external/guava/guava/src/com/google/common/base/
DThrowables.java351 StringWriter stringWriter = new StringWriter(); in getStackTraceAsString() local
352 throwable.printStackTrace(new PrintWriter(stringWriter)); in getStackTraceAsString()
353 return stringWriter.toString(); in getStackTraceAsString()
/external/guava/android/guava/src/com/google/common/base/
DThrowables.java351 StringWriter stringWriter = new StringWriter(); in getStackTraceAsString() local
352 throwable.printStackTrace(new PrintWriter(stringWriter)); in getStackTraceAsString()
353 return stringWriter.toString(); in getStackTraceAsString()
/external/junit/src/main/java/junit/runner/
DBaseTestRunner.java267 StringWriter stringWriter = new StringWriter(); in getFilteredTrace() local
268 PrintWriter writer = new PrintWriter(stringWriter); in getFilteredTrace()
270 String trace = stringWriter.toString(); in getFilteredTrace()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCldrFactory.java196 StringWriter stringWriter = new StringWriter(); in cldrFileToString() local
197 PrintWriter pw = new PrintWriter(stringWriter); in cldrFileToString()
200 return stringWriter.toString(); in cldrFileToString()
/external/smali/util/src/main/java/org/jf/util/jcommander/
DHelpFormatter.java134 StringWriter stringWriter = new StringWriter(); in format() local
135 … WrappedIndentingWriter writer = new WrappedIndentingWriter(stringWriter, width - 5, width); in format()
311 return stringWriter.getBuffer().toString(); in format()
/external/boringssl/src/crypto/err/
Derr_data_generate.go137 type stringWriter interface { interface
142 func (st *stringList) WriteTo(out stringWriter, name string) {
/external/cldr/tools/java/org/unicode/cldr/icu/
DIcuTextWriter.java75 try (StringWriter stringWriter = new StringWriter();) { in getHeader() argument
76 FileCopier.copy(NewLdml2IcuConverter.class, "ldml2icu_header.txt", stringWriter); in getHeader()
77 headerText = stringWriter.toString(); in getHeader()
/external/cldr/tools/java/org/unicode/cldr/tool/
DKeymanCheck.java40 final StringWriter stringWriter = new StringWriter(); in main() local
41 JsonWriter writer = gson.newJsonWriter(stringWriter); in main()
DSearchXml.java261 StringWriter stringWriter = new StringWriter(); in getXmlFileAsRelation()
262 PrintWriter arg0 = new PrintWriter(stringWriter); in getXmlFileAsRelation()
265 ERRORS.add("Can't read " + directory + "/" + fileName + "\n" + stringWriter); in getXmlFileAsRelation()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/adaptivestreaming/
DFlatManifestWriterImpl.java177 StringWriter stringWriter = new StringWriter(); in getManifest() local
178 Result result = new StreamResult(stringWriter); in getManifest()
190 return stringWriter.getBuffer().toString(); in getManifest()
/external/nist-sip/java/gov/nist/javax/sip/stack/
DSIPDialog.java557 StringWriter stringWriter = new StringWriter(); in recordStackTrace() local
558 PrintWriter writer = new PrintWriter(stringWriter); in recordStackTrace()
560 this.stackTrace = stringWriter.getBuffer().toString(); in recordStackTrace()