752 lines
21 KiB
Smali
752 lines
21 KiB
Smali
.class public final Lco/discord/media_engine/VoiceQuality;
|
|
.super Ljava/lang/Object;
|
|
.source "VoiceQuality.kt"
|
|
|
|
|
|
# instance fields
|
|
.field public _inboundStats:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lco/discord/media_engine/InboundAudio;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public _outboundStats:Lco/discord/media_engine/OutboundAudio;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
new-instance v0, Lco/discord/media_engine/OutboundAudio;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1, v1}, Lco/discord/media_engine/OutboundAudio;-><init>(II)V
|
|
|
|
iput-object v0, p0, Lco/discord/media_engine/VoiceQuality;->_outboundStats:Lco/discord/media_engine/OutboundAudio;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$get_inboundStats$p(Lco/discord/media_engine/VoiceQuality;)Ljava/util/Map;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$set_inboundStats$p(Lco/discord/media_engine/VoiceQuality;Ljava/util/Map;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getBufferStats(Ljava/util/Map;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v1}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v0, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
new-instance v3, Lco/discord/media_engine/VoiceQuality$getBufferStats$1;
|
|
|
|
invoke-direct {v3, v1}, Lco/discord/media_engine/VoiceQuality$getBufferStats$1;-><init>(Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Map;->forEach(Ljava/util/function/BiConsumer;)V
|
|
|
|
iget-object v2, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lco/discord/media_engine/InboundBufferStats;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/InboundBufferStats;->getAudioJitterBuffer()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v2, v0
|
|
|
|
:goto_0
|
|
const-string v3, "audio_jitter_buffer"
|
|
|
|
invoke-static {v3, v2, p1}, Lco/discord/media_engine/VoiceQualityKt;->access$explodePlayoutMetric(Ljava/lang/String;Lco/discord/media_engine/PlayoutMetric;Ljava/util/Map;)V
|
|
|
|
iget-object v2, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lco/discord/media_engine/InboundBufferStats;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/InboundBufferStats;->getAudioJitterTarget()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v2, v0
|
|
|
|
:goto_1
|
|
const-string v3, "audio_jitter_target"
|
|
|
|
invoke-static {v3, v2, p1}, Lco/discord/media_engine/VoiceQualityKt;->access$explodePlayoutMetric(Ljava/lang/String;Lco/discord/media_engine/PlayoutMetric;Ljava/util/Map;)V
|
|
|
|
iget-object v2, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lco/discord/media_engine/InboundBufferStats;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/InboundBufferStats;->getAudioJitterDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object v2, v0
|
|
|
|
:goto_2
|
|
const-string v3, "audio_jitter_delay"
|
|
|
|
invoke-static {v3, v2, p1}, Lco/discord/media_engine/VoiceQualityKt;->access$explodePlayoutMetric(Ljava/lang/String;Lco/discord/media_engine/PlayoutMetric;Ljava/util/Map;)V
|
|
|
|
iget-object v2, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lco/discord/media_engine/InboundBufferStats;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {v2}, Lco/discord/media_engine/InboundBufferStats;->getRelativeReceptionDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v2, v0
|
|
|
|
:goto_3
|
|
const-string v3, "relative_reception_delay"
|
|
|
|
invoke-static {v3, v2, p1}, Lco/discord/media_engine/VoiceQualityKt;->access$explodePlayoutMetric(Ljava/lang/String;Lco/discord/media_engine/PlayoutMetric;Ljava/util/Map;)V
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lco/discord/media_engine/InboundBufferStats;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/InboundBufferStats;->getRelativePlayoutDelay()Lco/discord/media_engine/PlayoutMetric;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_4
|
|
const-string v1, "relative_playout_delay"
|
|
|
|
invoke-static {v1, v0, p1}, Lco/discord/media_engine/VoiceQualityKt;->access$explodePlayoutMetric(Ljava/lang/String;Lco/discord/media_engine/PlayoutMetric;Ljava/util/Map;)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
const-string p1, "result"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getFrameOpStats(Ljava/util/Map;)V
|
|
.locals 18
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
new-instance v10, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v10}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v11, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v11}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v12, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v12}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v13, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v13}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v13, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v14, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v14}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v15, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v15}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v9, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v9}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v1, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
iget-object v8, v1, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
new-instance v7, Lco/discord/media_engine/VoiceQuality$getFrameOpStats$1;
|
|
|
|
move-object v2, v7
|
|
|
|
move-object v3, v10
|
|
|
|
move-object v4, v11
|
|
|
|
move-object v5, v12
|
|
|
|
move-object v6, v13
|
|
|
|
move-object v1, v7
|
|
|
|
move-object v7, v14
|
|
|
|
move-object/from16 v16, v14
|
|
|
|
move-object v14, v8
|
|
|
|
move-object v8, v15
|
|
|
|
move-object/from16 v17, v9
|
|
|
|
invoke-direct/range {v2 .. v9}, Lco/discord/media_engine/VoiceQuality$getFrameOpStats$1;-><init>(Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
invoke-interface {v14, v1}, Ljava/util/Map;->forEach(Ljava/util/function/BiConsumer;)V
|
|
|
|
iget-object v1, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_silent"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_0
|
|
iget-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_normal"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
iget-object v1, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_merged"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_2
|
|
iget-object v1, v13, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_expanded"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
move-object/from16 v1, v16
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_accelerated"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_4
|
|
iget-object v1, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_preemptive_expanded"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_5
|
|
move-object/from16 v1, v17
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "frame_op_cng"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_6
|
|
return-void
|
|
|
|
:cond_7
|
|
const-string v0, "result"
|
|
|
|
invoke-static {v0}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final getMosStats(Ljava/util/Map;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
new-instance v0, Ly/u/b/w;
|
|
|
|
invoke-direct {v0}, Ly/u/b/w;-><init>()V
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
iput-wide v1, v0, Ly/u/b/w;->element:D
|
|
|
|
new-instance v1, Lkotlin/jvm/internal/Ref$IntRef;
|
|
|
|
invoke-direct {v1}, Lkotlin/jvm/internal/Ref$IntRef;-><init>()V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iput v2, v1, Lkotlin/jvm/internal/Ref$IntRef;->element:I
|
|
|
|
new-instance v3, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v3}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
const/4 v4, 0x5
|
|
|
|
new-array v4, v4, [Ljava/lang/Integer;
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, 0x1
|
|
|
|
aput-object v5, v4, v6
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v7, 0x2
|
|
|
|
aput-object v5, v4, v7
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v8, 0x3
|
|
|
|
aput-object v5, v4, v8
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v9, 0x4
|
|
|
|
aput-object v5, v4, v9
|
|
|
|
iput-object v4, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
iget-object v4, p0, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
new-instance v5, Lco/discord/media_engine/VoiceQuality$getMosStats$1;
|
|
|
|
invoke-direct {v5, v0, v1, v3}, Lco/discord/media_engine/VoiceQuality$getMosStats$1;-><init>(Ly/u/b/w;Lkotlin/jvm/internal/Ref$IntRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
invoke-interface {v4, v5}, Ljava/util/Map;->forEach(Ljava/util/function/BiConsumer;)V
|
|
|
|
iget v1, v1, Lkotlin/jvm/internal/Ref$IntRef;->element:I
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
iget-wide v4, v0, Ly/u/b/w;->element:D
|
|
|
|
int-to-double v0, v1
|
|
|
|
div-double/2addr v4, v0
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
const-string v1, "mos_mean"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, [Ljava/lang/Integer;
|
|
|
|
aget-object v0, v0, v6
|
|
|
|
const-string v1, "mos_1"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, [Ljava/lang/Integer;
|
|
|
|
aget-object v0, v0, v7
|
|
|
|
const-string v1, "mos_2"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, [Ljava/lang/Integer;
|
|
|
|
aget-object v0, v0, v8
|
|
|
|
const-string v1, "mos_3"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v0, [Ljava/lang/Integer;
|
|
|
|
aget-object v0, v0, v9
|
|
|
|
const-string v1, "mos_4"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "result"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getPacketStats(Ljava/util/Map;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Lkotlin/jvm/internal/Ref$IntRef;
|
|
|
|
invoke-direct {v0}, Lkotlin/jvm/internal/Ref$IntRef;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, v0, Lkotlin/jvm/internal/Ref$IntRef;->element:I
|
|
|
|
new-instance v2, Lkotlin/jvm/internal/Ref$IntRef;
|
|
|
|
invoke-direct {v2}, Lkotlin/jvm/internal/Ref$IntRef;-><init>()V
|
|
|
|
iput v1, v2, Lkotlin/jvm/internal/Ref$IntRef;->element:I
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/VoiceQuality;->_inboundStats:Ljava/util/Map;
|
|
|
|
new-instance v3, Lco/discord/media_engine/VoiceQuality$getPacketStats$1;
|
|
|
|
invoke-direct {v3, v0, v2}, Lco/discord/media_engine/VoiceQuality$getPacketStats$1;-><init>(Lkotlin/jvm/internal/Ref$IntRef;Lkotlin/jvm/internal/Ref$IntRef;)V
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/Map;->forEach(Ljava/util/function/BiConsumer;)V
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/VoiceQuality;->_outboundStats:Lco/discord/media_engine/OutboundAudio;
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/OutboundAudio;->getPacketsSent()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "packets_sent"
|
|
|
|
invoke-interface {p1, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/VoiceQuality;->_outboundStats:Lco/discord/media_engine/OutboundAudio;
|
|
|
|
invoke-virtual {v1}, Lco/discord/media_engine/OutboundAudio;->getPacketsLost()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "packets_sent_lost"
|
|
|
|
invoke-interface {p1, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget v0, v0, Lkotlin/jvm/internal/Ref$IntRef;->element:I
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "packets_received"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget v0, v2, Lkotlin/jvm/internal/Ref$IntRef;->element:I
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "packets_received_lost"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "result"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final update(Lco/discord/media_engine/Stats;)V
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/Stats;->getOutboundRtpAudio()Lco/discord/media_engine/OutboundRtpAudio;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v1, Lco/discord/media_engine/OutboundAudio;
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/OutboundRtpAudio;->getPacketsSent()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/OutboundRtpAudio;->getPacketsLost()I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {v1, v2, v0}, Lco/discord/media_engine/OutboundAudio;-><init>(II)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v1, Lco/discord/media_engine/OutboundAudio;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {v1, v0, v0}, Lco/discord/media_engine/OutboundAudio;-><init>(II)V
|
|
|
|
:goto_0
|
|
iput-object v1, p0, Lco/discord/media_engine/VoiceQuality;->_outboundStats:Lco/discord/media_engine/OutboundAudio;
|
|
|
|
invoke-virtual {p1}, Lco/discord/media_engine/Stats;->getInboundRtpAudio()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lco/discord/media_engine/VoiceQuality$update$2;
|
|
|
|
invoke-direct {v1, p0, p1}, Lco/discord/media_engine/VoiceQuality$update$2;-><init>(Lco/discord/media_engine/VoiceQuality;Lco/discord/media_engine/Stats;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->forEach(Ljava/util/function/BiConsumer;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "stats"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|