Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DDumpsysTableLoggerTest.kt38 private val stringWriter = StringWriter() in <lambda>() constant in com.android.systemui.dump.DumpsysTableLoggerTest
39 private val printWriter = PrintWriter(stringWriter) in <lambda>()
48 val lines = logLines(stringWriter) in <lambda>()
59 val lines = logLines(stringWriter) in <lambda>()
70 val lines = logLines(stringWriter) in <lambda>()
83 val lines = logLines(stringWriter) in <lambda>()
93 val lines = logLines(stringWriter) in <lambda>()
123 val logString = stringWriter.toString() in <lambda>()
DDumpHandlerTest.kt189 val stringWriter = StringWriter() in testConfigDump() constant
190 val spw = PrintWriter(stringWriter) in testConfigDump()
195 assertThat(stringWriter.toString()).contains(EmptyCoreStartable::class.java.simpleName) in testConfigDump()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/fragment/
DCollapsedStatusBarFragmentLoggerTest.kt48 val stringWriter = StringWriter() in logDisableFlagChange_bufferHasStates() constant
49 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in logDisableFlagChange_bufferHasStates()
50 val actualString = stringWriter.toString() in logDisableFlagChange_bufferHasStates()
71 val stringWriter = StringWriter() in logVisibilityModel_bufferCorrect() constant
72 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in logVisibilityModel_bufferCorrect()
73 val actualString = stringWriter.toString() in logVisibilityModel_bufferCorrect()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
DTemporaryViewLoggerTest.kt59 val stringWriter = StringWriter() in logViewAddition_bufferHasLog() constant
60 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in logViewAddition_bufferHasLog()
61 val actualString = stringWriter.toString() in logViewAddition_bufferHasLog()
74 val stringWriter = StringWriter() in logViewRemoval_bufferHasTagAndReason() constant
75 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in logViewRemoval_bufferHasTagAndReason()
76 val actualString = stringWriter.toString() in logViewRemoval_bufferHasTagAndReason()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DViewerConfigJsonBuilder.kt26 val stringWriter = StringWriter() in <lambda>() constant
27 val writer = JsonWriter(stringWriter) in <lambda>()
59 stringWriter.buffer.append('\n') in <lambda>()
60 return stringWriter.toString().toByteArray() in <lambda>()
/frameworks/base/test-junit/src/junit/framework/
DTestFailure.java46 StringWriter stringWriter= new StringWriter(); in trace() local
47 PrintWriter writer= new PrintWriter(stringWriter); in trace()
49 StringBuffer buffer= stringWriter.getBuffer(); in trace()
DTestSuite.java106 StringWriter stringWriter= new StringWriter();
107 PrintWriter writer= new PrintWriter(stringWriter);
109 return stringWriter.toString();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSDisableFlagsLoggerTest.kt49 val stringWriter = StringWriter() in logDisableFlagChange_bufferHasStates() constant
50 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in logDisableFlagChange_bufferHasStates()
51 val actualString = stringWriter.toString() in logDisableFlagChange_bufferHasStates()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverLoggerTest.kt79 val stringWriter = StringWriter() in getStringFromBuffer() constant
80 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in getStringFromBuffer()
81 return stringWriter.toString() in getStringFromBuffer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/common/
DMediaTttLoggerUtilsTest.kt80 val stringWriter = StringWriter() in getStringFromBuffer() constant
81 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in getStringFromBuffer()
82 return stringWriter.toString() in getStringFromBuffer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/sender/
DMediaTttSenderLoggerTest.kt126 val stringWriter = StringWriter() in getStringFromBuffer() constant
127 buffer.dump(PrintWriter(stringWriter), tailLength = 0) in getStringFromBuffer()
128 return stringWriter.toString() in getStringFromBuffer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/
DMobileViewLoggerTest.kt41 private val stringWriter = StringWriter() constant
42 private val printWriter = PrintWriter(stringWriter)
98 return stringWriter.toString() in getDumpString()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java91 StringWriter stringWriter = new StringWriter(); in dumpWindowToFile() local
92 serializer.setOutput(stringWriter); in dumpWindowToFile()
99 writer.write(stringWriter.toString()); in dumpWindowToFile()
124 StringWriter stringWriter = new StringWriter(); in dumpWindowsToFile() local
125 serializer.setOutput(stringWriter); in dumpWindowsToFile()
150 writer.write(stringWriter.toString()); in dumpWindowsToFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DEventLoggerTest.java167 StringWriter stringWriter = new StringWriter(); in convertEventsToString() local
168 PrintWriter printWriter = new PrintWriter(stringWriter); in convertEventsToString()
176 return stringWriter.toString(); in convertEventsToString()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DHexDumpTest.java188 StringWriter stringWriter = new StringWriter(); in toStrackTrace() local
189 throwable.printStackTrace(new PrintWriter(stringWriter)); in toStrackTrace()
190 return stringWriter.toString(); in toStrackTrace()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/base/logging/
DQSTileLoggerTest.kt182 val stringWriter = StringWriter() in LogBuffer() constant
183 dump(PrintWriter(stringWriter), 0) in LogBuffer()
184 return stringWriter.buffer.toString() in LogBuffer()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/contexthub/
DContextHubServiceTest.java80 StringWriter stringWriter = new StringWriter(); in testDump_emptyPreloadedNanoappList() local
84 new FileDescriptor(), new PrintWriter(stringWriter), /* args= */ new String[0]); in testDump_emptyPreloadedNanoappList()
86 assertThat(stringWriter.toString()).isNotEmpty(); in testDump_emptyPreloadedNanoappList()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DReferenceWithHistoryTest.java164 StringWriter stringWriter = new StringWriter(); in dumpReferenceWithHistory() local
165 try (IndentingPrintWriter ipw = new IndentingPrintWriter(stringWriter, " ")) { in dumpReferenceWithHistory()
167 return stringWriter.toString().split("\n"); in dumpReferenceWithHistory()
DArrayMapWithHistoryTest.java108 StringWriter stringWriter = new StringWriter(); in dumpHistoryMap() local
109 try (IndentingPrintWriter ipw = new IndentingPrintWriter(stringWriter, " ")) { in dumpHistoryMap()
111 return stringWriter.toString(); in dumpHistoryMap()
/frameworks/libs/systemui/monet/tests/com/android/systemui/monet/
DColorSchemeTest.kt209 val stringWriter = StringWriter() in documentToString() constant
210 transformer.transform(DOMSource(document), StreamResult(stringWriter)) in documentToString()
211 return stringWriter.toString() in documentToString()
/frameworks/base/test-junit/src/junit/runner/
DBaseTestRunner.java273 StringWriter stringWriter= new StringWriter(); in getFilteredTrace() local
274 PrintWriter writer= new PrintWriter(stringWriter); in getFilteredTrace()
276 StringBuffer buffer= stringWriter.getBuffer(); in getFilteredTrace()
/frameworks/base/core/java/android/app/servertransaction/
DTransactionExecutorHelper.java339 final StringWriter stringWriter = new StringWriter(); in transactionToString() local
340 final PrintWriter pw = new PrintWriter(stringWriter); in transactionToString()
343 return stringWriter.toString(); in transactionToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java499 StringWriter stringWriter = new StringWriter(); in testDump_doesNotCrash() local
502 new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testDump_doesNotCrash()
504 assertFalse(stringWriter.toString().isEmpty()); in testDump_doesNotCrash()
966 final StringWriter stringWriter = new StringWriter(); in testServiceConnection_dump_doesNotCrash() local
968 connection.dump(new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testServiceConnection_dump_doesNotCrash()
970 assertFalse(stringWriter.toString().isEmpty()); in testServiceConnection_dump_doesNotCrash()
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/
DGraphicsActivity.java640 StringWriter stringWriter = new StringWriter(); in runTestsWithPreconditions()
641 PrintWriter printWriter = new PrintWriter(stringWriter); in runTestsWithPreconditions()
643 String stackTrace = stringWriter.toString(); in runTestsWithPreconditions()
/frameworks/libs/modules-utils/javatests/com/android/internal/util/
DStateMachineTest.java2027 final StringWriter stringWriter = new StringWriter(); in testDumpDoesNotThrowNpeAfterQuit() local
2028 final PrintWriter printWriter = new PrintWriter(stringWriter); in testDumpDoesNotThrowNpeAfterQuit()

12