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

253 lines
9.3 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 long packetsSent;
private final long ssrc;
private final String type;
private final boolean voiceActivityDetectorIsEnabled;
private final long voiceActivityDetectorProcessTime;
public OutboundRtpAudio(String str, long j, StatsCodec statsCodec, long j2, long j3, int i, float f, float f2, boolean z2, long j4, long j5, boolean z3, long j6, boolean z4, long j7) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
this.type = str;
this.ssrc = j;
this.codec = statsCodec;
this.bytesSent = j2;
this.packetsSent = j3;
this.packetsLost = i;
this.fractionLost = f;
this.audioLevel = f2;
this.audioDetected = z2;
this.framesCaptured = j4;
this.framesRendered = j5;
this.noiseCancellerIsEnabled = z3;
this.noiseCancellerProcessTime = j6;
this.voiceActivityDetectorIsEnabled = z4;
this.voiceActivityDetectorProcessTime = j7;
}
public static /* synthetic */ OutboundRtpAudio copy$default(OutboundRtpAudio outboundRtpAudio, String str, long j, StatsCodec statsCodec, long j2, long j3, int i, float f, float f2, boolean z2, long j4, long j5, boolean z3, long j6, boolean z4, long j7, int i2, Object obj) {
return outboundRtpAudio.copy((i2 & 1) != 0 ? outboundRtpAudio.type : str, (i2 & 2) != 0 ? outboundRtpAudio.ssrc : j, (i2 & 4) != 0 ? outboundRtpAudio.codec : statsCodec, (i2 & 8) != 0 ? outboundRtpAudio.bytesSent : j2, (i2 & 16) != 0 ? outboundRtpAudio.packetsSent : j3, (i2 & 32) != 0 ? outboundRtpAudio.packetsLost : i, (i2 & 64) != 0 ? outboundRtpAudio.fractionLost : f, (i2 & 128) != 0 ? outboundRtpAudio.audioLevel : f2, (i2 & 256) != 0 ? outboundRtpAudio.audioDetected : z2, (i2 & 512) != 0 ? outboundRtpAudio.framesCaptured : j4, (i2 & 1024) != 0 ? outboundRtpAudio.framesRendered : j5, (i2 & 2048) != 0 ? outboundRtpAudio.noiseCancellerIsEnabled : z3, (i2 & 4096) != 0 ? outboundRtpAudio.noiseCancellerProcessTime : j6, (i2 & 8192) != 0 ? outboundRtpAudio.voiceActivityDetectorIsEnabled : z4, (i2 & 16384) != 0 ? outboundRtpAudio.voiceActivityDetectorProcessTime : j7);
}
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 long component2() {
return this.ssrc;
}
public final StatsCodec component3() {
return this.codec;
}
public final long component4() {
return this.bytesSent;
}
public final long 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, long j, StatsCodec statsCodec, long j2, long j3, int i, float f, float f2, boolean z2, long j4, long j5, boolean z3, long j6, boolean z4, long j7) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(statsCodec, "codec");
return new OutboundRtpAudio(str, j, statsCodec, j2, j3, i, f, f2, z2, j4, j5, z3, j6, z4, j7);
}
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 long getPacketsSent() {
return this.packetsSent;
}
public final long 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 a = (b.a(this.ssrc) + ((str != null ? str.hashCode() : 0) * 31)) * 31;
StatsCodec statsCodec = this.codec;
if (statsCodec != null) {
i = statsCodec.hashCode();
}
int a2 = b.a(this.bytesSent);
int a3 = b.a(this.packetsSent);
int floatToIntBits = (Float.floatToIntBits(this.audioLevel) + ((Float.floatToIntBits(this.fractionLost) + ((((a3 + ((a2 + ((a + i) * 31)) * 31)) * 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 a4 = (b.a(this.framesRendered) + ((b.a(this.framesCaptured) + ((floatToIntBits + 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 a5 = (b.a(this.noiseCancellerProcessTime) + ((a4 + i6) * 31)) * 31;
boolean z4 = this.voiceActivityDetectorIsEnabled;
if (!z4) {
i2 = z4 ? 1 : 0;
}
return b.a(this.voiceActivityDetectorProcessTime) + ((a5 + i2) * 31);
}
public String toString() {
StringBuilder K = a.K("OutboundRtpAudio(type=");
K.append(this.type);
K.append(", ssrc=");
K.append(this.ssrc);
K.append(", codec=");
K.append(this.codec);
K.append(", bytesSent=");
K.append(this.bytesSent);
K.append(", packetsSent=");
K.append(this.packetsSent);
K.append(", packetsLost=");
K.append(this.packetsLost);
K.append(", fractionLost=");
K.append(this.fractionLost);
K.append(", audioLevel=");
K.append(this.audioLevel);
K.append(", audioDetected=");
K.append(this.audioDetected);
K.append(", framesCaptured=");
K.append(this.framesCaptured);
K.append(", framesRendered=");
K.append(this.framesRendered);
K.append(", noiseCancellerIsEnabled=");
K.append(this.noiseCancellerIsEnabled);
K.append(", noiseCancellerProcessTime=");
K.append(this.noiseCancellerProcessTime);
K.append(", voiceActivityDetectorIsEnabled=");
K.append(this.voiceActivityDetectorIsEnabled);
K.append(", voiceActivityDetectorProcessTime=");
return a.y(K, this.voiceActivityDetectorProcessTime, ")");
}
}