Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DModelFileManagerTest.java50 private Supplier<List<ModelFileManager.ModelFile>> mModelFileSupplier; field in ModelFileManagerTest
60 mModelFileManager = new ModelFileManager(mModelFileSupplier); in setup()
90 when(mModelFileSupplier.get()).thenReturn(Collections.singletonList(modelFile)); in get()
109 when(mModelFileSupplier.get()) in findBestModel_versionCode()
130 when(mModelFileSupplier.get()) in findBestModel_languageDependentModelIsPreferred()
153 when(mModelFileSupplier.get()) in findBestModel_noMatchedLanguageModel()
176 when(mModelFileSupplier.get()) in findBestModel_noMatchedLanguageModel_defaultLocaleModelExists()
198 when(mModelFileSupplier.get()) in findBestModel_languageIsMoreImportantThanVersion()
219 when(mModelFileSupplier.get()) in findBestModel_languageIsMoreImportantThanVersion_bestModelComesFirst()
/frameworks/base/core/java/android/view/textclassifier/
DModelFileManager.java49 private final Supplier<List<ModelFile>> mModelFileSupplier; field in ModelFileManager
54 mModelFileSupplier = Preconditions.checkNotNull(modelFileSupplier); in ModelFileManager()
65 mModelFiles = Collections.unmodifiableList(mModelFileSupplier.get()); in listModelFiles()