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

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DDatabaseUpgradeHelper.java26 public void doOnUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { argument
27 Assert.isTrue(newVersion >= oldVersion);
28 if (oldVersion == newVersion) {
32 LogUtil.i(TAG, "Database upgrade started from version " + oldVersion + " to " + newVersion);
37 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { argument
40 oldVersion + " version " + newVersion + ", forcing db rebuild!");
/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 DAccountPreferences.java84 protected void performUpgrade(final int oldVersion, final int newVersion) { argument
85 if (oldVersion > newVersion) {
H A DVersionedPrefs.java67 final int oldVersion = getCurrentVersion();
69 performUpgrade(oldVersion, CURRENT_VERSION_NUMBER);
78 .performMigration(context, oldVersion, CURRENT_VERSION_NUMBER);
154 * @param oldVersion The current version
157 protected abstract void performUpgrade(int oldVersion, int newVersion); argument
/packages/apps/Messaging/src/com/android/messaging/util/
H A DBugleApplicationPrefs.java43 public void onUpgrade(int oldVersion, int newVersion) { argument
H A DBugleWidgetPrefs.java39 public void onUpgrade(int oldVersion, int newVersion) { argument
H A DBuglePrefs.java54 public abstract void onUpgrade(final int oldVersion, final int newVersion); argument
H A DBugleSubscriptionPrefs.java50 public void onUpgrade(final int oldVersion, final int newVersion) { argument
51 switch (oldVersion) {
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarDatabaseHelper.java1177 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
1178 Log.i(TAG, "Upgrading DB from version " + oldVersion + " to " + newVersion);
1181 if (oldVersion < 49) {
1193 boolean recreateMetaDataAndInstances = (oldVersion >= 59 && oldVersion <= 66);
1197 if (oldVersion < 51) {
1199 oldVersion = 51;
1201 if (oldVersion == 51) {
1203 oldVersion += 1;
1205 if (oldVersion
1452 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/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactsDatabaseHelper.java2271 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
2277 super.onDowngrade(db, oldVersion, newVersion);
2281 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
2282 if (oldVersion < 99) {
2283 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion
2309 Log.i(TAG, "Upgrading from version " + oldVersion + " to " + newVersion);
2319 if (oldVersion == 99) {
2321 oldVersion++;
2324 if (oldVersion == 100) {
2333 oldVersion
3045 isUpgradeRequired(int oldVersion, int newVersion, int version) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/provider/
H A DDBHelper.java414 int oldVersion, int newVersion) {
526 static void resetAccountTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
579 static void resetHostAuthTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
625 static void resetMailboxTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
656 static void resetAttachmentTable(SQLiteDatabase db, int oldVersion, int newVersion) { argument
806 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { argument
807 if (oldVersion < 5) {
810 if (oldVersion < 6) {
813 if (oldVersion < 8) {
816 if (oldVersion < 10
413 resetMessageTable(Context context, SQLiteDatabase db, int oldVersion, int newVersion) argument
860 onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
870 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DSQLiteCacheHelper.java110 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
111 if (oldVersion != newVersion) {
117 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
118 if (oldVersion != newVersion) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DSearchRecentSuggestionsProvider.java113 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
115 oldVersion = oldVersion & ~0xff;
117 if (oldVersion == DATABASE_VERSION_2 && newVersion == DATABASE_VERSION_3) {
/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);
71 protected static void migrate(final Context context, final int oldVersion, final int newVersion, argument
75 if (oldVersion < 1) {
168 if (oldVersion < 2) {
173 if (oldVersion < 3) {
180 if (oldVersion < 4) {
/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/Messaging/tests/src/com/android/messaging/util/
H A DFakeBuglePrefs.java78 public void onUpgrade(int oldVersion, int newVersion) { argument
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DBlockedNumberDatabaseHelper.java53 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
54 if (oldVersion < 2) {
/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/Settings/src/com/android/settings/search/
H A DIndexDatabaseHelper.java181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
182 if (oldVersion < DATABASE_VERSION) {
183 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " +
191 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
192 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " +
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockDatabaseHelper.java131 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument
132 LogUtils.v("Upgrading alarms database from version %d to %d", oldVersion, currentVersion);
134 if (oldVersion <= VERSION_7) {
139 if (oldVersion <= VERSION_6) {
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
H A DFilterStackDBHelper.java64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DPrivateLog.java79 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java122 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
123 if (oldVersion == 1 && newVersion == 2) {
124 Log.i(TAG, "Upgrading database from version " + oldVersion
129 Log.w(TAG, "Upgrading database from version " + oldVersion + " to "
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DTelephonyProvider.java489 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
491 log("dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion);
494 if (oldVersion < (5 << 16 | 6)) {
510 oldVersion = 5 << 16 | 6;
512 if (oldVersion < (6 << 16 | 6)) {
518 oldVersion = 6 << 16 | 6;
520 if (oldVersion < (7 << 16 | 6)) {
526 oldVersion = 7 << 16 | 6;
528 if (oldVersion < (8 << 16 | 6)) {
535 oldVersion
[all...]

Completed in 2587 milliseconds

12