Home
last modified time | relevance | path

Searched refs:string_class (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/utils/java/
Dstring_utils.cc45 jclass string_class = env->FindClass("java/lang/String"); in JStringToUtf8String() local
46 if (!string_class) { in JStringToUtf8String()
52 env->GetMethodID(string_class, "getBytes", "(Ljava/lang/String;)[B"); in JStringToUtf8String()
63 env->DeleteLocalRef(string_class); in JStringToUtf8String()
Djni-cache.cc25 string_class(nullptr, jvm), in JniCache()
289 jenv->NewObject(string_class.get(), string_init_bytes_charset, in ConvertToJavaString()
Djni-cache.h40 ScopedGlobalRef<jclass> string_class; member
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dnativeinterpreterwrapper_jni.cc138 jclass string_class = env->FindClass("java/lang/String"); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputNames() local
139 if (string_class == nullptr) { in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputNames()
147 env->NewObjectArray(size, string_class, env->NewStringUTF(""))); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputNames()
213 jclass string_class = env->FindClass("java/lang/String"); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getOutputNames() local
214 if (string_class == nullptr) { in Java_org_tensorflow_lite_NativeInterpreterWrapper_getOutputNames()
222 env->NewObjectArray(size, string_class, env->NewStringUTF(""))); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getOutputNames()
/external/libtextclassifier/utils/intents/
Djni.cc98 values.size(), jni_cache_->string_class.get(), nullptr); in AsStringArray()