Home
last modified time | relevance | path

Searched refs:jstr (Results 1 – 8 of 8) 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_os_HidlMemory.cpp38 std::string stringFromJava(JNIEnv* env, jstring jstr) { in stringFromJava() argument
39 ScopedUtfChars s(env, jstr); in stringFromJava()
Dandroid_util_Binder.cpp238 ScopedLocalRef<jstring> jstr( in report_java_lang_error_fatal_error() local
248 if (jstr.get() != nullptr) { in report_java_lang_error_fatal_error()
249 ScopedUtfChars jstr_utf(env, jstr.get()); in report_java_lang_error_fatal_error()
/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp87 jstring jstr = nullptr; in throw_exception() local
89 jstr = env->NewStringUTF(msg); in throw_exception()
90 if (!jstr) { in throw_exception()
96 gDecodeException_constructorMethodID, error, jstr, cause, source); in throw_exception()
DBitmapFactory.cpp81 jstring jstr = nullptr; in getMimeTypeAsJavaString() local
86 jstr = env->NewStringUTF(mimeType); in getMimeTypeAsJavaString()
88 return jstr; in getMimeTypeAsJavaString()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp592 static String8 JStringToString8(JNIEnv *env, jstring const &jstr) { in JStringToString8() argument
595 const char *s = env->GetStringUTFChars(jstr, NULL); in JStringToString8()
598 env->ReleaseStringUTFChars(jstr, s); in JStringToString8()
Dandroid_media_MediaCodec.cpp3023 jstring jstr = static_cast<jstring>(env->GetObjectArrayElement(codecNames, i)); in PopulateNamesVector() local
3024 if (jstr == nullptr) { in PopulateNamesVector()
3028 const char *cstr = env->GetStringUTFChars(jstr, nullptr); in PopulateNamesVector()
3034 env->ReleaseStringUTFChars(jstr, cstr); in PopulateNamesVector()