Android: Wrap webrtc::field_trial::FindFullName in Java
The purpose is to be able to add field trials in Java code. BUG=webrtc:6683 Review-Url: https://codereview.webrtc.org/2621003002 Cr-Commit-Position: refs/heads/master@{#15994}
This commit is contained in:
@ -71,6 +71,7 @@
|
||||
#include "webrtc/media/base/videocapturer.h"
|
||||
#include "webrtc/media/engine/webrtcvideodecoderfactory.h"
|
||||
#include "webrtc/media/engine/webrtcvideoencoderfactory.h"
|
||||
#include "webrtc/system_wrappers/include/field_trial.h"
|
||||
#include "webrtc/system_wrappers/include/field_trial_default.h"
|
||||
#include "webrtc/system_wrappers/include/logcat_trace_context.h"
|
||||
#include "webrtc/system_wrappers/include/trace.h"
|
||||
@ -1144,6 +1145,12 @@ JOW(void, PeerConnectionFactory_initializeInternalTracer)(JNIEnv* jni, jclass) {
|
||||
rtc::tracing::SetupInternalTracer();
|
||||
}
|
||||
|
||||
JOW(jstring, PeerConnectionFactory_fieldTrialsFindFullName)
|
||||
(JNIEnv* jni, jclass, jstring j_name) {
|
||||
return JavaStringFromStdString(
|
||||
jni, webrtc::field_trial::FindFullName(JavaToStdString(jni, j_name)));
|
||||
}
|
||||
|
||||
JOW(jboolean, PeerConnectionFactory_startInternalTracingCapture)(
|
||||
JNIEnv* jni, jclass, jstring j_event_tracing_filename) {
|
||||
if (!j_event_tracing_filename)
|
||||
|
||||
Reference in New Issue
Block a user