Home
last modified time | relevance | path

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

/external/tflite-support/tensorflow_lite_support/cc/utils/
Djni_utils.cc24 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()
Djni_utils.h73 std::string JStringToString(JNIEnv* env, jstring jstr);
/external/skia/modules/androidkit/src/
DRuntimeShaderBuilder.cpp18 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/
Dtokenizer_jni_lib.cc73 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/
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/skia/experimental/skrive/src/reader/
DJsonReader.cpp116 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/
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/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/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/libtextclassifier/native/utils/java/
Djni-helper.cc266 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()
Djni-helper.h194 StatusOr<std::string> JStringToUtf8String(JNIEnv* env, jstring jstr);
/external/icing/icing/text_classifier/lib3/utils/java/
Djni-helper.cc264 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()
Djni-helper.h192 StatusOr<std::string> JStringToUtf8String(JNIEnv* env, jstring jstr);
/external/jsoncpp/src/test_lib_json/
Dmain.cpp3884 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()