Home
last modified time | relevance | path

Searched refs:performMigration (Results 1 – 25 of 99) sorted by relevance

1234

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/
DDbHelperTest.java152 Mockito.doNothing().when(topicsDbMigratorV7).performMigration(db); in testOnUpgrade_topicsV7Migration()
161 Mockito.verify(topicsDbMigratorV7, Mockito.never()).performMigration(db); in testOnUpgrade_topicsV7Migration()
165 Mockito.verify(topicsDbMigratorV7).performMigration(db); in testOnUpgrade_topicsV7Migration()
175 Mockito.doNothing().when(topicsDbMigratorV8).performMigration(db); in testOnUpgrade_topicsV8Migration()
184 Mockito.verify(topicsDbMigratorV8, Mockito.never()).performMigration(db); in testOnUpgrade_topicsV8Migration()
188 Mockito.verify(topicsDbMigratorV8).performMigration(db); in testOnUpgrade_topicsV8Migration()
214 Mockito.doNothing().when(topicsDbMigratorV9).performMigration(db); in testOnUpgrade_topicsV9Migration()
223 Mockito.verify(topicsDbMigratorV9, Mockito.never()).performMigration(db); in testOnUpgrade_topicsV9Migration()
227 Mockito.verify(topicsDbMigratorV9, times(1)).performMigration(db); in testOnUpgrade_topicsV9Migration()
231 Mockito.verify(topicsDbMigratorV9, times(2)).performMigration(db); in testOnUpgrade_topicsV9Migration()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/
DSharedDbHelperTest.java252 Mockito.doNothing().when(sharedDbMigratorV4).performMigration(db); in testOnUpgrade_sharedDbMigrationV4()
257 verify(sharedDbMigratorV4, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigrationV4()
261 verify(sharedDbMigratorV4).performMigration(db); in testOnUpgrade_sharedDbMigrationV4()
273 Mockito.doNothing().when(sharedDbMigratorV2).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
274 Mockito.doNothing().when(sharedDbMigratorV3).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
275 Mockito.doNothing().when(sharedDbMigratorV4).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
283 verify(sharedDbMigratorV2, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
284 verify(sharedDbMigratorV3, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
285 verify(sharedDbMigratorV4, Mockito.never()).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
289 verify(sharedDbMigratorV2, times(1)).performMigration(db); in testOnUpgrade_sharedDbMigration_V2_V3_V4()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/
DAbstractMeasurementDbMigrator.java33 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) { in performMigration() method in AbstractMeasurementDbMigrator
42 performMigration(db); in performMigration()
50 protected abstract void performMigration(@NonNull SQLiteDatabase db); in performMigration() method in AbstractMeasurementDbMigrator
DIMeasurementDbMigrator.java34 void performMigration(SQLiteDatabase db, int oldVersion, int newVersion); in performMigration() method
DMeasurementDbMigratorV22.java33 protected void performMigration(@NonNull SQLiteDatabase db) { in performMigration() method in MeasurementDbMigratorV22
DMeasurementDbMigratorV17.java32 protected void performMigration(@NonNull SQLiteDatabase db) { in performMigration() method in MeasurementDbMigratorV17
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/migration/
DAbstractSharedDbMigrator.java36 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) { in performMigration() method in AbstractSharedDbMigrator
43 performMigration(db); in performMigration()
51 protected abstract void performMigration(@NonNull SQLiteDatabase db); in performMigration() method in AbstractSharedDbMigrator
DISharedDbMigrator.java34 void performMigration(SQLiteDatabase db, int oldVersion, int newVersion); in performMigration() method
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/migration/
DAbstractTopicsDbMigrator.java56 public void performMigration(SQLiteDatabase db, int oldVersion, int newVersion) in performMigration() method in AbstractTopicsDbMigrator
63 performMigration(db); in performMigration()
80 protected abstract void performMigration(SQLiteDatabase db); in performMigration() method in AbstractTopicsDbMigrator
DITopicsDbMigrator.java35 void performMigration(SQLiteDatabase db, int oldVersion, int newVersion); in performMigration() method
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/
DSharedDbMigratorTestBase.java81 getTestSubject().performMigration(mDb, (getTargetVersion() + 1), (getTargetVersion() + 2)); in performMigration_alreadyOnHigherVersion_skipMigration()
91 getTestSubject().performMigration(mDb, (getTargetVersion() - 2), (getTargetVersion() - 1)); in performMigration_lowerRequestedVersion_skipMigration()
135 getTestSubject().performMigration(actualDb, prevVersion, getTargetVersion()); in performMigration_migrateFromPrevToTargetVersion_dbIsAsExpected()
DSharedDbMigratorV3Test.java70 getTestSubject().performMigration(db, 2, 3); in performMigration_v2ToV3_addLastFetchTimeColumn()
107 getTestSubject().performMigration(db, 3, 3); in performMigration_v3ToV3()
DSharedDbMigratorV4Test.java78 getTestSubject().performMigration(db, 3, 4); in performMigration_v3ToV4_addEnrolledSiteEnrolledAPIsColumns()
138 getTestSubject().performMigration(db, 4, 4); in performMigration_v4ToV4()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorTestBase.java80 getTestSubject().performMigration(mDb, (getTargetVersion() + 1), (getTargetVersion() + 2)); in performMigration_alreadyOnHigherVersion_skipMigration()
89 getTestSubject().performMigration(mDb, (getTargetVersion() - 2), (getTargetVersion() - 1)); in performMigration_lowerRequestedVersion_skipMigration()
131 getTestSubject().performMigration(actualDb, prevVersion, getTargetVersion()); in performMigration_migrateFromPrevToTargetVersion_dbIsAsExpected()
DMeasurementDbMigratorV6Test.java82 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_v3ToV6()
83 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_success_v3ToV6()
96 new MeasurementDbMigratorV6().performMigration(db, 3, 6); in performMigration_success_v3ToV6()
125 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_twiceToSameVersion()
126 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_twiceToSameVersion()
139 new MeasurementDbMigratorV6().performMigration(db, 3, 6); in performMigration_twiceToSameVersion()
141 new MeasurementDbMigratorV6().performMigration(db, 6, 6); in performMigration_twiceToSameVersion()
171 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_checkAllFields_V3toV6()
172 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_success_checkAllFields_V3toV6()
248 new MeasurementDbMigratorV6().performMigration(db, 3, 6); in performMigration_success_checkAllFields_V3toV6()
DMeasurementDbMigratorV14Test.java82 getTestSubject().performMigration(db, 13, 14); in performMigration_v13ToV14WithData_maintainsDataIntegrity()
122 getTestSubject().performMigration(db, 13, 14); in performMigration_enrollmentIdNotFound_removesSource()
173 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource()
212 getTestSubject().performMigration(db, 13, 14); in performMigration_whenEnrollmentIdNotFound_removesTrigger()
264 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger()
316 getTestSubject().performMigration(db, 13, 14); in performMigration_whenEnrollmentIdNotFound_removesEventReport()
382 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesEventReport()
433 getTestSubject().performMigration(db, 13, 14); in performMigration_whenEnrollmentIdNotFound_removesAggregateReport()
497 getTestSubject().performMigration(db, 13, 14); in performMigration_whenReportingUrlNotFoundOrEmpty_removesAggregateReport()
DMeasurementDbMigratorV3Test.java126 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_v2ToV3()
131 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_success_v2ToV3()
170 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_twiceToSameVersion()
174 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_twiceToSameVersion()
177 new MeasurementDbMigratorV3().performMigration(db, 3, 3); in performMigration_twiceToSameVersion()
208 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in insertAndRetrieveAsyncData_afterV3Migration()
212 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in insertAndRetrieveAsyncData_afterV3Migration()
232 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_insertionCantHappenDueToColumnsMismatch_createsNewTable()
270 new MeasurementDbMigratorV3().performMigration(db, 2, 3); in performMigration_insertionCantHappenDueToColumnsMismatch_createsNewTable()
286 new MeasurementDbMigratorV2().performMigration(db, 1, 2); in performMigration_success_checkAllFields_V2toV3()
[all …]
DMeasurementDbMigratorTestBaseDeprecated.java63 getTestSubject().performMigration(mDb, (getTargetVersion() + 1), (getTargetVersion() + 2)); in performMigration_alreadyOnHigherVersion_skipMigration()
72 getTestSubject().performMigration(mDb, (getTargetVersion() - 2), (getTargetVersion() - 1)); in performMigration_lowerRequestedVersion_skipMigration()
DMeasurementDbMigratorV15Test.java87 getTestSubject().performMigration(db, 14, 15); in performMigration_v14ToV15WithData_maintainsDataIntegrity()
111 getTestSubject().performMigration(db, 14, 15); in performMigration_whenEnrollmentIdNotFound_removesDebugReport()
164 getTestSubject().performMigration(db, 14, 15); in performMigration_whenReportingUrlNotFoundOrEmpty_removesDebugReport()
DMeasurementDbMigratorV26Test.java58 getTestSubject().performMigration(db, 25, 26); in performMigration_v25ToV26WithData_ClearsReportRetries()
79 getTestSubject().performMigration(db, 25, 26); in performMigration_v25ToV26WithData_AddsAndPopulatesColumns()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/migration/
DAbstractTopicsDbMigratorTest.java46 .performMigration(mDb, /* oldVersion */ 1, /* newVersion */ 2); in testPerformMigration_onUpgrade()
54 public void performMigration(SQLiteDatabase db) {} in initMigrator()
DTopicsDbMigratorV7Test.java91 new TopicsDbMigratorV7().performMigration(db); in testDbMigrationFromV6ToV7()
116 new TopicsDbMigratorV7().performMigration(db); in testDbMigrationFromV6ToV7()
DTopicsDbMigratorV9Test.java93 new TopicsDbMigratorV9().performMigration(db); in testDbMigrationFromV8ToV9()
128 new TopicsDbMigratorV9().performMigration(db); in testDbMigrationFromV8ToV9()
DTopicsDbMigratorV8Test.java88 new TopicsDbMigratorV8().performMigration(db); in testDbMigrationFromV7ToV8()
122 new TopicsDbMigratorV8().performMigration(db); in testDbMigrationFromV7ToV8()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/
DDbHelper.java163 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in onUpgrade()
167 .forEach(dbMigrator -> dbMigrator.performMigration(db, oldVersion, newVersion)); in onUpgrade()

1234