Home
last modified time | relevance | path

Searched refs:topic2 (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DCacheManagerTest.java185 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() local
196 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk1"), topic2); in testGetTopics()
197 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk3"), topic2); in testGetTopics()
198 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk4"), topic2); in testGetTopics()
210 returnedAppSdkTopicsMap2.put(Pair.create("app1", ""), topic2); in testGetTopics()
211 returnedAppSdkTopicsMap2.put(Pair.create("app1", "sdk1"), topic2); in testGetTopics()
212 returnedAppSdkTopicsMap2.put(Pair.create("app1", "sdk2"), topic2); in testGetTopics()
295 .isEqualTo(Collections.singletonList(topic2)); in testGetTopics()
303 .isEqualTo(Collections.singletonList(topic2)); in testGetTopics()
311 .isEqualTo(Collections.singletonList(topic2)); in testGetTopics()
[all …]
DEpochManagerTest.java174 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() local
181 appClassificationTopicsMap.put("app1", Arrays.asList(topic1, topic2)); in testComputeCallersCanLearnMap()
182 appClassificationTopicsMap.put("app2", Arrays.asList(topic2, topic3)); in testComputeCallersCanLearnMap()
197 topic2, new HashSet<>(Arrays.asList("app1", "sdk1", "sdk2", "sdk3", "sdk4"))); in testComputeCallersCanLearnMap()
252 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic() local
258 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testSelectRandomTopic()
267 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic2); in testSelectRandomTopic()
295 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic_invalidSize_throw() local
300 () -> epochManager.selectRandomTopic(Arrays.asList(topic1, topic2, topic3))); in testSelectRandomTopic_invalidSize_throw()
345 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testComputeReturnedAppTopics() local
[all …]
DTopicsWorkerTest.java157 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics() local
159 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics()
210 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics_enableEncryption_disablePlaintextTopics() local
213 /* encryptedTopic */ topic2.toString().getBytes(StandardCharsets.UTF_8), in testGetTopics_enableEncryption_disablePlaintextTopics()
222 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics_enableEncryption_disablePlaintextTopics()
308 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics_enableEncryption_featureOn() local
311 /* encryptedTopic */ topic2.toString().getBytes(StandardCharsets.UTF_8), in testGetTopics_enableEncryption_featureOn()
320 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics_enableEncryption_featureOn()
405 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics_enableEncryption_featureOff() local
408 /* encryptedTopic */ topic2.toString().getBytes(StandardCharsets.UTF_8), in testGetTopics_enableEncryption_featureOff()
[all …]
DAppUpdateManagerTest.java251 Topic topic2 = Topic.create(2, 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()
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()
277 mTopicsDao.persistTopicContributors(epoch1, Map.of(topic2.getTopic(), Set.of(app1))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
304 Map.of(topic1.getTopic(), Set.of(app1), topic2.getTopic(), Set.of(app1))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
327 Topic topic2 = Topic.create(2, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps_contributorDeletionsToSameTopic() local
345 epoch1, List.of(topic1, topic2, topic3, topic4, topic5, topic6)); in testReconcileUninstalledApps_contributorDeletionsToSameTopic()
657 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileInstalledApps() local
662 List<Topic> topTopics = List.of(topic1, topic2, topic3, topic4, topic5, topic6); in testReconcileInstalledApps()
[all …]
DTopicsServiceImplTest.java1129 Topic topic2 = 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.java106 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testPersistAndGetAppClassificationTopics() local
108 appClassificationTopicsMap1.put(app1, Arrays.asList(topic1, topic2)); in testPersistAndGetAppClassificationTopics()
123 expectedTopicsMap1.put(app1, Arrays.asList(topic1, topic2)); in testPersistAndGetAppClassificationTopics()
151 Topic topic2 = Topic.create(/* topic */ 2, 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()
172 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_notFoundEpochId() local
177 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics_notFoundEpochId()
190 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_invalidSize() local
193 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic6); in testGetTopTopicsAndPersistTopics_invalidSize()
[all …]
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/ui/settings/viewmodels/
DTopicsViewModelTest.java99 Topic topic2 = Topic.create(2, 1, 1); in testGetTopicsReturnsTopics() local
100 ImmutableList<Topic> topicsList = ImmutableList.copyOf(new Topic[] {topic1, topic2}); in testGetTopicsReturnsTopics()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/
DTopicsDao.java334 Topic topic2 = Topic.create(topicId2, taxonomyVersion, modelVersion); in retrieveTopTopics() local
339 return Arrays.asList(topic1, topic2, topic3, topic4, topic5, randomTopic); in retrieveTopTopics()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java1874 Topic topic2 = Topic.create(2, taxonomyVersion, modelVersion); in testGetKnownTopicsWithConsent() local
1875 ImmutableList<Topic> expectedKnownTopicsWithConsent = ImmutableList.of(topic1, topic2); in testGetKnownTopicsWithConsent()
1891 Topic topic2 = Topic.create(2, taxonomyVersion, modelVersion); in testGetTopicsWithRevokedConsent() local
1892 ImmutableList<Topic> expectedTopicsWithRevokedConsent = ImmutableList.of(topic1, topic2); in testGetTopicsWithRevokedConsent()
DConsentManagerTest.java1948 Topic topic2 = Topic.create(2, taxonomyVersion, modelVersion); in testGetKnownTopicsWithConsent() local
1949 ImmutableList<Topic> expectedKnownTopicsWithConsent = ImmutableList.of(topic1, topic2); in testGetKnownTopicsWithConsent()
1965 Topic topic2 = Topic.create(2, taxonomyVersion, modelVersion); in testGetTopicsWithRevokedConsent() local
1966 ImmutableList<Topic> expectedTopicsWithRevokedConsent = ImmutableList.of(topic1, topic2); in testGetTopicsWithRevokedConsent()