Home
last modified time | relevance | path

Searched refs:topicsDao (Results 1 – 14 of 14) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DBlockedTopicsManager.java90 @NonNull TopicsDao topicsDao, in BlockedTopicsManager()
95 Objects.requireNonNull(topicsDao); in BlockedTopicsManager()
102 mTopicsDao = topicsDao; in BlockedTopicsManager()
125 TopicsDao topicsDao = TopicsDao.getInstance(); in getInstance() local
127 context, topicsDao, adServicesManager, blockedTopicsSourceOfTruth); in getInstance()
135 topicsDao, in getInstance()
354 @NonNull TopicsDao topicsDao, in handleBlockedTopicsMigrationIfNeeded() argument
358 Objects.requireNonNull(topicsDao); in handleBlockedTopicsMigrationIfNeeded()
390 mayMigratePpApiBlockedTopicsToSystemService(context, topicsDao, adServicesManager); in handleBlockedTopicsMigrationIfNeeded()
393 mayMigratePpApiBlockedTopicsToSystemService(context, topicsDao, adServicesManager); in handleBlockedTopicsMigrationIfNeeded()
[all …]
DCacheManager.java115 TopicsDao topicsDao, in CacheManager() argument
122 mTopicsDao = topicsDao; in CacheManager()
DAppUpdateManager.java98 @NonNull TopicsDao topicsDao, in AppUpdateManager() argument
102 mTopicsDao = topicsDao; in AppUpdateManager()
DEpochManager.java129 @NonNull TopicsDao topicsDao, in EpochManager()
138 mTopicsDao = topicsDao; in EpochManager()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/migration/
DTopicsDbMigratorV7Test.java109 TopicsDao topicsDao = new TopicsDao(mTopicsDbHelper); in testDbMigrationFromV6ToV7() local
112 topicsDao.persistTopicContributors(epochId, topicContributorsMap); in testDbMigrationFromV6ToV7()
113 assertThat(topicsDao.retrieveTopicToContributorsMap(epochId)) in testDbMigrationFromV6ToV7()
122 assertThat(topicsDao.retrieveTopicToContributorsMap(epochId)).isEmpty(); in testDbMigrationFromV6ToV7()
DTopicsDbMigratorV9Test.java111 TopicsDao topicsDao = new TopicsDao(mTopicsDbHelper); in testDbMigrationFromV8ToV9() local
120 topicsDao.persistReturnedAppEncryptedTopicsMap(epochId, appSdkEncryptedTopics); in testDbMigrationFromV8ToV9()
122 topicsDao in testDbMigrationFromV8ToV9()
135 topicsDao.retrieveReturnedEncryptedTopics( in testDbMigrationFromV8ToV9()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DBlockedTopicsManager.java40 public BlockedTopicsManager(@NonNull TopicsDao topicsDao, int userIdentifier) { in BlockedTopicsManager() argument
41 Objects.requireNonNull(topicsDao); in BlockedTopicsManager()
43 mTopicsDao = topicsDao; in BlockedTopicsManager()
DUserInstanceManager.java67 UserInstanceManager(@NonNull TopicsDao topicsDao, @NonNull String adServicesBaseDir) { in UserInstanceManager() argument
68 mTopicsDao = topicsDao; in UserInstanceManager()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DEpochManagerTest.java608 TopicsDao topicsDao = Mockito.spy(new TopicsDao(mDbHelper)); in testProcessEpoch() local
612 topicsDao, in testProcessEpoch()
654 when(topicsDao.retrieveAppSdksUsageMap(epochId)).thenReturn(appSdksUsageMap); in testProcessEpoch()
674 verify(topicsDao).retrieveAppSdksUsageMap(eq(epochId)); in testProcessEpoch()
689 topicsDao.retrieveAppClassificationTopics(epochId); in testProcessEpoch()
721 topicsDao.retrieveCallerCanLearnTopicsMap(epochId, /* numberOfLookBackEpochs */ 1); in testProcessEpoch()
725 List<Topic> topTopicsFromDB = topicsDao.retrieveTopTopics(epochId); in testProcessEpoch()
745 assertThat(topicsDao.retrieveTopicToContributorsMap(epochId)) in testProcessEpoch()
779 topicsDao.retrieveReturnedTopics(epochId, /* numberOfLookBackEpochs */ 1); in testProcessEpoch()
1011 TopicsDao topicsDao = Mockito.spy(new TopicsDao(mDbHelper)); in testComputeEpoch_emptyTopTopics() local
[all …]
DCacheManagerTest.java813 TopicsDao topicsDao = new TopicsDao(dbHelper); in testGetTopics_verifyLogs() local
818 topicsDao, in testGetTopics_verifyLogs()
825 topicsDao, in testGetTopics_verifyLogs()
870 topicsDao.persistReturnedAppTopicsMap(/* epochId */ 1L, returnedAppSdkTopicsMap1); in testGetTopics_verifyLogs()
879 topicsDao.persistReturnedAppTopicsMap(/* epochId */ 2L, returnedAppSdkTopicsMap2); in testGetTopics_verifyLogs()
888 topicsDao.persistReturnedAppTopicsMap(/* epochId */ 3L, returnedAppSdkTopicsMap3); in testGetTopics_verifyLogs()
894 topicsDao.recordBlockedTopic(topic2); in testGetTopics_verifyLogs()
1136 TopicsDao topicsDao = new TopicsDao(dbHelper); in testGetTopics_verifyLogsWithRandomizedResponse() local
1141 topicsDao, in testGetTopics_verifyLogsWithRandomizedResponse()
1148 topicsDao, in testGetTopics_verifyLogsWithRandomizedResponse()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/data/topics/
DTopicsDaoTest.java192 TopicsDao topicsDao = new TopicsDao(mockTopicsDbHelper); in testDump() local
194 topicsDao.dump(writer, prefix, args); in testDump()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DUserInstanceManagerTest.java240 TopicsDao topicsDao = in testDump() local
247 UserInstanceManager mgr = new UserInstanceManager(topicsDao, TEST_BASE_PATH); in testDump()
DAdServicesManagerServiceTest.java144 TopicsDao topicsDao = new TopicsDao(mDBHelper); in setup() local
147 topicsDao, in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/
DTopicsDaoTest.java835 TopicsDao topicsDao = new TopicsDao(mockDbHelper); in testDeleteAllTopicsTables_sqlExceptionOnDelete() local
844 topicsDao.deleteAllTopicsTables(/*tablesToExclude*/ List.of()); in testDeleteAllTopicsTables_sqlExceptionOnDelete()