Home
last modified time | relevance | path

Searched refs:oldVersion (Results 1 – 25 of 29) 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/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java107 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
108 if (oldVersion != newVersion) { in onUpgrade()
114 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
115 if (oldVersion != newVersion) { in onDowngrade()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java95 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
96 if (oldVersion < 4) { in onUpgrade()
102 if (oldVersion == 4) { in onUpgrade()
106 oldVersion++; in onUpgrade()
109 if (oldVersion == 5) { in onUpgrade()
145 oldVersion++; in onUpgrade()
147 if (oldVersion == 6) { in onUpgrade()
152 oldVersion++; in onUpgrade()
/frameworks/base/packages/BackupEncryption/src/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/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java71 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
72 if (oldVersion == 1) { in onUpgrade()
77 oldVersion++; in onUpgrade()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java117 private void upgradeTuner(int oldVersion, int newVersion, Handler mainHandler) { in upgradeTuner() argument
118 if (oldVersion < 1) { in upgradeTuner()
132 if (oldVersion < 2) { in upgradeTuner()
136 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.java521 public abstract void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade() argument
539 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
541 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.java405 void runVersionChangeTest(int oldVersion, int newVersion, int interval) throws IOException { in runVersionChangeTest() argument
406 populateIntervalStats(oldVersion); in runVersionChangeTest()
408 UsageStatsDatabase prevDB = new UsageStatsDatabase(mTestDir, oldVersion); in runVersionChangeTest()
412 if (oldVersion >= 5) { in runVersionChangeTest()
425 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.java430 private static void upgrade(int oldVersion) throws XmlPullParserException { in upgrade() argument
431 switch (oldVersion) { in upgrade()
437 throw new XmlPullParserException("old version " + oldVersion + "; ignoring"); in upgrade()
443 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/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/core/tests/coretests/src/android/database/
DSQLiteOpenHelperTest.java75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/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/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java248 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
249 Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to " in onUpgrade()
252 int upgradeVersion = oldVersion; in onUpgrade()
1853 recreateDatabase(db, oldVersion, upgradeVersion, currentVersion); in onUpgrade()
1857 public void recreateDatabase(SQLiteDatabase db, int oldVersion, in recreateDatabase() argument
1876 String wipeReason = oldVersion + "/" + upgradeVersion + "/" + currentVersion; in recreateDatabase()
DSettingsProvider.java3530 final int oldVersion = secureSettings.getVersionLocked();
3534 if (oldVersion == newVersion) {
3539 final int curVersion = onUpgradeLocked(mUserId, oldVersion, newVersion);
3549 dbHelper.recreateDatabase(database, newVersion, curVersion, oldVersion);
3555 onUpgradeLocked(mUserId, oldVersion, newVersion);
3626 private int onUpgradeLocked(int userId, int oldVersion, int newVersion) {
3629 + oldVersion + " to version: " + newVersion);
3632 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.java805 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
806 int upgradeVersion = oldVersion; in onUpgrade()

12