/external/libtextclassifier/utils/java/ |
D | string_utils.h | 30 bool JStringToUtf8String(JNIEnv* env, const jstring& jstr, std::string* result); 37 StringCharsReleaser(JNIEnv* env, jstring jstr) : env_(env), jstr_(jstr) {} in StringCharsReleaser() argument
|
D | string_utils.cc | 38 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/ |
D | smartreply_jni.cc | 42 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/ |
D | jni_skqp.cpp | 67 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/ |
D | jni_skqp.cpp | 67 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/ |
D | com_googlecode_android_scripting_Exec.cpp | 83 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/ |
D | sqlite_jni.c | 137 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/ |
D | surface_glue_android.cpp | 102 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/ |
D | surface_glue_android.cpp | 102 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/ |
D | jni_helpers.cc | 230 jstring jstr = jni->NewStringUTF(native.c_str()); in JavaStringFromStdString() local 232 return jstr; in JavaStringFromStdString()
|