Home
last modified time | relevance | path

Searched refs:oldVersion (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbHelper.java116 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
123 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
124 if (oldVersion < 2) { in onUpgrade()
130 if (oldVersion < 3 && newVersion >= 3) { in onUpgrade()
132 oldVersion = 3; in onUpgrade()
135 if (oldVersion < 4 && newVersion >= 4) { in onUpgrade()
137 oldVersion = 4; in onUpgrade()
140 if (oldVersion < 5 && newVersion >= 5) { in onUpgrade()
142 oldVersion = 5; in onUpgrade()
145 if (oldVersion < 6 && newVersion >= 6) { in onUpgrade()
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java246 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
247 Log.i(TAG, "Upgrade CE from version " + oldVersion + " to version " + newVersion); in onUpgrade()
249 if (oldVersion == 9) { in onUpgrade()
260 oldVersion++; in onUpgrade()
263 if (oldVersion != newVersion) { in onUpgrade()
264 Log.e(TAG, "failed to upgrade version " + oldVersion + " to version " + newVersion); in onUpgrade()
269 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
602 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
603 Log.i(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
605 if (oldVersion == 1) { in onUpgrade()
[all …]
/frameworks/native/cmds/installd/
Dinstalld.cpp79 int oldVersion; in initialize_directories() local
80 if (fs_read_atomic_int(version_path, &oldVersion) == -1) { in initialize_directories()
81 oldVersion = 0; in initialize_directories()
83 int version = oldVersion; in initialize_directories()
160 if (version != oldVersion) { in initialize_directories()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
90 if (oldVersion < 4) { in onUpgrade()
96 if (oldVersion == 4) { in onUpgrade()
100 oldVersion++; in onUpgrade()
103 if (oldVersion == 5) { in onUpgrade()
139 oldVersion++; in onUpgrade()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/storage/
DBackupEncryptionDbHelper.java68 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
74 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java115 private void upgradeTuner(int oldVersion, int newVersion, Handler mainHandler) { in upgradeTuner() argument
116 if (oldVersion < 1) { in upgradeTuner()
130 if (oldVersion < 2) { in upgradeTuner()
134 if (oldVersion < 4) { in upgradeTuner()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
69 Log.w(LOG_TAG, "Upgrading database from version " + oldVersion in onUpgrade()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java522 public abstract void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument
540 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
542 oldVersion + " to " + newVersion); in onDowngrade()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java86 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
88 oldVersion + " to " + currentVersion + in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java84 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
86 oldVersion + " to " + currentVersion + in onUpgrade()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DPreNTestDatabaseHelper.java88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java370 void runVersionChangeTest(int oldVersion, int newVersion, int interval) throws IOException { in runVersionChangeTest() argument
372 UsageStatsDatabase prevDB = new UsageStatsDatabase(mTestDir, oldVersion); in runVersionChangeTest()
384 final int minVersion = oldVersion < newVersion ? oldVersion : newVersion; in runVersionChangeTest()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java154 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
155 Log.w(TAG, "Upgrading database from version " + oldVersion + " to " in onUpgrade()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java420 private static void upgrade(int oldVersion) throws XmlPullParserException { in upgrade() argument
421 switch (oldVersion) { in upgrade()
427 throw new XmlPullParserException("old version " + oldVersion + "; ignoring"); in upgrade()
429 throw new XmlPullParserException("unrecognized version " + oldVersion); in upgrade()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
DFakeTelephonyProvider.java129 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DGlobalResultsStore.java383 public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int currentVersion) { in onUpgrade() argument
384 if (oldVersion < VERSION) { in onUpgrade()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistReportDbHelper.java120 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/core/tests/coretests/src/android/database/
DSQLiteOpenHelperTest.java75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java247 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
248 Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to " in onUpgrade()
251 int upgradeVersion = oldVersion; in onUpgrade()
1879 recreateDatabase(db, oldVersion, upgradeVersion, currentVersion); in onUpgrade()
1883 public void recreateDatabase(SQLiteDatabase db, int oldVersion, in recreateDatabase() argument
1902 String wipeReason = oldVersion + "/" + upgradeVersion + "/" + currentVersion; in recreateDatabase()
DSettingsProvider.java3266 final int oldVersion = secureSettings.getVersionLocked();
3270 if (oldVersion == newVersion) {
3275 final int curVersion = onUpgradeLocked(mUserId, oldVersion, newVersion);
3285 dbHelper.recreateDatabase(database, newVersion, curVersion, oldVersion);
3291 onUpgradeLocked(mUserId, oldVersion, newVersion);
3358 private int onUpgradeLocked(int userId, int oldVersion, int newVersion) {
3361 + oldVersion + " to version: " + newVersion);
3364 int currentVersion = oldVersion;
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java97 int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java777 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
778 int upgradeVersion = oldVersion; in onUpgrade()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java2806 int oldVersion = NO_VERSION; in readState() local
2833 oldVersion = Integer.parseInt(versionString); in readState()
2879 upgradeLocked(oldVersion); in readState()
2919 private void upgradeLocked(int oldVersion) { in upgradeLocked() argument
2920 if (oldVersion >= CURRENT_VERSION) { in upgradeLocked()
2923 Slog.d(TAG, "Upgrading app-ops xml from version " + oldVersion + " to " + CURRENT_VERSION); in upgradeLocked()
2924 switch (oldVersion) { in upgradeLocked()

12