/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationTest.java | 78 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/ |
D | DumpHeapCollectorTest.java | 30 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/ |
D | INativeDevice.java | 28 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()
|
D | ITestDevice.java | 20 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/ |
D | DeviceFileReporterTest.java | 42 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/ |
D | NativeDevice.java | 46 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 …]
|
D | LargeOutputReceiver.java | 23 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()
|
D | ILogcatReceiver.java | 19 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()
|
D | LogcatReceiver.java | 18 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/ |
D | TradefedSandbox.java | 36 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/ |
D | LogRegistry.java | 20 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()
|
D | LogReceiver.java | 22 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/ |
D | StreamUtil.java | 18 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/ |
D | StreamUtilTest.java | 19 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/ |
D | CoverageMeasurementForwarderTest.java | 32 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/ |
D | MetricTestCase.java | 19 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/ |
D | DebugHostLogOnFailureCollector.java | 22 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/ |
D | AnrReportGenerator.java | 22 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/ |
D | HostStatsdMetricCollector.java | 24 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/ |
D | LogSaverResultForwarder.java | 80 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/ |
D | NativeDeviceTest.java | 49 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()
|
D | TestDeviceFuncTest.java | 33 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/ |
D | RunHostCommandTargetPreparer.java | 28 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/ |
D | LogcatTimingMetricCollector.java | 30 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/ |
D | AudioLoopbackTest.java | 30 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()
|