Home
last modified time | relevance | path

Searched refs:logFile (Results 1 – 25 of 29) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DLogFileSaverTest.java151 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 …]
DFileSystemLogSaverTest.java167 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/
DLogFileSaver.java217 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 …]
DLogSaverResultForwarder.java118 LogFile logFile = mLogSaver.saveLogData(dataName, dataType, in testLog() local
123 dataStream, logFile); in testLog()
124 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in testLog()
147 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
152 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
163 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
168 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
DConsoleResultReporter.java162 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()
DResultAndLogForwarder.java43 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()
DTextResultReporter.java87 LogFile logFile) { in testLogSaved() argument
88 CLog.logAndDisplay(LogLevel.INFO, "Saved %s log to %s", dataName, logFile.getPath()); in testLogSaved()
DLegacySubprocessResultsReporter.java163 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()
DXmlResultReporter.java219 LogFile logFile) { in testLogSaved() argument
221 logFile.getPath())); in testLogSaved()
DCollectingTestListener.java321 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/
DResultAggregator.java278 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/src/com/android/tradefed/util/
DBluetoothUtils.java268 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/invocation_interfaces/com/android/tradefed/result/
DILogSaverListener.java50 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
64 public default void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
DTestRunResult.java446 public void testLogSaved(String dataName, LogFile logFile) { in testLogSaved() argument
449 mCurrentTestResult.addLoggedFile(dataName, logFile); in testLogSaved()
451 mRunLoggedFiles.put(dataName, logFile); in testLogSaved()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableHostTest.java151 logFile(stdout, listener); in runBinary()
152 logFile(stderr, listener); in runBinary()
173 private void logFile(File logFile, ITestLogger logger) { in logFile() method in ExecutableHostTest
174 try (FileInputStreamSource source = new FileInputStreamSource(logFile, true)) { in logFile()
175 logger.testLog(logFile.getName(), LogDataType.TEXT, source); in logFile()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardListener.java129 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()
DShardMainResultForwarder.java126 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/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java220 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()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java147 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/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java93 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/result/proto/
DProtoResultReporter.java485 public final void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
489 Any any = Any.pack(createFileProto(logFile)); in logAssociation()
513 private LogFileInfo createFileProto(LogFile logFile) { in createFileProto() argument
516 .setPath(logFile.getPath()) in createFileProto()
517 .setIsText(logFile.isText()) in createFileProto()
518 .setLogType(logFile.getType().toString()) in createFileProto()
519 .setIsCompressed(logFile.isCompressed()) in createFileProto()
520 .setSize(logFile.getSize()); in createFileProto()
522 if (logFile.getUrl() != null) { in createFileProto()
523 logFileBuilder.setUrl(logFile.getUrl()); in createFileProto()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java513 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/postprocessor/
DBasePostProcessor.java298 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/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java188 for (Entry<String, LogFile> logFile : in forwardTestResults()
192 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTest.java765 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()

12