/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseUpgradeHelper.java | 28 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()
|
D | DatabaseHelper.java | 633 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/ |
D | SQLiteCacheHelper.java | 107 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/ |
D | AnomalyDatabaseHelper.java | 156 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()
|
D | AnomalyConfigJobService.java | 97 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/ |
D | AnomalyDatabaseHelper.java | 156 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()
|
D | AnomalyConfigJobService.java | 97 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/ |
D | MetadataDbHelper.java | 268 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/ |
D | IndexDatabaseHelper.java | 216 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/ |
D | CardDatabaseHelper.java | 181 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/ |
D | CardDatabaseHelper.java | 181 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/ |
D | OneTimeInitializer.java | 70 int newVersion = currentVersion; in initialize() local 77 newVersion = 1; in initialize() 80 updateMappingVersion(newVersion); in initialize()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastDatabaseHelper.java | 90 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/ |
D | DbDowngradeHelperTest.java | 190 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/ |
D | CarrierDatabaseHelper.java | 95 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/ |
D | SpeedDialEntryDatabaseHelper.java | 100 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/ |
D | UserDictionaryProvider.java | 126 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/ |
D | DbDowngradeHelper.java | 56 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/ |
D | SlicesDatabaseHelper.java | 151 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/ |
D | SlicesDatabaseHelper.java | 151 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/ |
D | PhotoDatabase.java | 103 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/ |
D | SavedWallpaperImages.java | 180 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/ |
D | UsbSettingsStorage.java | 225 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/ |
D | GrantsDatabase.java | 133 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/ |
D | SearchHistoryManager.java | 105 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 110 + ", New version = " + newVersion); in onUpgrade()
|