/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 | ILogSaverListener.java | 50 LogFile logFile); in testLogSaved() argument 62 public default void logAssociation(String dataName, LogFile logFile) { in logAssociation() argument
|
D | ConsoleResultReporter.java | 59 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()
|
D | TestResult.java | 169 for (Map.Entry<String, LogFile> logFile : result.getLoggedFiles().entrySet()) { in clone() 170 newResult.addLoggedFile(logFile.getKey(), logFile.getValue()); in clone()
|
D | TextResultReporter.java | 89 LogFile logFile) { in testLogSaved() argument 90 CLog.logAndDisplay(LogLevel.INFO, "Saved %s log to %s", dataName, logFile.getPath()); in testLogSaved()
|
D | CollectingTestListener.java | 327 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()
|
D | SubprocessResultsReporter.java | 192 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()
|
D | XmlResultReporter.java | 219 LogFile logFile) { in testLogSaved() argument 221 logFile.getPath())); in testLogSaved()
|
D | TestRunResult.java | 340 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/ |
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/invoker/ |
D | ShardListener.java | 102 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()
|
D | ShardMasterResultForwarder.java | 117 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/ |
D | TopHelper.java | 95 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/ |
D | ModuleListener.java | 160 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()
|
D | ModuleDefinition.java | 537 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/ |
D | SubprocessTestResultsParserTest.java | 421 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/ |
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()
|