Home
last modified time | relevance | path

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

/external/webrtc/sdk/android/src/jni/
Djvm.cc26 static JavaVM* g_jvm = nullptr; variable
36 RTC_CHECK(g_jvm) << "JNI_OnLoad failed to run?"; in GetJVM()
37 return g_jvm; in GetJVM()
43 jint status = g_jvm->GetEnv(&env, JNI_VERSION_1_6); in GetEnv()
63 jint status = g_jvm->DetachCurrentThread(); in ThreadDestructor()
74 RTC_CHECK(!g_jvm) << "InitGlobalJniVariables!"; in InitGlobalJniVariables()
75 g_jvm = jvm; in InitGlobalJniVariables()
76 RTC_CHECK(g_jvm) << "InitGlobalJniVariables handed NULL?"; in InitGlobalJniVariables()
124 RTC_CHECK(!g_jvm->AttachCurrentThread(&env, &args)) in AttachCurrentThreadIfNeeded()
/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/modules/utility/source/
Djvm_android.cc23 JVM* g_jvm; variable
220 RTC_CHECK(!g_jvm); in Initialize()
221 g_jvm = new JVM(jvm); in Initialize()
228 JNIEnv* jni = g_jvm->jni(); in Initialize()
238 RTC_DCHECK(g_jvm); in Uninitialize()
239 delete g_jvm; in Uninitialize()
240 g_jvm = nullptr; in Uninitialize()
245 RTC_DCHECK(g_jvm); in GetInstance()
246 return g_jvm; in GetInstance()