Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/calendar/
Dcalendar-javaicu.cc26 bool CalendarAdd(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarAdd() argument
28 jenv->CallVoidMethod(calendar, jni_cache->calendar_add, field, value); in CalendarAdd()
29 return !jni_cache->ExceptionCheckAndClear(); in CalendarAdd()
33 bool CalendarGet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarGet() argument
35 *value = jenv->CallIntMethod(calendar, jni_cache->calendar_get, field); in CalendarGet()
36 return !jni_cache->ExceptionCheckAndClear(); in CalendarGet()
40 bool CalendarSet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarSet() argument
42 jenv->CallVoidMethod(calendar, jni_cache->calendar_set, field, value); in CalendarSet()
43 return !jni_cache->ExceptionCheckAndClear(); in CalendarSet()
58 Calendar::Calendar(JniCache* jni_cache) in Calendar() argument
[all …]
Dcalendar-javaicu.h34 explicit Calendar(JniCache* jni_cache);
67 explicit CalendarLib(const std::shared_ptr<JniCache>& jni_cache);
/external/libtextclassifier/utils/utf8/
Dunilib-javaicu.cc248 UniLib::UniLib(const std::shared_ptr<JniCache>& jni_cache) in UniLib() argument
249 : jni_cache_(jni_cache) {} in UniLib()
352 UniLib::RegexPattern::RegexPattern(const JniCache* jni_cache, in RegexPattern() argument
354 : jni_cache_(jni_cache), in RegexPattern()
355 pattern_(nullptr, jni_cache ? jni_cache->jvm : nullptr), in RegexPattern()
423 UniLib::RegexMatcher::RegexMatcher(const JniCache* jni_cache, in RegexMatcher() argument
426 : jni_cache_(jni_cache), in RegexMatcher()
672 UniLib::BreakIterator::BreakIterator(const JniCache* jni_cache, in BreakIterator() argument
674 : jni_cache_(jni_cache), in BreakIterator()
675 text_(nullptr, jni_cache ? jni_cache->jvm : nullptr), in BreakIterator()
[all …]
Dunilib-javaicu.h41 explicit UniLib(const std::shared_ptr<JniCache>& jni_cache);
118 RegexMatcher(const JniCache* jni_cache, ScopedGlobalRef<jobject> matcher,
136 RegexPattern(const JniCache* jni_cache, const UnicodeText& pattern,
161 BreakIterator(const JniCache* jni_cache, const UnicodeText& text);
/external/libtextclassifier/actions/
Dactions_jni.cc64 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in Create() argument
66 if (jni_cache == nullptr || model == nullptr) { in Create()
71 model->model()->resources(), jni_cache); in Create()
73 libtextclassifier3::RemoteActionTemplatesHandler::Create(jni_cache); in Create()
79 return new ActionsSuggestionsJniContext(jni_cache, std::move(model), in Create()
84 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const { in jni_cache() function in libtextclassifier3::__anon45b9426f0111::ActionsSuggestionsJniContext
98 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in ActionsSuggestionsJniContext() argument
102 : jni_cache_(jni_cache), in ActionsSuggestionsJniContext()
177 ScopedLocalRef<jstring> reply = context->jni_cache()->ConvertToJavaString( in ActionSuggestionsToJObjectArray()
313 std::shared_ptr<libtextclassifier3::JniCache> jni_cache = in TC3_JNI_METHOD() local
[all …]
/external/libtextclassifier/utils/intents/
Djni.h53 const std::shared_ptr<JniCache>& jni_cache);
71 const std::shared_ptr<JniCache>& jni_cache) in RemoteActionTemplatesHandler() argument
72 : jni_cache_(jni_cache), in RemoteActionTemplatesHandler()
73 integer_class_(nullptr, jni_cache->jvm), in RemoteActionTemplatesHandler()
74 remote_action_template_class_(nullptr, jni_cache->jvm), in RemoteActionTemplatesHandler()
75 named_variant_class_(nullptr, jni_cache->jvm) {} in RemoteActionTemplatesHandler()
Dintent-generator.cc60 JniLuaEnvironment(const Resources& resources, const JniCache* jni_cache,
127 const JniCache* jni_cache, in JniLuaEnvironment() argument
131 jenv_(jni_cache ? jni_cache->GetEnv() : nullptr), in JniLuaEnvironment()
132 jni_cache_(jni_cache), in JniLuaEnvironment()
136 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)), in JniLuaEnvironment()
139 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)), in JniLuaEnvironment()
142 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)), in JniLuaEnvironment()
144 /*jvm=*/(jni_cache ? jni_cache->jvm : nullptr)) {} in JniLuaEnvironment()
704 AnnotatorJniEnvironment(const Resources& resources, const JniCache* jni_cache, in AnnotatorJniEnvironment() argument
711 : JniLuaEnvironment(resources, jni_cache, context, device_locales), in AnnotatorJniEnvironment()
[all …]
Dintent-generator.h71 const std::shared_ptr<JniCache>& jni_cache);
98 const std::shared_ptr<JniCache>& jni_cache) in IntentGenerator() argument
101 jni_cache_(jni_cache) {} in IntentGenerator()
Djni.cc28 handler->FIELD = MakeGlobalRef(env->FindClass(NAME), env, jni_cache->jvm); \
36 const std::shared_ptr<JniCache>& jni_cache) { in Create() argument
37 JNIEnv* env = jni_cache->GetEnv(); in Create()
43 new RemoteActionTemplatesHandler(jni_cache)); in Create()
/external/libtextclassifier/annotator/
Dannotator_jni.cc69 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in Create() argument
71 if (jni_cache == nullptr || model == nullptr) { in Create()
76 model->model()->resources(), jni_cache); in Create()
78 libtextclassifier3::RemoteActionTemplatesHandler::Create(jni_cache); in Create()
82 return new AnnotatorJniContext(jni_cache, std::move(model), in Create()
87 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const { in jni_cache() function in libtextclassifier3::__anond793edf90111::AnnotatorJniContext
101 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in AnnotatorJniContext() argument
105 : jni_cache_(jni_cache), in AnnotatorJniContext()
407 std::shared_ptr<libtextclassifier3::JniCache> jni_cache( in TC3_JNI_METHOD() local
411 jni_cache, in TC3_JNI_METHOD()
[all …]