Home
last modified time | relevance | path

Searched refs:randomTopics (Results 1 – 2 of 2) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DAppUpdateManager.java388 @NonNull List<Topic> randomTopics, in selectAssignedTopicFromTopTopics() argument
391 if (regularTopics.isEmpty() && randomTopics.isEmpty()) { in selectAssignedTopicFromTopTopics()
397 return randomTopics.get(mRandom.nextInt(randomTopics.size())); in selectAssignedTopicFromTopTopics()
398 } else if (randomTopics.isEmpty()) { in selectAssignedTopicFromTopTopics()
407 ? randomTopics.get(mRandom.nextInt(randomTopics.size())) in selectAssignedTopicFromTopTopics()
474 List<Topic> randomTopics = topTopics.subList(numberOfTopTopics, topTopics.size()); local
478 regularTopics, randomTopics, topicsPercentageForRandomTopic);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DAppUpdateManagerTest.java725 List<Topic> randomTopics = List.of(topic6); in testSelectAssignedTopicFromTopTopics() local
731 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics()
738 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics()
750 List<Topic> randomTopics = List.of(); in testSelectAssignedTopicFromTopTopics_bothListsAreEmpty() local
754 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics_bothListsAreEmpty()
774 List<Topic> randomTopics = List.of(); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty() local
778 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty()
783 randomTopics = List.of(topic1, topic2, topic3); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty()
787 regularTopics, randomTopics, topicsPercentageForRandomTopic); in testSelectAssignedTopicFromTopTopics_oneListIsEmpty()