Home
last modified time | relevance | path

Searched refs:jni_cache (Results 1 – 23 of 23) sorted by relevance

/external/icing/icing/tokenization/reverse_jni/
Dreverse-jni-break-iterator.cc43 ReverseJniBreakIterator::Create(const JniCache* jni_cache, in Create() argument
46 if (jni_cache == nullptr) { in Create()
53 jni_cache->ConvertToJavaString(text.data(), text.length())); in Create()
60 jni_cache->ConvertToJavaString(locale.data(), locale.length())); in Create()
66 JNIEnv* jenv = jni_cache->GetEnv(); in Create()
70 jenv, jni_cache->locale_class.get(), jni_cache->locale_constructor, in Create()
80 jenv, jni_cache->breakiterator_class.get(), in Create()
81 jni_cache->breakiterator_constructor, java_locale.get())); in Create()
84 jni_cache->jvm); in Create()
91 jenv, iterator_batcher.get(), jni_cache->breakiterator_settext, in Create()
[all …]
Dreverse-jni-language-segmenter-factory.cc42 if (options.jni_cache == nullptr) { in Create()
58 std::move(options.locale), options.jni_cache); in Create()
Dreverse-jni-language-segmenter.h33 ReverseJniLanguageSegmenter(std::string locale, const JniCache* jni_cache) in ReverseJniLanguageSegmenter() argument
34 : locale_(std::move(locale)), jni_cache_(jni_cache) {} in ReverseJniLanguageSegmenter()
Dreverse-jni-break-iterator.h56 Create(const JniCache* jni_cache, std::string_view text,
90 const JniCache* jni_cache,
Dreverse-jni-language-segmenter_test.cc45 const std::string& locale, const JniCache* jni_cache) { in GetSegmenterOptions() argument
46 return language_segmenter_factory::SegmenterOptions(locale, jni_cache); in GetSegmenterOptions()
/external/libtextclassifier/native/utils/utf8/
Dunilib-javaicu.cc37 UniLibBase::UniLibBase(const std::shared_ptr<JniCache>& jni_cache) in UniLibBase() argument
38 : jni_cache_(jni_cache) {} in UniLibBase()
151 UniLibBase::RegexPattern::RegexPattern(const JniCache* jni_cache, in RegexPattern() argument
153 : jni_cache_(jni_cache), in RegexPattern()
154 pattern_(nullptr, jni_cache ? jni_cache->jvm : nullptr), in RegexPattern()
229 UniLibBase::RegexMatcher::RegexMatcher(const JniCache* jni_cache, in RegexMatcher() argument
232 : jni_cache_(jni_cache), in RegexMatcher()
481 UniLibBase::BreakIterator::BreakIterator(const JniCache* jni_cache, in BreakIterator() argument
483 : jni_cache_(jni_cache), in BreakIterator()
484 text_(nullptr, jni_cache ? jni_cache->jvm : nullptr), in BreakIterator()
[all …]
Dunilib-javaicu.h42 explicit UniLibBase(const std::shared_ptr<JniCache>& jni_cache);
131 RegexMatcher(const JniCache* jni_cache, ScopedGlobalRef<jobject> matcher,
149 RegexPattern(const JniCache* jni_cache, const UnicodeText& pattern,
174 BreakIterator(const JniCache* jni_cache, const UnicodeText& text);
/external/libtextclassifier/native/utils/calendar/
Dcalendar-javaicu.cc28 bool CalendarAdd(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarAdd() argument
30 return JniHelper::CallVoidMethod(jenv, calendar, jni_cache->calendar_add, in CalendarAdd()
36 bool CalendarGet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarGet() argument
40 JniHelper::CallIntMethod(jenv, calendar, jni_cache->calendar_get, field)); in CalendarGet()
45 bool CalendarSet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarSet() argument
47 return JniHelper::CallVoidMethod(jenv, calendar, jni_cache->calendar_set, in CalendarSet()
64 Calendar::Calendar(JniCache* jni_cache) in Calendar() argument
65 : jni_cache_(jni_cache), in Calendar()
66 jenv_(jni_cache_ ? jni_cache->GetEnv() : nullptr), in Calendar()
176 CalendarLib::CalendarLib(const std::shared_ptr<JniCache>& jni_cache) in CalendarLib() argument
[all …]
Dcalendar-javaicu.h35 explicit Calendar(JniCache* jni_cache);
68 explicit CalendarLib(const std::shared_ptr<JniCache>& jni_cache);
/external/libtextclassifier/native/utils/intents/
Djni.h56 const std::shared_ptr<JniCache>& jni_cache);
82 const std::shared_ptr<JniCache>& jni_cache) in RemoteActionTemplatesHandler() argument
83 : jni_cache_(jni_cache), in RemoteActionTemplatesHandler()
84 integer_class_(nullptr, jni_cache->jvm), in RemoteActionTemplatesHandler()
85 remote_action_template_class_(nullptr, jni_cache->jvm), in RemoteActionTemplatesHandler()
86 named_variant_class_(nullptr, jni_cache->jvm) {} in RemoteActionTemplatesHandler()
Dintent-generator.cc44 AnnotatorJniEnvironment(const Resources& resources, const JniCache* jni_cache, in AnnotatorJniEnvironment() argument
51 : JniLuaEnvironment(resources, jni_cache, context, device_locales), in AnnotatorJniEnvironment()
79 const Resources& resources, const JniCache* jni_cache, in ActionsJniLuaEnvironment() argument
84 : JniLuaEnvironment(resources, jni_cache, context, device_locales), in ActionsJniLuaEnvironment()
111 const std::shared_ptr<JniCache>& jni_cache) { in Create() argument
113 new IntentGenerator(options, resources, jni_cache)); in Create()
Djni-lua.cc46 const JniCache* jni_cache, in JniLuaEnvironment() argument
51 jenv_(jni_cache ? jni_cache->GetEnv() : nullptr), in JniLuaEnvironment()
52 jni_cache_(jni_cache), in JniLuaEnvironment()
56 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)), in JniLuaEnvironment()
59 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)), in JniLuaEnvironment()
62 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)), in JniLuaEnvironment()
64 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)) {} in JniLuaEnvironment()
Dintent-generator.h46 const std::shared_ptr<JniCache>& jni_cache);
73 const std::shared_ptr<JniCache>& jni_cache) in IntentGenerator() argument
76 jni_cache_(jni_cache) {} in IntentGenerator()
Djni.cc35 handler->FIELD = MakeGlobalRef(clazz.release(), env, jni_cache->jvm); \
45 const std::shared_ptr<JniCache>& jni_cache) { in Create() argument
46 JNIEnv* env = jni_cache->GetEnv(); in Create()
52 new RemoteActionTemplatesHandler(jni_cache)); in Create()
Djni-lua.h38 JniLuaEnvironment(const Resources& resources, const JniCache* jni_cache,
/external/icing/icing/tokenization/
Dlanguage-segmenter-factory.h33 const JniCache* jni_cache = nullptr)
34 : locale(std::move(locale)), jni_cache(jni_cache) {} in locale()
39 const JniCache* jni_cache; member
/external/libtextclassifier/native/actions/
Dactions_jni.cc68 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in Create() argument
70 if (jni_cache == nullptr || model == nullptr) { in Create()
75 model->model()->resources(), jni_cache); in Create()
82 libtextclassifier3::RemoteActionTemplatesHandler::Create(jni_cache)); in Create()
84 return new ActionsSuggestionsJniContext(jni_cache, std::move(model), in Create()
89 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const { in jni_cache() function in libtextclassifier3::__anon488ae8a30111::ActionsSuggestionsJniContext
103 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in ActionsSuggestionsJniContext() argument
107 : jni_cache_(jni_cache), in ActionsSuggestionsJniContext()
218 context->jni_cache()->ConvertToJavaString( in ActionSuggestionsToJObject()
424 std::shared_ptr<libtextclassifier3::JniCache> jni_cache = in TC3_JNI_METHOD() local
[all …]
/external/libtextclassifier/native/annotator/
Dannotator_jni.cc77 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in Create() argument
79 if (jni_cache == nullptr || model == nullptr) { in Create()
85 model->model()->resources(), jni_cache); in Create()
88 libtextclassifier3::RemoteActionTemplatesHandler::Create(jni_cache)); in Create()
90 return new AnnotatorJniContext(jni_cache, std::move(model), in Create()
95 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const { in jni_cache() function in libtextclassifier3::__anon9a758e2d0111::AnnotatorJniContext
111 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in AnnotatorJniContext() argument
115 : jni_cache_(jni_cache), in AnnotatorJniContext()
495 std::shared_ptr<libtextclassifier3::JniCache> jni_cache( in TC3_JNI_METHOD() local
499 jni_cache, in TC3_JNI_METHOD()
[all …]
/external/icing/icing/
Dicing-search-engine.h61 std::unique_ptr<const JniCache> jni_cache = nullptr);
412 std::unique_ptr<const JniCache> jni_cache = nullptr);
Dicing-search-engine.cc244 std::unique_ptr<const JniCache> jni_cache) in IcingSearchEngine() argument
247 std::make_unique<Clock>(), std::move(jni_cache)) {} in IcingSearchEngine()
253 std::unique_ptr<Clock> clock, std::unique_ptr<const JniCache> jni_cache) in IcingSearchEngine() argument
258 jni_cache_(std::move(jni_cache)) { in IcingSearchEngine()
Dicing-search-engine_test.cc131 std::unique_ptr<JniCache> jni_cache) in TestIcingSearchEngine() argument
134 std::move(jni_cache)) {} in TestIcingSearchEngine()
/external/icing/icing/jni/
Dicing-search-engine-jni.cc100 std::unique_ptr<const icing::lib::JniCache> jni_cache; in Java_com_google_android_icing_IcingSearchEngine_nativeCreate() local
102 ICING_ASSIGN_OR_RETURN(jni_cache, icing::lib::JniCache::Create(env), 0); in Java_com_google_android_icing_IcingSearchEngine_nativeCreate()
105 new icing::lib::IcingSearchEngine(options, std::move(jni_cache)); in Java_com_google_android_icing_IcingSearchEngine_nativeCreate()
/external/icing/icing/tokenization/icu/
Dicu-language-segmenter_test.cc44 const std::string& locale, const JniCache* jni_cache) { in GetSegmenterOptions() argument
45 return language_segmenter_factory::SegmenterOptions(locale, jni_cache); in GetSegmenterOptions()