Home
last modified time | relevance | path

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

/external/libtextclassifier/java/src/com/android/textclassifier/common/
DModelFileManager.java138 public ImmutableList<ModelFile> listModelFiles(@ModelTypeDef String modelType) { in listModelFiles() argument
139 Preconditions.checkNotNull(modelType); in listModelFiles()
143 modelFiles.addAll(modelFileLister.list(modelType)); in listModelFiles()
150 List<ModelFile> list(@ModelTypeDef String modelType); in list() argument
155 private final String modelType; field in ModelFileManager.RegularFileFullMatchLister
165 @ModelTypeDef String modelType, File targetFile, Supplier<Boolean> isEnabled) { in RegularFileFullMatchLister()
166 this.modelType = Preconditions.checkNotNull(modelType); in RegularFileFullMatchLister()
172 public ImmutableList<ModelFile> list(@ModelTypeDef String modelType) { in list() argument
173 if (!this.modelType.equals(modelType)) { in list()
183 return ImmutableList.of(ModelFile.createFromRegularFile(targetFile, modelType)); in list()
[all …]
DTextClassifierSettings.java402 public String getManifestURL(@ModelType.ModelTypeDef String modelType, String modelLanguageTag) { in getManifestURL() argument
405 String urlFlagName = String.format(MANIFEST_URL_TEMPLATE, modelType, modelLanguageTag); in getManifestURL()
417 @ModelType.ModelTypeDef String modelType) { in getLanguageTagsForManifestURL()
418 String urlFlagBaseName = String.format(MANIFEST_URL_TEMPLATE, modelType, /* language */ ""); in getLanguageTagsForManifestURL()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DModelFileManagerTest.java98 @ModelTypeDef String modelType, String expectedModelPath) { in verifyModelPreloadedAsAsset()
99 List<ModelFileManager.ModelFile> modelFiles = modelFileManager.listModelFiles(modelType); in verifyModelPreloadedAsAsset()
126 ImmutableList.of(modelType -> ImmutableList.of(olderModelFile, newerModelFile))); in findBestModel_versionCode()
152 modelType -> in findBestModel_languageDependentModelIsPreferred()
180 modelType -> in findBestModel_noMatchedLanguageModel()
208 modelType -> ImmutableList.of(matchButOlderModel, mismatchButNewerModel))); in findBestModel_languageIsMoreImportantThanVersion()
235 modelType -> ImmutableList.of(matchLocaleModel, languageIndependentModel))); in findBestModel_preferMatchedLocaleModel()
259 ImmutableList.of(modelType -> ImmutableList.of(modelFile1, modelFile2))); in deleteUnusedModelFiles_olderModelDeleted()
291 ImmutableList.of(modelType -> ImmutableList.of(modelFile1, modelFile2))); in deleteUnusedModelFiles_languageIndependentOlderModelDeleted()
315 ImmutableList.of(modelType -> ImmutableList.of(modelFile1, modelFile2))); in deleteUnusedModelFiles_modelOnlySupportingLocalesNotInListDeleted()
[all …]