Searched refs:retentionFile (Results 1 – 3 of 3) sorted by relevance
44 File retentionFile = new File(dir, RETENTION_FILE_NAME); in writeRetentionFile() local46 retentionFile); in writeRetentionFile()53 public boolean shouldDelete(File retentionFile) { in shouldDelete() argument54 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()
136 File retentionFile = new File(saver.getFileDir(), RetentionFileSaver.RETENTION_FILE_NAME); in testGetFileDir_retention() local137 assertTrue(retentionFile.isFile()); in testGetFileDir_retention()138 String timestamp = StreamUtil.getStringFromStream(new FileInputStream(retentionFile)); in testGetFileDir_retention()
150 File retentionFile = new File(new File(saver.getLogReportDir().getPath()), in testGetFileDir_retention() local152 assertTrue(retentionFile.isFile()); in testGetFileDir_retention()153 String timestamp = StreamUtil.getStringFromStream(new FileInputStream(retentionFile)); in testGetFileDir_retention()