Home | History | Annotate | Download | only in annotator

Lines Matching defs:jni_cache

69       const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache,
71 if (jni_cache == nullptr || model == nullptr) {
76 model->model()->resources(), jni_cache);
78 libtextclassifier3::RemoteActionTemplatesHandler::Create(jni_cache);
82 return new AnnotatorJniContext(jni_cache, std::move(model),
87 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const {
101 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache,
105 : jni_cache_(jni_cache),
407 std::shared_ptr<libtextclassifier3::JniCache> jni_cache(
411 jni_cache,
413 fd, std::unique_ptr<UniLib>(new UniLib(jni_cache)),
414 std::unique_ptr<CalendarLib>(new CalendarLib(jni_cache)))));
417 jni_cache, Annotator::FromFileDescriptor(fd)));
424 std::shared_ptr<libtextclassifier3::JniCache> jni_cache(
428 jni_cache,
430 path_str, std::unique_ptr<UniLib>(new UniLib(jni_cache)),
431 jni_cache)))));
434 AnnotatorJniContext::Create(jni_cache, Annotator::FromPath(path_str)));
441 std::shared_ptr<libtextclassifier3::JniCache> jni_cache(
446 jni_cache,
448 fd, offset, size, std::unique_ptr<UniLib>(new UniLib(jni_cache)),
449 std::unique_ptr<CalendarLib>(new CalendarLib(jni_cache)))));
452 jni_cache, Annotator::FromFileDescriptor(fd, offset, size)));