Home
last modified time | relevance | path

Searched refs:findBestModelFile (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DModelFileManagerImplTest.java137 modelFileManager.findBestModelFile( in findBestModel_versionCode()
151 modelFileManager.findBestModelFile( in findBestModel_languageDependentModelIsPreferred()
164 modelFileManager.findBestModelFile( in findBestModel_noMatchedLanguageModel()
177 modelFileManager.findBestModelFile( in findBestModel_languageIsMoreImportantThanVersion()
191 modelFileManager.findBestModelFile( in findBestModel_filterOutLocalePreferenceNotInDefaultLocaleList_onlyCheckLanguage()
205 modelFileManager.findBestModelFile( in findBestModel_filterOutLocalePreferenceNotInDefaultLocaleList_match()
219 modelFileManager.findBestModelFile( in findBestModel_filterOutLocalePreferenceNotInDefaultLocaleList_doNotMatch()
234 modelFileManager.findBestModelFile( in findBestModel_onlyPrimaryLocaleConsidered_noLocalePreferencesProvided()
250 modelFileManager.findBestModelFile( in findBestModel_onlyPrimaryLocaleConsidered_localePreferencesProvided()
272 modelFileManager.findBestModelFile( in findBestModel_multiLanguageEnabled_noMatchedModel()
[all …]
DTextClassifierImplTest.java101 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in setup()
103 when(modelFileManager.findBestModelFile(eq(ModelType.LANG_ID), any(), any())) in setup()
105 when(modelFileManager.findBestModelFile(eq(ModelType.ACTIONS_SUGGESTIONS), any(), any())) in setup()
141 verify(modelFileManager).findBestModelFile(eq(ModelType.ANNOTATOR), eq(LOCALES), any()); in testSuggestSelection_localePreferenceIsPassedToModelFileManager()
582 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelDisabled()
598 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelDisabled()
614 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelDisabled()
647 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelEnabled()
663 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelEnabled()
679 when(modelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in testUseCachedAnnotatorModelEnabled()
DDefaultTextClassifierServiceTest.java98 when(testModelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in setup()
100 when(testModelFileManager.findBestModelFile(eq(ModelType.LANG_ID), any(), any())) in setup()
102 when(testModelFileManager.findBestModelFile(eq(ModelType.ACTIONS_SUGGESTIONS), any(), any())) in setup()
227 when(testModelFileManager.findBestModelFile(eq(ModelType.ANNOTATOR), any(), any())) in missingModelFile_onFailureShouldBeCalled()
/external/libtextclassifier/java/src/com/android/textclassifier/
DModelFileManager.java40 ModelFile findBestModelFile( in findBestModelFile() method
DModelFileManagerImpl.java376 public ModelFile findBestModelFile( in findBestModelFile() method in ModelFileManagerImpl
393 return findBestModelFile(modelType, targetLocale); in findBestModelFile()
404 private ModelFile findBestModelFile(@ModelTypeDef String modelType, Locale targetLocale) { in findBestModelFile() method in ModelFileManagerImpl
DTextClassifierImpl.java501 modelFileManager.findBestModelFile( in getAnnotatorModelFile()
547 modelFileManager.findBestModelFile( in getLangIdImpl()
567 modelFileManager.findBestModelFile( in getActionsImpl()