Home
last modified time | relevance | path

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

123456

/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java78 import com.android.tradefed.result.InputStreamSource;
131 private static final InputStreamSource EMPTY_STREAM_SOURCE =
839 (InputStreamSource) EasyMock.anyObject()); in testInvoke_logFileSaved()
843 (InputStreamSource) EasyMock.anyObject(), in testInvoke_logFileSaved()
850 (InputStreamSource) EasyMock.anyObject()); in testInvoke_logFileSaved()
854 (InputStreamSource) EasyMock.anyObject(), in testInvoke_logFileSaved()
861 (InputStreamSource) EasyMock.anyObject()); in testInvoke_logFileSaved()
865 (InputStreamSource) EasyMock.anyObject(), in testInvoke_logFileSaved()
872 (InputStreamSource) EasyMock.anyObject()); in testInvoke_logFileSaved()
876 (InputStreamSource) EasyMock.anyObject(), in testInvoke_logFileSaved()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DDumpHeapCollectorTest.java30 import com.android.tradefed.result.InputStreamSource;
77 .testLog(anyString(), any(LogDataType.class), any(InputStreamSource.class)); in setup()
119 ArgumentCaptor<InputStreamSource> inputCaptor = in testCollect_success()
120 ArgumentCaptor.forClass(InputStreamSource.class); in testCollect_success()
154 ArgumentCaptor<InputStreamSource> inputCaptor = in testCollectSuccess_thresholdTooHigh()
155 ArgumentCaptor.forClass(InputStreamSource.class); in testCollectSuccess_thresholdTooHigh()
175 ArgumentCaptor<InputStreamSource> inputCaptor = in testCollectNoError_processNotFound()
176 ArgumentCaptor.forClass(InputStreamSource.class); in testCollectNoError_processNotFound()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java28 import com.android.tradefed.result.InputStreamSource;
858 public InputStreamSource getLogcat(); in getLogcat()
870 public InputStreamSource getLogcatSince(long date); in getLogcatSince()
883 public InputStreamSource getLogcat(int maxBytes); in getLogcat()
895 public InputStreamSource getLogcatDump(); in getLogcatDump()
1271 public InputStreamSource getEmulatorOutput(); in getEmulatorOutput()
1365 public InputStreamSource getBugreport(); in getBugreport()
1376 public InputStreamSource getBugreportz(); in getBugreportz()
DITestDevice.java20 import com.android.tradefed.result.InputStreamSource;
379 public InputStreamSource getScreenshot() throws DeviceNotAvailableException; in getScreenshot()
389 public InputStreamSource getScreenshot(String format) throws DeviceNotAvailableException; in getScreenshot()
401 public InputStreamSource getScreenshot(String format, boolean rescale) in getScreenshot()
414 public InputStreamSource getScreenshot(long displayId) throws DeviceNotAvailableException; in getScreenshot()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DDeviceFileReporterTest.java42 InputStreamSource mDfrIss = null;
73 InputStreamSource createIssForFile(File file) { in setUp()
235 final InputStreamSource pngIss = new ByteArrayInputStreamSource(pngContents.getBytes()); in testRepeat_skip()
236 final InputStreamSource xmlIss = new ByteArrayInputStreamSource(xmlContents.getBytes()); in testRepeat_skip()
241 InputStreamSource createIssForFile(File file) { in testRepeat_skip()
291 final InputStreamSource pngIss = new ByteArrayInputStreamSource(pngContents.getBytes()); in testRepeat_noSkip()
292 final InputStreamSource xmlIss = new ByteArrayInputStreamSource(xmlContents.getBytes()); in testRepeat_noSkip()
297 InputStreamSource createIssForFile(File file) { in testRepeat_noSkip()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java46 import com.android.tradefed.result.InputStreamSource;
2248 public InputStreamSource getLogcat() { in getLogcat()
2261 public InputStreamSource getLogcat(int maxBytes) { in getLogcat()
2275 public InputStreamSource getLogcatSince(long date) { in getLogcatSince()
2312 public InputStreamSource getLogcatDump() { in getLogcatDump()
2364 public InputStreamSource getBugreport() { in getBugreport()
2366 InputStreamSource bugreport = getBugreportInternal(); in getBugreport()
2448 InputStreamSource bugreport = null; in logBugreport()
2493 InputStreamSource bugreport = getBugreportInternal(); in takeBugreport()
2513 public InputStreamSource getBugreportz() { in getBugreportz()
[all …]
DLargeOutputReceiver.java23 import com.android.tradefed.result.InputStreamSource;
82 public synchronized InputStreamSource getData() { in getData()
103 public synchronized InputStreamSource getData(final int maxBytes) { in getData()
115 public synchronized InputStreamSource getData(final int maxBytes, final int offset) { in getData()
122 return new InputStreamSource() { in getData()
DILogcatReceiver.java19 import com.android.tradefed.result.InputStreamSource;
32 public InputStreamSource getLogcatData(); in getLogcatData()
34 public InputStreamSource getLogcatData(int maxBytes); in getLogcatData()
43 public default InputStreamSource getLogcatData(int maxBytes, int offset) { in getLogcatData()
DLogcatReceiver.java18 import com.android.tradefed.result.InputStreamSource;
76 public InputStreamSource getLogcatData() { in getLogcatData()
82 public InputStreamSource getLogcatData(int maxBytes) { in getLogcatData()
87 public InputStreamSource getLogcatData(int maxBytes, int offset) { in getLogcatData()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandbox.java36 import com.android.tradefed.result.InputStreamSource;
181 try (InputStreamSource configFile = in run()
185 try (InputStreamSource contextFile = new FileInputStreamSource(mSerializedContext)) { in run()
190 try (InputStreamSource sourceStdOut = new FileInputStreamSource(mStdoutFile)) { in run()
194 try (InputStreamSource sourceStdErr = new FileInputStreamSource(mStderrFile)) { in run()
361 try (InputStreamSource source = new FileInputStreamSource(mGlobalConfig)) { in prepareConfiguration()
387 try (InputStreamSource source = new FileInputStreamSource(parentConfig)) { in prepareConfiguration()
/tools/tradefederation/core/src/com/android/tradefed/log/
DLogRegistry.java20 import com.android.tradefed.result.InputStreamSource;
138 try (InputStreamSource source = log.getLog()) { in dumpToGlobalLog()
242 try (InputStreamSource globalLog = mGlobalLogger.getLog()) { in saveGlobalLogToDir()
253 try (InputStreamSource globalLog = mHistoryLogger.getLog()) { in saveHistoryLogToDir()
264 private void saveLog(String filePrefix, InputStreamSource logData, File parentdir) { in saveLog()
298 try (InputStreamSource logSource = logEntry.getValue().getLog()) { in dumpLogsToDir()
DLogReceiver.java22 import com.android.tradefed.result.InputStreamSource;
67 public InputStreamSource getData() { in getData()
71 public InputStreamSource getLogcatData(int maxBytes) { in getLogcatData()
80 InputStreamSource stream = getData(); in postLog()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DStreamUtil.java18 import com.android.tradefed.result.InputStreamSource;
62 public static String getStringFromSource(InputStreamSource source) throws IOException { in getStringFromSource()
79 public static int countLinesFromSource(InputStreamSource source) throws IOException { in countLinesFromSource()
97 public static ByteArrayList getByteArrayListFromSource(InputStreamSource source) in getByteArrayListFromSource()
168 public static BufferedReader getBufferedReaderFromStreamSrc(InputStreamSource stream) { in getBufferedReaderFromStreamSrc()
376 public static void cancel(InputStreamSource outputSource) { in cancel()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DStreamUtilTest.java19 import com.android.tradefed.result.InputStreamSource;
43 try (final InputStreamSource source = new ByteArrayInputStreamSource(contentBytes)) { in testGetByteArrayListFromSource()
78 try (InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes())) { in testGetStringFromSource()
92 try (InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes())) { in testGetBufferedReaderFromInputStream()
108 final InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes()); in testCountLinesFromSource()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/
DCoverageMeasurementForwarderTest.java32 import com.android.tradefed.result.InputStreamSource;
98 try (InputStream stream = ((InputStreamSource) args[2]).createInputStream()) { in setUp()
105 .testLog(anyString(), eq(LogDataType.COVERAGE), any(InputStreamSource.class)); in setUp()
110 try (InputStream stream = ((InputStreamSource) args[2]).createInputStream()) { in setUp()
118 anyString(), eq(LogDataType.NATIVE_COVERAGE), any(InputStreamSource.class)); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DMetricTestCase.java19 import com.android.tradefed.result.InputStreamSource;
76 String dataName, LogDataType dataType, InputStreamSource dataStream) { in addTestLog()
84 public final InputStreamSource mDataStream;
86 public LogHolder(String dataName, LogDataType dataType, InputStreamSource dataStream) { in LogHolder()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DDebugHostLogOnFailureCollector.java22 import com.android.tradefed.result.InputStreamSource;
41 try (InputStreamSource source = getLogger().getLog()) { in onTestRunStart()
57 try (InputStreamSource source = getLogger().getLog()) { in onTestFail()
63 try (InputStreamSource logSource = in onTestFail()
/tools/tradefederation/contrib/src/com/android/monkey/
DAnrReportGenerator.java22 import com.android.tradefed.result.InputStreamSource;
100 public void setBugReportInfo(InputStreamSource bugreportStream) throws IOException { in setBugReportInfo()
115 public void setMonkeyLogInfo(InputStreamSource monkeyLogStream) throws IOException { in setMonkeyLogInfo()
180 try (InputStreamSource source = new FileInputStreamSource(htmlReport)) { in genereateAnrReport()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DHostStatsdMetricCollector.java24 import com.android.tradefed.result.InputStreamSource;
101 InputStreamSource getReportByteStream(ITestDevice device, long configId) in getReportByteStream()
126 ITestDevice device, InputStreamSource dataStream, DeviceMetricData runData) { in processStatsReport()
150 try (InputStreamSource dataStream = getReportByteStream(device, configId)) { in stopCollection()
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogSaverResultForwarder.java80 try (InputStreamSource source = registry.getLogger().getLog()) { in reportEndHostLog()
116 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog()
140 String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLogForward()
152 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java49 import com.android.tradefed.result.InputStreamSource;
972 final InputStreamSource stream = new ByteArrayInputStreamSource(null); in testTestLogBugreport()
976 public InputStreamSource getBugreportz() { in testTestLogBugreport()
996 final InputStreamSource stream = new ByteArrayInputStreamSource(null); in testTestLogBugreport_oldDevice()
1000 public InputStreamSource getBugreportz() { in testTestLogBugreport_oldDevice()
1006 public InputStreamSource getBugreportInternal() { in testTestLogBugreport_oldDevice()
1029 public InputStreamSource getBugreportz() { in testTestLogBugreport_fail()
1034 protected InputStreamSource getBugreportInternal() { in testTestLogBugreport_fail()
1216 InputStreamSource res = null; in testGetBugreport_deviceUnavail_fallback()
DTestDeviceFuncTest.java33 import com.android.tradefed.result.InputStreamSource;
96 InputStreamSource bugreport = mTestDevice.getBugreport(); in testBugreport()
746 InputStreamSource source = getDevice().getScreenshot(); in testGetScreenshot()
779 try (InputStreamSource source = getDevice().getLogcatDump()) { in testGetLogcat_size()
894 InputStreamSource screenshot = mTestDevice.getScreenshot(0L); in testScreenshot()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparer.java28 import com.android.tradefed.result.InputStreamSource;
102 InputStreamSource getInputStreamSource(); in getInputStreamSource()
111 private InputStreamSource mInputStreamSource;
126 public InputStreamSource getInputStreamSource() { in getInputStreamSource()
/tools/loganalysis/test_framework/com/android/tradefed/device/metric/
DLogcatTimingMetricCollector.java30 import com.android.tradefed.result.InputStreamSource;
127 try (InputStreamSource logcatData = mLogcatReceivers.get(device).getLogcatData()) { in onTestRunEnd()
154 try (InputStreamSource logcatData = mLogcatReceivers.get(device).getLogcatData()) { in onTestFail()
166 Map<String, List<Double>> parse(InputStreamSource logcatData) { in parse()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTest.java30 import com.android.tradefed.result.InputStreamSource;
552 try (final InputStreamSource lc = getDevice().getLogcatSince(deviceTestStartTime)) { in runTest()
834 try (InputStreamSource iss = new FileInputStreamSource(logFile)) { in uploadLog()
840 private void saveLogcatForIteration(ResultData data, InputStreamSource logcat, int iteration) { in saveLogcatForIteration()
865 try (InputStreamSource iss = new FileInputStreamSource(csvTmpFile)) { in saveResultsAsCSVFile()

123456