OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 LoadClass(jni, "org/webrtc/DataChannel$State"); | 71 LoadClass(jni, "org/webrtc/DataChannel$State"); |
72 LoadClass(jni, "org/webrtc/IceCandidate"); | 72 LoadClass(jni, "org/webrtc/IceCandidate"); |
73 #if defined(ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD) | 73 #if defined(ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD) |
74 LoadClass(jni, "android/graphics/SurfaceTexture"); | 74 LoadClass(jni, "android/graphics/SurfaceTexture"); |
75 LoadClass(jni, "org/webrtc/CameraEnumerator"); | 75 LoadClass(jni, "org/webrtc/CameraEnumerator"); |
76 LoadClass(jni, "org/webrtc/Camera2Enumerator"); | 76 LoadClass(jni, "org/webrtc/Camera2Enumerator"); |
77 LoadClass(jni, "org/webrtc/CameraEnumerationAndroid"); | 77 LoadClass(jni, "org/webrtc/CameraEnumerationAndroid"); |
78 LoadClass(jni, "org/webrtc/VideoCapturerAndroid"); | 78 LoadClass(jni, "org/webrtc/VideoCapturerAndroid"); |
79 LoadClass(jni, "org/webrtc/VideoCapturerAndroid$NativeObserver"); | 79 LoadClass(jni, "org/webrtc/VideoCapturerAndroid$NativeObserver"); |
80 LoadClass(jni, "org/webrtc/EglBase"); | 80 LoadClass(jni, "org/webrtc/EglBase"); |
| 81 LoadClass(jni, "org/webrtc/NetworkMonitor"); |
81 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder"); | 82 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder"); |
82 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$OutputBufferInfo"); | 83 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$OutputBufferInfo"); |
83 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$VideoCodecType"); | 84 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$VideoCodecType"); |
84 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder"); | 85 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder"); |
85 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$DecodedTextureBuffer"); | 86 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$DecodedTextureBuffer"); |
86 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$DecodedByteBuffer"); | 87 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$DecodedByteBuffer"); |
87 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$VideoCodecType"); | 88 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$VideoCodecType"); |
88 LoadClass(jni, "org/webrtc/SurfaceTextureHelper"); | 89 LoadClass(jni, "org/webrtc/SurfaceTextureHelper"); |
89 jclass j_egl_base_class = GetClass("org/webrtc/EglBase"); | 90 jclass j_egl_base_class = GetClass("org/webrtc/EglBase"); |
90 jmethodID j_is_egl14_supported_method = jni->GetStaticMethodID( | 91 jmethodID j_is_egl14_supported_method = jni->GetStaticMethodID( |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 RTC_CHECK(inserted) << "Duplicate class name: " << name; | 150 RTC_CHECK(inserted) << "Duplicate class name: " << name; |
150 } | 151 } |
151 | 152 |
152 // Returns a global reference guaranteed to be valid for the lifetime of the | 153 // Returns a global reference guaranteed to be valid for the lifetime of the |
153 // process. | 154 // process. |
154 jclass FindClass(JNIEnv* jni, const char* name) { | 155 jclass FindClass(JNIEnv* jni, const char* name) { |
155 return g_class_reference_holder->GetClass(name); | 156 return g_class_reference_holder->GetClass(name); |
156 } | 157 } |
157 | 158 |
158 } // namespace webrtc_jni | 159 } // namespace webrtc_jni |
OLD | NEW |