Home
last modified time | relevance | path

Searched refs:newVersion (Results 1 – 25 of 47) 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/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
DAccountPreferences.java84 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument
85 if (oldVersion > newVersion) { in performUpgrade()
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()
DFolderPreferences.java111 protected void performUpgrade(final int oldVersion, final int newVersion) { in performUpgrade() argument
112 if (oldVersion > newVersion) { in performUpgrade()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DSQLiteCacheHelper.java110 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
111 if (oldVersion != newVersion) { in onUpgrade()
117 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
118 if (oldVersion != newVersion) { in onDowngrade()
/packages/apps/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
184 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onUpgrade()
191 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
193 "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/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializerService.java79 int newVersion = currentVersion; in onHandleIntent() local
86 newVersion = 1; in onHandleIntent()
89 updateMappingVersion(newVersion); in onHandleIntent()
/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()
DPrivateLog.java79 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/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/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.java122 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
123 if (oldVersion == 1 && newVersion == 2) { in onUpgrade()
130 + 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/Messaging/src/com/android/messaging/util/
DBugleWidgetPrefs.java39 public void onUpgrade(int oldVersion, int newVersion) { in onUpgrade() argument
DBugleApplicationPrefs.java43 public void onUpgrade(int oldVersion, int newVersion) { in onUpgrade() argument
DBuglePrefs.java54 public abstract void onUpgrade(final int oldVersion, final int newVersion); in onUpgrade() argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnSQLiteOpenHelper.java42 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DFakeBuglePrefs.java78 public void onUpgrade(int oldVersion, int newVersion) { in onUpgrade() argument
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DSavedWallpaperImages.java290 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
294 } else if (oldVersion != newVersion) {
/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/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackDBHelper.java64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument

12