Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DClassifierManagerTest.java287 int numberOfTopTopics = 5; in testGetTopTopics_onDeviceClassifier() local
290 mClassifierManager.getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_onDeviceClassifier()
294 .getTopTopics(eq(appTopics), eq(numberOfTopTopics), eq(numberOfRandomTopics)); in testGetTopTopics_onDeviceClassifier()
310 int numberOfTopTopics = 5; in testGetTopTopics_precomputedClassifier() local
313 mClassifierManager.getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_precomputedClassifier()
317 .getTopTopics(eq(appTopics), eq(numberOfTopTopics), eq(numberOfRandomTopics)); in testGetTopTopics_precomputedClassifier()
333 int numberOfTopTopics = 5; in testGetTopTopics_defaultBehaviour() local
336 mClassifierManager.getTopTopics(appTopics, numberOfTopTopics, numberOfRandomTopics); in testGetTopTopics_defaultBehaviour()
340 .getTopTopics(eq(appTopics), eq(numberOfTopTopics), eq(numberOfRandomTopics)); in testGetTopTopics_defaultBehaviour()
356 int numberOfTopTopics = 5; 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()
530 assertThat(topTopics.subList(0, numberOfTopTopics)) 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.java134 @NonNull int numberOfTopTopics, in getTopTopics() argument
138 numberOfTopTopics > 0, "numberOfTopTopics should larger than 0"); in getTopTopics()
172 int numberOfRandomPaddingTopics = Math.max(0, numberOfTopTopics - allSortedTopics.size()); in getTopTopics()
174 allSortedTopics.subList(0, Math.min(numberOfTopTopics, allSortedTopics.size())); in getTopTopics()
180 .setTopTopicCount(numberOfTopTopics) in getTopTopics()
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.java140 @NonNull int numberOfTopTopics, in getTopTopics() argument
148 appTopics, mLabels, new Random(), numberOfTopTopics, numberOfRandomTopics, mLogger); in getTopTopics()
DClassifier.java60 int numberOfTopTopics, 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()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DAppUpdateManager.java452 final int numberOfTopTopics = mFlags.getTopicsNumberOfTopTopics();
472 List<Topic> regularTopics = topTopics.subList(0, numberOfTopTopics);
474 List<Topic> randomTopics = topTopics.subList(numberOfTopTopics, topTopics.size());
DEpochManager.java357 int numberOfTopTopics) { in isTopicLearnableByCaller() argument
361 if (index >= numberOfTopTopics) { in isTopicLearnableByCaller()