/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
D | DumpsysTableLoggerTest.kt | 38 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>()
|
D | DumpHandlerTest.kt | 189 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/ |
D | CollapsedStatusBarFragmentLoggerTest.kt | 48 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/ |
D | TemporaryViewLoggerTest.kt | 59 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/ |
D | ViewerConfigJsonBuilder.kt | 26 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/ |
D | TestFailure.java | 46 StringWriter stringWriter= new StringWriter(); in trace() local 47 PrintWriter writer= new PrintWriter(stringWriter); in trace() 49 StringBuffer buffer= stringWriter.getBuffer(); in trace()
|
D | TestSuite.java | 106 StringWriter stringWriter= new StringWriter(); 107 PrintWriter writer= new PrintWriter(stringWriter); 109 return stringWriter.toString();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSDisableFlagsLoggerTest.kt | 49 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/ |
D | MediaTttReceiverLoggerTest.kt | 79 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/ |
D | MediaTttLoggerUtilsTest.kt | 80 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/ |
D | MediaTttSenderLoggerTest.kt | 126 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/ |
D | MobileViewLoggerTest.kt | 41 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/ |
D | AccessibilityNodeInfoDumper.java | 91 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/ |
D | EventLoggerTest.java | 167 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/ |
D | HexDumpTest.java | 188 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/ |
D | QSTileLoggerTest.kt | 182 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/ |
D | ContextHubServiceTest.java | 80 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/ |
D | ReferenceWithHistoryTest.java | 164 StringWriter stringWriter = new StringWriter(); in dumpReferenceWithHistory() local 165 try (IndentingPrintWriter ipw = new IndentingPrintWriter(stringWriter, " ")) { in dumpReferenceWithHistory() 167 return stringWriter.toString().split("\n"); in dumpReferenceWithHistory()
|
D | ArrayMapWithHistoryTest.java | 108 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/ |
D | ColorSchemeTest.kt | 209 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/ |
D | BaseTestRunner.java | 273 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/ |
D | TransactionExecutorHelper.java | 339 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/ |
D | NetworkScoreServiceTest.java | 499 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/ |
D | GraphicsActivity.java | 640 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/ |
D | StateMachineTest.java | 2027 final StringWriter stringWriter = new StringWriter(); in testDumpDoesNotThrowNpeAfterQuit() local 2028 final PrintWriter printWriter = new PrintWriter(stringWriter); in testDumpDoesNotThrowNpeAfterQuit()
|