Searched refs:mVersionFile (Results 1 – 2 of 2) sorted by relevance
66 private final File mVersionFile; field in NotificationHistoryDatabase78 mVersionFile = new File(dir, "version"); in NotificationHistoryDatabase()91 mVersionFile.createNewFile(); in init()120 try (BufferedReader reader = new BufferedReader(new FileReader(mVersionFile))) { in checkVersionAndBuildLocked()126 if (version != mCurrentVersion && mVersionFile.exists()) { in checkVersionAndBuildLocked()127 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mVersionFile))) { in checkVersionAndBuildLocked()
124 private final File mVersionFile; field in UsageStatsDatabase156 mVersionFile = new File(dir, "version"); in UsageStatsDatabase()356 try (BufferedReader reader = new BufferedReader(new FileReader(mVersionFile))) { in checkVersionAndBuildLocked()407 try (BufferedWriter writer = new BufferedWriter(new FileWriter(mVersionFile))) { in checkVersionAndBuildLocked()461 Files.copy(mVersionFile.toPath(), in doUpgradeLocked()462 new File(backupDir, mVersionFile.getName()).toPath(), in doUpgradeLocked()465 Slog.e(TAG, "Failed to back up version file : " + mVersionFile.toString()); in doUpgradeLocked()