Searched refs:ModelFile (Results 1 – 4 of 4) sorted by relevance
19 import static com.android.textclassifier.common.ModelFileManager.ModelFile.LANGUAGE_INDEPENDENT;27 import com.android.textclassifier.common.ModelFileManager.ModelFile;99 List<ModelFileManager.ModelFile> modelFiles = modelFileManager.listModelFiles(modelType); in verifyModelPreloadedAsAsset()100 List<ModelFile> assetFiles = in verifyModelPreloadedAsAsset()109 ModelFileManager.ModelFile olderModelFile = in findBestModel_versionCode()110 new ModelFileManager.ModelFile( in findBestModel_versionCode()116 ModelFileManager.ModelFile newerModelFile = in findBestModel_versionCode()117 new ModelFileManager.ModelFile( in findBestModel_versionCode()128 ModelFile bestModelFile = modelFileManager.findBestModelFile(MODEL_TYPE, null); in findBestModel_versionCode()134 ModelFileManager.ModelFile languageIndependentModelFile = in findBestModel_languageDependentModelIsPreferred()[all …]
138 public ImmutableList<ModelFile> listModelFiles(@ModelTypeDef String modelType) { in listModelFiles()141 ImmutableList.Builder<ModelFile> modelFiles = new ImmutableList.Builder<>(); in listModelFiles()150 List<ModelFile> list(@ModelTypeDef String modelType); in list()172 public ImmutableList<ModelFile> list(@ModelTypeDef String modelType) { in list()183 return ImmutableList.of(ModelFile.createFromRegularFile(targetFile, modelType)); in list()217 public ImmutableList<ModelFile> list(@ModelTypeDef String modelType) { in list()231 ImmutableList.Builder<ModelFile> modelFilesBuilder = ImmutableList.builder(); in list()238 modelFilesBuilder.add(ModelFile.createFromRegularFile(file, modelType)); in list()257 private final Map<String, ImmutableList<ModelFile>> resultCache;280 public ImmutableList<ModelFile> list(@ModelTypeDef String modelType) { in list()[all …]
30 import com.android.textclassifier.common.ModelFileManager.ModelFile;110 Optional<ModelFile> actionsModel, in createResultId()111 Optional<ModelFile> annotatorModel, in createResultId()112 Optional<ModelFile> langIdModel) { in createResultId()119 hash, ModelFile.toModelInfos(actionsModel, annotatorModel, langIdModel)); in createResultId()
48 import com.android.textclassifier.common.ModelFileManager.ModelFile;98 private ModelFileManager.ModelFile annotatorModelInUse;104 private ModelFileManager.ModelFile langIdModelInUse;110 private ModelFileManager.ModelFile actionModelInUse;307 Optional.fromNullable(annotatorModelInUse).transform(ModelFile::toModelInfo); in generateLinks()308 langIdModelInfo = Optional.fromNullable(langIdModelInUse).transform(ModelFile::toModelInfo); in generateLinks()466 final ModelFileManager.ModelFile bestModel = in getAnnotatorImpl()488 final ModelFileManager.ModelFile bestModel = in getLangIdImpl()507 final ModelFileManager.ModelFile bestModel = in getActionsImpl()531 ModelFile.toModelInfos( in createAnnotatorId()