/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 1177 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 1178 Log.i(TAG, "Upgrading DB from version " + oldVersion + " to " + newVersion); in onUpgrade() 1181 if (oldVersion < 49) { in onUpgrade() 1193 boolean recreateMetaDataAndInstances = (oldVersion >= 59 && oldVersion <= 66); in onUpgrade() 1197 if (oldVersion < 51) { in onUpgrade() 1199 oldVersion = 51; in onUpgrade() 1201 if (oldVersion == 51) { in onUpgrade() 1203 oldVersion += 1; in onUpgrade() 1205 if (oldVersion == 52) { in onUpgrade() 1207 oldVersion += 1; in onUpgrade() [all …]
|
/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() 45 public void doUpgradeWithExceptions(final SQLiteDatabase db, final int oldVersion, in doUpgradeWithExceptions() argument 47 int currentVersion = oldVersion; 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()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsDatabaseHelper.java | 708 SQLiteDatabase db, int oldVersion, int currentVersion, int upgradeVersion) { in createWordsTables() argument 727 logException(ex, oldVersion, currentVersion, upgradeVersion); in createWordsTables() 743 SQLiteDatabase db, int oldVersion, int currentVersion, int upgradeVersion) { in createThreadIdIndex() argument 749 logException(ex, oldVersion, currentVersion, upgradeVersion); in createThreadIdIndex() 758 SQLiteDatabase db, int oldVersion, int currentVersion, int upgradeVersion) { in createThreadIdDateIndex() argument 764 logException(ex, oldVersion, currentVersion, upgradeVersion); in createThreadIdDateIndex() 773 SQLiteDatabase db, int oldVersion, int currentVersion, int upgradeVersion) { in createPartMidIndex() argument 778 logException(ex, oldVersion, currentVersion, upgradeVersion); in createPartMidIndex() 787 SQLiteDatabase db, int oldVersion, int currentVersion, int upgradeVersion) { in createAddrMsgIdIndex() argument 792 logException(ex, oldVersion, currentVersion, upgradeVersion); in createAddrMsgIdIndex() [all …]
|
D | TelephonyProvider.java | 1014 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 1016 log("dbh.onUpgrade:+ db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade() 1021 if (oldVersion < (5 << 16 | 6)) { in onUpgrade() 1037 oldVersion = 5 << 16 | 6; in onUpgrade() 1039 if (oldVersion < (6 << 16 | 6)) { in onUpgrade() 1045 oldVersion = 6 << 16 | 6; in onUpgrade() 1047 if (oldVersion < (7 << 16 | 6)) { in onUpgrade() 1053 oldVersion = 7 << 16 | 6; in onUpgrade() 1055 if (oldVersion < (8 << 16 | 6)) { in onUpgrade() 1062 oldVersion = 8 << 16 | 6; in onUpgrade() [all …]
|
D | CarrierDatabaseHelper.java | 92 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 93 Log.d(TAG, "dbh.onUpgrade:db=" + db + " oldV=" + oldVersion + " newV=" + newVersion); in onUpgrade() 94 if (oldVersion < 2) { in onUpgrade() 99 if (oldVersion < 3) { in onUpgrade()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 2318 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 2324 super.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 2328 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 2330 "Upgrading " + DATABASE_NAME + " from version " + oldVersion + " to " + newVersion); in onUpgrade() 2342 if (oldVersion < 701) { in onUpgrade() 2344 oldVersion = 701; in onUpgrade() 2347 if (oldVersion < 702) { in onUpgrade() 2349 oldVersion = 702; in onUpgrade() 2352 if (oldVersion < 703) { in onUpgrade() 2355 oldVersion = 703; in onUpgrade() [all …]
|
D | CallLogDatabaseHelper.java | 214 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 219 if (oldVersion < 2) { in onUpgrade() 223 if (oldVersion < 3) { in onUpgrade() 227 if (oldVersion < 4) { in onUpgrade() 231 if (oldVersion < 5) { in onUpgrade() 235 if (oldVersion < 6) { in onUpgrade() 239 if (oldVersion < 7) { in onUpgrade() 243 if (oldVersion < 8) { in onUpgrade() 247 if (oldVersion < 9) { in onUpgrade() 251 if (oldVersion < 10) { in onUpgrade() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/ |
D | OnDevicePersonalizationDbHelper.java | 96 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 97 sLogger.d(TAG + ": DB upgrade from " + oldVersion + " to " + newVersion); in onUpgrade() 99 if (oldVersion < 2) { in onUpgrade() 103 if (oldVersion < 3) { in onUpgrade() 107 if (oldVersion < 4) { in onUpgrade() 111 if (oldVersion < 5) { in onUpgrade() 132 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 133 sLogger.d(TAG + ": DB downgrade from " + newVersion + " to " + oldVersion); in onDowngrade()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/ |
D | DbHelper.java | 154 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 157 oldVersion, newVersion); in onUpgrade() 163 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in onUpgrade() 167 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in onUpgrade() 171 oldVersion, newVersion); in onUpgrade() 196 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 197 LogUtil.d("Downgrade database version from %d to %d.", oldVersion, newVersion); in onDowngrade()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyDatabaseHelper.java | 163 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 164 if (oldVersion < DATABASE_VERSION) { in onUpgrade() 168 + oldVersion in onUpgrade() 179 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 183 + oldVersion in onDowngrade()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/ |
D | FederatedComputeDbHelper.java | 181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 182 LogUtil.d(TAG, "DB upgrade from %d to %d", oldVersion, newVersion); in onUpgrade() 183 if (oldVersion < 2) { in onUpgrade() 239 oldVersion, newVersion), in onUpgrade() 247 oldVersion, newVersion)); in onUpgrade() 252 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 253 LogUtil.d(TAG, "DB downgrade from %d to %d", newVersion, oldVersion); in onDowngrade()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/ |
D | DatabaseUpgradeHelper.java | 96 static void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 99 if (oldVersion < DB_VERSION_UUID_BLOB) { in onUpgrade() 101 if (oldVersion > 0) { in onUpgrade() 107 if (oldVersion < DB_VERSION_GENERATED_LOCAL_TIME) { in onUpgrade() 110 if (oldVersion < DB_VERSION_SKIN_TEMPERATURE) { in onUpgrade() 115 if (oldVersion < DB_VERSION_PLANNED_EXERCISE_SESSIONS) { in onUpgrade() 118 if (oldVersion < DB_VERSION_UNDER_DEVELOPMENT in onUpgrade()
|
D | HealthConnectDatabase.java | 57 public void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 58 DatabaseUpgradeHelper.onUpgrade(db, oldVersion, newVersion); in onUpgrade() 69 public void onDowngrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 70 Log.i(TAG, "onDowngrade oldVersion = " + oldVersion + " newVersion = " + newVersion); in onDowngrade()
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/data/topics/ |
D | TopicsDbHelper.java | 86 public void onUpgrade(@NonNull SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 89 oldVersion, newVersion); in onUpgrade() 93 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 94 LogUtil.d("Downgrade database version from %d to %d.", oldVersion, newVersion); in onDowngrade()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetDatabaseHelper.java | 110 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) { in saveData() argument 111 if (oldVersion <= 2) { in saveData() 127 } else if (oldVersion == 3) { in saveData() 166 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 167 if (oldVersion < 4) { in onUpgrade() 170 saveData(db, oldVersion, data); in onUpgrade() 180 if (oldVersion < DATABASE_VERSION) { in onUpgrade()
|
/packages/modules/Permission/PermissionController/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/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/migration/ |
D | AbstractTopicsDbMigrator.java | 56 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) in performMigration() argument 60 if (oldVersion < mMigrationTargetVersion && mMigrationTargetVersion <= newVersion) { in performMigration() 71 + " newVersion=%d", mMigrationTargetVersion, oldVersion, newVersion) in performMigration()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperUpgradeTest.java | 109 int oldVersion = upgrade(1108, 1200); in testDatabaseUpgrade_UpgradeToCurrent() local 110 oldVersion = upgradeTo1201(oldVersion); in testDatabaseUpgrade_UpgradeToCurrent() 111 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_UpgradeToCurrent() 122 int oldVersion = 1108; in testDatabaseUpgrade_Incremental() local 123 oldVersion = upgradeTo1109(oldVersion); in testDatabaseUpgrade_Incremental() 124 oldVersion = upgradeTo1600(oldVersion); in testDatabaseUpgrade_Incremental() 125 oldVersion = upgradeTo1601(oldVersion); in testDatabaseUpgrade_Incremental() 126 oldVersion = upgrade(oldVersion, ContactsDatabaseHelper.DATABASE_VERSION); in testDatabaseUpgrade_Incremental() 127 assertEquals(ContactsDatabaseHelper.DATABASE_VERSION, oldVersion); in testDatabaseUpgrade_Incremental()
|
/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/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() 171 if (oldVersion < 12) { in onUpgrade() 175 if (oldVersion < 13) { in onUpgrade()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementDbHelper.java | 141 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 146 oldVersion, newVersion); in onUpgrade() 147 upgradeSchema(db, oldVersion, newVersion); in onUpgrade() 269 private void upgradeSchema(SQLiteDatabase db, int oldVersion, int newVersion) { in upgradeSchema() argument 274 oldVersion, newVersion); in upgradeSchema() 276 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in upgradeSchema()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/ |
D | SharedDbHelper.java | 132 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 135 oldVersion, newVersion); in onUpgrade() 136 upgradeSchema(db, oldVersion, newVersion); in onUpgrade() 294 private void upgradeSchema(SQLiteDatabase db, int oldVersion, int newVersion) { in upgradeSchema() argument 298 oldVersion, newVersion); in upgradeSchema() 300 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in upgradeSchema()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | IndexDatabaseHelper.java | 225 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 226 if (oldVersion < DATABASE_VERSION) { in onUpgrade() 227 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onUpgrade() 235 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 236 Log.w(TAG, "Detected schema version '" + oldVersion + "'. " + in onDowngrade()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockDatabaseHelper.kt | 64 override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, currentVersion: Int) { in onUpgrade() 66 oldVersion, currentVersion) in onUpgrade() 68 if (oldVersion <= VERSION_7) { in onUpgrade() 73 if (oldVersion <= VERSION_6) { in onUpgrade()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SlicesDatabaseHelper.java | 173 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 174 if (oldVersion < DATABASE_VERSION) { in onUpgrade() 175 Log.d(TAG, "Reconstructing DB from " + oldVersion + " to " + newVersion); in onUpgrade()
|