Searched refs:jstr (Results 1 – 8 of 8) 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_os_HidlMemory.cpp | 38 std::string stringFromJava(JNIEnv* env, jstring jstr) { in stringFromJava() argument 39 ScopedUtfChars s(env, jstr); in stringFromJava()
|
D | android_util_Binder.cpp | 238 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/ |
D | ImageDecoder.cpp | 87 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()
|
D | BitmapFactory.cpp | 81 jstring jstr = nullptr; in getMimeTypeAsJavaString() local 86 jstr = env->NewStringUTF(mimeType); in getMimeTypeAsJavaString() 88 return jstr; in getMimeTypeAsJavaString()
|
/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 592 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()
|
D | android_media_MediaCodec.cpp | 3023 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()
|