/frameworks/base/core/jni/android/graphics/ |
D | Graphics.cpp | 13 void doThrowNPE(JNIEnv* env) { in doThrowNPE() argument 14 jniThrowNullPointerException(env, NULL); in doThrowNPE() 17 void doThrowAIOOBE(JNIEnv* env) { in doThrowAIOOBE() argument 18 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL); in doThrowAIOOBE() 21 void doThrowRE(JNIEnv* env, const char* msg) { in doThrowRE() argument 22 jniThrowRuntimeException(env, msg); in doThrowRE() 25 void doThrowIAE(JNIEnv* env, const char* msg) { in doThrowIAE() argument 26 jniThrowException(env, "java/lang/IllegalArgumentException", msg); in doThrowIAE() 29 void doThrowISE(JNIEnv* env, const char* msg) { in doThrowISE() argument 30 jniThrowException(env, "java/lang/IllegalStateException", msg); in doThrowISE() [all …]
|
D | Paint.cpp | 67 static void finalizer(JNIEnv* env, jobject clazz, SkPaint* obj) { in finalizer() argument 71 static SkPaint* init(JNIEnv* env, jobject clazz) { in init() argument 77 static SkPaint* intiWithPaint(JNIEnv* env, jobject clazz, SkPaint* paint) { in intiWithPaint() argument 82 static void reset(JNIEnv* env, jobject clazz, SkPaint* obj) { in reset() argument 87 static void assign(JNIEnv* env, jobject clazz, SkPaint* dst, const SkPaint* src) { in assign() argument 91 static jint getFlags(JNIEnv* env, jobject paint) { in getFlags() argument 92 NPE_CHECK_RETURN_ZERO(env, paint); in getFlags() 93 return GraphicsJNI::getNativePaint(env, paint)->getFlags(); in getFlags() 96 static void setFlags(JNIEnv* env, jobject paint, jint flags) { in setFlags() argument 97 NPE_CHECK_RETURN_VOID(env, paint); in setFlags() [all …]
|
D | Movie.cpp | 22 jobject create_jmovie(JNIEnv* env, SkMovie* moov) { in create_jmovie() argument 26 return env->NewObject(gMovie_class, gMovie_constructorMethodID, in create_jmovie() 30 static SkMovie* J2Movie(JNIEnv* env, jobject movie) { in J2Movie() argument 31 SkASSERT(env); in J2Movie() 33 SkASSERT(env->IsInstanceOf(movie, gMovie_class)); in J2Movie() 34 SkMovie* m = (SkMovie*)env->GetIntField(movie, gMovie_nativeInstanceID); in J2Movie() 41 static int movie_width(JNIEnv* env, jobject movie) { in movie_width() argument 42 NPE_CHECK_RETURN_ZERO(env, movie); in movie_width() 43 return J2Movie(env, movie)->width(); in movie_width() 46 static int movie_height(JNIEnv* env, jobject movie) { in movie_height() argument [all …]
|
D | CreateJavaOutputStreamAdaptor.cpp | 14 JavaInputStreamAdaptor(JNIEnv* env, jobject js, jbyteArray ar) in JavaInputStreamAdaptor() argument 15 : fEnv(env), fJavaInputStream(js), fJavaByteArray(ar) { in JavaInputStreamAdaptor() 17 fCapacity = env->GetArrayLength(ar); in JavaInputStreamAdaptor() 23 JNIEnv* env = fEnv; in rewind() local 27 env->CallVoidMethod(fJavaInputStream, gInputStream_resetMethodID); in rewind() 28 if (env->ExceptionCheck()) { in rewind() 29 env->ExceptionDescribe(); in rewind() 30 env->ExceptionClear(); in rewind() 38 JNIEnv* env = fEnv; in doRead() local 46 jint n = env->CallIntMethod(fJavaInputStream, in doRead() [all …]
|
D | SurfaceTexture.cpp | 49 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, in SurfaceTexture_setSurfaceTexture() argument 53 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture); in SurfaceTexture_setSurfaceTexture() 60 env->SetIntField(thiz, fields.surfaceTexture, (int)surfaceTexture.get()); in SurfaceTexture_setSurfaceTexture() 63 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) in SurfaceTexture_getSurfaceTexture() argument 66 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture)); in SurfaceTexture_getSurfaceTexture() 71 JNIEnv* env, jobject thiz) in android_SurfaceTexture_getNativeWindow() argument 73 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz)); in android_SurfaceTexture_getNativeWindow() 79 bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) in android_SurfaceTexture_isInstanceOf() argument 81 jclass surfaceTextureClass = env->FindClass(kSurfaceTextureClassPathName); in android_SurfaceTexture_isInstanceOf() 82 return env->IsInstanceOf(thiz, surfaceTextureClass); in android_SurfaceTexture_isInstanceOf() [all …]
|
/frameworks/base/core/jni/ |
D | android_text_format_Time.cpp | 60 static inline bool java2time(JNIEnv* env, Time* t, jobject o) in java2time() argument 62 t->t.tm_sec = env->GetIntField(o, g_secField); in java2time() 63 t->t.tm_min = env->GetIntField(o, g_minField); in java2time() 64 t->t.tm_hour = env->GetIntField(o, g_hourField); in java2time() 65 t->t.tm_mday = env->GetIntField(o, g_mdayField); in java2time() 66 t->t.tm_mon = env->GetIntField(o, g_monField); in java2time() 67 t->t.tm_year = (env->GetIntField(o, g_yearField))-1900; in java2time() 68 t->t.tm_wday = env->GetIntField(o, g_wdayField); in java2time() 69 t->t.tm_yday = env->GetIntField(o, g_ydayField); in java2time() 70 t->t.tm_isdst = env->GetIntField(o, g_isdstField); in java2time() [all …]
|
D | android_server_BluetoothService.cpp | 67 JNIEnv *env; member 88 static inline native_data_t * get_native_data(JNIEnv *env, jobject object) { in get_native_data() argument 90 (native_data_t *)(env->GetIntField(object, field_mNativeData)); in get_native_data() 99 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 102 field_mNativeData = get_field(env, clazz, "mNativeData", "I"); in classInitNative() 103 field_mEventLoop = get_field(env, clazz, "mEventLoop", in classInitNative() 111 static bool initializeNativeDataNative(JNIEnv* env, jobject object) { in initializeNativeDataNative() argument 119 nat->env = env; in initializeNativeDataNative() 121 env->SetIntField(object, field_mNativeData, (jint)nat); in initializeNativeDataNative() 136 static const char *get_adapter_path(JNIEnv* env, jobject object) { in get_adapter_path() argument [all …]
|
D | android_net_LocalSocketImpl.cpp | 53 socket_create (JNIEnv *env, jobject object, jboolean stream) in socket_create() argument 60 jniThrowIOException(env, errno); in socket_create() 64 return jniCreateFileDescriptor(env,ret); in socket_create() 71 socket_connect_local(JNIEnv *env, jobject object, in socket_connect_local() argument 78 nameUtf8 = env->GetStringUTFChars(name, NULL); in socket_connect_local() 80 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_connect_local() 82 if (env->ExceptionOccurred() != NULL) { in socket_connect_local() 92 env->ReleaseStringUTFChars(name, nameUtf8); in socket_connect_local() 95 jniThrowIOException(env, errno); in socket_connect_local() 107 socket_bind_local (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_bind_local() argument [all …]
|
D | android_view_Surface.cpp | 110 static void SurfaceSession_init(JNIEnv* env, jobject clazz) in SurfaceSession_init() argument 114 env->SetIntField(clazz, sso.client, (int)client.get()); in SurfaceSession_init() 117 static void SurfaceSession_destroy(JNIEnv* env, jobject clazz) in SurfaceSession_destroy() argument 120 (SurfaceComposerClient*)env->GetIntField(clazz, sso.client); in SurfaceSession_destroy() 123 env->SetIntField(clazz, sso.client, 0); in SurfaceSession_destroy() 127 static void SurfaceSession_kill(JNIEnv* env, jobject clazz) in SurfaceSession_kill() argument 130 (SurfaceComposerClient*)env->GetIntField(clazz, sso.client); in SurfaceSession_kill() 134 env->SetIntField(clazz, sso.client, 0); in SurfaceSession_kill() 140 static sp<SurfaceControl> getSurfaceControl(JNIEnv* env, jobject clazz) in getSurfaceControl() argument 143 (SurfaceControl*)env->GetIntField(clazz, so.surfaceControl); in getSurfaceControl() [all …]
|
D | android_hardware_Camera.cpp | 59 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera); 65 void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata); 66 void addCallbackBuffer(JNIEnv *env, jbyteArray cbb, int msgType); 67 void setCallbackMode(JNIEnv *env, bool installed, bool manualMode); 73 void copyAndPost(JNIEnv* env, const sp<IMemory>& dataPtr, int msgType); 74 void clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers); 75 void clearCallbackBuffers_l(JNIEnv *env); 76 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize); 110 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) in get_native_camera() argument 114 …JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env->GetIntField(thiz, fields.cont… in get_native_camera() [all …]
|
D | android_net_NetUtils.cpp | 76 static jint android_net_utils_enableInterface(JNIEnv* env, jobject clazz, jstring ifname) in android_net_utils_enableInterface() argument 80 const char *nameStr = env->GetStringUTFChars(ifname, NULL); in android_net_utils_enableInterface() 82 env->ReleaseStringUTFChars(ifname, nameStr); in android_net_utils_enableInterface() 86 static jint android_net_utils_disableInterface(JNIEnv* env, jobject clazz, jstring ifname) in android_net_utils_disableInterface() argument 90 const char *nameStr = env->GetStringUTFChars(ifname, NULL); in android_net_utils_disableInterface() 92 env->ReleaseStringUTFChars(ifname, nameStr); in android_net_utils_disableInterface() 96 static jint android_net_utils_resetConnections(JNIEnv* env, jobject clazz, in android_net_utils_resetConnections() argument 101 const char *nameStr = env->GetStringUTFChars(ifname, NULL); in android_net_utils_resetConnections() 104 env, clazz, nameStr, mask); in android_net_utils_resetConnections() 107 env->ReleaseStringUTFChars(ifname, nameStr); in android_net_utils_resetConnections() [all …]
|
D | android_util_Binder.cpp | 160 static void incRefsCreated(JNIEnv* env) in incRefsCreated() argument 165 env->CallStaticVoidMethod(gBinderInternalOffsets.mClass, in incRefsCreated() 172 static JavaVM* jnienv_to_javavm(JNIEnv* env) in jnienv_to_javavm() argument 175 return env->GetJavaVM(&vm) >= 0 ? vm : NULL; in jnienv_to_javavm() 180 JNIEnv* env; in javavm_to_jnienv() local 181 return vm->GetEnv((void **)&env, JNI_VERSION_1_4) >= 0 ? env : NULL; in javavm_to_jnienv() 184 static void report_exception(JNIEnv* env, jthrowable excep, const char* msg) in report_exception() argument 186 env->ExceptionClear(); in report_exception() 188 jstring tagstr = env->NewStringUTF(LOG_TAG); in report_exception() 189 jstring msgstr = env->NewStringUTF(msg); in report_exception() [all …]
|
D | android_bluetooth_BluetoothSocket.cpp | 60 static void abortNative(JNIEnv *env, jobject obj); 61 static void destroyNative(JNIEnv *env, jobject obj); 63 static struct asocket *get_socketData(JNIEnv *env, jobject obj) { in get_socketData() argument 65 (struct asocket *) env->GetIntField(obj, field_mSocketData); in get_socketData() 67 jniThrowException(env, "java/io/IOException", "null socketData"); in get_socketData() 71 static void initSocketFromFdNative(JNIEnv *env, jobject obj, jint fd) { in initSocketFromFdNative() argument 79 jniThrowIOException(env, errno); in initSocketFromFdNative() 83 env->SetIntField(obj, field_mSocketData, (jint)s); in initSocketFromFdNative() 87 jniThrowIOException(env, ENOSYS); in initSocketFromFdNative() 90 static void initSocketNative(JNIEnv *env, jobject obj) { in initSocketNative() argument [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaPlayer.cpp | 68 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 78 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNIMediaPlayerListener() argument 83 jclass clazz = env->GetObjectClass(thiz); in JNIMediaPlayerListener() 86 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaPlayerListener() 89 mClass = (jclass)env->NewGlobalRef(clazz); in JNIMediaPlayerListener() 93 mObject = env->NewGlobalRef(weak_thiz); in JNIMediaPlayerListener() 94 mParcel = env->NewGlobalRef(createJavaParcelObject(env)); in JNIMediaPlayerListener() 100 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNIMediaPlayerListener() local 101 env->DeleteGlobalRef(mObject); in ~JNIMediaPlayerListener() 102 env->DeleteGlobalRef(mClass); in ~JNIMediaPlayerListener() [all …]
|
D | android_media_MediaRecorder.cpp | 45 extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context); 64 JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 73 JNIMediaRecorderListener::JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNIMediaRecorderListener() argument 78 jclass clazz = env->GetObjectClass(thiz); in JNIMediaRecorderListener() 81 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaRecorderListener() 84 mClass = (jclass)env->NewGlobalRef(clazz); in JNIMediaRecorderListener() 88 mObject = env->NewGlobalRef(weak_thiz); in JNIMediaRecorderListener() 94 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNIMediaRecorderListener() local 95 env->DeleteGlobalRef(mObject); in ~JNIMediaRecorderListener() 96 env->DeleteGlobalRef(mClass); in ~JNIMediaRecorderListener() [all …]
|
D | android_mtp_MtpDevice.cpp | 88 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) in get_device_from_object() argument 90 return (MtpDevice*)env->GetIntField(javaDevice, field_context); in get_device_from_object() 93 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument 94 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback() 96 LOGE_EX(env); in checkAndClearExceptionFromCallback() 97 env->ExceptionClear(); in checkAndClearExceptionFromCallback() 104 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) in android_mtp_MtpDevice_open() argument 106 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); in android_mtp_MtpDevice_open() 112 env->ReleaseStringUTFChars(deviceName, deviceNameStr); in android_mtp_MtpDevice_open() 115 env->SetIntField(thiz, field_context, (int)device); in android_mtp_MtpDevice_open() [all …]
|
D | android_media_Utils.cpp | 30 JNIEnv *env, jobjectArray keys, jobjectArray values, in ConvertKeyValueArraysToKeyedVector() argument 36 nKeyValuePairs = env->GetArrayLength(keys); in ConvertKeyValueArraysToKeyedVector() 37 failed = (nKeyValuePairs != env->GetArrayLength(values)); in ConvertKeyValueArraysToKeyedVector() 47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in ConvertKeyValueArraysToKeyedVector() 54 jstring key = (jstring) env->GetObjectArrayElement(keys, i); in ConvertKeyValueArraysToKeyedVector() 55 jstring value = (jstring) env->GetObjectArrayElement(values, i); in ConvertKeyValueArraysToKeyedVector() 57 const char* keyStr = env->GetStringUTFChars(key, NULL); in ConvertKeyValueArraysToKeyedVector() 62 const char* valueStr = env->GetStringUTFChars(value, NULL); in ConvertKeyValueArraysToKeyedVector() 64 env->ReleaseStringUTFChars(key, keyStr); in ConvertKeyValueArraysToKeyedVector() 70 env->ReleaseStringUTFChars(key, keyStr); in ConvertKeyValueArraysToKeyedVector() [all …]
|
D | android_mtp_MtpDatabase.cpp | 78 MtpDatabase* getMtpDatabase(JNIEnv *env, jobject database) { in getMtpDatabase() argument 79 return (MtpDatabase *)env->GetIntField(database, field_context); in getMtpDatabase() 92 MyMtpDatabase(JNIEnv *env, jobject client); 94 void cleanup(JNIEnv *env); 175 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument 176 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback() 178 LOGE_EX(env); in checkAndClearExceptionFromCallback() 179 env->ExceptionClear(); in checkAndClearExceptionFromCallback() 185 MyMtpDatabase::MyMtpDatabase(JNIEnv *env, jobject client) in MyMtpDatabase() argument 186 : mDatabase(env->NewGlobalRef(client)), in MyMtpDatabase() [all …]
|
D | android_media_MediaCodec.cpp | 69 JNIEnv *env, jobject thiz, in JMediaCodec() argument 73 jclass clazz = env->GetObjectClass(thiz); in JMediaCodec() 76 mClass = (jclass)env->NewGlobalRef(clazz); in JMediaCodec() 77 mObject = env->NewWeakGlobalRef(thiz); in JMediaCodec() 101 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JMediaCodec() local 103 env->DeleteWeakGlobalRef(mObject); in ~JMediaCodec() 105 env->DeleteGlobalRef(mClass); in ~JMediaCodec() 167 JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs) { in dequeueOutputBuffer() argument 177 jclass clazz = env->FindClass("android/media/MediaCodec$BufferInfo"); in dequeueOutputBuffer() 179 jmethodID method = env->GetMethodID(clazz, "set", "(IIJI)V"); in dequeueOutputBuffer() [all …]
|
D | android_media_MediaExtractor.cpp | 49 JMediaExtractor::JMediaExtractor(JNIEnv *env, jobject thiz) in JMediaExtractor() argument 52 jclass clazz = env->GetObjectClass(thiz); in JMediaExtractor() 55 mClass = (jclass)env->NewGlobalRef(clazz); in JMediaExtractor() 56 mObject = env->NewWeakGlobalRef(thiz); in JMediaExtractor() 62 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JMediaExtractor() local 64 env->DeleteWeakGlobalRef(mObject); in ~JMediaExtractor() 66 env->DeleteGlobalRef(mClass); in ~JMediaExtractor() 90 JNIEnv *env = AndroidRuntime::getJNIEnv(); in getTrackFormat() local 92 return ConvertMessageToMap(env, msg, format); in getTrackFormat() 114 JNIEnv *env = AndroidRuntime::getJNIEnv(); in readSampleData() local [all …]
|
/frameworks/base/drm/jni/ |
D | android_drm_DrmManagerClient.cpp | 46 static String8 getStringValue(JNIEnv* env, jobject object, const char* fieldName); 49 JNIEnv* env, jobject object, const char* fieldName, int* dataLength); 52 JNIEnv* env, jbyteArray byteArray, int* dataLength); 54 static String8 getStringValue(JNIEnv* env, jstring string); 56 static int getIntValue(JNIEnv* env, jobject object, const char* fieldName); 59 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) { in getStringValue() argument 62 = env->GetFieldID(env->GetObjectClass(object), fieldName , "Ljava/lang/String;"); in getStringValue() 65 jstring valueString = (jstring) env->GetObjectField(object, fieldID); in getStringValue() 66 return Utility::getStringValue(env, valueString); in getStringValue() 73 String8 Utility::getStringValue(JNIEnv* env, jstring string) { in getStringValue() argument [all …]
|
/frameworks/base/services/jni/ |
D | onload.cpp | 23 int register_android_server_AlarmManagerService(JNIEnv* env); 24 int register_android_server_BatteryService(JNIEnv* env); 25 int register_android_server_InputApplicationHandle(JNIEnv* env); 26 int register_android_server_InputWindowHandle(JNIEnv* env); 27 int register_android_server_InputManager(JNIEnv* env); 28 int register_android_server_LightsService(JNIEnv* env); 29 int register_android_server_PowerManagerService(JNIEnv* env); 30 int register_android_server_SerialService(JNIEnv* env); 31 int register_android_server_UsbDeviceManager(JNIEnv* env); 32 int register_android_server_UsbHostManager(JNIEnv* env); [all …]
|
D | com_android_server_location_GpsLocationProvider.cpp | 63 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument 64 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback() 66 LOGE_EX(env); in checkAndClearExceptionFromCallback() 67 env->ExceptionClear(); in checkAndClearExceptionFromCallback() 73 JNIEnv* env = AndroidRuntime::getJNIEnv(); in location_callback() local 74 env->CallVoidMethod(mCallbacksObj, method_reportLocation, location->flags, in location_callback() 79 checkAndClearExceptionFromCallback(env, __FUNCTION__); in location_callback() 84 JNIEnv* env = AndroidRuntime::getJNIEnv(); in status_callback() local 85 env->CallVoidMethod(mCallbacksObj, method_reportStatus, status->status); in status_callback() 86 checkAndClearExceptionFromCallback(env, __FUNCTION__); in status_callback() [all …]
|
/frameworks/base/media/libdrm/mobile1/src/jni/ |
D | drm1_jni.c | 69 JNIEnv* env; member 207 JNIEnv* env; in getInputStreamDataLength() local 219 env = p->env; in getInputStreamDataLength() 223 if (NULL == env || p->len <= 0 || NULL == pInputStream) in getInputStreamDataLength() 227 cls = (*env)->GetObjectClass(env, *pInputStream); in getInputStreamDataLength() 228 mid = (*env)->GetMethodID(env, cls, "available", "()I"); in getInputStreamDataLength() 229 (*env)->DeleteLocalRef(env, cls); in getInputStreamDataLength() 234 if (0 > (*env)->CallIntMethod(env, *pInputStream, mid)) in getInputStreamDataLength() 242 JNIEnv* env; in readInputStreamData() local 257 env = p->env; in readInputStreamData() [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_util.cpp | 35 JavaObject::JavaObject(jobject object, JNIEnv* env) 39 object_ = env->NewGlobalRef(object_); 66 JNIEnv* env = GetCurrentJNIEnv(); 67 if (!env) 70 env->DeleteGlobalRef(object_); 91 JNIEnv* env = NULL; 92 const jint result = vm->GetEnv(reinterpret_cast<void**>(&env), 94 return result == JNI_OK ? env : NULL; 98 jstring ToJString(JNIEnv* env, const std::string& value) { in ToJString() argument 99 return env->NewStringUTF(value.c_str()); in ToJString() [all …]
|