Home
last modified time | relevance | path

Searched refs:g_jvm (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/webrtc/modules/video_render/android/
Dvideo_render_android_native_opengl2.cc38 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 …]
Dvideo_render_android_surface_view.cc41 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()
Dvideo_render_android_impl.cc30 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()
Dvideo_render_android_impl.h117 static JavaVM* g_jvm; variable
/external/libchrome/base/android/
Djni_android.cc24 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/
Djni_helpers.cc37 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/
Djvm_android.cc23 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()