Lines Matching refs:bestModel
518 final ModelFileManager.ModelFile bestModel = in getAnnotatorImpl() local
520 if (bestModel == null) { in getAnnotatorImpl()
523 if (annotatorImpl == null || !Objects.equals(annotatorModelInUse, bestModel)) { in getAnnotatorImpl()
524 TcLog.d(TAG, "Loading " + bestModel); in getAnnotatorImpl()
527 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getAnnotatorImpl()
538 annotatorModelInUse = bestModel; in getAnnotatorImpl()
550 final ModelFileManager.ModelFile bestModel = langIdModelFileManager.findBestModelFile(null); in getLangIdImpl() local
551 if (bestModel == null) { in getLangIdImpl()
554 if (langIdImpl == null || !Objects.equals(langIdModelInUse, bestModel)) { in getLangIdImpl()
555 TcLog.d(TAG, "Loading " + bestModel); in getLangIdImpl()
560 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getLangIdImpl()
568 langIdModelInUse = bestModel; in getLangIdImpl()
582 final ModelFileManager.ModelFile bestModel = in getActionsImpl() local
584 if (bestModel == null) { in getActionsImpl()
587 if (actionsImpl == null || !Objects.equals(actionModelInUse, bestModel)) { in getActionsImpl()
588 TcLog.d(TAG, "Loading " + bestModel); in getActionsImpl()
591 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getActionsImpl()
594 TcLog.d(TAG, "Failed to read the model file: " + bestModel.getPath()); in getActionsImpl()
598 actionModelInUse = bestModel; in getActionsImpl()