Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/result/
DLogFileSaver.java200 public File saveLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveLogData() argument
202 return saveLogDataRaw(dataName, dataType.getFileExt(), dataStream); in saveLogData()
213 public File saveLogDataRaw(String dataName, String ext, InputStream dataStream) in saveLogDataRaw() argument
219 FileUtil.writeToFile(dataStream, logFile); in saveLogDataRaw()
234 public File saveAndGZipLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveAndGZipLogData() argument
238 return saveLogData(dataName, dataType, dataStream); in saveAndGZipLogData()
245 bufInput = new BufferedInputStream(dataStream); in saveAndGZipLogData()
266 public File saveAndZipLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveAndZipLogData() argument
270 return saveLogData(dataName, dataType, dataStream); in saveAndZipLogData()
279 bufInput = new BufferedInputStream(dataStream); in saveAndZipLogData()
DLogSaverResultForwarder.java116 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
117 testLogForward(dataName, dataType, dataStream); in testLog()
119 if (dataStream == null) { in testLog()
124 dataStream.createInputStream()); in testLog()
128 dataStream, logFile); in testLog()
140 String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLogForward() argument
141 super.testLog(dataName, dataType, dataStream); in testLogForward()
152 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
157 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
DFileSystemLogSaver.java115 public LogFile saveLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveLogData() argument
118 File log = saveLogDataInternal(dataName, dataType.getFileExt(), dataStream); in saveLogData()
134 bufferedDataStream = new BufferedInputStream(dataStream); in saveLogData()
149 public LogFile saveLogDataRaw(String dataName, LogDataType dataType, InputStream dataStream) in saveLogDataRaw() argument
151 File log = saveLogDataInternal(dataName, dataType.getFileExt(), dataStream); in saveLogDataRaw()
155 private File saveLogDataInternal(String dataName, String ext, InputStream dataStream) in saveLogDataInternal() argument
166 FileUtil.writeToFile(dataStream, log); in saveLogDataInternal()
DSubprocessResultsReporter.java211 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
215 if (dataStream != null && dataStream.size() != 0) { in testLog()
222 FileUtil.writeToFile(dataStream.createInputStream(), tmpFile); in testLog()
DBugreportCollector.java522 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
523 mListener.testLog(dataName, dataType, dataStream); in testLog()
524 mCollector.testLog(dataName, dataType, dataStream); in testLog()
DResultAndLogForwarder.java43 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
48 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
DTextResultReporter.java79 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
86 public void testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, in testLogSaved() argument
DNameMangleListener.java146 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
147 mListener.testLog(dataName, dataType, dataStream); in testLog()
DJUnitToInvocationResultForwarder.java109 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
111 listener.testLog(dataName, dataType, dataStream); in testLog()
DXmlResultReporter.java210 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
218 public void testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, in testLogSaved() argument
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java207 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
211 .testLogForward(dataName, dataType, dataStream); in testLog()
213 super.testLog(dataName, dataType, dataStream); in testLog()
220 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
222 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
226 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
DTestFailureListener.java102 String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLogForward() argument
103 mLogger.testLog(dataName, dataType, dataStream); in testLogForward()
107 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardListener.java112 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
119 .testLogForward(dataName, dataType, dataStream); in testLog()
121 mMainListener.testLog(dataName, dataType, dataStream); in testLog()
129 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
130 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
135 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
DShardMainResultForwarder.java126 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
132 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
143 String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLogForward() argument
148 ((LogSaverResultForwarder) listener).testLogForward(dataName, dataType, dataStream); in testLogForward()
151 listener.testLog(dataName, dataType, dataStream); in testLogForward()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java191 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
192 super.testLog(dataName, dataType, dataStream); in testLog()
193 mAllForwarder.testLog(dataName, dataType, dataStream); in testLog()
289 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
290 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
291 mDetailedForwarder.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DMetricTestCase.java76 String dataName, LogDataType dataType, InputStreamSource dataStream) { in addTestLog() argument
77 mLogs.add(new LogHolder(dataName, dataType, dataStream)); in addTestLog()
86 public LogHolder(String dataName, LogDataType dataType, InputStreamSource dataStream) { in LogHolder() argument
91 new SnapshotInputStreamSource("LogHolder", dataStream.createInputStream()); in LogHolder()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DHostStatsdMetricCollector.java126 ITestDevice device, InputStreamSource dataStream, DeviceMetricData runData) { in processStatsReport() argument
150 try (InputStreamSource dataStream = getReportByteStream(device, configId)) { in stopCollection() argument
162 testLog(reportName, LogDataType.PB, dataStream); in stopCollection()
163 processStatsReport(device, dataStream, metricData); in stopCollection()
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DBasePostProcessor.java120 public final void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
121 mForwarder.testLog(dataName, dataType, dataStream); in testLog()
298 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
300 ((ILogSaverListener) mForwarder).testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTest.java371 InputStreamSource dataStream = null; in reportLogs() local
373 dataStream = new FileInputStreamSource(subFile, true); in reportLogs()
374 listener.testLog(subFile.getName(), LogDataType.TEXT, dataStream); in reportLogs() local
376 StreamUtil.close(dataStream); in reportLogs()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterLogSaver.java395 public LogFile saveLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveLogData() argument
397 File log = mLogFileSaver.saveLogData(dataName, dataType, dataStream); in saveLogData()
402 public LogFile saveLogDataRaw(String dataName, LogDataType dataType, InputStream dataStream) in saveLogDataRaw() argument
404 File log = mLogFileSaver.saveLogDataRaw(dataName, dataType.getFileExt(), dataStream); in saveLogDataRaw()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraTestBase.java344 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog() argument
345 super.testLog(dataName, dataType, dataStream); in testLog()
346 mListener.testLog(dataName, dataType, dataStream); in testLog()
DMediaPlayerStressTest.java157 private void parseOutputFile(InputStream dataStream, in parseOutputFile() argument
164 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
DMediaStressTest.java140 InputStream dataStream = new FileInputStream(outputFile); in parseOutputFile() local
141 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DILogSaver.java73 public LogFile saveLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveLogData() argument
87 public LogFile saveLogDataRaw(String dataName, LogDataType type, InputStream dataStream) in saveLogDataRaw() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DXmlResultReporterTest.java43 InputStream dataStream) { in saveLogData() argument
48 public LogFile saveLogDataRaw(String dataName, LogDataType type, InputStream dataStream) { in saveLogDataRaw() argument

12