Home
last modified time | relevance | path

Searched refs:stringWriter (Results 1 – 22 of 22) 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/org/junit/internal/
DThrowables.java61 StringWriter stringWriter = new StringWriter(); in getStacktrace() local
62 PrintWriter writer = new PrintWriter(stringWriter); in getStacktrace()
64 return stringWriter.toString(); in getStacktrace()
157 StringWriter stringWriter = new StringWriter(); in getFullStackTrace() local
158 PrintWriter writer = new PrintWriter(stringWriter); in getFullStackTrace()
160 return stringWriter.toString(); in getFullStackTrace()
/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/boringssl/src/util/fipstools/delocate/
Ddelocate.go48 type stringWriter interface { interface
63 output stringWriter
756 func establishTOC(w stringWriter) { argument
777 func (d *delocation) loadFromTOC(w stringWriter, symbol, offset, dest string) wrapperFunc {
1148 func push(w stringWriter) wrapperFunc { argument
1156 func compare(w stringWriter, instr, a, b string) wrapperFunc { argument
1163 func (d *delocation) loadFromGOT(w stringWriter, destination, symbol, section string, redzoneCleare…
1181 func saveFlags(w stringWriter, redzoneCleared bool) wrapperFunc { argument
1193 func saveRegister(w stringWriter, avoidRegs []string) (wrapperFunc, string) { argument
1222 func moveTo(w stringWriter, target string, isAVX bool, source string) wrapperFunc { argument
[all …]
/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/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DUnformatted.output50 Writer stringWriter = new StringWriter();
53 javaOutput.writeMerged(stringWriter, linesFlag, MAX_WIDTH, errors);
54 String outputString = stringWriter.toString();
DUnformatted.input39 errors . isEmpty ( ) ) ; Writer stringWriter = new StringWriter ( ) ; RangeSet
41 Integer > all ( ) ) ; javaOutput . writeMerged ( stringWriter , linesFlag ,
42 MAX_WIDTH , errors ) ; String outputString = stringWriter . toString ( ) ;
/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/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/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/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/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCldrFactory.java195 StringWriter stringWriter = new StringWriter(); in cldrFileToString() local
196 PrintWriter pw = new PrintWriter(stringWriter); in cldrFileToString()
199 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.go138 type stringWriter interface { interface
143 func (st *stringList) WriteTo(out stringWriter, name string) {
/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.java262 StringWriter stringWriter = new StringWriter(); in getXmlFileAsRelation()
263 PrintWriter arg0 = new PrintWriter(stringWriter); in getXmlFileAsRelation()
266 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()