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.java2278 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
2284 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade()
2288 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
2290 "Upgrading " + DATABASE_NAME + " from version " + oldVersion + " to " + newVersion); in onUpgrade()
2302 if (oldVersion < 701) { in onUpgrade()
2304 oldVersion = 701; in onUpgrade()
2307 if (oldVersion < 702) { in onUpgrade()
2309 oldVersion = 702; in onUpgrade()
2312 if (oldVersion < 703) { in onUpgrade()
2315 oldVersion = 703; in onUpgrade()
[all …]
DCallLogDatabaseHelper.java196 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
201 if (oldVersion < 2) { in onUpgrade()
205 if (oldVersion < 3) { in onUpgrade()
209 if (oldVersion < 4) { in onUpgrade()
213 if (oldVersion < 5) { in onUpgrade()
217 if (oldVersion < 6) { in onUpgrade()
221 if (oldVersion < 7) { in onUpgrade()
225 if (oldVersion < 8) { in onUpgrade()
229 if (oldVersion < 9) { in onUpgrade()
233 if (oldVersion < 10) { in onUpgrade()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java940 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
942 log("dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
947 if (oldVersion < (5 << 16 | 6)) { in onUpgrade()
963 oldVersion = 5 << 16 | 6; in onUpgrade()
965 if (oldVersion < (6 << 16 | 6)) { in onUpgrade()
971 oldVersion = 6 << 16 | 6; in onUpgrade()
973 if (oldVersion < (7 << 16 | 6)) { in onUpgrade()
979 oldVersion = 7 << 16 | 6; in onUpgrade()
981 if (oldVersion < (8 << 16 | 6)) { in onUpgrade()
988 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/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/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/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java164 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
165 if (oldVersion == newVersion) { in onUpgrade()
169 log("Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade()
171 if (oldVersion < 12) { in onUpgrade()
175 if (oldVersion < 13) { 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.java110 int oldVersion = upgrade(1108, 1200); in testDatabaseUpgrade_UpgradeToCurrent() local
111 oldVersion = upgradeTo1201(oldVersion); in testDatabaseUpgrade_UpgradeToCurrent()
112 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_UpgradeToCurrent()
123 int oldVersion = 1108; in testDatabaseUpgrade_Incremental() local
124 oldVersion = upgradeTo1109(oldVersion); in testDatabaseUpgrade_Incremental()
125 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_Incremental()
126 assertEquals(ContactsDatabaseHelper.DATABASE_VERSION, oldVersion); in testDatabaseUpgrade_Incremental()
/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/Settings/src/com/android/settings/homepage/contextualcards/
DCardDatabaseHelper.java110 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
111 if (oldVersion < newVersion) { in onUpgrade()
112 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java419 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
421 Log.d(TAG, "onUpgrade: oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
423 if (oldVersion < 2) { in onUpgrade()
429 if (oldVersion < 3) { in onUpgrade()
441 if (oldVersion < 4) { in onUpgrade()
/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()
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java143 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument
144 Log.w(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
146 if (oldVersion == 1) { in onUpgrade()
151 oldVersion++; in onUpgrade()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java162 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
163 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
164 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); 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/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/BugReportApp/src/com/android/car/bugreport/
DBugStorageProvider.java179 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
180 Log.w(TAG, "Upgrading from " + oldVersion + " to " + newVersion); in onUpgrade()
181 if (oldVersion < TYPE_VERSION) { in onUpgrade()
185 if (oldVersion < AUDIO_VERSION) { in onUpgrade()
191 if (oldVersion < TTL_POINTS_VERSION) { in onUpgrade()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogDatabaseHelper.java162 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
163 if (oldVersion < 2) { in onUpgrade()
169 if (oldVersion < 4) { in onUpgrade()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java126 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
127 if (oldVersion == 1 && newVersion == 2) { in onUpgrade()
128 Log.i(TAG, "Upgrading database from version " + oldVersion in onUpgrade()
133 Log.w(TAG, "Upgrading database from version " + oldVersion + " to " in onUpgrade()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java190 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
195 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
197 DbDowngradeHelper.parse(mSchemaFile).onDowngrade(db, oldVersion, newVersion); in onDowngrade()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/
DChatProvider.java197 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
198 Log.d(TAG, "DB upgrade from " + oldVersion + " to " + newVersion); in onUpgrade()
201 switch (oldVersion) { in onUpgrade()

123