Home
last modified time | relevance | path

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

123

/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java1177 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
1178 Log.i(TAG, "Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade()
1181 if (oldVersion < 49) { in onUpgrade()
1193 boolean recreateMetaDataAndInstances = (oldVersion >= 59 && oldVersion <= 66); in onUpgrade()
1197 if (oldVersion < 51) { in onUpgrade()
1199 oldVersion = 51; in onUpgrade()
1201 if (oldVersion == 51) { in onUpgrade()
1203 oldVersion += 1; in onUpgrade()
1205 if (oldVersion == 52) { in onUpgrade()
1207 oldVersion += 1; in onUpgrade()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseUpgradeHelper.java28 public void doOnUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in doOnUpgrade() argument
29 Assert.isTrue(newVersion >= oldVersion); in doOnUpgrade()
30 if (oldVersion == newVersion) { in doOnUpgrade()
34 LogUtil.i(TAG, "Database upgrade started from version " + oldVersion + " to " + newVersion); in doOnUpgrade()
36 doUpgradeWithExceptions(db, oldVersion, newVersion); in doOnUpgrade()
40 oldVersion + " to version " + newVersion, ex); in doOnUpgrade()
45 public void doUpgradeWithExceptions(final SQLiteDatabase db, final int oldVersion, in doUpgradeWithExceptions() argument
47 int currentVersion = oldVersion; in doUpgradeWithExceptions()
92 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument
95 oldVersion + " version " + newVersion + ", forcing db rebuild!"); in onDowngrade()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java2352 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
2358 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade()
2362 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
2364 "Upgrading " + DATABASE_NAME + " from version " + oldVersion + " to " + newVersion); in onUpgrade()
2376 if (oldVersion < 701) { in onUpgrade()
2378 oldVersion = 701; in onUpgrade()
2381 if (oldVersion < 702) { in onUpgrade()
2383 oldVersion = 702; in onUpgrade()
2386 if (oldVersion < 703) { in onUpgrade()
2389 oldVersion = 703; in onUpgrade()
[all …]
DCallLogDatabaseHelper.java191 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
196 if (oldVersion < 2) { in onUpgrade()
200 if (oldVersion < 3) { in onUpgrade()
204 if (oldVersion < 4) { in onUpgrade()
208 if (oldVersion < 5) { in onUpgrade()
212 if (oldVersion < 6) { in onUpgrade()
216 if (oldVersion < 7) { in onUpgrade()
220 if (oldVersion < 8) { in onUpgrade()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java830 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
832 log("dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
837 if (oldVersion < (5 << 16 | 6)) { in onUpgrade()
853 oldVersion = 5 << 16 | 6; in onUpgrade()
855 if (oldVersion < (6 << 16 | 6)) { in onUpgrade()
861 oldVersion = 6 << 16 | 6; in onUpgrade()
863 if (oldVersion < (7 << 16 | 6)) { in onUpgrade()
869 oldVersion = 7 << 16 | 6; in onUpgrade()
871 if (oldVersion < (8 << 16 | 6)) { in onUpgrade()
878 oldVersion = 8 << 16 | 6; in onUpgrade()
[all …]
DCarrierDatabaseHelper.java95 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
96 Log.d(TAG, "dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
97 if (oldVersion < 2) { in onUpgrade()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java110 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) { in saveData() argument
111 if (oldVersion <= 2) { in saveData()
127 } else if (oldVersion == 3) { in saveData()
166 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
167 if (oldVersion < 4) { in onUpgrade()
170 saveData(db, oldVersion, data); in onUpgrade()
180 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDatabaseHelper.java156 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
157 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
158 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onUpgrade()
166 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
167 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onDowngrade()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDatabaseHelper.java156 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
157 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
158 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onUpgrade()
166 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
167 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onDowngrade()
/packages/apps/Launcher3/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()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbSettingsStorage.java225 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
226 for (; oldVersion != newVersion; oldVersion++) { in onUpgrade()
227 switch (oldVersion) { in onUpgrade()
240 "Unknown database version " + oldVersion); in onUpgrade()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java219 int oldVersion; in onUpgrade() local
221 oldVersion = getPropertyAsInt(db, DATABASE_VERSION_PROPERTY, 0); in onUpgrade()
223 if (oldVersion == 0) { in onUpgrade()
228 if (oldVersion < 4) { in onUpgrade()
233 if (oldVersion < 7) { in onUpgrade()
258 oldVersion = 7; in onUpgrade()
261 if (oldVersion < 8) { in onUpgrade()
263 oldVersion = 8; in onUpgrade()
266 if (oldVersion < 10) { in onUpgrade()
268 oldVersion = 10; in onUpgrade()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperUpgradeTest.java115 int oldVersion = upgrade(1108, 1200); in testDatabaseUpgrade_UpgradeToCurrent() local
116 oldVersion = upgradeTo1201(oldVersion); in testDatabaseUpgrade_UpgradeToCurrent()
117 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_UpgradeToCurrent()
128 int oldVersion = 1108; in testDatabaseUpgrade_Incremental() local
129 oldVersion = upgradeTo1109(oldVersion); in testDatabaseUpgrade_Incremental()
130 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_Incremental()
131 assertEquals(ContactsDatabaseHelper.DATABASE_VERSION, oldVersion); in testDatabaseUpgrade_Incremental()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java90 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
91 if (oldVersion == newVersion) { in onUpgrade()
95 log("Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade()
97 if (oldVersion < 12) { in onUpgrade()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDatabaseHelper.java216 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
217 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
218 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onUpgrade()
226 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
227 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onDowngrade()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockDatabaseHelper.kt64 override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, currentVersion: Int) { in onUpgrade()
66 oldVersion, currentVersion) in onUpgrade()
68 if (oldVersion <= VERSION_7) { in onUpgrade()
73 if (oldVersion <= VERSION_6) { in onUpgrade()
DClockDatabaseHelper.java132 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
133 LogUtils.v("Upgrading alarms database from version %d to %d", oldVersion, currentVersion); in onUpgrade()
135 if (oldVersion <= VERSION_7) { in onUpgrade()
140 if (oldVersion <= VERSION_6) { in onUpgrade()
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java133 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument
134 Log.w(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
136 if (oldVersion == 1) { in onUpgrade()
141 oldVersion++; in onUpgrade()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java320 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
321 if (oldVersion < 17) { in onUpgrade()
329 if (oldVersion < 18) { in onUpgrade()
337 if (mDvrFlags.startEarlyEndLateEnabled() && oldVersion < 19) { in onUpgrade()
346 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
347 if (oldVersion > DATABASE_VERSION) { in onDowngrade()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSlicesDatabaseHelper.java151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
152 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
153 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
152 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
153 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/apps/Camera2/src/com/android/camera/settings/
DAppUpgrader.java110 Object oldVersion = allPrefs.get(OLD_KEY_UPGRADE_VERSION); in getLastVersion() local
112 if (oldVersion instanceof Integer) { in getLastVersion()
113 return (Integer) oldVersion; in getLastVersion()
114 } else if (oldVersion instanceof String) { in getLastVersion()
115 return SettingsManager.convertToInt((String) oldVersion); in getLastVersion()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DCardDatabaseHelper.java181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
182 if (oldVersion < newVersion) { in onUpgrade()
183 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardDatabaseHelper.java181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
182 if (oldVersion < newVersion) { in onUpgrade()
183 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java379 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
381 Log.d(TAG, "onUpgrade: oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
383 if (oldVersion < 2) { in onUpgrade()
387 } else if (oldVersion < 3) { in onUpgrade()

123