Home
last modified time | relevance | path

Searched refs:newVersion (Results 1 – 25 of 69) 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/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java107 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
108 if (oldVersion != newVersion) { in onUpgrade()
114 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
115 if (oldVersion != newVersion) { in onDowngrade()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DCardDatabaseHelper.java181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
182 if (oldVersion < newVersion) { in onUpgrade()
183 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardDatabaseHelper.java181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
182 if (oldVersion < newVersion) { in onUpgrade()
183 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java90 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
91 if (oldVersion == newVersion) { in onUpgrade()
95 log("Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade()
/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/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/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSlicesDatabaseHelper.java151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
153 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
153 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); 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/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/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java133 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() argument
134 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()

123