Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_os_GraphicsEnvironment.cpp62 jstring jstr = static_cast<jstring>(env->GetObjectArrayElement(featuresObj, i)); in setAngleInfo_native() local
64 if (jstr == nullptr) { in setAngleInfo_native()
67 const char* cstr = env->GetStringUTFChars(jstr, nullptr); in setAngleInfo_native()
72 env->ReleaseStringUTFChars(jstr, cstr); in setAngleInfo_native()
Dandroid_os_Trace.cpp41 inline static void withString(JNIEnv* env, jstring jstr, F callback) { in withString() argument
42 if (CC_UNLIKELY(jstr == nullptr)) { in withString()
54 jsize size = std::min(env->GetStringLength(jstr), 1024); in withString()
55 env->GetStringUTFRegion(jstr, 0, size, buffer.data()); in withString()
Dandroid_os_VintfObject.cpp60 jstring jstr = (jstring)env->CallStaticObjectMethod(gVintfObjectClazz, gRunCommand, in runCmd() local
63 if (jstr) { in runCmd()
64 auto cstr = env->GetStringUTFChars(jstr, nullptr); in runCmd()
66 env->ReleaseStringUTFChars(jstr, cstr); in runCmd()
Dandroid_os_HidlMemory.cpp38 std::string stringFromJava(JNIEnv* env, jstring jstr) { in stringFromJava() argument
39 ScopedUtfChars s(env, jstr); in stringFromJava()
Dandroid_util_Binder.cpp236 ScopedLocalRef<jstring> jstr( in report_java_lang_error_fatal_error() local
246 if (jstr.get() != nullptr) { in report_java_lang_error_fatal_error()
247 ScopedUtfChars jstr_utf(env, jstr.get()); in report_java_lang_error_fatal_error()
Dcom_android_internal_os_Zygote.cpp1451 jstring jstr = (jstring)(env->GetObjectArrayElement(pkg_data_info_list, info_list_idx)); in isolateSdkSandboxData() local
1452 return ExtractJString(env, process_name, managed_nice_name, jstr).value(); in isolateSdkSandboxData()
/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp99 jstring jstr = nullptr; in throw_exception() local
101 jstr = env->NewStringUTF(msg); in throw_exception()
102 if (!jstr) { in throw_exception()
108 gDecodeException_constructorMethodID, error, jstr, cause, source); in throw_exception()
DBitmapFactory.cpp94 jstring jstr = nullptr; in getMimeTypeAsJavaString() local
99 jstr = env->NewStringUTF(mimeType); in getMimeTypeAsJavaString()
101 return jstr; in getMimeTypeAsJavaString()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp659 static String8 JStringToString8(JNIEnv *env, jstring const &jstr) { in JStringToString8() argument
662 const char *s = env->GetStringUTFChars(jstr, NULL); in JStringToString8()
665 env->ReleaseStringUTFChars(jstr, s); in JStringToString8()
Dandroid_media_MediaCodec.cpp4038 jstring jstr = static_cast<jstring>(env->GetObjectArrayElement(codecNames, i)); in PopulateNamesVector() local
4039 if (jstr == nullptr) { in PopulateNamesVector()
4043 const char *cstr = env->GetStringUTFChars(jstr, nullptr); in PopulateNamesVector()
4051 env->ReleaseStringUTFChars(jstr, cstr); in PopulateNamesVector()