Searched refs:mOnDeviceClassifier (Results 1 – 3 of 3) sorted by relevance
87 private OnDeviceClassifier mOnDeviceClassifier; field in OnDeviceClassifierTest122 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 …]
64 @Mock private OnDeviceClassifier mOnDeviceClassifier; field in ClassifierManagerTest85 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 …]
55 private Supplier<OnDeviceClassifier> mOnDeviceClassifier; field in ClassifierManager62 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()