Home
last modified time | relevance | path

Searched refs:mOnDeviceClassifier (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DOnDeviceClassifierTest.java87 private OnDeviceClassifier mOnDeviceClassifier; field in OnDeviceClassifierTest
122 mOnDeviceClassifier = in setUp()
146 mOnDeviceClassifier = in testClassify_earlyReturnIfNoModelAvailable()
158 mOnDeviceClassifier.classify(appPackages); in testClassify_earlyReturnIfNoModelAvailable()
176 mOnDeviceClassifier.classify(appPackages); in testClassify_emptyClassifierInput_returnsDefaultClassifications()
228 mOnDeviceClassifier.classify(appPackages); in testClassify_successfulClassifications()
308 mOnDeviceClassifier.classify(appPackages).get(appPackage).stream() in testClassify_appWithBlockedTopic()
318 mOnDeviceClassifier = in testClassify_appWithBlockedTopic()
328 mOnDeviceClassifier.classify(appPackages).get(appPackage).stream() in testClassify_appWithBlockedTopic()
349 mOnDeviceClassifier.classify(appPackages).get(appPackage).stream() in testClassify_appWithAllTopicsBlocked()
[all …]
DClassifierManagerTest.java64 @Mock private OnDeviceClassifier mOnDeviceClassifier; field in ClassifierManagerTest
85 Suppliers.memoize(() -> mOnDeviceClassifier), in setUp()
102 when(mOnDeviceClassifier.classify(eq(appPackages))) in testClassify_onDeviceClassifier()
112 verify(mOnDeviceClassifier, times(1)).classify(eq(appPackages)); in testClassify_onDeviceClassifier()
133 verifyZeroInteractions(mOnDeviceClassifier); in testClassify_preComputedClassifier()
147 when(mOnDeviceClassifier.classify(eq(ImmutableSet.of()))).thenReturn(ImmutableMap.of()); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
156 verify(mOnDeviceClassifier, times(1)).classify(eq(ImmutableSet.of())); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
167 when(mOnDeviceClassifier.classify(eq(appPackages))) in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
180 verify(mOnDeviceClassifier, times(1)).classify(eq(appPackages)); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
191 when(mOnDeviceClassifier.classify(eq(appPackages))) in testClassify_precomputedThenOnDevice_missingPrecomputedTopics()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierManager.java55 private Supplier<OnDeviceClassifier> mOnDeviceClassifier; field in ClassifierManager
62 mOnDeviceClassifier = onDeviceClassifier; in ClassifierManager()
115 return mOnDeviceClassifier.get().classify(apps); in classify()
132 mOnDeviceClassifier.get().classify(remainingApps); in classify()
172 return mOnDeviceClassifier in getTopTopics()
202 return mOnDeviceClassifier.get().getLabels(); in getTopicsTaxonomy()