/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | DeviceFileReporter.java | 39 private final Map<String, LogDataType> mFilePatterns = new LinkedHashMap<>(); 51 private LogDataType mDefaultFileType = LogDataType.UNKNOWN; 53 private static final Map<String, LogDataType> DATA_TYPE_REVERSE_MAP = new HashMap<>(); 57 for (LogDataType type : LogDataType.values()) { 108 public void addPatterns(Map<String, LogDataType> patterns) { in addPatterns() 118 public void setDefaultLogDataType(LogDataType type) { in setDefaultLogDataType() 156 for (Map.Entry<String, LogDataType> pat : mFilePatterns.entrySet()) { in run() 184 final LogDataType type = getDataType(filename, pat.getValue()); in run() 206 LogDataType getDataType(String filename, LogDataType defaultType) { in getDataType() 208 if (!LogDataType.UNKNOWN.equals(defaultType)) return defaultType; in getDataType() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | CommonLogRemoteFileUtil.java | 24 import com.android.tradefed.result.LogDataType; 55 NESTED_REMOTE_LOG_DIR + "kernel.log", null, LogDataType.TEXT)); in KNOWN_FILES_TO_FETCH.put() 59 NESTED_REMOTE_LOG_DIR + "logcat", "full_gce_logcat", LogDataType.LOGCAT)); in KNOWN_FILES_TO_FETCH.put() 63 NESTED_REMOTE_LOG_DIR + "cuttlefish_config.json", null, LogDataType.TEXT)); in KNOWN_FILES_TO_FETCH.put() 69 LogDataType.TEXT)); in KNOWN_FILES_TO_FETCH.put() 76 LogDataType.LOGCAT)); in KNOWN_FILES_TO_FETCH.put() 79 new KnownLogFileEntry(EMULATOR_REMOTE_LOG_DIR + "adb.log", null, LogDataType.TEXT)); in KNOWN_FILES_TO_FETCH.put() 83 EMULATOR_REMOTE_LOG_DIR + "kernel.log", null, LogDataType.TEXT)); in KNOWN_FILES_TO_FETCH.put() 86 new KnownLogFileEntry("/var/log/daemon.log", null, LogDataType.TEXT)); in KNOWN_FILES_TO_FETCH.put() 93 public LogDataType type; [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | FilePullerLogCollector.java | 21 import com.android.tradefed.result.LogDataType; 41 LogDataType type = LogDataType.TEXT; in processMetricFile() 44 type = LogDataType.PNG; in processMetricFile() 46 type = LogDataType.PB; in processMetricFile() 48 type = LogDataType.MP4; in processMetricFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | DeviceFileReporterTest.java | 94 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testSimple() 119 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testTrim() 150 EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), EasyMock.eq(mDfrIss)); in testLine_containingSpace() 152 EasyMock.eq(filename1), EasyMock.eq(LogDataType.UNKNOWN), EasyMock.eq(mDfrIss)); in testLine_containingSpace() 154 EasyMock.eq(filename2), EasyMock.eq(LogDataType.UNKNOWN), EasyMock.eq(mDfrIss)); in testLine_containingSpace() 184 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testLineEnding_LF() 212 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testLineEnding_CRLF() 229 final Map<String, LogDataType> patMap = new HashMap<>(2); in testRepeat_skip() 230 patMap.put("/data/files/*.png", LogDataType.PNG); in testRepeat_skip() 231 patMap.put("/data/files/*", LogDataType.UNKNOWN); in testRepeat_skip() [all …]
|
D | LogFileSaverTest.java | 158 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()
|
D | BugreportCollectorTest.java | 175 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/tests/src/com/android/tradefed/device/metric/ |
D | DumpHeapCollectorTest.java | 31 import com.android.tradefed.result.LogDataType; 77 .testLog(anyString(), any(LogDataType.class), any(InputStreamSource.class)); in setup() 118 ArgumentCaptor<LogDataType> dataTypeCaptor = ArgumentCaptor.forClass(LogDataType.class); in testCollect_success() 134 .containsExactlyElementsIn(Arrays.asList(LogDataType.HPROF, LogDataType.HPROF)); in testCollect_success() 153 ArgumentCaptor<LogDataType> dataTypeCaptor = ArgumentCaptor.forClass(LogDataType.class); in testCollectSuccess_thresholdTooHigh() 174 ArgumentCaptor<LogDataType> dataTypeCaptor = ArgumentCaptor.forClass(LogDataType.class); in testCollectNoError_processNotFound()
|
D | FilePullerDeviceMetricCollectorTest.java | 14 import com.android.tradefed.result.LogDataType; 52 testLog(key, LogDataType.TEXT, source); in setUp() 60 testLog(key, LogDataType.TEXT, source); in setUp() 94 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMatchingKey() 120 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMultipleMatchingKeyInMetrics() 122 .testLog(Mockito.eq("coverageFileAnother"), Mockito.eq(LogDataType.TEXT), in testPullMultipleMatchingKeyInMetrics() 145 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testPullMatchingKeyPattern() 168 .testLog(Mockito.eq("coverageFile"), Mockito.eq(LogDataType.TEXT), Mockito.any()); in testMetricFileProcessingFlow() 170 Mockito.eq(LogDataType.TEXT), Mockito.any()); in testMetricFileProcessingFlow() 173 Mockito.eq(LogDataType.TEXT), Mockito.any()); in testMetricFileProcessingFlow() [all …]
|
D | IonHeapInfoMetricCollectorTest.java | 30 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()
|
D | AtraceCollectorTest.java | 28 import com.android.tradefed.result.LogDataType; 303 EasyMock.eq(LogDataType.ATRACE), in testUploadsLogWithCompression() 327 EasyMock.eq(LogDataType.TEXT), in testUploadsLogWithoutCompression() 364 EasyMock.eq(LogDataType.ATRACE), in testMultipleDeviceBehavior() 402 EasyMock.eq(LogDataType.ATRACE), in testExecutesPostProcessPar() 443 EasyMock.eq(LogDataType.ATRACE), in testExecutesPostProcessParDifferentFormat() 482 EasyMock.eq(LogDataType.ATRACE), in testExecutesPostProcessParNoStderr() 523 EasyMock.eq(LogDataType.ATRACE), in testExecutesPostProcessParFailed() 563 EasyMock.eq(LogDataType.ATRACE), in testExecutesPostProcessParTimeout() 598 EasyMock.eq(LogDataType.ATRACE), in testProcessesMetricOutput() [all …]
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | LogFile.java | 30 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()
|
D | ILogSaver.java | 73 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/src/com/android/tradefed/util/ |
D | ZipCompressionStrategy.java | 18 import com.android.tradefed.result.LogDataType; 40 public LogDataType getLogDataType() { in getLogDataType() 41 return LogDataType.ZIP; in getLogDataType()
|
D | ICompressionStrategy.java | 18 import com.android.tradefed.result.LogDataType; 37 public LogDataType getLogDataType(); in getLogDataType()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | ShardListenerTest.java | 25 import com.android.tradefed.result.LogDataType; 114 mShardListener.logAssociation("test-file", new LogFile("path", "url", LogDataType.TEXT)); in testLogWithoutRun() 240 EasyMock.eq("run-file"), EasyMock.eq(LogDataType.TEXT), EasyMock.anyObject()); in testLogOrderingForSharding() 241 LogFile runFile = new LogFile("path", "url", false, LogDataType.TEXT, 0L); in testLogOrderingForSharding() 245 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 250 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 255 EasyMock.eq("test-file"), EasyMock.eq(LogDataType.TEXT), EasyMock.anyObject()); in testLogOrderingForSharding() 256 LogFile testFile = new LogFile("path", "url", false, LogDataType.TEXT, 0L); in testLogOrderingForSharding() 260 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() 265 EasyMock.eq(LogDataType.TEXT), in testLogOrderingForSharding() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | MetricTestCase.java | 20 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()
|
D | CodeCoverageReportFormat.java | 18 import com.android.tradefed.result.LogDataType; 23 public LogDataType getLogDataType(); in getLogDataType()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | PerfettoGenericPostProcessorTest.java | 29 import com.android.tradefed.result.LogDataType; 97 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testNoMetricsByDefault() 120 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testMetricsFilterWithRegEx() 150 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testMetricsFilterWithRegExAndReplacePrefix() 178 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testAllMetricsOptionIgnoresFilter() 199 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingTestMetrics() 221 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithAllMetricsPrefix() 242 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingRunMetrics() 265 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithoutIndexing() 290 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithIndexing() [all …]
|
D | BasePostProcessorTest.java | 27 import com.android.tradefed.result.LogDataType; 148 new LogFile("test-log-path-1", "url", LogDataType.TEXT); 151 new LogFile("test-log-path-2", "url", LogDataType.TEXT); 153 private static final LogFile RUN_LOG_1 = new LogFile("run-log-path-1", "url", LogDataType.TEXT); 155 private static final LogFile RUN_LOG_2 = new LogFile("run-log-path-2", "url", LogDataType.TEXT); 240 LogDataType.TEXT, in testRunLogsPostProcessing_processRunLogs() 279 LogDataType.TEXT, in testRunLevelPostProcessing_processRunLogsOnly() 284 LogDataType.TEXT, in testRunLevelPostProcessing_processRunLogsOnly() 289 LogDataType.TEXT, in testRunLevelPostProcessing_processRunLogsOnly() 294 LogDataType.TEXT, in testRunLevelPostProcessing_processRunLogsOnly() [all …]
|
D | StatsdGenericPostProcessorTest.java | 32 import com.android.tradefed.result.LogDataType; 109 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testParsingTestMetrics() 129 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testParsingRunMetrics() 156 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testMultipleReports() 160 mAppCrashReportFile.getAbsolutePath(), "some.other.url", LogDataType.PB)); in testMultipleReports() 197 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testExtraReportsIgnored() 201 mAppCrashReportFile.getAbsolutePath(), "some.other.url", LogDataType.PB)); in testExtraReportsIgnored() 237 new LogFile(mBadReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testInvalidReportIgnored() 241 mAppStartupReportFile.getAbsolutePath(), "some.other.url", LogDataType.PB)); in testInvalidReportIgnored() 296 new LogFile(testMetricFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testParsingLogic() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/ |
D | CoverageMeasurementForwarder.java | 28 import com.android.tradefed.result.LogDataType; 56 private LogDataType mLogDataType = LogDataType.COVERAGE; 66 void setCoverageLogDataType(LogDataType type) { in setCoverageLogDataType()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | AtraceCollector.java | 29 import com.android.tradefed.result.LogDataType; 138 protected LogDataType getLogType() { in getLogType() 140 return LogDataType.ATRACE; in getLogType() 142 return LogDataType.TEXT; in getLogType() 225 LogDataType type; in postProcess() 228 type = LogDataType.PNG; in postProcess() 231 type = LogDataType.TEXT; in postProcess() 234 type = LogDataType.UNKNOWN; in postProcess()
|
D | IonHeapInfoMetricCollector.java | 23 import com.android.tradefed.result.LogDataType; 53 LogDataType.TEXT, in collectIonAudio() 71 LogDataType.TEXT, in collectIonSystem()
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/log/ |
D | ITestLogger.java | 20 import com.android.tradefed.result.LogDataType; 45 default public void testLog(String dataName, LogDataType dataType, in testLog()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 33 import com.android.tradefed.result.LogDataType; 147 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents() 212 "run_log1", new LogFile("path", "url", false, LogDataType.LOGCAT, 5)); in testEvents() 216 "module_log1", new LogFile("path", "url", false, LogDataType.LOGCAT, 5)); in testEvents() 220 "invocation_log1", new LogFile("path", "url", false, LogDataType.LOGCAT, 5)); in testEvents() 367 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_finaleProto() 368 LogFile logModuleFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_finaleProto() 411 "run_log1", new LogFile("path", "url", false, LogDataType.LOGCAT, 5)); in testEvents_finaleProto() 562 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_subprocess() 585 EasyMock.eq(LogDataType.TEXT), in testEvents_subprocess() [all …]
|