discord-jadx/app/src/main/java/co/discord/media_engine/OutboundRtpAudio.java

251 lines
9.2 KiB
Java

package co.discord.media_engine;
import a0.a.a.b;
import c.d.b.a.a;
import d0.z.d.m;
/* compiled from: Statistics.kt */
public final class OutboundRtpAudio {
private final boolean audioDetected;
private final float audioLevel;
private final long bytesSent;
private final StatsCodec codec;
private final float fractionLost;
private final long framesCaptured;
private final long framesRendered;
private final boolean noiseCancellerIsEnabled;
private final long noiseCancellerProcessTime;
private final int packetsLost;
private final int packetsSent;
private final int ssrc;
private final String type;
private final boolean voiceActivityDetectorIsEnabled;
private final long voiceActivityDetectorProcessTime;
public OutboundRtpAudio(String str, int i, StatsCodec statsCodec, long j, int i2, int i3, float f, float f2, boolean z2, long j2, long j3, boolean z3, long j4, boolean z4, long j5) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
this.type = str;
this.ssrc = i;
this.codec = statsCodec;
this.bytesSent = j;
this.packetsSent = i2;
this.packetsLost = i3;
this.fractionLost = f;
this.audioLevel = f2;
this.audioDetected = z2;
this.framesCaptured = j2;
this.framesRendered = j3;
this.noiseCancellerIsEnabled = z3;
this.noiseCancellerProcessTime = j4;
this.voiceActivityDetectorIsEnabled = z4;
this.voiceActivityDetectorProcessTime = j5;
}
public static /* synthetic */ OutboundRtpAudio copy$default(OutboundRtpAudio outboundRtpAudio, String str, int i, StatsCodec statsCodec, long j, int i2, int i3, float f, float f2, boolean z2, long j2, long j3, boolean z3, long j4, boolean z4, long j5, int i4, Object obj) {
return outboundRtpAudio.copy((i4 & 1) != 0 ? outboundRtpAudio.type : str, (i4 & 2) != 0 ? outboundRtpAudio.ssrc : i, (i4 & 4) != 0 ? outboundRtpAudio.codec : statsCodec, (i4 & 8) != 0 ? outboundRtpAudio.bytesSent : j, (i4 & 16) != 0 ? outboundRtpAudio.packetsSent : i2, (i4 & 32) != 0 ? outboundRtpAudio.packetsLost : i3, (i4 & 64) != 0 ? outboundRtpAudio.fractionLost : f, (i4 & 128) != 0 ? outboundRtpAudio.audioLevel : f2, (i4 & 256) != 0 ? outboundRtpAudio.audioDetected : z2, (i4 & 512) != 0 ? outboundRtpAudio.framesCaptured : j2, (i4 & 1024) != 0 ? outboundRtpAudio.framesRendered : j3, (i4 & 2048) != 0 ? outboundRtpAudio.noiseCancellerIsEnabled : z3, (i4 & 4096) != 0 ? outboundRtpAudio.noiseCancellerProcessTime : j4, (i4 & 8192) != 0 ? outboundRtpAudio.voiceActivityDetectorIsEnabled : z4, (i4 & 16384) != 0 ? outboundRtpAudio.voiceActivityDetectorProcessTime : j5);
}
public final String component1() {
return this.type;
}
public final long component10() {
return this.framesCaptured;
}
public final long component11() {
return this.framesRendered;
}
public final boolean component12() {
return this.noiseCancellerIsEnabled;
}
public final long component13() {
return this.noiseCancellerProcessTime;
}
public final boolean component14() {
return this.voiceActivityDetectorIsEnabled;
}
public final long component15() {
return this.voiceActivityDetectorProcessTime;
}
public final int component2() {
return this.ssrc;
}
public final StatsCodec component3() {
return this.codec;
}
public final long component4() {
return this.bytesSent;
}
public final int component5() {
return this.packetsSent;
}
public final int component6() {
return this.packetsLost;
}
public final float component7() {
return this.fractionLost;
}
public final float component8() {
return this.audioLevel;
}
public final boolean component9() {
return this.audioDetected;
}
public final OutboundRtpAudio copy(String str, int i, StatsCodec statsCodec, long j, int i2, int i3, float f, float f2, boolean z2, long j2, long j3, boolean z3, long j4, boolean z4, long j5) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
return new OutboundRtpAudio(str, i, statsCodec, j, i2, i3, f, f2, z2, j2, j3, z3, j4, z4, j5);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof OutboundRtpAudio)) {
return false;
}
OutboundRtpAudio outboundRtpAudio = (OutboundRtpAudio) obj;
return m.areEqual(this.type, outboundRtpAudio.type) && this.ssrc == outboundRtpAudio.ssrc && m.areEqual(this.codec, outboundRtpAudio.codec) && this.bytesSent == outboundRtpAudio.bytesSent && this.packetsSent == outboundRtpAudio.packetsSent && this.packetsLost == outboundRtpAudio.packetsLost && Float.compare(this.fractionLost, outboundRtpAudio.fractionLost) == 0 && Float.compare(this.audioLevel, outboundRtpAudio.audioLevel) == 0 && this.audioDetected == outboundRtpAudio.audioDetected && this.framesCaptured == outboundRtpAudio.framesCaptured && this.framesRendered == outboundRtpAudio.framesRendered && this.noiseCancellerIsEnabled == outboundRtpAudio.noiseCancellerIsEnabled && this.noiseCancellerProcessTime == outboundRtpAudio.noiseCancellerProcessTime && this.voiceActivityDetectorIsEnabled == outboundRtpAudio.voiceActivityDetectorIsEnabled && this.voiceActivityDetectorProcessTime == outboundRtpAudio.voiceActivityDetectorProcessTime;
}
public final boolean getAudioDetected() {
return this.audioDetected;
}
public final float getAudioLevel() {
return this.audioLevel;
}
public final long getBytesSent() {
return this.bytesSent;
}
public final StatsCodec getCodec() {
return this.codec;
}
public final float getFractionLost() {
return this.fractionLost;
}
public final long getFramesCaptured() {
return this.framesCaptured;
}
public final long getFramesRendered() {
return this.framesRendered;
}
public final boolean getNoiseCancellerIsEnabled() {
return this.noiseCancellerIsEnabled;
}
public final long getNoiseCancellerProcessTime() {
return this.noiseCancellerProcessTime;
}
public final int getPacketsLost() {
return this.packetsLost;
}
public final int getPacketsSent() {
return this.packetsSent;
}
public final int getSsrc() {
return this.ssrc;
}
public final String getType() {
return this.type;
}
public final boolean getVoiceActivityDetectorIsEnabled() {
return this.voiceActivityDetectorIsEnabled;
}
public final long getVoiceActivityDetectorProcessTime() {
return this.voiceActivityDetectorProcessTime;
}
public int hashCode() {
String str = this.type;
int i = 0;
int hashCode = (((str != null ? str.hashCode() : 0) * 31) + this.ssrc) * 31;
StatsCodec statsCodec = this.codec;
if (statsCodec != null) {
i = statsCodec.hashCode();
}
int b = a.b(this.audioLevel, a.b(this.fractionLost, (((((b.a(this.bytesSent) + ((hashCode + i) * 31)) * 31) + this.packetsSent) * 31) + this.packetsLost) * 31, 31), 31);
boolean z2 = this.audioDetected;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int a = (b.a(this.framesRendered) + ((b.a(this.framesCaptured) + ((b + i3) * 31)) * 31)) * 31;
boolean z3 = this.noiseCancellerIsEnabled;
if (z3) {
z3 = true;
}
int i6 = z3 ? 1 : 0;
int i7 = z3 ? 1 : 0;
int i8 = z3 ? 1 : 0;
int a2 = (b.a(this.noiseCancellerProcessTime) + ((a + i6) * 31)) * 31;
boolean z4 = this.voiceActivityDetectorIsEnabled;
if (!z4) {
i2 = z4 ? 1 : 0;
}
return b.a(this.voiceActivityDetectorProcessTime) + ((a2 + i2) * 31);
}
public String toString() {
StringBuilder L = a.L("OutboundRtpAudio(type=");
L.append(this.type);
L.append(", ssrc=");
L.append(this.ssrc);
L.append(", codec=");
L.append(this.codec);
L.append(", bytesSent=");
L.append(this.bytesSent);
L.append(", packetsSent=");
L.append(this.packetsSent);
L.append(", packetsLost=");
L.append(this.packetsLost);
L.append(", fractionLost=");
L.append(this.fractionLost);
L.append(", audioLevel=");
L.append(this.audioLevel);
L.append(", audioDetected=");
L.append(this.audioDetected);
L.append(", framesCaptured=");
L.append(this.framesCaptured);
L.append(", framesRendered=");
L.append(this.framesRendered);
L.append(", noiseCancellerIsEnabled=");
L.append(this.noiseCancellerIsEnabled);
L.append(", noiseCancellerProcessTime=");
L.append(this.noiseCancellerProcessTime);
L.append(", voiceActivityDetectorIsEnabled=");
L.append(this.voiceActivityDetectorIsEnabled);
L.append(", voiceActivityDetectorProcessTime=");
return a.A(L, this.voiceActivityDetectorProcessTime, ")");
}
}