| Index: webrtc/modules/utility/source/jvm_android.cc
|
| diff --git a/webrtc/modules/utility/source/jvm_android.cc b/webrtc/modules/utility/source/jvm_android.cc
|
| index d53d1b5eadf8620c760056a7aa078aabdb1c5e93..9d08688700748b0fce3f0defbd3e9b7810448e60 100644
|
| --- a/webrtc/modules/utility/source/jvm_android.cc
|
| +++ b/webrtc/modules/utility/source/jvm_android.cc
|
| @@ -40,8 +40,10 @@ struct {
|
| // stack. Consequently, we only look up all classes once in native WebRTC.
|
| // http://developer.android.com/training/articles/perf-jni.html#faq_FindClass
|
| void LoadClasses(JNIEnv* jni) {
|
| + ALOGD("LoadClasses");
|
| for (auto& c : loaded_classes) {
|
| jclass localRef = FindClass(jni, c.name);
|
| + ALOGD("name: %s", c.name);
|
| CHECK_EXCEPTION(jni) << "Error during FindClass: " << c.name;
|
| RTC_CHECK(localRef) << c.name;
|
| jclass globalRef = reinterpret_cast<jclass>(jni->NewGlobalRef(localRef));
|
| @@ -173,6 +175,14 @@ jobject JavaClass::CallStaticObjectMethod(jmethodID methodID, ...) {
|
| return res;
|
| }
|
|
|
| +jint JavaClass::CallStaticIntMethod(jmethodID methodID, ...) {
|
| + va_list args;
|
| + va_start(args, methodID);
|
| + jint res = jni_->CallStaticIntMethod(j_class_, methodID, args);
|
| + CHECK_EXCEPTION(jni_) << "Error during CallStaticIntMethod";
|
| + return res;
|
| +}
|
| +
|
| // JNIEnvironment implementation.
|
| JNIEnvironment::JNIEnvironment(JNIEnv* jni) : jni_(jni) {
|
| ALOGD("JNIEnvironment::ctor%s", GetThreadInfo().c_str());
|
|
|