Home
last modified time | relevance | path

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

123

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseUpgradeHelper.java28 public void doOnUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in doOnUpgrade() argument
29 Assert.isTrue(newVersion >= oldVersion); in doOnUpgrade()
30 if (oldVersion == newVersion) { in doOnUpgrade()
34 LogUtil.i(TAG, "Database upgrade started from version " + oldVersion + " to " + newVersion); in doOnUpgrade()
36 doUpgradeWithExceptions(db, oldVersion, newVersion); in doOnUpgrade()
40 oldVersion + " to version " + newVersion, ex); in doOnUpgrade()
46 final int newVersion) throws Exception { in doUpgradeWithExceptions() argument
56 checkAndUpdateVersionAtReleaseEnd(currentVersion, Integer.MAX_VALUE, newVersion); in doUpgradeWithExceptions()
92 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument
95 oldVersion + " version " + newVersion + ", forcing db rebuild!"); in onDowngrade()
DDatabaseHelper.java633 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument
634 mUpgradeHelper.onDowngrade(db, oldVersion, newVersion); in onDowngrade()
822 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
823 mUpgradeHelper.doOnUpgrade(db, oldVersion, newVersion); in onUpgrade()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDatabaseHelper.java156 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
159 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onUpgrade()
166 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
168 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onDowngrade()
DAnomalyConfigJobService.java97 final int newVersion = Settings.Global.getInt(getContentResolver(), in checkAnomalyConfig() local
101 Log.i(TAG, "CurrentVersion: " + currentVersion + " new version: " + newVersion); in checkAnomalyConfig()
103 if (newVersion > currentVersion) { in checkAnomalyConfig()
117 editor.putInt(KEY_ANOMALY_CONFIG_VERSION, newVersion); in checkAnomalyConfig()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardDatabaseHelper.java110 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
111 if (oldVersion < newVersion) { in onUpgrade()
112 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializer.java70 int newVersion = currentVersion; in initialize() local
77 newVersion = 1; in initialize()
80 updateMappingVersion(newVersion); in initialize()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDatabaseHelper.java216 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
219 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onUpgrade()
226 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
228 "Index needs to be rebuilt for schema version '" + newVersion + "'."); in onDowngrade()
/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/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java190 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
195 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
197 DbDowngradeHelper.parse(mSchemaFile).onDowngrade(db, oldVersion, newVersion); in onDowngrade()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java164 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
165 if (oldVersion == newVersion) { in onUpgrade()
169 log("Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierDatabaseHelper.java95 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
96 Log.d(TAG, "dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
107 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
109 this.onUpgrade(db, oldVersion, newVersion); in onDowngrade()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DDbDowngradeHelper.java56 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
59 for (int i = oldVersion - 1; i >= newVersion; i--) { in onDowngrade()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java162 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
164 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java126 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
127 if (oldVersion == 1 && newVersion == 2) { in onUpgrade()
134 + 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/WallpaperPicker/src/com/android/wallpaperpicker/
DSavedWallpaperImages.java180 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
181 if (oldVersion != newVersion) { in onUpgrade()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/
DChatProvider.java197 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
198 Log.d(TAG, "DB upgrade from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbSettingsStorage.java225 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
226 for (; oldVersion != newVersion; oldVersion++) { in onUpgrade()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java2278 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
2284 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade()
2288 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
2290 "Upgrading " + DATABASE_NAME + " from version " + oldVersion + " to " + newVersion); in onUpgrade()
2541 if (isUpgradeRequired(oldVersion, newVersion, 1109)) { in onUpgrade()
2546 if (isUpgradeRequired(oldVersion, newVersion, 1110)) { in onUpgrade()
2551 if (isUpgradeRequired(oldVersion, newVersion, 1111)) { in onUpgrade()
2556 if (isUpgradeRequired(oldVersion, newVersion, 1200)) { in onUpgrade()
2561 if (isUpgradeRequired(oldVersion, newVersion, 1201)) { in onUpgrade()
2567 if (isUpgradeRequired(oldVersion, newVersion, 1202)) { in onUpgrade()
[all …]
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java143 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument
144 Log.w(TAG, "upgrade from version " + oldVersion + " to version " + newVersion); in onUpgrade()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchHistoryManager.java105 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
110 + ", New version = " + newVersion); in onUpgrade()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DDatabaseHelperTest.java212 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
213 assertEquals(BASE_DATABASE_VERSION, newVersion); in onDowngrade()
/packages/apps/Messaging/src/com/android/messaging/util/
DBugleWidgetPrefs.java39 public void onUpgrade(int oldVersion, int newVersion) { in onUpgrade() argument
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java419 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
421 Log.d(TAG, "onUpgrade: oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()

123