Home
last modified time | relevance | path

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

/frameworks/base/packages/services/PacProcessor/jni/
Dcom_android_pacprocessor_PacNative.cpp36 std::u16string jstringToString16(JNIEnv* env, jstring jstr) { in jstringToString16() argument
37 const jchar* str = env->GetStringCritical(jstr, 0); in jstringToString16()
39 env->GetStringLength(jstr)); in jstringToString16()
40 env->ReleaseStringCritical(jstr, str); in jstringToString16()
/frameworks/base/core/jni/
Dandroid_os_Trace.cpp38 inline static void withString(JNIEnv* env, jstring jstr, F callback) { in withString() argument
46 jsize size = std::min(env->GetStringLength(jstr), 1024); in withString()
47 env->GetStringUTFRegion(jstr, 0, size, buffer.data()); in withString()
Dandroid_util_Binder.cpp224 ScopedLocalRef<jstring> jstr( in report_java_lang_error_fatal_error() local
229 if (jstr.get() != nullptr) { in report_java_lang_error_fatal_error()
230 ScopedUtfChars jstr_utf(env, jstr.get()); in report_java_lang_error_fatal_error()
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DOrbit.cpp39 std::string to_string(jstring jstr, JNIEnv *env) { in to_string() argument
40 const char *utf = env->GetStringUTFChars(jstr, nullptr); in to_string()
42 env->ReleaseStringUTFChars(jstr, utf); in to_string()
/frameworks/base/core/jni/android/graphics/
DImageDecoder.cpp64 jstring jstr = nullptr; in throw_exception() local
66 jstr = env->NewStringUTF(msg); in throw_exception()
67 if (!jstr) { in throw_exception()
73 gDecodeException_constructorMethodID, error, jstr, cause, source); in throw_exception()
DBitmapFactory.cpp91 jstring jstr = nullptr; in encodedFormatToString() local
95 jstr = env->NewStringUTF(mimeType); in encodedFormatToString()
97 return jstr; in encodedFormatToString()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp582 static String8 JStringToString8(JNIEnv *env, jstring const &jstr) { in JStringToString8() argument
585 const char *s = env->GetStringUTFChars(jstr, NULL); in JStringToString8()
588 env->ReleaseStringUTFChars(jstr, s); in JStringToString8()