Home
last modified time | relevance | path

Searched refs:topic3 (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DAppUpdateManagerTest.java252 Topic topic3 = Topic.create(3, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps_handleTopicsWithoutContributor() local
265 epoch1, Map.of(app1, List.of(topic1, topic2), app2, List.of(topic1, topic3))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
267 epoch2, Map.of(app1, List.of(topic1, topic3), app2, List.of(topic1, topic3))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
271 epoch1, List.of(topic1, topic2, topic3, topic4, topic5, topic6)); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
273 epoch2, List.of(topic1, topic2, topic3, topic4, topic5, topic6)); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
278 mTopicsDao.persistTopicContributors(epoch1, Map.of(topic3.getTopic(), Set.of(app2))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
280 mTopicsDao.persistTopicContributors(epoch2, Map.of(topic3.getTopic(), Set.of(app1, app2))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
283 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app1, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
284 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app2, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
285 mTopicsDao.persistReturnedAppTopicsMap(epoch2, Map.of(Pair.create(app1, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
[all …]
DEpochManagerTest.java175 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() local
182 appClassificationTopicsMap.put("app2", Arrays.asList(topic2, topic3)); in testComputeCallersCanLearnMap()
200 expectedCallerCanLearnMap.put(topic3, new HashSet<>(Arrays.asList("sdk1", "sdk3", "sdk4"))); in testComputeCallersCanLearnMap()
253 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic() local
258 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testSelectRandomTopic()
270 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic3); in testSelectRandomTopic()
296 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic_invalidSize_throw() local
300 () -> epochManager.selectRandomTopic(Arrays.asList(topic1, topic2, topic3))); in testSelectRandomTopic_invalidSize_throw()
346 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testComputeReturnedAppTopics() local
350 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testComputeReturnedAppTopics()
[all …]
DCacheManagerTest.java186 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() local
200 returnedAppSdkTopicsMap1.put(Pair.create("app3", "sdk1"), topic3); in testGetTopics()
214 returnedAppSdkTopicsMap2.put(Pair.create("app2", "sdk1"), topic3); in testGetTopics()
215 returnedAppSdkTopicsMap2.put(Pair.create("app2", "sdk3"), topic3); in testGetTopics()
216 returnedAppSdkTopicsMap2.put(Pair.create("app2", "sdk4"), topic3); in testGetTopics()
382 .containsExactlyElementsIn(Arrays.asList(topic4, topic3)); in testGetTopics()
446 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics_someTopicsBlocked() local
460 returnedAppSdkTopicsMap1.put(Pair.create("app3", "sdk1"), topic3); in testGetTopics_someTopicsBlocked()
474 returnedAppSdkTopicsMap2.put(Pair.create("app2", "sdk1"), topic3); in testGetTopics_someTopicsBlocked()
475 returnedAppSdkTopicsMap2.put(Pair.create("app2", "sdk3"), topic3); in testGetTopics_someTopicsBlocked()
[all …]
DTopicsWorkerTest.java158 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics() local
159 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics()
216 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics_enableEncryption_disablePlaintextTopics() local
219 /* encryptedTopic */ topic3.toString().getBytes(StandardCharsets.UTF_8), in testGetTopics_enableEncryption_disablePlaintextTopics()
222 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics_enableEncryption_disablePlaintextTopics()
314 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics_enableEncryption_featureOn() local
317 /* encryptedTopic */ topic3.toString().getBytes(StandardCharsets.UTF_8), in testGetTopics_enableEncryption_featureOn()
320 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics_enableEncryption_featureOn()
411 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics_enableEncryption_featureOff() local
414 /* encryptedTopic */ topic3.toString().getBytes(StandardCharsets.UTF_8), in testGetTopics_enableEncryption_featureOff()
[all …]
DTopicsServiceImplTest.java1131 Topic topic3 = in prepareAndPersistTopics() local
1133 Topic[] topics = {topic1, topic2, topic3}; in prepareAndPersistTopics()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/
DTopicsDaoTest.java152 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() local
156 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics()
164 Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics()
173 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_notFoundEpochId() local
177 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics_notFoundEpochId()
191 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_invalidSize() local
193 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic6); in testGetTopTopicsAndPersistTopics_invalidSize()
213 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_multiPersistWithSameEpoch() local
217 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics_multiPersistWithSameEpoch()
223 Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics_multiPersistWithSameEpoch()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/
DTopicsDao.java335 Topic topic3 = Topic.create(topicId3, taxonomyVersion, modelVersion); in retrieveTopTopics() local
339 return Arrays.asList(topic1, topic2, topic3, topic4, topic5, randomTopic); in retrieveTopTopics()