Searched refs:mVersionFile (Results 1 – 2 of 2) sorted by relevance
84 private final File mVersionFile; field in NotificationHistoryDatabase98 mVersionFile = new File(dir, "version"); in NotificationHistoryDatabase()115 mVersionFile.createNewFile(); in init()144 try (BufferedReader reader = new BufferedReader(new FileReader(mVersionFile))) { in checkVersionAndBuildLocked()150 if (version != mCurrentVersion && mVersionFile.exists()) { in checkVersionAndBuildLocked()151 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mVersionFile))) { in checkVersionAndBuildLocked()
116 private final File mVersionFile; field in UsageStatsDatabase148 mVersionFile = new File(dir, "version"); in UsageStatsDatabase()343 try (BufferedReader reader = new BufferedReader(new FileReader(mVersionFile))) { in checkVersionAndBuildLocked()394 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mVersionFile))) { in checkVersionAndBuildLocked()448 Files.copy(mVersionFile.toPath(), in doUpgradeLocked()449 new File(backupDir, mVersionFile.getName()).toPath(), in doUpgradeLocked()452 Slog.e(TAG, "Failed to back up version file : " + mVersionFile.toString()); in doUpgradeLocked()