/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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 2239 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 2245 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 2249 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 2250 if (oldVersion < 99) { in onUpgrade() 2251 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion in onUpgrade() 2277 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion); in onUpgrade() 2287 if (oldVersion == 99) { in onUpgrade() 2289 oldVersion++; in onUpgrade() 2292 if (oldVersion == 100) { in onUpgrade() 2301 oldVersion++; 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/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 418 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 420 log("dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade() 423 if (oldVersion < (5 << 16 | 6)) { in onUpgrade() 439 oldVersion = 5 << 16 | 6; in onUpgrade() 441 if (oldVersion < (6 << 16 | 6)) { in onUpgrade() 447 oldVersion = 6 << 16 | 6; in onUpgrade() 449 if (oldVersion < (7 << 16 | 6)) { in onUpgrade() 455 oldVersion = 7 << 16 | 6; in onUpgrade() 457 if (oldVersion < (8 << 16 | 6)) { in onUpgrade() 464 oldVersion = 8 << 16 | 6; in onUpgrade() [all …]
|
/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/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/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseUpgradeHelper.java | 26 public void doOnUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in doOnUpgrade() argument 27 Assert.isTrue(newVersion >= oldVersion); in doOnUpgrade() 28 if (oldVersion == newVersion) { in doOnUpgrade() 32 LogUtil.i(TAG, "Database upgrade started from version " + oldVersion + " to " + newVersion); in doOnUpgrade() 37 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument 40 oldVersion + " version " + newVersion + ", forcing db rebuild!"); in onDowngrade()
|
D | DatabaseHelper.java | 627 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument 628 mUpgradeHelper.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 810 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 811 mUpgradeHelper.doOnUpgrade(db, oldVersion, newVersion); 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/Settings/src/com/android/settings/search/ |
D | IndexDatabaseHelper.java | 176 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 177 if (oldVersion < DATABASE_VERSION) { in onUpgrade() 178 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onUpgrade() 186 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 187 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onDowngrade()
|
/packages/apps/Browser/src/com/android/browser/provider/ |
D | BrowserProvider.java | 294 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 295 Log.w(TAG, "Upgrading database from version " + oldVersion + " to " in onUpgrade() 297 if (oldVersion == 18) { in onUpgrade() 300 if (oldVersion <= 19) { in onUpgrade() 303 if (oldVersion < 21) { in onUpgrade() 306 if (oldVersion < 22) { in onUpgrade() 310 if (oldVersion < 23) { in onUpgrade() 313 if (oldVersion < 24) { in onUpgrade()
|
D | SnapshotProvider.java | 97 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 98 if (oldVersion < 2) { in onUpgrade() 102 if (oldVersion < 3) { in onUpgrade()
|
/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/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
|
D | MailPrefs.java | 193 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument 194 if (oldVersion > newVersion) { in performUpgrade() 197 } else if (oldVersion == newVersion) { in performUpgrade()
|
/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/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 382 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 383 if (oldVersion < 23) { in onUpgrade() 384 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion in onUpgrade() 395 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion + "."); in onUpgrade() 396 if (oldVersion == 23) { in onUpgrade() 405 oldVersion++; in onUpgrade() 407 if (oldVersion == 24) { in onUpgrade() 416 oldVersion++; in onUpgrade() 418 if (oldVersion == 25) { in onUpgrade()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | UserDictionaryProvider.java | 121 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 122 if (oldVersion == 1 && newVersion == 2) { in onUpgrade() 123 Log.i(TAG, "Upgrading database from version " + oldVersion in onUpgrade() 128 Log.w(TAG, "Upgrading database from version " + oldVersion + " to " in onUpgrade()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 376 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument 377 Log.e(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade() 379 if (oldVersion == 1) { in onUpgrade() 381 oldVersion++; in onUpgrade()
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 404 int oldVersion; in onUpgrade() local 406 oldVersion = getPropertyAsInt(db, DATABASE_VERSION_PROPERTY, 0); in onUpgrade() 408 if (oldVersion == 0) { in onUpgrade() 412 if (oldVersion < 4) { in onUpgrade() 417 if (oldVersion != DATABASE_VERSION) { in onUpgrade()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataDbHelper.java | 268 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() argument 269 if (METADATA_DATABASE_INITIAL_VERSION == oldVersion in onUpgrade() 318 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument 324 if (oldVersion <= newVersion) { in onDowngrade() 325 Log.e(TAG, "onDowngrade database but new version is higher? " + oldVersion + " <= " in onDowngrade()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockDatabaseHelper.java | 140 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 142 + oldVersion + " to " + currentVersion); in onUpgrade() 144 if (oldVersion <= VERSION_6) { in onUpgrade()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WidgetPreviewLoader.java | 138 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 139 if (oldVersion != newVersion) { in onUpgrade() 145 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 146 if (oldVersion != newVersion) { in onDowngrade()
|
D | LauncherProvider.java | 626 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 627 if (LOGD) Log.d(TAG, "onUpgrade triggered: " + oldVersion); in onUpgrade() 628 switch (oldVersion) { in onUpgrade() 733 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 735 Log.w(TAG, "Database version downgrade from: " + oldVersion + " to " + newVersion + in onDowngrade()
|