Searched refs:mPrecomputedClassifier (Results 1 – 2 of 2) sorted by relevance
65 @Mock private PrecomputedClassifier mPrecomputedClassifier; field in ClassifierManagerTest86 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 …]
56 private Supplier<PrecomputedClassifier> mPrecomputedClassifier; field in ClassifierManager63 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()