OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 "webrtc/base/checks.h" | 11 #include "webrtc/base/checks.h" |
12 #include "webrtc/modules/utility/interface/helpers_android.h" | 12 #include "webrtc/modules/utility/include/helpers_android.h" |
13 | 13 |
14 #include <android/log.h> | 14 #include <android/log.h> |
15 #include <assert.h> | 15 #include <assert.h> |
16 #include <pthread.h> | 16 #include <pthread.h> |
17 #include <stddef.h> | 17 #include <stddef.h> |
18 #include <unistd.h> | 18 #include <unistd.h> |
19 | 19 |
20 #define TAG "HelpersAndroid" | 20 #define TAG "HelpersAndroid" |
21 #define ALOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__) | 21 #define ALOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__) |
22 | 22 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 ALOGD("Detaching thread from JVM%s", GetThreadInfo().c_str()); | 114 ALOGD("Detaching thread from JVM%s", GetThreadInfo().c_str()); |
115 jint res = jvm_->DetachCurrentThread(); | 115 jint res = jvm_->DetachCurrentThread(); |
116 RTC_CHECK(res == JNI_OK) << "DetachCurrentThread failed: " << res; | 116 RTC_CHECK(res == JNI_OK) << "DetachCurrentThread failed: " << res; |
117 RTC_CHECK(!GetEnv(jvm_)); | 117 RTC_CHECK(!GetEnv(jvm_)); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 JNIEnv* AttachThreadScoped::env() { return env_; } | 121 JNIEnv* AttachThreadScoped::env() { return env_; } |
122 | 122 |
123 } // namespace webrtc | 123 } // namespace webrtc |
OLD | NEW |