Home
last modified time | relevance | path

Searched refs:retentionFile (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/result/
DRetentionFileSaver.java44 File retentionFile = new File(dir, RETENTION_FILE_NAME); in writeRetentionFile() local
46 retentionFile); in writeRetentionFile()
53 public boolean shouldDelete(File retentionFile) { in shouldDelete() argument
54 if (!retentionFile.isFile() || !retentionFile.getName().equals(RETENTION_FILE_NAME)) { in shouldDelete()
55 CLog.w("%s is not a retention file", retentionFile.getAbsolutePath()); in shouldDelete()
60 timestamp = FileUtil.readStringFromFile(retentionFile); in shouldDelete()
64 CLog.e("Unable to read retention file %s", retentionFile.getAbsolutePath()); in shouldDelete()
67 … CLog.e("Unable to read timestamp in retention file %s", retentionFile.getAbsolutePath()); in shouldDelete()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DLogFileSaverTest.java136 File retentionFile = new File(saver.getFileDir(), RetentionFileSaver.RETENTION_FILE_NAME); in testGetFileDir_retention() local
137 assertTrue(retentionFile.isFile()); in testGetFileDir_retention()
138 String timestamp = StreamUtil.getStringFromStream(new FileInputStream(retentionFile)); in testGetFileDir_retention()
DFileSystemLogSaverTest.java150 File retentionFile = new File(new File(saver.getLogReportDir().getPath()), in testGetFileDir_retention() local
152 assertTrue(retentionFile.isFile()); in testGetFileDir_retention()
153 String timestamp = StreamUtil.getStringFromStream(new FileInputStream(retentionFile)); in testGetFileDir_retention()