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.java84 private final File mVersionFile; field in NotificationHistoryDatabase
98 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()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java116 private final File mVersionFile; field in UsageStatsDatabase
148 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()