| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include <android/log.h> | 11 #include <android/log.h> |
| 12 | 12 |
| 13 #include "webrtc/modules/utility/interface/jvm_android.h" | 13 #include "webrtc/modules/utility/include/jvm_android.h" |
| 14 | 14 |
| 15 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 16 | 16 |
| 17 #define TAG "JVM" | 17 #define TAG "JVM" |
| 18 #define ALOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__) | 18 #define ALOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__) |
| 19 #define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__) | 19 #define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__) |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 JVM* g_jvm; | 23 JVM* g_jvm; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 return rtc::scoped_ptr<JNIEnvironment>(new JNIEnvironment(jni)); | 255 return rtc::scoped_ptr<JNIEnvironment>(new JNIEnvironment(jni)); |
| 256 } | 256 } |
| 257 | 257 |
| 258 JavaClass JVM::GetClass(const char* name) { | 258 JavaClass JVM::GetClass(const char* name) { |
| 259 ALOGD("JVM::GetClass(%s)%s", name, GetThreadInfo().c_str()); | 259 ALOGD("JVM::GetClass(%s)%s", name, GetThreadInfo().c_str()); |
| 260 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 260 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 261 return JavaClass(jni(), LookUpClass(name)); | 261 return JavaClass(jni(), LookUpClass(name)); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace webrtc | 264 } // namespace webrtc |
| OLD | NEW |