mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
36 lines
1,009 B
Java
36 lines
1,009 B
Java
package org.webrtc;
|
|
|
|
import org.webrtc.Logging;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class CallSessionFileRotatingLogSink {
|
|
private long nativeSink;
|
|
|
|
private static native long nativeAddSink(String str, int i, int i2);
|
|
|
|
private static native void nativeDeleteSink(long j);
|
|
|
|
private static native byte[] nativeGetLogData(String str);
|
|
|
|
public static byte[] getLogData(String str) {
|
|
if (str == null) {
|
|
throw new IllegalArgumentException("dirPath may not be null.");
|
|
}
|
|
return nativeGetLogData(str);
|
|
}
|
|
|
|
public CallSessionFileRotatingLogSink(String str, int i, Logging.Severity severity) {
|
|
if (str == null) {
|
|
throw new IllegalArgumentException("dirPath may not be null.");
|
|
}
|
|
this.nativeSink = nativeAddSink(str, i, severity.ordinal());
|
|
}
|
|
|
|
public void dispose() {
|
|
long j = this.nativeSink;
|
|
if (j != 0) {
|
|
nativeDeleteSink(j);
|
|
this.nativeSink = 0L;
|
|
}
|
|
}
|
|
}
|