Home
last modified time | relevance | path

Searched refs:LogDataType (Results 1 – 25 of 138) sorted by relevance

123456

/tools/tradefederation/core/src/com/android/tradefed/testtype/
DJacocoCodeCoverageReportFormat.java19 import com.android.tradefed.result.LogDataType;
23 CSV("<csv destfile=\"%s\" />", LogDataType.JACOCO_CSV),
24 XML("<xml destfile=\"%s\" />", LogDataType.JACOCO_XML),
25 HTML("<html destdir=\"%s\" />", LogDataType.HTML);
28 private final LogDataType mLogDataType;
36 private JacocoCodeCoverageReportFormat(String antTagFormat, LogDataType logDataType) { in JacocoCodeCoverageReportFormat()
45 public LogDataType getLogDataType() { in getLogDataType()
DMetricTestCase.java20 import com.android.tradefed.result.LogDataType;
76 String dataName, LogDataType dataType, InputStreamSource dataStream) { in addTestLog()
83 public final LogDataType mDataType;
86 public LogHolder(String dataName, LogDataType dataType, InputStreamSource dataStream) { in LogHolder()
DCodeCoverageReportFormat.java18 import com.android.tradefed.result.LogDataType;
23 public LogDataType getLogDataType(); in getLogDataType()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DDeviceFileReporterTest.java90 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testSimple()
114 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testTrim()
142 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testLineEnding_LF()
169 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testLineEnding_CRLF()
185 final Map<String, LogDataType> patMap = new HashMap<>(2); in testRepeat_skip()
186 patMap.put("/data/files/*.png", LogDataType.PNG); in testRepeat_skip()
187 patMap.put("/data/files/*", LogDataType.UNKNOWN); in testRepeat_skip()
216 mListener.testLog(EasyMock.eq(pngFilename), EasyMock.eq(LogDataType.PNG), in testRepeat_skip()
223 mListener.testLog(EasyMock.eq(xmlFilename), EasyMock.eq(LogDataType.UNKNOWN), in testRepeat_skip()
240 final Map<String, LogDataType> patMap = new HashMap<>(2); in testRepeat_noSkip()
[all …]
DLogFileSaverTest.java158 logFile = saver.saveLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveLogData()
185 logFile = saver.saveAndGZipLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveAndGZipLogData()
187 assertTrue(logFile.getName().endsWith(LogDataType.GZIP.getFileExt())); in testSaveAndGZipLogData()
209 logFile = saver.saveAndZipLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveAndZipLogData()
211 assertTrue(logFile.getName().endsWith(LogDataType.ZIP.getFileExt())); in testSaveAndZipLogData()
237 logFile = saver.createCompressedLogFile("testSaveAndGZipLogData", LogDataType.TEXT); in testCreateAndGZipLogData()
238 assertTrue(logFile.getName().endsWith(LogDataType.TEXT.getFileExt() + "." + in testCreateAndGZipLogData()
239 LogDataType.GZIP.getFileExt())); in testCreateAndGZipLogData()
269 "testSaveLogData", LogDataType.TEXT.getFileExt(), mockInput); in testSaveLogDataRaw()
DBugreportCollectorTest.java175 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestFailed()
178 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestFailed()
196 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestEnded()
199 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestEnded()
219 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testWaitForDevice()
222 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testWaitForDevice()
240 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestEnded_firstCase()
243 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestEnded_firstCase()
261 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestEnded_firstRun()
279 EasyMock.eq(LogDataType.BUGREPORT), EasyMock.eq(mBugreportISS)); in testTestRunEnded()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogFilesReporter.java114 Map<String, LogDataType> uploadFilePatterns = new LinkedHashMap<String, LogDataType>(); in uploadFolderOnDeviceToLogs()
118 LogDataType logDataType = LogDataType.UNKNOWN; in uploadFolderOnDeviceToLogs()
119 if (file.getName().endsWith(LogDataType.PNG.getFileExt())) { in uploadFolderOnDeviceToLogs()
120 logDataType = LogDataType.PNG; in uploadFolderOnDeviceToLogs()
121 } else if (file.getName().endsWith(LogDataType.XML.getFileExt())) { in uploadFolderOnDeviceToLogs()
122 logDataType = LogDataType.XML; in uploadFolderOnDeviceToLogs()
DLogFile.java30 private final LogDataType mType;
40 public LogFile(String path, String url, LogDataType type) { in LogFile()
61 public LogFile(String path, String url, boolean isCompressed, LogDataType type, long size) { in LogFile()
99 public LogDataType getType() { in getType()
DILogSaver.java73 public LogFile saveLogData(String dataName, LogDataType dataType, InputStream dataStream) in saveLogData()
87 public LogFile saveLogDataRaw(String dataName, LogDataType type, InputStream dataStream) in saveLogDataRaw()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DDumpHeapCollectorTest.java33 import com.android.tradefed.result.LogDataType;
81 .testLog(anyString(), any(LogDataType.class), any(InputStreamSource.class)); in setup()
127 ArgumentCaptor<LogDataType> dataTypeCaptor = ArgumentCaptor.forClass(LogDataType.class); in testCollect_success()
143 .containsExactlyElementsIn(Arrays.asList(LogDataType.HPROF, LogDataType.HPROF)); in testCollect_success()
162 ArgumentCaptor<LogDataType> dataTypeCaptor = ArgumentCaptor.forClass(LogDataType.class); in testCollectSuccess_thresholdTooHigh()
186 ArgumentCaptor<LogDataType> dataTypeCaptor = ArgumentCaptor.forClass(LogDataType.class); in testCollectNoError_processNotFound()
DFilePullerDeviceMetricCollectorTest.java25 import com.android.tradefed.result.LogDataType;
59 testLog(key, LogDataType.TEXT, source); in setUp()
67 testLog(key, LogDataType.TEXT, source); in setUp()
101 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMatchingKey()
123 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMatchingKeyPattern()
140 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPatternNotMatching()
162 .testLog(Mockito.eq("coverageDirectory"), Mockito.eq(LogDataType.TEXT), in testPullMatchingDirectory()
DIonHeapInfoMetricCollectorTest.java30 import com.android.tradefed.result.LogDataType;
66 .testLog(anyString(), eq(LogDataType.TEXT), any(InputStreamSource.class)); in setup()
87 verify(mListener).testLog(eq("ion-system-2"), eq(LogDataType.TEXT), any()); in testCollect()
88 verify(mListener).testLog(eq("ion-audio-1"), eq(LogDataType.TEXT), any()); in testCollect()
DMemInfoMetricCollectorTest.java30 import com.android.tradefed.result.LogDataType;
67 anyString(), eq(LogDataType.COMPACT_MEMINFO), any(InputStreamSource.class)); in setup()
84 verify(mListener).testLog(eq("compact-meminfo-1"), eq(LogDataType.COMPACT_MEMINFO), any()); in testCollect()
DTraceMetricCollectorTest.java30 import com.android.tradefed.result.LogDataType;
66 .testLog(anyString(), eq(LogDataType.TEXT), any(InputStreamSource.class)); in setup()
83 verify(mListener).testLog(eq("trace-1"), eq(LogDataType.TEXT), any()); in testCollect()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerLogCollector.java22 import com.android.tradefed.result.LogDataType;
55 LogDataType type = LogDataType.TEXT; in processMetricFile()
58 type = LogDataType.PNG; in processMetricFile()
DIonHeapInfoMetricCollector.java23 import com.android.tradefed.result.LogDataType;
53 LogDataType.TEXT, in collectIonAudio()
71 LogDataType.TEXT, in collectIonSystem()
DTraceCmdCollector.java26 import com.android.tradefed.result.LogDataType;
84 protected LogDataType getLogType() { in getLogType()
85 return LogDataType.KERNEL_TRACE; in getLogType()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DShardListenerTest.java25 import com.android.tradefed.result.LogDataType;
144 EasyMock.eq("run-file"), EasyMock.eq(LogDataType.TEXT), EasyMock.anyObject()); in testLogOrderingForSharding()
145 LogFile runFile = new LogFile("path", "url", false, LogDataType.TEXT, 0L); in testLogOrderingForSharding()
149 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding()
154 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding()
159 EasyMock.eq("test-file"), EasyMock.eq(LogDataType.TEXT), EasyMock.anyObject()); in testLogOrderingForSharding()
160 LogFile testFile = new LogFile("path", "url", false, LogDataType.TEXT, 0L); in testLogOrderingForSharding()
164 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding()
169 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding()
202 "run-file", LogDataType.TEXT, new ByteArrayInputStreamSource("test".getBytes())); in testLogOrderingForSharding()
[all …]
DTestInvocationTest.java68 import com.android.tradefed.result.LogDataType;
537 EasyMock.eq(LogDataType.LOGCAT), in testInvoke_resume()
539 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume()
543 EasyMock.eq(LogDataType.LOGCAT), in testInvoke_resume()
545 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume()
549 EasyMock.eq(LogDataType.LOGCAT), in testInvoke_resume()
551 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume()
555 EasyMock.eq(LogDataType.TEXT), in testInvoke_resume()
557 .andReturn(new LogFile(PATH, URL, LogDataType.TEXT)); in testInvoke_resume()
560 EasyMock.eq(LogDataType.LOGCAT), in testInvoke_resume()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DCodeCoverageListenerTest.java32 import com.android.tradefed.result.LogDataType;
101 .testLog(anyString(), eq(LogDataType.COVERAGE), eq(COVERAGE_MEASUREMENT)); in test()
115 .testLog(anyString(), eq(LogDataType.COVERAGE), any(InputStreamSource.class)); in testFailure_noCoverageMetric()
137 .testLog(anyString(), eq(LogDataType.COVERAGE), any(InputStreamSource.class)); in testFailure_unableToPullFile()
147 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog()
156 public void testLog(String dataName, LogDataType dataType, ByteString data) {} in testLog()
/tools/tradefederation/core/src/com/android/tradefed/util/
DICompressionStrategy.java18 import com.android.tradefed.result.LogDataType;
37 public LogDataType getLogDataType(); in getLogDataType()
DBugreport.java22 import com.android.tradefed.result.LogDataType;
61 LogDataType type = isZipped() ? LogDataType.BUGREPORTZ : LogDataType.BUGREPORT; in log()
/tools/tradefederation/core/src/com/android/tradefed/log/
DITestLogger.java21 import com.android.tradefed.result.LogDataType;
46 default public void testLog(String dataName, LogDataType dataType, in testLog()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestFailureListener.java25 import com.android.tradefed.result.LogDataType;
132 LogDataType.PNG, in captureFailure()
157 LogDataType.LOGCAT, in captureFailure()
168 LogDataType.LOGCAT, in captureFailure()
228 String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLogForward()
233 public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) { in testLog()
/tools/tradefederation/core/prod-tests/src/com/android/continuous/
DSmokeTest.java26 import com.android.tradefed.result.LogDataType;
45 private Map<String, LogDataType> mUploadFilePatterns = new LinkedHashMap<String, LogDataType>();

123456