/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/src/com/android/email/provider/ |
D | DBHelper.java | 381 int oldVersion, int newVersion) { in resetMessageTable() argument 493 static void resetAccountTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetAccountTable() argument 545 static void resetHostAuthTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetHostAuthTable() argument 590 static void resetMailboxTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetMailboxTable() argument 621 static void resetAttachmentTable(SQLiteDatabase db, int oldVersion, int newVersion) { in resetAttachmentTable() argument 652 static void upgradeBodyTable(SQLiteDatabase db, int oldVersion, int newVersion) { in upgradeBodyTable() argument 653 if (oldVersion < 5) { in upgradeBodyTable() 657 oldVersion = 5; in upgradeBodyTable() 661 if (oldVersion == 5) { in upgradeBodyTable() 669 oldVersion = 6; in upgradeBodyTable() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 1983 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 1989 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 1993 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 1994 if (oldVersion < 99) { in onUpgrade() 1995 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion in onUpgrade() 2021 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion); in onUpgrade() 2031 if (oldVersion == 99) { in onUpgrade() 2033 oldVersion++; in onUpgrade() 2036 if (oldVersion == 100) { in onUpgrade() 2045 oldVersion++; 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() 70 protected static void migrate(final Context context, final int oldVersion, final int newVersion, in migrate() argument 74 if (oldVersion < 1) { in migrate() 169 if (oldVersion < 2) { in migrate() 175 if (oldVersion < 3) { in migrate()
|
/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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 200 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 201 if (oldVersion < (5 << 16 | 6)) { in onUpgrade() 217 oldVersion = 5 << 16 | 6; in onUpgrade() 219 if (oldVersion < (6 << 16 | 6)) { in onUpgrade() 225 oldVersion = 6 << 16 | 6; in onUpgrade() 227 if (oldVersion < (7 << 16 | 6)) { in onUpgrade() 233 oldVersion = 7 << 16 | 6; in onUpgrade() 235 if (oldVersion < (8 << 16 | 6)) { in onUpgrade() 242 oldVersion = 8 << 16 | 6; in onUpgrade()
|
D | MmsSmsDatabaseHelper.java | 1012 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 1013 Log.w(TAG, "Upgrading database from version " + oldVersion in onUpgrade() 1016 switch (oldVersion) { in onUpgrade()
|
/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()
|
D | BrowserProvider2.java | 606 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 607 if (oldVersion < 32) { in onUpgrade() 610 if (oldVersion < 31) { in onUpgrade() 613 if (oldVersion < 30) { in onUpgrade() 617 if (oldVersion < 28) { in onUpgrade() 620 if (oldVersion < 27) { in onUpgrade() 623 if (oldVersion < 26) { in onUpgrade() 626 if (oldVersion < 25) { 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() 74 .performMigration(context, oldVersion, CURRENT_VERSION_NUMBER); in VersionedPrefs() 139 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 | 134 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument 135 if (oldVersion > newVersion) { in performUpgrade() 138 } else if (oldVersion == newVersion) { in performUpgrade()
|
D | AccountPreferences.java | 81 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument 82 if (oldVersion > newVersion) { in performUpgrade()
|
D | FolderPreferences.java | 112 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument 113 if (oldVersion > newVersion) { in performUpgrade()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | UserDictionaryProvider.java | 100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 101 if (oldVersion == 1 && newVersion == 2) { in onUpgrade() 102 Log.i(TAG, "Upgrading database from version " + oldVersion in onUpgrade() 107 Log.w(TAG, "Upgrading database from version " + oldVersion + " to " in onUpgrade()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 260 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument 261 Log.e(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade() 263 if (oldVersion == 1) { in onUpgrade() 265 oldVersion++; in onUpgrade()
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 400 int oldVersion; in onUpgrade() local 402 oldVersion = getPropertyAsInt(db, DATABASE_VERSION_PROPERTY, 0); in onUpgrade() 404 if (oldVersion == 0) { in onUpgrade() 408 if (oldVersion < 4) { in onUpgrade() 413 if (oldVersion != DATABASE_VERSION) { in onUpgrade()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataDbHelper.java | 224 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() argument 225 if (METADATA_DATABASE_INITIAL_VERSION == oldVersion in onUpgrade() 248 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument 254 if (oldVersion <= newVersion) { in onDowngrade() 255 Log.e(TAG, "onDowngrade database but new version is higher? " + oldVersion + " <= " in onDowngrade()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockDatabaseHelper.java | 143 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument 145 Log.v("Upgrading alarms database from version " + oldVersion + " to " + currentVersion); in onUpgrade() 148 if (oldVersion <= VERSION_6) { in onUpgrade()
|
/packages/apps/Browser/src/com/android/browser/ |
D | AutoFillProfileDatabase.java | 74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 75 Log.w(LOGTAG, "Upgrading database from version " + oldVersion + " to " in onUpgrade()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | PhotoAppWidgetProvider.java | 108 public void onUpgrade(SQLiteDatabase db, int oldVersion, in onUpgrade() argument 110 int version = oldVersion; in onUpgrade()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoDatabase.java | 103 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 108 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | SavedWallpaperImages.java | 246 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 247 if (oldVersion != newVersion) { in onUpgrade()
|