Searched refs:oldVersion (Results 1 - 25 of 36) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
H A DBasePreferenceMigrator.java32 final Context context, final int oldVersion, final int newVersion) {
35 migrate(context, oldVersion, newVersion);
45 * @param oldVersion The previous version of UnifiedEmail's preferences
48 protected abstract void migrate(final Context context, int oldVersion, int newVersion); argument
31 performMigration( final Context context, final int oldVersion, final int newVersion) argument
H A DVersionedPrefs.java67 final int oldVersion = getCurrentVersion();
69 performUpgrade(oldVersion, CURRENT_VERSION_NUMBER);
74 .performMigration(context, oldVersion, CURRENT_VERSION_NUMBER);
136 * @param oldVersion The current version
139 protected abstract void performUpgrade(int oldVersion, int newVersion); argument
H A DAccountPreferences.java81 protected void performUpgrade(final int oldVersion, final int newVersion) { argument
82 if (oldVersion > newVersion) {
H A DMailPrefs.java134 protected void performUpgrade(final int oldVersion, final int newVersion) { argument
135 if (oldVersion > newVersion) {
138 } else if (oldVersion == newVersion) {
H A DFolderPreferences.java112 protected void performUpgrade(final int oldVersion, final int newVersion) { argument
113 if (oldVersion > newVersion) {
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarDatabaseHelper.java1176 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
1177 Log.i(TAG, "Upgrading DB from version " + oldVersion + " to " + newVersion);
1180 if (oldVersion < 49) {
1192 boolean recreateMetaDataAndInstances = (oldVersion >= 59 && oldVersion <= 66);
1196 if (oldVersion < 51) {
1198 oldVersion = 51;
1200 if (oldVersion == 51) {
1202 oldVersion += 1;
1204 if (oldVersion
1451 onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DOpenWnnSQLiteOpenHelper.java42 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
/packages/apps/Email/src/com/android/email/provider/
H A DDBHelper.java355 static void resetMessageTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
466 static void resetAccountTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
518 static void resetHostAuthTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
563 static void resetMailboxTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
594 static void resetAttachmentTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
625 static void upgradeBodyTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
626 if (oldVersion < 5) {
630 oldVersion = 5;
634 if (oldVersion == 5) {
642 oldVersion
672 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
714 onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
724 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactsDatabaseHelper.java1975 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
1981 super.onDowngrade(db, oldVersion, newVersion);
1985 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
1986 if (oldVersion < 99) {
1987 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion
2013 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion);
2023 if (oldVersion == 99) {
2025 oldVersion++;
2028 if (oldVersion == 100) {
2037 oldVersion
[all...]
/packages/apps/Email/src/com/android/email/preferences/
H A DEmailPreferenceMigrator.java45 protected void migrate(final Context context, final int oldVersion, final int newVersion) { argument
56 oldVersion, newVersion);
67 migrate(context, oldVersion, newVersion, accounts);
70 protected static void migrate(final Context context, final int oldVersion, final int newVersion, argument
74 if (oldVersion < 1) {
168 if (oldVersion < 2) {
174 if (oldVersion < 3) {
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastDatabaseHelper.java115 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
116 if (oldVersion == newVersion) {
120 log("Upgrading DB from version " + oldVersion + " to " + newVersion);
123 if (oldVersion == 1) {
150 oldVersion = 10; // skip to version 10
155 if (oldVersion < 10) {
157 + " DB version " + oldVersion + " (customized by OEM?)");
160 if (oldVersion == 10) {
162 oldVersion++;
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetDatabaseHelper.java110 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) { argument
111 if (oldVersion <= 2) {
127 } else if (oldVersion == 3) {
166 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
167 if (oldVersion < 4) {
170 saveData(db, oldVersion, data);
180 if (oldVersion < DATABASE_VERSION) {
/packages/apps/Browser/src/com/android/browser/
H A DAutoFillProfileDatabase.java74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
75 Log.w(LOGTAG, "Upgrading database from version " + oldVersion + " to "
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
101 if (oldVersion == 1 && newVersion == 2) {
102 Log.i(TAG, "Upgrading database from version " + oldVersion
107 Log.w(TAG, "Upgrading database from version " + oldVersion + " to "
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
H A DFilterStackDBHelper.java64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
/packages/apps/KeyChain/src/com/android/keychain/
H A DKeyChainService.java260 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { argument
261 Log.e(TAG, "upgrade from version " + oldVersion + " to version " + newVersion);
263 if (oldVersion == 1) {
265 oldVersion++;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DPrivateLog.java79 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
/packages/apps/Browser/src/com/android/browser/provider/
H A DSnapshotProvider.java97 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
98 if (oldVersion < 2) {
102 if (oldVersion < 3) {
H A DBrowserProvider.java294 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
295 Log.w(TAG, "Upgrading database from version " + oldVersion + " to "
297 if (oldVersion == 18) {
300 if (oldVersion <= 19) {
303 if (oldVersion < 21) {
306 if (oldVersion < 22) {
310 if (oldVersion < 23) {
313 if (oldVersion < 24) {
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockDatabaseHelper.java143 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument
145 Log.v("Upgrading alarms database from version " + oldVersion + " to " + currentVersion);
148 if (oldVersion <= VERSION_6) {
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DTelephonyProvider.java200 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
201 if (oldVersion < (5 << 16 | 6)) {
217 oldVersion = 5 << 16 | 6;
219 if (oldVersion < (6 << 16 | 6)) {
225 oldVersion = 6 << 16 | 6;
227 if (oldVersion < (7 << 16 | 6)) {
233 oldVersion = 7 << 16 | 6;
235 if (oldVersion < (8 << 16 | 6)) {
242 oldVersion = 8 << 16 | 6;
/packages/apps/Gallery/src/com/android/camera/
H A DPhotoAppWidgetProvider.java108 public void onUpgrade(SQLiteDatabase db, int oldVersion, argument
110 int version = oldVersion;
/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoDatabase.java103 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
108 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
/packages/apps/Launcher3/src/com/android/launcher3/
H A DSavedWallpaperImages.java237 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
238 if (oldVersion != newVersion) {
/packages/apps/Dialer/src/com/android/dialer/database/
H A DDialerDatabaseHelper.java388 int oldVersion;
390 oldVersion = getPropertyAsInt(db, DATABASE_VERSION_PROPERTY, 0);
392 if (oldVersion == 0) {
396 if (oldVersion < 4) {
401 if (oldVersion != DATABASE_VERSION) {

Completed in 634 milliseconds

12