Home
last modified time | relevance | path

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

/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/
DILogSaverListener.java50 LogFile logFile); in testLogSaved() argument
62 public default void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
DConsoleResultReporter.java59 LogFile logFile) { in testLogSaved() argument
60 mLogFiles.add(logFile); in testLogSaved()
85 for (LogFile logFile : mLogFiles) { in getInvocationSummary()
86 final String url = logFile.getUrl(); in getInvocationSummary()
87 sb.append(String.format(" %s\n", url != null ? url : logFile.getPath())); in getInvocationSummary()
DTestResult.java169 for (Map.Entry<String, LogFile> logFile : result.getLoggedFiles().entrySet()) { in clone()
170 newResult.addLoggedFile(logFile.getKey(), logFile.getValue()); in clone()
DTextResultReporter.java89 LogFile logFile) { in testLogSaved() argument
90 CLog.logAndDisplay(LogLevel.INFO, "Saved %s log to %s", dataName, logFile.getPath()); in testLogSaved()
DCollectingTestListener.java327 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
339 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
340 mCurrentResults.testLogSaved(dataName, logFile); in logAssociation()
DSubprocessResultsReporter.java192 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
204 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
205 LogAssociationEventInfo info = new LogAssociationEventInfo(dataName, logFile); in logAssociation()
DXmlResultReporter.java219 LogFile logFile) { in testLogSaved() argument
221 logFile.getPath())); in testLogSaved()
DTestRunResult.java340 public void testLogSaved(String dataName, LogFile logFile) { in testLogSaved() argument
343 mCurrentTestResult.addLoggedFile(dataName, logFile); in testLogSaved()
345 mRunLoggedFiles.put(dataName, logFile); in testLogSaved()
/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/src/com/android/tradefed/invoker/
DShardListener.java102 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
103 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
108 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
206 for (Entry<String, LogFile> logFile : loggedFiles.entrySet()) { in forwardLogAssociation()
208 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in forwardLogAssociation()
DShardMasterResultForwarder.java117 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
123 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
155 public void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
160 ((ILogSaverListener) listener).logAssociation(dataName, logFile); in logAssociation()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTopHelper.java95 public synchronized void logToFile(File logFile) { in logToFile() argument
97 mLogFile = logFile; in logToFile()
213 public void logToFile(File logFile) { in logToFile() argument
214 mReceiver.logToFile(logFile); in logToFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java160 String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) { in testLogSaved() argument
162 super.testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
166 .testLogSaved(dataName, dataType, dataStream, logFile); in testLogSaved()
DModuleDefinition.java537 for (Entry<String, LogFile> logFile : aggLogFiles.entrySet()) { in reportFinalResults()
539 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in reportFinalResults()
568 for (Entry<String, LogFile> logFile : in forwardTestResults()
572 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java421 LogFile logFile = new LogFile("path", "url", LogDataType.TEXT); in testParse_logAssociation() local
426 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation()
442 assertEquals(logFile.getPath(), received.getPath()); in testParse_logAssociation()
443 assertEquals(logFile.getUrl(), received.getUrl()); in testParse_logAssociation()
444 assertEquals(logFile.getType(), received.getType()); in testParse_logAssociation()
/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()