Searched refs:g_jvm (Results 1 – 7 of 7) sorted by relevance
/external/webrtc/webrtc/modules/video_render/android/ |
D | video_render_android_native_opengl2.cc | 38 if (!g_jvm) { in UseOpenGL2() 45 if (g_jvm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { in UseOpenGL2() 48 jint res = g_jvm->AttachCurrentThread(&env, NULL); in UseOpenGL2() 87 if (g_jvm->DetachCurrentThread() < 0) { in UseOpenGL2() 98 if (g_jvm) { in ~AndroidNativeOpenGl2Renderer() 102 if (g_jvm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { in ~AndroidNativeOpenGl2Renderer() 105 jint res = g_jvm->AttachCurrentThread(&env, NULL); in ~AndroidNativeOpenGl2Renderer() 123 if (g_jvm->DetachCurrentThread() < 0) { in ~AndroidNativeOpenGl2Renderer() 134 if (!g_jvm) { in Init() 148 if (g_jvm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { in Init() [all …]
|
D | video_render_android_surface_view.cc | 41 if(g_jvm) { in ~AndroidSurfaceViewRenderer() 45 if (g_jvm->GetEnv((void**)&env, JNI_VERSION_1_4) != JNI_OK) { in ~AndroidSurfaceViewRenderer() 48 jint res = g_jvm->AttachCurrentThread(&env, NULL); in ~AndroidSurfaceViewRenderer() 69 if (g_jvm->DetachCurrentThread() < 0) { in ~AndroidSurfaceViewRenderer() 82 if (!g_jvm) { in Init() 102 if (g_jvm->GetEnv((void**)&env, JNI_VERSION_1_4) != JNI_OK) { in Init() 105 jint res = g_jvm->AttachCurrentThread(&env, NULL); in Init() 189 if (g_jvm->DetachCurrentThread() < 0) { in Init() 217 new AndroidSurfaceViewChannel(streamId, g_jvm, renderer, _javaRenderObj); in CreateAndroidRenderChannel()
|
D | video_render_android_impl.cc | 30 JavaVM* VideoRenderAndroid::g_jvm = NULL; member in webrtc::VideoRenderAndroid 34 VideoRenderAndroid::g_jvm = javaVM; in SetRenderAndroidVM() 195 jint res = g_jvm->AttachCurrentThread(&_javaRenderJniEnv, NULL); in JavaRenderThreadProcess() 213 if (g_jvm->DetachCurrentThread() < 0) in JavaRenderThreadProcess()
|
D | video_render_android_impl.h | 117 static JavaVM* g_jvm; variable
|
/external/libchrome/base/android/ |
D | jni_android.cc | 24 JavaVM* g_jvm = NULL; variable 42 DCHECK(g_jvm); in AttachCurrentThread() 44 jint ret = g_jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_2); in AttachCurrentThread() 60 ret = g_jvm->AttachCurrentThread(&env, &args); in AttachCurrentThread() 67 DCHECK(g_jvm); in AttachCurrentThreadWithName() 73 jint ret = g_jvm->AttachCurrentThread(&env, &args); in AttachCurrentThreadWithName() 81 if (g_jvm) in DetachFromVM() 82 g_jvm->DetachCurrentThread(); in DetachFromVM() 86 DCHECK(!g_jvm || g_jvm == vm); in InitVM() 87 g_jvm = vm; in InitVM() [all …]
|
/external/webrtc/talk/app/webrtc/java/jni/ |
D | jni_helpers.cc | 37 static JavaVM* g_jvm = nullptr; variable 47 RTC_CHECK(g_jvm) << "JNI_OnLoad failed to run?"; in GetJVM() 48 return g_jvm; in GetJVM() 54 jint status = g_jvm->GetEnv(&env, JNI_VERSION_1_6); in GetEnv() 74 jint status = g_jvm->DetachCurrentThread(); in ThreadDestructor() 85 RTC_CHECK(!g_jvm) << "InitGlobalJniVariables!"; in InitGlobalJniVariables() 86 g_jvm = jvm; in InitGlobalJniVariables() 87 RTC_CHECK(g_jvm) << "InitGlobalJniVariables handed NULL?"; in InitGlobalJniVariables() 135 RTC_CHECK(!g_jvm->AttachCurrentThread(&env, &args)) in AttachCurrentThreadIfNeeded()
|
/external/webrtc/webrtc/modules/utility/source/ |
D | jvm_android.cc | 23 JVM* g_jvm; variable 210 RTC_CHECK(!g_jvm); in Initialize() 211 g_jvm = new JVM(jvm, context); in Initialize() 217 RTC_DCHECK(g_jvm); in Uninitialize() 218 delete g_jvm; in Uninitialize() 219 g_jvm = nullptr; in Uninitialize() 224 RTC_DCHECK(g_jvm); in GetInstance() 225 return g_jvm; in GetInstance()
|