Searched refs:jstr (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/jni/ |
D | android_os_GraphicsEnvironment.cpp | 62 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()
|
D | android_os_Trace.cpp | 41 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()
|
D | android_os_VintfObject.cpp | 60 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()
|
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 | 236 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()
|
D | com_android_internal_os_Zygote.cpp | 1451 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/ |
D | ImageDecoder.cpp | 99 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()
|
D | BitmapFactory.cpp | 94 jstring jstr = nullptr; in getMimeTypeAsJavaString() local 99 jstr = env->NewStringUTF(mimeType); in getMimeTypeAsJavaString() 101 return jstr; in getMimeTypeAsJavaString()
|
/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 659 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()
|
D | android_media_MediaCodec.cpp | 4038 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()
|