Searched refs:regularTopics (Results 1 – 2 of 2) sorted by relevance
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | AppUpdateManager.java | 387 @NonNull List<Topic> regularTopics, in selectAssignedTopicFromTopTopics() 391 if (regularTopics.isEmpty() && randomTopics.isEmpty()) { in selectAssignedTopicFromTopTopics() 396 if (regularTopics.isEmpty()) { in selectAssignedTopicFromTopTopics() 399 return regularTopics.get(mRandom.nextInt(regularTopics.size())); in selectAssignedTopicFromTopTopics() 408 : regularTopics.get(mRandom.nextInt(regularTopics.size())); in selectAssignedTopicFromTopTopics() 472 List<Topic> regularTopics = topTopics.subList(0, numberOfTopTopics); local 473 regularTopics = filterRegularTopicsWithoutContributors(regularTopics, epochId); 478 regularTopics, randomTopics, topicsPercentageForRandomTopic); 583 @NonNull List<Topic> regularTopics, long epochId) { in filterRegularTopicsWithoutContributors() 586 return regularTopics.stream() in filterRegularTopicsWithoutContributors()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | AppUpdateManagerTest.java | 724 List<Topic> regularTopics = List.of(topic1, topic2, topic3); in testSelectAssignedTopicFromTopTopics() local 731 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics() 738 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics() 749 List<Topic> regularTopics = List.of(); in testSelectAssignedTopicFromTopTopics_bothListsAreEmpty() local 754 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics_bothListsAreEmpty() 773 List<Topic> regularTopics = List.of(topic1, topic2, topic3); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty() local 778 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty() 782 regularTopics = List.of(); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty() 787 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty() 1149 List<Topic> regularTopics = List.of(topic1, topic2, topic3); in testFilterRegularTopicsWithoutContributors() local [all …]
|