/tools/tradefederation/core/tests/src/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() 178 File logFile = null; in testSaveAndGZipLogData() local 185 logFile = saver.saveAndGZipLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveAndGZipLogData() 187 assertTrue(logFile.getName().endsWith(LogDataType.GZIP.getFileExt())); in testSaveAndGZipLogData() 189 gzipStream = new GZIPInputStream(new FileInputStream(logFile)); in testSaveAndGZipLogData() 194 FileUtil.deleteFile(logFile); in testSaveAndGZipLogData() [all …]
|
D | FileSystemLogSaverTest.java | 167 LogFile logFile = null; in testSaveLogData_uncompressed() local 178 logFile = saver.saveLogData("testSaveLogData", LogDataType.TEXT, mockInput); in testSaveLogData_uncompressed() 180 assertTrue(logFile.getPath().endsWith(LogDataType.ZIP.getFileExt())); in testSaveLogData_uncompressed() 182 zipFile = new ZipFile(new File(logFile.getPath())); in testSaveLogData_uncompressed() 192 FileUtil.deleteFile(new File(logFile.getPath())); in testSaveLogData_uncompressed() 202 LogFile logFile = null; in testSaveLogData_compressed() local 212 logFile = saver.saveLogData("testSaveLogData", LogDataType.ZIP, mockInput); in testSaveLogData_compressed() 215 logFileReader = new BufferedReader(new FileReader(new File(logFile.getPath()))); in testSaveLogData_compressed() 220 FileUtil.deleteFile(new File(logFile.getPath())); in testSaveLogData_compressed() 230 LogFile logFile = null; in testSaveLogDataRaw() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LogFileSaver.java | 217 File logFile = FileUtil.createTempFile(saneDataName + "_", "." + ext, in saveLogDataRaw() local 219 FileUtil.writeToFile(dataStream, logFile); in saveLogDataRaw() 220 CLog.i("Saved log file %s", logFile.getAbsolutePath()); in saveLogDataRaw() 221 return logFile; in saveLogDataRaw() 244 File logFile = createCompressedLogFile(saneDataName, dataType); in saveAndGZipLogData() local 246 outStream = createGZipLogStream(logFile); in saveAndGZipLogData() 248 CLog.i("Saved log file %s", logFile.getAbsolutePath()); in saveAndGZipLogData() 249 return logFile; in saveAndGZipLogData() 277 File logFile = FileUtil.createTempFile(saneDataName + "_", "." in saveAndZipLogData() local 281 logFile), BUFFER_SIZE)); in saveAndZipLogData() [all …]
|
D | ConsoleResultReporter.java | 162 for (LogFile logFile : mLoggedFiles) { in invocationEnded() 163 printLog(logFile); in invocationEnded() 169 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 170 mLoggedFiles.add(logFile); in logAssociation() 176 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 177 mLoggedFiles.add(logFile); in testLogSaved() 180 private void printLog(LogFile logFile) { in printLog() argument 185 String logDesc = logFile.getUrl() == null ? logFile.getPath() : logFile.getUrl(); in printLog()
|
D | LogSaverResultForwarder.java | 123 LogFile logFile = mLogSaver.saveLogData(dataName, dataType, in testLog() local 128 dataStream, logFile); in testLog() 129 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in testLog() 152 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 157 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 168 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 173 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
|
D | ResultAndLogForwarder.java | 43 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 48 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 58 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 63 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
|
D | LegacySubprocessResultsReporter.java | 163 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 169 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 177 LogAssociationEventInfo info = new LogAssociationEventInfo(dataName, logFile); in logAssociation()
|
D | CollectingTestListener.java | 321 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 323 mCurrentTestRunResult.testLogSaved(dataName, logFile); in logAssociation() 325 mNonAssociatedLogFiles.put(dataName, logFile); in logAssociation()
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | ResultAggregator.java | 278 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 279 super.logAssociation(dataName, logFile); in logAssociation() 281 mDetailedModuleLogs.put(dataName, logFile); in logAssociation() 283 mDetailedForwarder.logAssociation(dataName, logFile); in logAssociation() 289 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 290 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 291 mDetailedForwarder.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 352 for (LogFile logFile : runResult.getRunLoggedFiles().get(key)) { in testModuleEnded() 353 mAggregatedForwarder.logAssociation(key, logFile); in testModuleEnded() 404 for (Entry<String, LogFile> logFile : in forwardTestResults() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 147 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents() local 205 mTestParser.logAssociation("log1", logFile); in testEvents() 227 assertEquals(logFile.getPath(), capturedFile.getPath()); in testEvents() 228 assertEquals(logFile.getUrl(), capturedFile.getUrl()); in testEvents() 229 assertEquals(logFile.getType(), capturedFile.getType()); in testEvents() 230 assertEquals(logFile.getSize(), capturedFile.getSize()); in testEvents() 367 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_finaleProto() local 406 mFinalTestParser.logAssociation("log1", logFile); in testEvents_finaleProto() 562 LogFile logFile = new LogFile("path", "url", false, LogDataType.TEXT, 5); in testEvents_subprocess() local 605 mTestParser.logAssociation("log1", logFile); in testEvents_subprocess() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | SubprocessTestResultsParserTest.java | 513 LogFile logFile = new LogFile("path", "url", LogDataType.TEXT); in testParse_logAssociation() local 518 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation() 534 assertEquals(logFile.getPath(), received.getPath()); in testParse_logAssociation() 535 assertEquals(logFile.getUrl(), received.getUrl()); in testParse_logAssociation() 536 assertEquals(logFile.getType(), received.getType()); in testParse_logAssociation() 549 LogFile logFile = new LogFile(log.getAbsolutePath(), null, LogDataType.TEXT); in testParse_logAssociation_notUploaded() local 554 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation_notUploaded() 583 LogFile logFile = new LogFile(zipLog.getAbsolutePath(), null, LogDataType.TEXT); in testParse_logAssociation_zipped() local 588 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation_zipped() 618 LogFile logFile = new LogFile(testLogFile.getAbsolutePath(), "", LogDataType.TEXT); in testParse_avoidDoubleLog() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/proto/ |
D | ProtoResultReporter.java | 485 public final void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 493 Any any = Any.pack(createFileProto(logFile)); in logAssociation() 517 private LogFileInfo createFileProto(LogFile logFile) { in createFileProto() argument 520 .setPath(logFile.getPath()) in createFileProto() 521 .setIsText(logFile.isText()) in createFileProto() 522 .setLogType(logFile.getType().toString()) in createFileProto() 523 .setIsCompressed(logFile.isCompressed()) in createFileProto() 524 .setSize(logFile.getSize()); in createFileProto() 526 if (logFile.getUrl() != null) { in createFileProto() 527 logFileBuilder.setUrl(logFile.getUrl()); in createFileProto()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | ShardListener.java | 129 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 130 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 135 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 287 for (LogFile logFile : loggedFiles.get(key)) { in forwardLogAssociation() 289 ((ILogSaverListener) listener).logAssociation(key, logFile); in forwardLogAssociation() 298 for (Entry<String, LogFile> logFile : loggedFiles.entrySet()) { in forwardLogAssociation() 300 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in forwardLogAssociation()
|
D | ShardMainResultForwarder.java | 126 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 132 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 164 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 169 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
|
/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/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/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleListener.java | 220 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 222 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 226 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 232 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 234 super.logAssociation(dataName, logFile); in logAssociation() 238 ((ILogSaverListener) mMainListener).logAssociation(dataName, logFile); in logAssociation()
|
D | ModuleDefinition.java | 730 for (LogFile logFile : aggLogFiles.get(key)) { in reportFinalResults() 732 ((ILogSaverListener) listener).logAssociation(key, logFile); in reportFinalResults() 767 for (Entry<String, LogFile> logFile : in forwardTestResults() 771 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTest.java | 152 logFile(stdout, listener); in runBinary() 153 logFile(stderr, listener); in runBinary() 180 private void logFile(File logFile, ITestLogger logger) { in logFile() argument 181 try (FileInputStreamSource source = new FileInputStreamSource(logFile, true)) { in logFile() 182 logger.testLog(logFile.getName(), LogDataType.TEXT, source); in logFile()
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessor.java | 298 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument 300 ((ILogSaverListener) mForwarder).testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved() 311 public final void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument 314 mTestLogs.get(mCurrentTest).put(dataName, logFile); in logAssociation() 316 mRunLogs.put(dataName, logFile); in logAssociation() 320 ((ILogSaverListener) mForwarder).logAssociation(dataName, logFile); in logAssociation()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackTest.java | 765 final File logFile = getDevice().pullFile(deviceFileName); in storeDeviceFilesOnHost() local 766 data.setLogFile(log, logFile.getAbsolutePath()); in storeDeviceFilesOnHost() 833 File logFile = new File(logFilename); in uploadLog() local 834 try (InputStreamSource iss = new FileInputStreamSource(logFile)) { in uploadLog()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayer.java | 188 for (Entry<String, LogFile> logFile : in forwardTestResults() 192 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestRunResult.java | 446 public void testLogSaved(String dataName, LogFile logFile) { in testLogSaved() argument 449 mCurrentTestResult.addLoggedFile(dataName, logFile); in testLogSaved() 451 mRunLoggedFiles.put(dataName, logFile); in testLogSaved()
|
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/device/cloud/ |
D | GceManager.java | 565 logFile(remoteFile, baseName, logger, type); in logNestedRemoteFile() 569 private static void logFile( in logFile() method in GceManager 573 logFile(f, null, logger, type); in logFile()
|