Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DClassifierManagerTest.java65 @Mock private PrecomputedClassifier mPrecomputedClassifier; field in ClassifierManagerTest
86 Suppliers.memoize(() -> mPrecomputedClassifier)); in setUp()
110 verifyZeroInteractions(mPrecomputedClassifier); in testClassify_onDeviceClassifier()
123 when(mPrecomputedClassifier.classify(eq(appPackages))) in testClassify_preComputedClassifier()
131 verify(mPrecomputedClassifier, times(1)).classify(eq(appPackages)); in testClassify_preComputedClassifier()
144 when(mPrecomputedClassifier.classify(eq(appPackages))) in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
154 verify(mPrecomputedClassifier, times(1)).classify(eq(appPackages)); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
171 when(mPrecomputedClassifier.classify(eq(appPackages))) in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
179 verify(mPrecomputedClassifier, times(1)).classify(eq(appPackages)); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
194 when(mPrecomputedClassifier.classify(eq(appPackages))).thenReturn(ImmutableMap.of()); in testClassify_precomputedThenOnDevice_missingPrecomputedTopics()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierManager.java56 private Supplier<PrecomputedClassifier> mPrecomputedClassifier; field in ClassifierManager
63 mPrecomputedClassifier = precomputedClassifier; in ClassifierManager()
106 return mPrecomputedClassifier.get().classify(apps); in classify()
112 return mPrecomputedClassifier.get().classify(apps); in classify()
123 mPrecomputedClassifier.get().classify(apps); in classify()
163 return mPrecomputedClassifier in getTopTopics()
177 return mPrecomputedClassifier in getTopTopics()
195 return mPrecomputedClassifier.get().getLabels(); in getTopicsTaxonomy()
205 return mPrecomputedClassifier.get().getLabels(); in getTopicsTaxonomy()