Android: Generate JNI code for remaining classes in sdk/android
Bug: webrtc:8278 Change-Id: I20a4388ab347d8745d0edde808f7a0b610f077f9 Reviewed-on: https://webrtc-review.googlesource.com/31484 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21227}
This commit is contained in:
committed by
Commit Bot
parent
1a8fffbb01
commit
9060eb1528
@ -251,6 +251,41 @@ public class PeerConnection {
|
||||
tlsAlpnProtocols, tlsEllipticCurves);
|
||||
}
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
List<String> getUrls() {
|
||||
return urls;
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
TlsCertPolicy getTlsCertPolicy() {
|
||||
return tlsCertPolicy;
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
String getHostname() {
|
||||
return hostname;
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
List<String> getTlsAlpnProtocols() {
|
||||
return tlsAlpnProtocols;
|
||||
}
|
||||
|
||||
@CalledByNative("IceServer")
|
||||
List<String> getTlsEllipticCurves() {
|
||||
return tlsEllipticCurves;
|
||||
}
|
||||
}
|
||||
|
||||
/** Java version of PeerConnectionInterface.IceTransportsType */
|
||||
@ -284,10 +319,12 @@ public class PeerConnection {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
@CalledByNative("IntervalRange")
|
||||
public int getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
@CalledByNative("IntervalRange")
|
||||
public int getMax() {
|
||||
return max;
|
||||
}
|
||||
@ -347,6 +384,106 @@ public class PeerConnection {
|
||||
maxIPv6Networks = 5;
|
||||
iceRegatherIntervalRange = null;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
IceTransportsType getIceTransportsType() {
|
||||
return iceTransportsType;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
List<IceServer> getIceServers() {
|
||||
return iceServers;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
BundlePolicy getBundlePolicy() {
|
||||
return bundlePolicy;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
RtcpMuxPolicy getRtcpMuxPolicy() {
|
||||
return rtcpMuxPolicy;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
TcpCandidatePolicy getTcpCandidatePolicy() {
|
||||
return tcpCandidatePolicy;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
CandidateNetworkPolicy getCandidateNetworkPolicy() {
|
||||
return candidateNetworkPolicy;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
int getAudioJitterBufferMaxPackets() {
|
||||
return audioJitterBufferMaxPackets;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
boolean getAudioJitterBufferFastAccelerate() {
|
||||
return audioJitterBufferFastAccelerate;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
int getIceConnectionReceivingTimeout() {
|
||||
return iceConnectionReceivingTimeout;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
int getIceBackupCandidatePairPingInterval() {
|
||||
return iceBackupCandidatePairPingInterval;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
KeyType getKeyType() {
|
||||
return keyType;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
ContinualGatheringPolicy getContinualGatheringPolicy() {
|
||||
return continualGatheringPolicy;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
int getIceCandidatePoolSize() {
|
||||
return iceCandidatePoolSize;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
boolean getPruneTurnPorts() {
|
||||
return pruneTurnPorts;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
boolean getPresumeWritableWhenFullyRelayed() {
|
||||
return presumeWritableWhenFullyRelayed;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
Integer getIceCheckMinInterval() {
|
||||
return iceCheckMinInterval;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
boolean getDisableIPv6OnWifi() {
|
||||
return disableIPv6OnWifi;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
int getMaxIPv6Networks() {
|
||||
return maxIPv6Networks;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
IntervalRange getIceRegatherIntervalRange() {
|
||||
return iceRegatherIntervalRange;
|
||||
}
|
||||
|
||||
@CalledByNative("RTCConfiguration")
|
||||
TurnCustomizer getTurnCustomizer() {
|
||||
return turnCustomizer;
|
||||
}
|
||||
};
|
||||
|
||||
private final List<MediaStream> localStreams = new ArrayList<>();
|
||||
@ -552,6 +689,11 @@ public class PeerConnection {
|
||||
freeObserver(nativeObserver);
|
||||
}
|
||||
|
||||
@CalledByNative
|
||||
long getNativePeerConnection() {
|
||||
return nativePeerConnection;
|
||||
}
|
||||
|
||||
private static native void freeObserver(long nativeObserver);
|
||||
|
||||
private native boolean setNativeConfiguration(RTCConfiguration config, long nativeObserver);
|
||||
|
||||
Reference in New Issue
Block a user