/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | LogFileSaverTest.java | 151 File logFile = null; in testSaveLogData() local 158 logFile = saver.saveLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveLogData() 161 logFileReader = new BufferedReader(new FileReader(logFile)); in testSaveLogData() 168 if (logFile != null) { in testSaveLogData() 169 logFile.delete(); in testSaveLogData() 177 File logFile = null; in testSaveAndGZipLogData() local 184 logFile = saver.saveAndGZipLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveAndGZipLogData() 186 assertTrue(logFile.getName().endsWith(LogDataType.GZIP.getFileExt())); in testSaveAndGZipLogData() 188 gzipStream = new GZIPInputStream(new FileInputStream(logFile)); in testSaveAndGZipLogData() 193 FileUtil.deleteFile(logFile); in testSaveAndGZipLogData() [all …]
|
D | FileSystemLogSaverTest.java | 175 LogFile logFile = null; in testSaveLogData_uncompressed() local 185 logFile = saver.saveLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveLogData_uncompressed() 187 assertTrue(logFile.getPath().endsWith(LogDataType.GZIP.getFileExt())); in testSaveLogData_uncompressed() 189 gis = new GZIPInputStream(Files.newInputStream(Path.of(logFile.getPath()))); in testSaveLogData_uncompressed() 194 FileUtil.deleteFile(new File(logFile.getPath())); in testSaveLogData_uncompressed() 204 LogFile logFile = null; in testSaveLogData_compressed() local 214 logFile = saver.saveLogData("testSaveLogData", LogDataType.ZIP, mockInput); in testSaveLogData_compressed() 217 logFileReader = new BufferedReader(new FileReader(new File(logFile.getPath()))); in testSaveLogData_compressed() 222 FileUtil.deleteFile(new File(logFile.getPath())); in testSaveLogData_compressed() 232 LogFile logFile = null; in testSaveLogDataRaw() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LogFileSaver.java | 224 File logFile = in saveLogFile() local 228 logFile.delete(); in saveLogFile() 230 FileUtil.hardlinkFile(fileToLog, logFile); in saveLogFile() 233 logFile.getAbsolutePath(), in saveLogFile() 234 logFile.length(), in saveLogFile() 236 return logFile; in saveLogFile() 255 File logFile = FileUtil.createTempFile(saneDataName + "_", "." + ext, mInvLogDir); in saveLogDataRaw() local 256 FileUtil.writeToFile(dataStream, logFile); in saveLogDataRaw() 259 logFile.getAbsolutePath(), in saveLogDataRaw() 260 logFile.length(), in saveLogDataRaw() [all …]
|
D | LogSaverResultForwarder.java | 82 public static void logFile( in logFile() method in LogSaverResultForwarder 89 LogFile logFile = saver.saveLogData(name, type, stream); in logFile() local 94 ((ILogSaverListener) listener).testLogSaved(name, type, source, logFile); in logFile() 95 ((ILogSaverListener) listener).logAssociation(name, logFile); in logFile() 118 logFile(listeners, saver, source, name, LogDataType.HOST_LOG); in reportEndHostLog() 150 LogFile logFile = null; in testLog() local 154 logFile = in testLog() 160 logFile = in testLog() 174 dataStream, logFile); in testLog() 175 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in testLog() [all …]
|
D | LUCIResultReporter.java | 158 LogFile logFile = entry.getValue(); in invocationEnded() local 159 printLog(dataName, logFile); in invocationEnded() 259 File logFile = saver.saveLogData("LUCIResult", LogDataType.JSON, resultStream); in saveJsonFile() local 260 logResultFileLocation(logFile); in saveJsonFile() 268 void logResultFileLocation(File logFile) { in logResultFileLocation() argument 269 CLog.logAndDisplay(LogLevel.DEBUG, "JSON result for LUCI: %s", logFile.getPath()); in logResultFileLocation() 316 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 317 mLoggedFiles.put(dataName, logFile); in logAssociation() 321 private void printLog(String dataName, LogFile logFile) { in printLog() argument 322 String logDesc = logFile.getUrl() == null ? logFile.getPath() : logFile.getUrl(); in printLog()
|
D | ConsoleResultReporter.java | 189 for (LogFile logFile : mLoggedFiles) { in invocationEnded() 190 printLog(logFile); in invocationEnded() 196 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 197 mLoggedFiles.add(logFile); in logAssociation() 203 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 204 mLoggedFiles.add(logFile); in testLogSaved() 207 private void printLog(LogFile logFile) { in printLog() argument 212 String logDesc = logFile.getUrl() == null ? logFile.getPath() : logFile.getUrl(); in printLog()
|
D | ResultAndLogForwarder.java | 47 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 52 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 62 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 67 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | ShardListener.java | 148 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 149 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 154 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 265 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 268 mShardMainForwarder.logAssociation(dataName, logFile); in logAssociation() 270 super.logAssociation(dataName, logFile); in logAssociation() 324 for (LogFile logFile : loggedFiles.get(key)) { in forwardLogAssociation() 326 ((ILogSaverListener) listener).logAssociation(key, logFile); in forwardLogAssociation() 335 for (Entry<String, LogFile> logFile : loggedFiles.entrySet()) { in forwardLogAssociation() 337 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in forwardLogAssociation()
|
D | ShardMainResultForwarder.java | 170 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 176 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 208 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 213 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | ResultAggregator.java | 353 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 354 super.logAssociation(dataName, logFile); in logAssociation() 356 mDetailedModuleLogs.put(dataName, logFile); in logAssociation() 358 mDetailedForwarder.logAssociation(dataName, logFile); in logAssociation() 364 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 365 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 366 mDetailedForwarder.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 435 for (LogFile logFile : runResult.getRunLoggedFiles().get(key)) { in testModuleEnded() 436 mAggregatedForwarder.logAssociation(key, logFile); in testModuleEnded() 498 for (Entry<String, LogFile> logFile : in forwardTestResults() [all …]
|
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/ |
D | LogPathUpdatingListener.java | 55 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 59 delegate().testLog(dataName, logFile.getType(), dataStream); in testLogSaved() 63 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 69 logFile.getType(), in logAssociation() 71 new File(findNewArtifactPath(Paths.get(logFile.getPath()))))); in logAssociation()
|
D | TestListeners.java | 37 LogFile logFile) { in testLogSaved() argument 43 ((ILogSaverListener) listener).testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 46 static void logAssociation(ITestInvocationListener listener, String dataName, LogFile logFile) { in logAssociation() argument 51 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
|
D | InvocationLogCollector.java | 66 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 73 TestListeners.testLogSaved(l, dataName, dataType, dataStream, logFile); in testLogSaved() 78 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 84 TestListeners.logAssociation(l, dataName, logFile); in logAssociation()
|
D | BazelTestListener.java | 66 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 71 TestListeners.testLogSaved(delegate(), dataName, dataType, dataStream, logFile); in testLogSaved() local 75 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 79 TestListeners.logAssociation(delegate(), dataName, logFile); in logAssociation() local
|
D | ForwardingTestListener.java | 187 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 189 TestListeners.testLogSaved(delegate(), dataName, dataType, dataStream, logFile); in testLogSaved() local 193 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 194 TestListeners.logAssociation(delegate(), dataName, logFile); in logAssociation() local
|
D | BazelTest.java | 414 Path logFile = createLogFile("%s-log".formatted(QUERY_ALL_TARGETS)); in queryAllTestTargets() local 421 builder.redirectError(Redirect.appendTo(logFile.toFile())); in queryAllTestTargets() 444 Path logFile = createLogFile("%s-log".formatted(QUERY_MAP_MODULES_TO_TARGETS)); in queryModulesToTestTargets() local 452 builder.redirectError(Redirect.appendTo(logFile.toFile())); in queryModulesToTestTargets() 518 Path logFile = createLogFile("%s-log".formatted(RUN_TESTS)); in startTests() local 543 builder.redirectOutput(Redirect.appendTo(logFile.toFile())); in startTests() 834 for (LogFileWithType logFile : mLogFiles) { in addTestLogs() 836 new FileInputStreamSource(logFile.getPath().toFile(), true)) { in addTestLogs() 837 logger.testLog(logFile.getPath().toFile().getName(), logFile.getType(), source); in addTestLogs()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BluetoothUtils.java | 268 File logFile = null; in uploadLogFiles() local 273 logFile = device.pullFile(fileName); in uploadLogFiles() 274 if (logFile != null) { in uploadLogFiles() 277 type, logFile.length(), logFile); in uploadLogFiles() 278 logSource = new FileInputStreamSource(logFile); in uploadLogFiles() 285 FileUtil.deleteFile(logFile); in uploadLogFiles()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/ |
D | GameQualificationResultReporter.java | 93 LogFile logFile) { in testLogSaved() argument 94 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 95 mLogFiles.add(logFile); in testLogSaved() 135 for (LogFile logFile : mLogFiles) { in getInvocationSummary() 136 final String url = logFile.getUrl(); in getInvocationSummary() 137 sb.append(String.format(" %s\n", url != null ? url : logFile.getPath())); in getInvocationSummary() 215 LogFile logFile = createFunctionalTestFailureReport(); in getInvocationSummary() local 217 sb.append(logFile.getPath()); in getInvocationSummary()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTest.java | 169 logFile(stdout, listener); in runBinary() 170 logFile(stderr, listener); in runBinary() 202 private void logFile(File logFile, ITestLogger logger) { in logFile() method in ExecutableHostTest 203 try (FileInputStreamSource source = new FileInputStreamSource(logFile, true)) { in logFile() 204 logger.testLog(logFile.getName(), LogDataType.TEXT, source); in logFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 158 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents() local 196 mTestParser.logAssociation("log1", logFile); in testEvents() 241 assertEquals(logFile.getPath(), capturedFile.getPath()); in testEvents() 242 assertEquals(logFile.getUrl(), capturedFile.getUrl()); in testEvents() 243 assertEquals(logFile.getType(), capturedFile.getType()); in testEvents() 244 assertEquals(logFile.getSize(), capturedFile.getSize()); in testEvents() 380 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_finaleProto() local 400 mFinalTestParser.logAssociation("log1", logFile); in testEvents_finaleProto() 576 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_subprocess() local 593 mTestParser.logAssociation("log1", logFile); in testEvents_subprocess() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/proto/ |
D | ProtoResultReporter.java | 547 public final void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 560 Any any = Any.pack(createFileProto(logFile)); in logAssociation() 571 CLog.logAndDisplay(LogLevel.DEBUG, "process final logs: %s", logFile.getPath()); in logAssociation() 604 private LogFileInfo createFileProto(LogFile logFile) { in createFileProto() argument 607 .setPath(logFile.getPath()) in createFileProto() 608 .setIsText(logFile.isText()) in createFileProto() 609 .setLogType(logFile.getType().toString()) in createFileProto() 610 .setIsCompressed(logFile.isCompressed()) in createFileProto() 611 .setSize(logFile.getSize()); in createFileProto() 613 if (logFile.getUrl() != null) { in createFileProto() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleListener.java | 284 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 286 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 290 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 296 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 298 super.logAssociation(dataName, logFile); in logAssociation() 302 ((ILogSaverListener) mMainListener).logAssociation(dataName, logFile); in logAssociation()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | SubprocessTestResultsParserTest.java | 489 LogFile logFile = new LogFile("path", "url", LogDataType.TEXT); in testParse_logAssociation() local 494 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation() 512 assertEquals(logFile.getPath(), received.getPath()); in testParse_logAssociation() 513 assertEquals(logFile.getUrl(), received.getUrl()); in testParse_logAssociation() 514 assertEquals(logFile.getType(), received.getType()); in testParse_logAssociation() 523 LogFile logFile = new LogFile(log.getAbsolutePath(), null, LogDataType.TEXT); in testParse_logAssociation_notUploaded() local 528 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation_notUploaded() 557 LogFile logFile = new LogFile(testLogFile.getAbsolutePath(), "", LogDataType.TEXT); in testParse_avoidDoubleLog() local 562 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_avoidDoubleLog()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | ILogSaverListener.java | 50 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 64 public default void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessor.java | 391 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 393 mCopiedLogs.put(dataName, copyLogFile(logFile)); in testLogSaved() 396 ((ILogSaverListener) mForwarder).testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 407 public final void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 423 ((ILogSaverListener) mForwarder).logAssociation(dataName, logFile); in logAssociation()
|