Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DClassifierManagerTest.java288 int numberOfRandomTopics = 1; in testGetTopTopics_onDeviceClassifier() local
290 mClassifierManager.getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_onDeviceClassifier()
294 .getTopTopics(eq(appTopics), eq(numberOfTopTopics), eq(numberOfRandomTopics)); in testGetTopTopics_onDeviceClassifier()
311 int numberOfRandomTopics = 1; in testGetTopTopics_precomputedClassifier() local
313 mClassifierManager.getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_precomputedClassifier()
317 .getTopTopics(eq(appTopics), eq(numberOfTopTopics), eq(numberOfRandomTopics)); in testGetTopTopics_precomputedClassifier()
334 int numberOfRandomTopics = 1; in testGetTopTopics_defaultBehaviour() local
336 mClassifierManager.getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_defaultBehaviour()
340 .getTopTopics(eq(appTopics), eq(numberOfTopTopics), eq(numberOfRandomTopics)); in testGetTopTopics_defaultBehaviour()
357 int numberOfRandomTopics = 1; in testGetTopTopics_invalidFlagValue() local
[all …]
DOnDeviceClassifierTest.java497 int numberOfTopTopics = 4, numberOfRandomTopics = 1; in testGetTopTopics_fetchTopAndRandomTopics() local
515 classifications, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_fetchTopAndRandomTopics()
526 assertThat(topTopics).hasSize(numberOfTopTopics + numberOfRandomTopics); in testGetTopTopics_fetchTopAndRandomTopics()
539 int numberOfTopTopics = 1, numberOfRandomTopics = 4; in testGetTopTopics_verifyRandomTopics() local
555 classifications, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_verifyRandomTopics()
558 classifications, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_verifyRandomTopics()
567 assertThat(topTopics1.subList(numberOfTopTopics, numberOfTopTopics + numberOfRandomTopics)) in testGetTopTopics_verifyRandomTopics()
570 numberOfTopTopics, numberOfTopTopics + numberOfRandomTopics)); in testGetTopTopics_verifyRandomTopics()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DCommonClassifierHelper.java135 @NonNull int numberOfRandomTopics, in getTopTopics() argument
140 numberOfRandomTopics > 0, "numberOfRandomTopics should larger than 0"); in getTopTopics()
189 labelIds, random, topTopics, numberOfRandomTopics + numberOfRandomPaddingTopics); in getTopTopics()
198 @NonNull int numberOfRandomTopics) { in getRandomTopics() argument
199 if (numberOfRandomTopics <= 0) { in getRandomTopics()
219 int topicsCounter = numberOfRandomTopics; in getRandomTopics()
DClassifierManager.java156 Map<String, List<Topic>> appTopics, int numberOfTopTopics, int numberOfRandomTopics) { in getTopTopics() argument
165 .getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in getTopTopics()
174 .getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in getTopTopics()
179 .getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in getTopTopics()
DPrecomputedClassifier.java141 @NonNull int numberOfRandomTopics) { in getTopTopics() argument
148 appTopics, mLabels, new Random(), numberOfTopTopics, numberOfRandomTopics, mLogger); in getTopTopics()
DClassifier.java61 int numberOfRandomTopics); in getTopTopics() argument
DOnDeviceClassifier.java165 Map<String, List<Topic>> appTopics, int numberOfTopTopics, int numberOfRandomTopics) { in getTopTopics() argument
172 appTopics, mLabels, mRandom, numberOfTopTopics, numberOfRandomTopics, mLogger); in getTopTopics()