/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 1177 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/Email/provider_src/com/android/email/provider/ |
D | DBHelper.java | 414 int oldVersion, int newVersion) { in resetMessageTable() argument 526 static void resetAccountTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetAccountTable() argument 579 static void resetHostAuthTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetHostAuthTable() argument 625 static void resetMailboxTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetMailboxTable() argument 656 static void resetAttachmentTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetAttachmentTable() argument 806 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() argument 807 if (oldVersion < 5) { in onUpgrade() 810 if (oldVersion < 6) { in onUpgrade() 813 if (oldVersion < 8) { in onUpgrade() 816 if (oldVersion < 101) { in onUpgrade() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 2375 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 2381 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 2385 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 2387 "Upgrading " + DATABASE_NAME + " from version " + oldVersion + " to " + newVersion); in onUpgrade() 2399 if (oldVersion < 701) { in onUpgrade() 2401 oldVersion = 701; in onUpgrade() 2404 if (oldVersion < 702) { in onUpgrade() 2406 oldVersion = 702; in onUpgrade() 2409 if (oldVersion < 703) { in onUpgrade() 2412 oldVersion = 703; in onUpgrade() [all …]
|
D | CallLogDatabaseHelper.java | 187 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 192 if (oldVersion < 2) { in onUpgrade() 196 if (oldVersion < 3) { in onUpgrade() 200 if (oldVersion < 4) { in onUpgrade() 204 if (oldVersion < 5) { in onUpgrade()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseUpgradeHelper.java | 28 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()
|
D | DatabaseHelper.java | 631 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument 632 mUpgradeHelper.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 820 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 821 mUpgradeHelper.doOnUpgrade(db, oldVersion, newVersion); in onUpgrade()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 585 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 587 log("dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade() 590 if (oldVersion < (5 << 16 | 6)) { in onUpgrade() 606 oldVersion = 5 << 16 | 6; in onUpgrade() 608 if (oldVersion < (6 << 16 | 6)) { in onUpgrade() 614 oldVersion = 6 << 16 | 6; in onUpgrade() 616 if (oldVersion < (7 << 16 | 6)) { in onUpgrade() 622 oldVersion = 7 << 16 | 6; in onUpgrade() 624 if (oldVersion < (8 << 16 | 6)) { in onUpgrade() 631 oldVersion = 8 << 16 | 6; in onUpgrade() [all …]
|
D | CarrierDatabaseHelper.java | 94 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 95 Log.d(TAG, "dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade() 96 if (oldVersion < 2) { in onUpgrade()
|
/packages/apps/Email/src/com/android/email/preferences/ |
D | EmailPreferenceMigrator.java | 45 protected void migrate(final Context context, final int oldVersion, final int newVersion) { in migrate() argument 56 oldVersion, newVersion); in migrate() 67 migrate(context, oldVersion, newVersion, accounts); in migrate() 71 protected static void migrate(final Context context, final int oldVersion, final int newVersion, in migrate() argument 75 if (oldVersion < 1) { in migrate() 168 if (oldVersion < 2) { in migrate() 173 if (oldVersion < 3) { in migrate() 180 if (oldVersion < 4) { in migrate()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastDatabaseHelper.java | 115 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 116 if (oldVersion == newVersion) { in onUpgrade() 120 log("Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade() 123 if (oldVersion == 1) { in onUpgrade() 150 oldVersion = 10; // skip to version 10 in onUpgrade() 155 if (oldVersion < 10) { in onUpgrade() 157 + " DB version " + oldVersion + " (customized by OEM?)"); in onUpgrade() 160 if (oldVersion == 10) { in onUpgrade() 162 oldVersion++; in onUpgrade()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetDatabaseHelper.java | 110 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/Dialer/java/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 207 int oldVersion; in onUpgrade() local 209 oldVersion = getPropertyAsInt(db, DATABASE_VERSION_PROPERTY, 0); in onUpgrade() 211 if (oldVersion == 0) { in onUpgrade() 216 if (oldVersion < 4) { in onUpgrade() 221 if (oldVersion < 7) { in onUpgrade() 246 oldVersion = 7; in onUpgrade() 249 if (oldVersion < 8) { in onUpgrade() 251 oldVersion = 8; in onUpgrade() 254 if (oldVersion < 10) { in onUpgrade() 256 oldVersion = 10; in onUpgrade() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperUpgradeTest.java | 124 int oldVersion = upgrade(1108, 1200); in testDatabaseUpgrade_UpgradeToCurrent() local 125 oldVersion = upgradeTo1201(oldVersion); in testDatabaseUpgrade_UpgradeToCurrent() 126 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_UpgradeToCurrent() 137 int oldVersion = 1108; in testDatabaseUpgrade_Incremental() local 138 oldVersion = upgradeTo1109(oldVersion); in testDatabaseUpgrade_Incremental() 139 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_Incremental() 140 assertEquals(ContactsDatabaseHelper.DATABASE_VERSION, oldVersion); in testDatabaseUpgrade_Incremental()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbSettingsStorage.java | 221 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 222 for (; oldVersion != newVersion; oldVersion++) { in onUpgrade() 223 switch (oldVersion) { in onUpgrade() 236 "Unknown database version " + oldVersion); in onUpgrade()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | SQLiteCacheHelper.java | 107 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/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | SearchRecentSuggestionsProvider.java | 113 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 115 oldVersion = oldVersion & ~0xff; in onUpgrade() 117 if (oldVersion == DATABASE_VERSION_2 && newVersion == DATABASE_VERSION_3) { in onUpgrade()
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | IndexDatabaseHelper.java | 215 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 216 if (oldVersion < DATABASE_VERSION) { in onUpgrade() 217 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onUpgrade() 225 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 226 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onDowngrade()
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
D | VersionedPrefs.java | 67 final int oldVersion = getCurrentVersion(); in VersionedPrefs() local 69 performUpgrade(oldVersion, CURRENT_VERSION_NUMBER); in VersionedPrefs() 78 .performMigration(context, oldVersion, CURRENT_VERSION_NUMBER); in VersionedPrefs() 157 protected abstract void performUpgrade(int oldVersion, int newVersion); in performUpgrade() argument
|
D | BasePreferenceMigrator.java | 32 final Context context, final int oldVersion, final int newVersion) { in performMigration() argument 35 migrate(context, oldVersion, newVersion); in performMigration() 48 protected abstract void migrate(final Context context, int oldVersion, int newVersion); in migrate() argument
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockDatabaseHelper.java | 132 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/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 110 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/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | UserDictionaryProvider.java | 126 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/tests/src/com/android/launcher3/model/ |
D | DbDowngradeHelperTest.java | 175 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 180 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 182 DbDowngradeHelper.parse(mSchemaFile).onDowngrade(db, oldVersion, newVersion); in onDowngrade()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 406 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument 407 Log.e(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade() 409 if (oldVersion == 1) { in onUpgrade() 411 oldVersion++; in onUpgrade()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 880 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 881 if (oldVersion < 23) { in onUpgrade() 882 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion in onUpgrade() 893 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion + "."); in onUpgrade() 894 if (oldVersion <= 23) { in onUpgrade() 904 if (oldVersion <= 24) { in onUpgrade() 914 if (oldVersion <= 25) { in onUpgrade() 928 if (oldVersion <= 28) { in onUpgrade() 936 if (oldVersion <= 29) { in onUpgrade() 940 if (oldVersion <= 30) { in onUpgrade() [all …]
|