Home
last modified time | relevance | path

Searched refs:topTopics (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEpochManager.java228 List<Topic> topTopics = in processEpoch() local
235 if (topTopics.isEmpty()) { in processEpoch()
242 sLogger.v("topTopics are %s", topTopics.toString()); in processEpoch()
245 mTopicsDao.persistTopTopics(currentEpochId, topTopics); in processEpoch()
252 computeTopTopicsToContributorsMap(appClassificationTopicsMap, topTopics); in processEpoch()
260 computeReturnedAppSdkTopics(callersCanLearnMap, appSdksUsageMap, topTopics); in processEpoch()
356 @NonNull List<Topic> topTopics, in isTopicLearnableByCaller() argument
359 int index = topTopics.lastIndexOf(topic); in isTopicLearnableByCaller()
482 @NonNull List<Topic> topTopics) { in computeReturnedAppSdkTopics() argument
486 Topic returnedTopic = selectRandomTopic(topTopics); in computeReturnedAppSdkTopics()
[all …]
DAppUpdateManager.java462 List<Topic> topTopics = mTopicsDao.retrieveTopTopics(epochId); local
464 if (topTopics.isEmpty()) {
472 List<Topic> regularTopics = topTopics.subList(0, numberOfTopTopics);
474 List<Topic> randomTopics = topTopics.subList(numberOfTopTopics, topTopics.size());
522 List<Topic> topTopics = mTopicsDao.retrieveTopTopics(epochId); in handleTopTopicsWithoutContributors() local
533 topTopics.contains(classifiedTopic) in handleTopTopicsWithoutContributors()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DEpochManagerTest.java258 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testSelectRandomTopic() local
261 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic6); in testSelectRandomTopic()
264 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic1); in testSelectRandomTopic()
267 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic2); in testSelectRandomTopic()
270 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic3); in testSelectRandomTopic()
273 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic4); in testSelectRandomTopic()
276 assertThat(epochManager.selectRandomTopic(topTopics)).isEqualTo(topic5); in testSelectRandomTopic()
350 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testComputeReturnedAppTopics() local
384 callersCanLearnMap, appSdksUsageMap, topTopics); in testComputeReturnedAppTopics()
472 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGarbageCollectOutdatedEpochData() local
[all …]
DAppUpdateManagerTest.java662 List<Topic> topTopics = List.of(topic1, topic2, topic3, topic4, topic5, topic6); in testReconcileInstalledApps() local
676 mTopicsDao.persistTopTopics(epochId, topTopics); in testReconcileInstalledApps()
678 for (Topic topic : topTopics) { in testReconcileInstalledApps()
832 List<Topic> topTopics = List.of(topic1, topic2, topic3, topic4, topic5, topic6); in testAssignTopicsToNewlyInstalledApps() local
838 mTopicsDao.persistTopTopics(epochId, topTopics); in testAssignTopicsToNewlyInstalledApps()
841 for (Topic topic : topTopics) { in testAssignTopicsToNewlyInstalledApps()
DTopicsWorkerTest.java1062 List<Topic> topTopics = List.of(topic1, topic2, topic3, topic4, topic5, topic6); in testReconcileApplicationUpdate() local
1125 mTopicsDao.persistTopTopics(epochId, topTopics); in testReconcileApplicationUpdate()
1141 for (Topic topic : topTopics) { in testReconcileApplicationUpdate()
1602 List<Topic> topTopics = List.of(topic1, topic2, topic3, topic4, topic5, topic6); in testHandleAppInstallation() local
1608 mTopicsDao.persistTopTopics(epochId, topTopics); in testHandleAppInstallation()
1610 for (Topic topic : topTopics) { in testHandleAppInstallation()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DCommonClassifierHelper.java173 List<Topic> topTopics = in getTopTopics() local
189 labelIds, random, topTopics, numberOfRandomTopics + numberOfRandomPaddingTopics); in getTopTopics()
197 @NonNull List<Topic> topTopics, in getRandomTopics() argument
200 return topTopics; in getRandomTopics()
207 if (!topTopics.isEmpty()) { in getRandomTopics()
208 Topic firstTopic = topTopics.get(0); in getRandomTopics()
216 returnedTopics.addAll(topTopics); in getRandomTopics()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/
DTopicsDao.java225 public void persistTopTopics(long epochId, List<Topic> topTopics) { in persistTopTopics() argument
228 Objects.requireNonNull(topTopics); in persistTopTopics()
229 Preconditions.checkArgument(topTopics.size() == 6); in persistTopTopics()
238 values.put(TopicsTables.TopTopicsContract.TOPIC1, topTopics.get(0).getTopic()); in persistTopTopics()
239 values.put(TopicsTables.TopTopicsContract.TOPIC2, topTopics.get(1).getTopic()); in persistTopTopics()
240 values.put(TopicsTables.TopTopicsContract.TOPIC3, topTopics.get(2).getTopic()); in persistTopTopics()
241 values.put(TopicsTables.TopTopicsContract.TOPIC4, topTopics.get(3).getTopic()); in persistTopTopics()
242 values.put(TopicsTables.TopTopicsContract.TOPIC5, topTopics.get(4).getTopic()); in persistTopTopics()
243 values.put(TopicsTables.TopTopicsContract.RANDOM_TOPIC, topTopics.get(5).getTopic()); in persistTopTopics()
248 topTopics.get(0).getTaxonomyVersion()); in persistTopTopics()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/
DTopicsDaoTest.java156 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics() local
157 mTopicsDao.persistTopTopics(/* epochId = */ 1L, topTopics); in testGetTopTopicsAndPersistTopics()
177 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics_notFoundEpochId() local
178 mTopicsDao.persistTopTopics(/* epochId = */ 1L, topTopics); in testGetTopTopicsAndPersistTopics_notFoundEpochId()
193 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic6); in testGetTopTopicsAndPersistTopics_invalidSize() local
197 () -> mTopicsDao.persistTopTopics(/* epochId = */ 1L, topTopics)); in testGetTopTopicsAndPersistTopics_invalidSize()
217 List<Topic> topTopics = Arrays.asList(topic1, topic2, topic3, topic4, topic5, topic6); in testGetTopTopicsAndPersistTopics_multiPersistWithSameEpoch() local
218 mTopicsDao.persistTopTopics(epochId, topTopics); in testGetTopTopicsAndPersistTopics_multiPersistWithSameEpoch()
220 mTopicsDao.persistTopTopics(epochId, topTopics); in testGetTopTopicsAndPersistTopics_multiPersistWithSameEpoch()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DOnDeviceClassifierTest.java513 List<Topic> topTopics = in testGetTopTopics_fetchTopAndRandomTopics() local
526 assertThat(topTopics).hasSize(numberOfTopTopics + numberOfRandomTopics); in testGetTopTopics_fetchTopAndRandomTopics()
530 assertThat(topTopics.subList(0, numberOfTopTopics)) in testGetTopTopics_fetchTopAndRandomTopics()