Home
last modified time | relevance | path

Searched refs:newVersion (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseUpgradeHelper.java26 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()
DDatabaseHelper.java627 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/UnifiedEmail/src/com/android/mail/providers/
DSearchRecentSuggestionsProvider.java97 public DatabaseHelper(Context context, int newVersion) { in DatabaseHelper() argument
98 super(context, DATABASE_NAME, null, newVersion); in DatabaseHelper()
113 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
116 newVersion = newVersion & ~0xff; in onUpgrade()
117 if (oldVersion == DATABASE_VERSION_2 && newVersion == DATABASE_VERSION_3) { in onUpgrade()
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java414 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
860 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
861 if (oldVersion == 101 && newVersion == 100) { in onDowngrade()
864 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade()
870 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataDbHelper.java268 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() argument
270 && METADATA_DATABASE_VERSION_WITH_CLIENTID <= newVersion in onUpgrade()
271 && CURRENT_METADATA_DATABASE_VERSION >= newVersion) { in onUpgrade()
280 } else if (METADATA_DATABASE_VERSION_WITH_CLIENTID < newVersion in onUpgrade()
281 && CURRENT_METADATA_DATABASE_VERSION >= newVersion) { in onUpgrade()
318 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument
324 if (oldVersion <= newVersion) { in onDowngrade()
326 + newVersion); in onDowngrade()
/packages/apps/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java176 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
179 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onUpgrade()
186 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
188 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onDowngrade()
/packages/apps/Email/src/com/android/email/preferences/
DEmailPreferenceMigrator.java45 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
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DBasePreferenceMigrator.java32 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
DMailPrefs.java193 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()
DAccountPreferences.java84 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument
85 if (oldVersion > newVersion) { in performUpgrade()
DFolderPreferences.java111 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument
112 if (oldVersion > newVersion) { in performUpgrade()
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializerService.java79 int newVersion = currentVersion; in onHandleIntent() local
86 newVersion = 1; in onHandleIntent()
89 updateMappingVersion(newVersion); in onHandleIntent()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java115 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()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java121 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
122 if (oldVersion == 1 && newVersion == 2) { in onUpgrade()
129 + newVersion + ", which will destroy all old data"); in onUpgrade()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java138 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()
DIconCache.java825 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
826 if (oldVersion != newVersion) { in onUpgrade()
832 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
833 if (oldVersion != newVersion) { in onDowngrade()
/packages/apps/Browser/src/com/android/browser/
DAutoFillProfileDatabase.java74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
76 + newVersion + ", which will destroy all old data"); in onUpgrade()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoDatabase.java103 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/FMRadio/src/com/android/fmradio/
DFmProvider.java106 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
109 + newVersion + ", which will destroy all old data"); in onUpgrade()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DSavedWallpaperImages.java217 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
218 if (oldVersion != newVersion) { in onUpgrade()
/packages/apps/Messaging/src/com/android/messaging/sms/
DApnDatabase.java314 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() argument
322 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java376 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()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java245 long newVersion = getVersion(mCurrentIndex + i); in fireDataChange() local
246 if (mChanges[i + SCREEN_NAIL_MAX] != newVersion) { in fireDataChange()
247 mChanges[i + SCREEN_NAIL_MAX] = newVersion; in fireDataChange()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java200 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
206 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java1177 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()
1452 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
1453 Log.i(TAG, "Can't downgrade DB from version " + oldVersion + " to " + newVersion); in onDowngrade()

12