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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 j_egl_base_class, j_is_egl14_supported_method); | 90 j_egl_base_class, j_is_egl14_supported_method); |
91 CHECK_EXCEPTION(jni); | 91 CHECK_EXCEPTION(jni); |
92 if (is_egl14_supported) { | 92 if (is_egl14_supported) { |
93 LoadClass(jni, "android/opengl/EGLContext"); | 93 LoadClass(jni, "android/opengl/EGLContext"); |
94 } | 94 } |
95 #endif | 95 #endif |
96 LoadClass(jni, "org/webrtc/MediaSource$State"); | 96 LoadClass(jni, "org/webrtc/MediaSource$State"); |
97 LoadClass(jni, "org/webrtc/MediaStream"); | 97 LoadClass(jni, "org/webrtc/MediaStream"); |
98 LoadClass(jni, "org/webrtc/MediaStreamTrack$State"); | 98 LoadClass(jni, "org/webrtc/MediaStreamTrack$State"); |
99 LoadClass(jni, "org/webrtc/PeerConnection$BundlePolicy"); | 99 LoadClass(jni, "org/webrtc/PeerConnection$BundlePolicy"); |
| 100 LoadClass(jni, "org/webrtc/PeerConnection$ContinualGatheringPolicy"); |
100 LoadClass(jni, "org/webrtc/PeerConnection$RtcpMuxPolicy"); | 101 LoadClass(jni, "org/webrtc/PeerConnection$RtcpMuxPolicy"); |
101 LoadClass(jni, "org/webrtc/PeerConnection$IceConnectionState"); | 102 LoadClass(jni, "org/webrtc/PeerConnection$IceConnectionState"); |
102 LoadClass(jni, "org/webrtc/PeerConnection$IceGatheringState"); | 103 LoadClass(jni, "org/webrtc/PeerConnection$IceGatheringState"); |
103 LoadClass(jni, "org/webrtc/PeerConnection$IceTransportsType"); | 104 LoadClass(jni, "org/webrtc/PeerConnection$IceTransportsType"); |
104 LoadClass(jni, "org/webrtc/PeerConnection$TcpCandidatePolicy"); | 105 LoadClass(jni, "org/webrtc/PeerConnection$TcpCandidatePolicy"); |
105 LoadClass(jni, "org/webrtc/PeerConnection$KeyType"); | 106 LoadClass(jni, "org/webrtc/PeerConnection$KeyType"); |
106 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState"); | 107 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState"); |
107 LoadClass(jni, "org/webrtc/SessionDescription"); | 108 LoadClass(jni, "org/webrtc/SessionDescription"); |
108 LoadClass(jni, "org/webrtc/SessionDescription$Type"); | 109 LoadClass(jni, "org/webrtc/SessionDescription$Type"); |
109 LoadClass(jni, "org/webrtc/StatsReport"); | 110 LoadClass(jni, "org/webrtc/StatsReport"); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 RTC_CHECK(inserted) << "Duplicate class name: " << name; | 143 RTC_CHECK(inserted) << "Duplicate class name: " << name; |
143 } | 144 } |
144 | 145 |
145 // Returns a global reference guaranteed to be valid for the lifetime of the | 146 // Returns a global reference guaranteed to be valid for the lifetime of the |
146 // process. | 147 // process. |
147 jclass FindClass(JNIEnv* jni, const char* name) { | 148 jclass FindClass(JNIEnv* jni, const char* name) { |
148 return g_class_reference_holder->GetClass(name); | 149 return g_class_reference_holder->GetClass(name); |
149 } | 150 } |
150 | 151 |
151 } // namespace webrtc_jni | 152 } // namespace webrtc_jni |
OLD | NEW |