Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DOnDeviceClassifierTest.java157 ImmutableMap<String, List<Topic>> classifications = in testClassify_earlyReturnIfNoModelAvailable() local
161 assertThat(classifications).isEmpty(); in testClassify_earlyReturnIfNoModelAvailable()
175 ImmutableMap<String, List<Topic>> classifications = in testClassify_emptyClassifierInput_returnsDefaultClassifications() local
181 assertThat(classifications).hasSize(1); in testClassify_emptyClassifierInput_returnsDefaultClassifications()
183 assertThat(classifications.get(appPackage1)).hasSize(CLASSIFIER_NUMBER_OF_TOP_LABELS); in testClassify_emptyClassifierInput_returnsDefaultClassifications()
185 assertThat(classifications.get(appPackage1)) in testClassify_emptyClassifierInput_returnsDefaultClassifications()
227 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications() local
236 assertThat(classifications).hasSize(2); in testClassify_successfulClassifications()
238 assertThat(classifications.get(appPackage1)).hasSize(3); in testClassify_successfulClassifications()
239 assertThat(classifications.get(appPackage2)).hasSize(CLASSIFIER_NUMBER_OF_TOP_LABELS); in testClassify_successfulClassifications()
[all …]
DClassifierManagerTest.java105 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_onDeviceClassifier() local
108 assertThat(classifications.get(appPackage1)).containsExactlyElementsIn(onDeviceTopics); in testClassify_onDeviceClassifier()
126 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_preComputedClassifier() local
129 assertThat(classifications.get(appPackage1)).containsExactlyElementsIn(precomputedTopics); in testClassify_preComputedClassifier()
149 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier() local
152 assertThat(classifications.get(appPackage1)).containsExactlyElementsIn(precomputedTopics); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
174 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics() local
177 assertThat(classifications.get(appPackage1)).containsExactlyElementsIn(onDeviceTopics); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
196 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_precomputedThenOnDevice_missingPrecomputedTopics() local
199 assertThat(classifications.get(appPackage1)).containsExactlyElementsIn(onDeviceTopics); in testClassify_precomputedThenOnDevice_missingPrecomputedTopics()
[all …]
DPrecomputedClassifierTest.java207 Map<String, List<Topic>> classifications = in testClassify_appWithBlockedTopic() local
211 assertThat(classifications.get(sampleAppPackageName)) in testClassify_appWithBlockedTopic()
229 Map<String, List<Topic>> classifications = in testClassify_appWithAllTopicsBlocked() local
233 assertThat(classifications.get(sampleAppPackageName)).isEmpty(); in testClassify_appWithAllTopicsBlocked()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DOnDeviceClassifier.java179 List<Category> classifications; in getAppClassificationTopics() local
181 classifications = mBertNLClassifier.classify(classifierInput); in getAppClassificationTopics()
193 classifications.sort(Comparator.comparing(Category::getScore).reversed()); in getAppClassificationTopics()
202 return classifications.stream() in getAppClassificationTopics()
DClassifierManager.java219 private boolean isValidValue(String packageName, Map<String, List<Topic>> classifications) { in isValidValue() argument
220 if (classifications.containsKey(packageName) in isValidValue()
221 && !classifications.get(packageName).isEmpty()) { in isValidValue()
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz