Searched refs:jstr (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/services/PacProcessor/jni/ |
D | com_android_pacprocessor_PacNative.cpp | 36 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/ |
D | android_os_Trace.cpp | 38 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()
|
D | android_util_Binder.cpp | 224 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/ |
D | Orbit.cpp | 39 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/ |
D | ImageDecoder.cpp | 64 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()
|
D | BitmapFactory.cpp | 91 jstring jstr = nullptr; in encodedFormatToString() local 95 jstr = env->NewStringUTF(mimeType); in encodedFormatToString() 97 return jstr; in encodedFormatToString()
|
/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 582 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()
|