Searched refs:bestModel (Results 1 – 2 of 2) sorted by relevance
548 final ModelFileManager.ModelFile bestModel = in getAnnotatorImpl() local550 if (bestModel == null) { in getAnnotatorImpl()554 if (mAnnotatorImpl == null || !Objects.equals(mAnnotatorModelInUse, bestModel)) { in getAnnotatorImpl()555 Log.d(DEFAULT_LOG_TAG, "Loading " + bestModel); in getAnnotatorImpl()557 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getAnnotatorImpl()564 mAnnotatorModelInUse = bestModel; in getAnnotatorImpl()576 final ModelFileManager.ModelFile bestModel = in getLangIdImpl() local578 if (bestModel == null) { in getLangIdImpl()581 if (mLangIdImpl == null || !Objects.equals(mLangIdModelInUse, bestModel)) { in getLangIdImpl()582 Log.d(DEFAULT_LOG_TAG, "Loading " + bestModel); in getLangIdImpl()[all …]
82 ModelFile bestModel = null; in findBestModelFile() local85 if (model.isPreferredTo(bestModel)) { in findBestModelFile()86 bestModel = model; in findBestModelFile()90 return bestModel; in findBestModelFile()