Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/java/
Dstring_utils.h30 bool JStringToUtf8String(JNIEnv* env, const jstring& jstr, std::string* result);
37 StringCharsReleaser(JNIEnv* env, jstring jstr) : env_(env), jstr_(jstr) {} in StringCharsReleaser() argument
Dstring_utils.cc38 bool JStringToUtf8String(JNIEnv* env, const jstring& jstr, in JStringToUtf8String() argument
40 if (jstr == nullptr) { in JStringToUtf8String()
57 env->CallObjectMethod(jstr, get_bytes_id, encoding)); in JStringToUtf8String()
/external/tensorflow/tensorflow/lite/models/smartreply/demo/app/src/main/
Dsmartreply_jni.cc42 auto jstr = in jniStringArrayToVector() local
44 const char* raw_str = env->GetStringUTFChars(jstr, JNI_FALSE); in jniStringArrayToVector()
46 env->ReleaseStringUTFChars(jstr, raw_str); in jniStringArrayToVector()
/external/skia/tools/skqp/src/
Djni_skqp.cpp67 jstring jstr = env->NewStringUTF(s); in set_string_array_element() local
68 jassert(env, jstr != nullptr,); in set_string_array_element()
69 env->SetObjectArrayElement(a, (jsize)i, jstr); in set_string_array_element()
70 env->DeleteLocalRef(jstr); in set_string_array_element()
/external/skqp/tools/skqp/src/
Djni_skqp.cpp67 jstring jstr = env->NewStringUTF(s); in set_string_array_element() local
68 jassert(env, jstr != nullptr,); in set_string_array_element()
69 env->SetObjectArrayElement(a, (jsize)i, jstr); in set_string_array_element()
70 env->DeleteLocalRef(jstr); in set_string_array_element()
/external/sl4a/ScriptingLayerForAndroid/jni/
Dcom_googlecode_android_scripting_Exec.cpp83 char* JNU_GetStringNativeChars(JNIEnv* env, jstring jstr) { in JNU_GetStringNativeChars() argument
84 if (jstr == NULL) { in JNU_GetStringNativeChars()
96 bytes = (jbyteArray) env->CallObjectMethod(jstr, MID_String_getBytes); in JNU_GetStringNativeChars()
/external/javasqlite/src/main/native/
Dsqlite_jni.c137 jstring jstr; /* resulting Java string or 0 */ member
195 jstrlen(const jchar *jstr) in jstrlen() argument
199 if (jstr) { in jstrlen()
200 while (*jstr++) { in jstrlen()
418 dest->jstr = 0; in trans2utf()
420 return dest->jstr; in trans2utf()
423 dest->jstr = (*env)->NewStringUTF(env, src); in trans2utf()
424 return dest->jstr; in trans2utf()
431 dest->jstr = in trans2utf()
435 dest->jstr = in trans2utf()
[all …]
/external/skqp/tools/sk_app/android/
Dsurface_glue_android.cpp102 jstring jstr = fPThreadEnv->NewStringUTF(state); in setUIState() local
103 fPThreadEnv->CallVoidMethod(fAndroidApp, fSetStateMethodID, jstr); in setUIState()
104 fPThreadEnv->DeleteLocalRef(jstr); in setUIState()
/external/skia/tools/sk_app/android/
Dsurface_glue_android.cpp102 jstring jstr = fPThreadEnv->NewStringUTF(state); in setUIState() local
103 fPThreadEnv->CallVoidMethod(fAndroidApp, fSetStateMethodID, jstr); in setUIState()
104 fPThreadEnv->DeleteLocalRef(jstr); in setUIState()
/external/webrtc/talk/app/webrtc/java/jni/
Djni_helpers.cc230 jstring jstr = jni->NewStringUTF(native.c_str()); in JavaStringFromStdString() local
232 return jstr; in JavaStringFromStdString()