Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/utf8/
Dunilib-javaicu.cc249 : jni_cache_(jni_cache) {} in UniLib()
324 if (jni_cache_) { in ParseInt32()
325 JNIEnv* env = jni_cache_->GetEnv(); in ParseInt32()
327 jni_cache_->ConvertToJavaString(text); in ParseInt32()
328 jint res = env->CallStaticIntMethod(jni_cache_->integer_class.get(), in ParseInt32()
329 jni_cache_->integer_parse_int, in ParseInt32()
331 if (jni_cache_->ExceptionCheckAndClear()) { in ParseInt32()
343 new UniLib::RegexPattern(jni_cache_.get(), regex, /*lazy=*/false)); in CreateRegexPattern()
349 new UniLib::RegexPattern(jni_cache_.get(), regex, /*lazy=*/true)); in CreateLazyRegexPattern()
354 : jni_cache_(jni_cache), in RegexPattern()
[all …]
Dunilib-javaicu.h112 GetScopedStringChars(jni_cache_->GetEnv(), text_.get()); in Text()
122 const JniCache* jni_cache_; variable
140 const JniCache* jni_cache_; variable
163 const JniCache* jni_cache_; variable
178 std::shared_ptr<JniCache> jni_cache_;
/external/libtextclassifier/utils/calendar/
Dcalendar-javaicu.cc59 : jni_cache_(jni_cache), in Calendar()
60 jenv_(jni_cache_ ? jni_cache->GetEnv() : nullptr) {} in Calendar()
64 if (!jni_cache_ || !jenv_) { in Initialize()
70 if (jni_cache_->calendar_sunday != in Initialize()
72 jni_cache_->calendar_monday != in Initialize()
74 jni_cache_->calendar_tuesday != in Initialize()
76 jni_cache_->calendar_wednesday != in Initialize()
78 jni_cache_->calendar_thursday != in Initialize()
80 jni_cache_->calendar_friday != in Initialize()
82 jni_cache_->calendar_saturday != in Initialize()
[all …]
Dcalendar-javaicu.h59 JniCache* jni_cache_;
76 Calendar calendar(jni_cache_.get()); in InterpretParseData()
90 std::shared_ptr<JniCache> jni_cache_;
/external/libtextclassifier/utils/intents/
Djni.cc81 return jni_cache_->ConvertToJavaString(optional.value()).release(); in AsUTF8String()
87 ? jni_cache_->GetEnv()->NewObject(integer_class_.get(), in AsInteger()
97 jobjectArray result = jni_cache_->GetEnv()->NewObjectArray( in AsStringArray()
98 values.size(), jni_cache_->string_class.get(), nullptr); in AsStringArray()
104 jni_cache_->ConvertToJavaString(values[k]); in AsStringArray()
105 jni_cache_->GetEnv()->SetObjectArrayElement(result, k, value_str.get()); in AsStringArray()
112 ScopedLocalRef<jstring> name = jni_cache_->ConvertToJavaString(name_str); in AsNamedVariant()
118 return jni_cache_->GetEnv()->NewObject(named_variant_class_.get(), in AsNamedVariant()
122 return jni_cache_->GetEnv()->NewObject(named_variant_class_.get(), in AsNamedVariant()
126 return jni_cache_->GetEnv()->NewObject(named_variant_class_.get(), in AsNamedVariant()
[all …]
Dintent-generator.cc109 const JniCache* jni_cache_; member in libtextclassifier3::__anone605cdd80111::JniLuaEnvironment
132 jni_cache_(jni_cache), in JniLuaEnvironment()
148 MakeGlobalRef(jenv_->NewStringUTF("string"), jenv_, jni_cache_->jvm); in Initialize()
150 MakeGlobalRef(jenv_->NewStringUTF("android"), jenv_, jni_cache_->jvm); in Initialize()
232 context_, jni_cache_->context_get_package_name))); in HandleAndroidCallback()
233 if (jni_cache_->ExceptionCheckAndClear()) { in HandleAndroidCallback()
257 if (jni_cache_->usermanager_class == nullptr || in HandleUserRestrictionsCallback()
258 jni_cache_->usermanager_get_user_restrictions == nullptr) { in HandleUserRestrictionsCallback()
274 usermanager_.get(), jni_cache_->usermanager_get_user_restrictions)); in HandleUserRestrictionsCallback()
275 if (jni_cache_->ExceptionCheckAndClear() || bundle == nullptr) { in HandleUserRestrictionsCallback()
[all …]
Djni.h72 : jni_cache_(jni_cache), in RemoteActionTemplatesHandler()
77 std::shared_ptr<JniCache> jni_cache_; variable
Dintent-generator.h101 jni_cache_(jni_cache) {} in IntentGenerator()
107 std::shared_ptr<JniCache> jni_cache_; variable
/external/libtextclassifier/actions/
Dactions_jni.cc85 return jni_cache_; in jni_cache()
102 : jni_cache_(jni_cache), in ActionsSuggestionsJniContext()
107 std::shared_ptr<libtextclassifier3::JniCache> jni_cache_; member in libtextclassifier3::__anon45b9426f0111::ActionsSuggestionsJniContext
/external/libtextclassifier/annotator/
Dannotator_jni.cc88 return jni_cache_; in jni_cache()
105 : jni_cache_(jni_cache), in AnnotatorJniContext()
110 std::shared_ptr<libtextclassifier3::JniCache> jni_cache_; member in libtextclassifier3::__anond793edf90111::AnnotatorJniContext