Home
last modified time | relevance | path

Searched refs:mVersionFile (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryDatabase.java66 private final File mVersionFile; field in NotificationHistoryDatabase
78 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()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java124 private final File mVersionFile; field in UsageStatsDatabase
156 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()