/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/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/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | CardDatabaseHelper.java | 110 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/ |
D | OneTimeInitializer.java | 70 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/ |
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/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/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastDatabaseHelper.java | 164 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/ |
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/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/apps/Settings/src/com/android/settings/slices/ |
D | SlicesDatabaseHelper.java | 162 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/ |
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/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/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/ |
D | ChatProvider.java | 197 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/ |
D | UsbSettingsStorage.java | 225 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/ |
D | ContactsDatabaseHelper.java | 2278 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/ |
D | GrantsDatabase.java | 143 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/ |
D | SearchHistoryManager.java | 105 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/ |
D | DatabaseHelperTest.java | 212 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/ |
D | BugleWidgetPrefs.java | 39 public void onUpgrade(int oldVersion, int newVersion) { in onUpgrade() argument
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | CellBroadcastProvider.java | 419 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 421 Log.d(TAG, "onUpgrade: oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade()
|