/external/tflite-support/tensorflow_lite_support/cc/utils/ |
D | jni_utils.cc | 24 std::string JStringToString(JNIEnv* env, jstring jstr) { in JStringToString() argument 25 if (jstr == nullptr) { in JStringToString() 28 const char* cstring = env->GetStringUTFChars(jstr, nullptr); in JStringToString() 30 env->ReleaseStringUTFChars(jstr, cstring); in JStringToString() 44 jstring jstr = in StringListToVector() local 46 const char* raw_str = env->GetStringUTFChars(jstr, JNI_FALSE); in StringListToVector() 48 env->ReleaseStringUTFChars(jstr, raw_str); in StringListToVector()
|
D | jni_utils.h | 73 std::string JStringToString(JNIEnv* env, jstring jstr);
|
/external/skia/modules/androidkit/src/ |
D | RuntimeShaderBuilder.cpp | 18 CString(JNIEnv* env, const jstring& jstr) in CString() argument 20 , fJString(jstr) in CString() 21 , fCString(env->GetStringUTFChars(jstr, nullptr)) in CString()
|
/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/ |
D | tokenizer_jni_lib.cc | 73 auto jstr = in nativeConvertTokensToIds() local 75 const char* token = env->GetStringUTFChars(jstr, JNI_FALSE); in nativeConvertTokensToIds() 79 env->ReleaseStringUTFChars(jstr, token); in nativeConvertTokensToIds()
|
/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/skia/experimental/skrive/src/reader/ |
D | JsonReader.cpp | 116 const auto* jstr = this->readProp<skjson::StringValue>(label); in readString() local 118 return SkString(jstr ? jstr->begin() : nullptr); in readString()
|
/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/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/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/libtextclassifier/native/utils/java/ |
D | jni-helper.cc | 266 StatusOr<std::string> JStringToUtf8String(JNIEnv* env, jstring jstr) { in JStringToUtf8String() argument 267 if (jstr == nullptr) { in JStringToUtf8String() 283 env, jstr, get_bytes_id, encoding.get())); in JStringToUtf8String()
|
D | jni-helper.h | 194 StatusOr<std::string> JStringToUtf8String(JNIEnv* env, jstring jstr);
|
/external/icing/icing/text_classifier/lib3/utils/java/ |
D | jni-helper.cc | 264 StatusOr<std::string> JStringToUtf8String(JNIEnv* env, jstring jstr) { in JStringToUtf8String() argument 265 if (jstr == nullptr) { in JStringToUtf8String() 281 env, jstr, get_bytes_id, encoding.get())); in JStringToUtf8String()
|
D | jni-helper.h | 192 StatusOr<std::string> JStringToUtf8String(JNIEnv* env, jstring jstr);
|
/external/jsoncpp/src/test_lib_json/ |
D | main.cpp | 3884 const Json::Value jstr = "hello world"; in JSONTEST_FIXTURE_LOCAL() local 3885 JSONTEST_ASSERT_STRING_EQUAL(jstr.as<const char*>(), jstr.asCString()); in JSONTEST_FIXTURE_LOCAL() 3886 JSONTEST_ASSERT_STRING_EQUAL(jstr.as<Json::String>(), jstr.asString()); in JSONTEST_FIXTURE_LOCAL()
|