1875 lines
49 KiB
Smali
1875 lines
49 KiB
Smali
.class public final Lcom/discord/rtcconnection/RtcConnection;
|
|
.super Ljava/lang/Object;
|
|
.source "RtcConnection.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/rtcconnection/RtcConnection$c;,
|
|
Lcom/discord/rtcconnection/RtcConnection$State;,
|
|
Lcom/discord/rtcconnection/RtcConnection$Quality;,
|
|
Lcom/discord/rtcconnection/RtcConnection$b;,
|
|
Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;,
|
|
Lcom/discord/rtcconnection/RtcConnection$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static G:I
|
|
|
|
.field public static final H:Lcom/discord/rtcconnection/RtcConnection$a;
|
|
|
|
|
|
# instance fields
|
|
.field public final A:J
|
|
|
|
.field public final B:Lcom/discord/rtcconnection/mediaengine/MediaEngine;
|
|
|
|
.field public final C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
.field public final D:Lcom/discord/utilities/time/Clock;
|
|
|
|
.field public final E:Lcom/discord/rtcconnection/RtcConnection$c;
|
|
|
|
.field public final F:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final a:Ljava/lang/String;
|
|
|
|
.field public final b:Ljava/lang/String;
|
|
|
|
.field public final c:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/rtcconnection/RtcConnection$b;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final d:Lf/a/g/q/d;
|
|
|
|
.field public final e:Lcom/discord/utilities/networking/Backoff;
|
|
|
|
.field public f:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo;
|
|
|
|
.field public g:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
.field public h:Z
|
|
|
|
.field public i:Ljava/util/LinkedList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/LinkedList<",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public j:Lf/a/g/p/a;
|
|
|
|
.field public k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
.field public l:Ljava/lang/String;
|
|
|
|
.field public m:Ljava/lang/Integer;
|
|
|
|
.field public n:I
|
|
|
|
.field public o:Ljava/lang/Long;
|
|
|
|
.field public p:Ljava/lang/Long;
|
|
|
|
.field public q:I
|
|
|
|
.field public r:Z
|
|
|
|
.field public s:Ljava/lang/String;
|
|
|
|
.field public final t:Lf/a/g/m;
|
|
|
|
.field public final u:Lf/a/g/g;
|
|
|
|
.field public final v:Ljava/lang/Long;
|
|
|
|
.field public final w:J
|
|
|
|
.field public x:Ljava/lang/String;
|
|
|
|
.field public final y:Z
|
|
|
|
.field public final z:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/rtcconnection/RtcConnection$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/rtcconnection/RtcConnection;->H:Lcom/discord/rtcconnection/RtcConnection$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Ljava/lang/Long;JLjava/lang/String;ZLjava/lang/String;JLcom/discord/rtcconnection/mediaengine/MediaEngine;Lcom/discord/utilities/logging/Logger;Lcom/discord/utilities/time/Clock;Lcom/discord/rtcconnection/RtcConnection$c;Lcom/discord/utilities/networking/NetworkMonitor;Ljava/util/Map;I)V
|
|
.locals 13
|
|
|
|
move-object v0, p0
|
|
|
|
move-object/from16 v1, p4
|
|
|
|
move-object/from16 v2, p6
|
|
|
|
move-object/from16 v3, p9
|
|
|
|
move-object/from16 v4, p10
|
|
|
|
move-object/from16 v5, p11
|
|
|
|
move/from16 v6, p15
|
|
|
|
and-int/lit16 v7, v6, 0x200
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
sget-object v7, Lcom/discord/rtcconnection/RtcConnection$c$a;->a:Lcom/discord/rtcconnection/RtcConnection$c$a;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object/from16 v7, p12
|
|
|
|
:goto_0
|
|
and-int/lit16 v6, v6, 0x800
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
new-instance v6, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v6}, Ljava/util/HashMap;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object/from16 v6, p14
|
|
|
|
:goto_1
|
|
const/4 v8, 0x0
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
if-eqz p13, :cond_3
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
move-object v8, p1
|
|
|
|
iput-object v8, v0, Lcom/discord/rtcconnection/RtcConnection;->v:Ljava/lang/Long;
|
|
|
|
move-wide v8, p2
|
|
|
|
iput-wide v8, v0, Lcom/discord/rtcconnection/RtcConnection;->w:J
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->x:Ljava/lang/String;
|
|
|
|
move/from16 v1, p5
|
|
|
|
iput-boolean v1, v0, Lcom/discord/rtcconnection/RtcConnection;->y:Z
|
|
|
|
iput-object v2, v0, Lcom/discord/rtcconnection/RtcConnection;->z:Ljava/lang/String;
|
|
|
|
move-wide/from16 v1, p7
|
|
|
|
iput-wide v1, v0, Lcom/discord/rtcconnection/RtcConnection;->A:J
|
|
|
|
iput-object v3, v0, Lcom/discord/rtcconnection/RtcConnection;->B:Lcom/discord/rtcconnection/mediaengine/MediaEngine;
|
|
|
|
iput-object v4, v0, Lcom/discord/rtcconnection/RtcConnection;->C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
iput-object v5, v0, Lcom/discord/rtcconnection/RtcConnection;->D:Lcom/discord/utilities/time/Clock;
|
|
|
|
iput-object v7, v0, Lcom/discord/rtcconnection/RtcConnection;->E:Lcom/discord/rtcconnection/RtcConnection$c;
|
|
|
|
iput-object v6, v0, Lcom/discord/rtcconnection/RtcConnection;->F:Ljava/util/Map;
|
|
|
|
invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "UUID.randomUUID().toString()"
|
|
|
|
invoke-static {v1, v2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->a:Ljava/lang/String;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-class v2, Lcom/discord/rtcconnection/RtcConnection;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v2, 0x3a
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
sget v2, Lcom/discord/rtcconnection/RtcConnection;->G:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
sput v2, Lcom/discord/rtcconnection/RtcConnection;->G:I
|
|
|
|
sget v2, Lcom/discord/rtcconnection/RtcConnection;->G:I
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->b:Ljava/lang/String;
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->c:Ljava/util/List;
|
|
|
|
new-instance v1, Lf/a/g/q/d;
|
|
|
|
const-wide/16 v4, 0x3e8
|
|
|
|
iget-object v2, v0, Lcom/discord/rtcconnection/RtcConnection;->C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
invoke-direct {v1, v4, v5, v2}, Lf/a/g/q/d;-><init>(JLcom/discord/utilities/logging/Logger;)V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->d:Lf/a/g/q/d;
|
|
|
|
new-instance v1, Lcom/discord/utilities/networking/Backoff;
|
|
|
|
const-wide/16 v4, 0x2710
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0x1c
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const-wide/16 v10, 0x3e8
|
|
|
|
const/4 v12, 0x0
|
|
|
|
move-object p1, v1
|
|
|
|
move-wide p2, v10
|
|
|
|
move-wide/from16 p4, v4
|
|
|
|
move/from16 p6, v12
|
|
|
|
move/from16 p7, v6
|
|
|
|
move-object/from16 p8, v7
|
|
|
|
move/from16 p9, v8
|
|
|
|
move-object/from16 p10, v9
|
|
|
|
invoke-direct/range {p1 .. p10}, Lcom/discord/utilities/networking/Backoff;-><init>(JJIZLcom/discord/utilities/networking/Backoff$Scheduler;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->e:Lcom/discord/utilities/networking/Backoff;
|
|
|
|
new-instance v1, Lcom/discord/rtcconnection/RtcConnection$State$d;
|
|
|
|
invoke-direct {v1, v2}, Lcom/discord/rtcconnection/RtcConnection$State$d;-><init>(Z)V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->g:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
new-instance v1, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->i:Ljava/util/LinkedList;
|
|
|
|
iget-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
const-string v2, "Created RtcConnection. GuildID: "
|
|
|
|
invoke-static {v2}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v4, v0, Lcom/discord/rtcconnection/RtcConnection;->v:Ljava/lang/Long;
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, " ChannelID: "
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v4, v0, Lcom/discord/rtcconnection/RtcConnection;->w:J
|
|
|
|
invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v4, v0, Lcom/discord/rtcconnection/RtcConnection;->b:Ljava/lang/String;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x4
|
|
|
|
move-object p1, v1
|
|
|
|
move-object p2, v2
|
|
|
|
move-object/from16 p3, v4
|
|
|
|
move-object/from16 p4, v5
|
|
|
|
move/from16 p5, v6
|
|
|
|
move-object/from16 p6, v7
|
|
|
|
invoke-static/range {p1 .. p6}, Lcom/discord/utilities/logging/Logger;->recordBreadcrumb$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
invoke-virtual/range {p13 .. p13}, Lcom/discord/utilities/networking/NetworkMonitor;->getIsConnected()Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->b(I)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lf/a/g/b;
|
|
|
|
invoke-direct {v2, p0}, Lf/a/g/b;-><init>(Lcom/discord/rtcconnection/RtcConnection;)V
|
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
new-instance v1, Lf/a/g/m;
|
|
|
|
invoke-direct {v1, p0}, Lf/a/g/m;-><init>(Lcom/discord/rtcconnection/RtcConnection;)V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->t:Lf/a/g/m;
|
|
|
|
new-instance v1, Lf/a/g/g;
|
|
|
|
invoke-direct {v1, p0}, Lf/a/g/g;-><init>(Lcom/discord/rtcconnection/RtcConnection;)V
|
|
|
|
iput-object v1, v0, Lcom/discord/rtcconnection/RtcConnection;->u:Lf/a/g/g;
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const-string v1, "mutedUsers"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_3
|
|
const-string v1, "networkMonitor"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_4
|
|
const-string v1, "rtcConnectionType"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_5
|
|
const-string v1, "clock"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_6
|
|
const-string v1, "logger"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_7
|
|
const-string v1, "mediaEngine"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_8
|
|
const-string v1, "rtcServerId"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
|
|
:cond_9
|
|
const-string v1, "sessionId"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/RtcConnection;Ljava/lang/Throwable;)Ljava/util/concurrent/Future;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/rtcconnection/RtcConnection;->a(Ljava/lang/Throwable;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/RtcConnection;Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/RtcConnection;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/rtcconnection/RtcConnection;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/RtcConnection;JIZ)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/rtcconnection/RtcConnection;->a(JI)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/RtcConnection;Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/rtcconnection/RtcConnection;->a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic b(Lcom/discord/rtcconnection/RtcConnection;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/rtcconnection/RtcConnection;->j()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/util/Map;)Ljava/util/Map;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->l:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "hostname"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->m:Ljava/lang/Integer;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "port"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a()Ljava/util/concurrent/Future;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/concurrent/Future<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$e;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/rtcconnection/RtcConnection$e;-><init>(Lcom/discord/rtcconnection/RtcConnection;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final a(Ljava/lang/String;Ljava/lang/String;Ljavax/net/ssl/SSLSocketFactory;)Ljava/util/concurrent/Future;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljavax/net/ssl/SSLSocketFactory;",
|
|
")",
|
|
"Ljava/util/concurrent/Future<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$d;
|
|
|
|
invoke-direct {v0, p0, p1, p2, p3}, Lcom/discord/rtcconnection/RtcConnection$d;-><init>(Lcom/discord/rtcconnection/RtcConnection;Ljava/lang/String;Ljava/lang/String;Ljavax/net/ssl/SSLSocketFactory;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "endpoint"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Ljava/lang/Throwable;)Ljava/util/concurrent/Future;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Throwable;",
|
|
")",
|
|
"Ljava/util/concurrent/Future<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$g;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/discord/rtcconnection/RtcConnection$g;-><init>(Lcom/discord/rtcconnection/RtcConnection;Ljava/lang/Throwable;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)",
|
|
"Ljava/util/concurrent/Future<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->B:Lcom/discord/rtcconnection/mediaengine/MediaEngine;
|
|
|
|
invoke-interface {v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->d()Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v1, Lf/a/g/n;
|
|
|
|
invoke-direct {v1, p1}, Lf/a/g/n;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
move-object p1, v1
|
|
|
|
:cond_0
|
|
check-cast p1, Ljava/lang/Runnable;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/discord/rtcconnection/RtcConnection;->q:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(JF)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0, p1, p2, p3}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a(JF)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(JI)V
|
|
.locals 9
|
|
|
|
iget-wide v0, p0, Lcom/discord/rtcconnection/RtcConnection;->A:J
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->F:Ljava/util/Map;
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Boolean;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
move v8, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_0
|
|
const/4 v7, 0x0
|
|
|
|
move-wide v4, p1
|
|
|
|
move v6, p3
|
|
|
|
invoke-interface/range {v3 .. v8}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a(JILjava/lang/Integer;Z)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(JLco/discord/media_engine/InboundRtpVideo;)V
|
|
.locals 5
|
|
|
|
invoke-virtual {p3}, Lco/discord/media_engine/InboundRtpVideo;->getFramesReceived()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/RtcConnection;->v:Ljava/lang/Long;
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Number;->longValue()J
|
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/RtcConnection;->v:Ljava/lang/Long;
|
|
|
|
const-string v4, "guild_id"
|
|
|
|
invoke-interface {v0, v4, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_2
|
|
iget-wide v3, p0, Lcom/discord/rtcconnection/RtcConnection;->w:J
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "channel_id"
|
|
|
|
invoke-interface {v0, v4, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/RtcConnection;->s:Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "sender_user_id"
|
|
|
|
invoke-interface {v0, p2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
const/4 p1, 0x4
|
|
|
|
new-array p1, p1, [Lkotlin/Pair;
|
|
|
|
invoke-virtual {p3}, Lco/discord/media_engine/InboundRtpVideo;->getBytesReceived()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
const-string v4, "num_bytes_received"
|
|
|
|
invoke-direct {v3, v4, p2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
aput-object v3, p1, v2
|
|
|
|
invoke-virtual {p3}, Lco/discord/media_engine/InboundRtpVideo;->getFramesDropped()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v2, Lkotlin/Pair;
|
|
|
|
const-string v3, "num_frames_dropped"
|
|
|
|
invoke-direct {v2, v3, p2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
aput-object v2, p1, v1
|
|
|
|
const/4 p2, 0x2
|
|
|
|
invoke-virtual {p3}, Lco/discord/media_engine/InboundRtpVideo;->getFramesReceived()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lkotlin/Pair;
|
|
|
|
const-string v3, "num_frames_received"
|
|
|
|
invoke-direct {v2, v3, v1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
aput-object v2, p1, p2
|
|
|
|
const/4 p2, 0x3
|
|
|
|
invoke-virtual {p3}, Lco/discord/media_engine/InboundRtpVideo;->getPacketsReceived()I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p3
|
|
|
|
new-instance v1, Lkotlin/Pair;
|
|
|
|
const-string v2, "num_packets_received"
|
|
|
|
invoke-direct {v1, v2, p3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
aput-object v1, p1, p2
|
|
|
|
invoke-static {p1}, Ly/q/m;->mutableMapOf([Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
|
|
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;->VIDEO_STREAM_ENDED:Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;Ljava/util/Map;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(JZ)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->F:Ljava/util/Map;
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0, p1, p2, p3}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a(JZ)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;Ljava/util/Map;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->a:Ljava/lang/String;
|
|
|
|
const-string v1, "rtc_connection_id"
|
|
|
|
invoke-interface {p2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$h;
|
|
|
|
invoke-direct {v0, p1, p2}, Lcom/discord/rtcconnection/RtcConnection$h;-><init>(Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;Ljava/util/Map;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->g:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
invoke-static {p1, v0}, Ly/v/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/RtcConnection;->g:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$i;
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/rtcconnection/RtcConnection$i;-><init>(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/discord/rtcconnection/RtcConnection$b;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "listener"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException;)V
|
|
.locals 11
|
|
|
|
const-string v0, "connection error: "
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException;->a()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException$FailureType;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v0, Lcom/discord/rtcconnection/RtcConnection;->H:Lcom/discord/rtcconnection/RtcConnection$a;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException;->a()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException$FailureType;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/rtcconnection/RtcConnection$a;->a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$FailedConnectionException$FailureType;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v5, p0, Lcom/discord/rtcconnection/RtcConnection;->C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
const-string v0, " -- "
|
|
|
|
invoke-static {v4, v0}, Lf/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v7, p0, Lcom/discord/rtcconnection/RtcConnection;->b:Ljava/lang/String;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x4
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static/range {v5 .. v10}, Lcom/discord/utilities/logging/Logger;->recordBreadcrumb$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/RtcConnection;->C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/RtcConnection;->b:Ljava/lang/String;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v5, p1
|
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;->VOICE_CONNECTION_FAILURE:Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;
|
|
|
|
new-array v0, v1, [Lkotlin/Pair;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iget v3, p0, Lcom/discord/rtcconnection/RtcConnection;->q:I
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lkotlin/Pair;
|
|
|
|
const-string v5, "connect_count"
|
|
|
|
invoke-direct {v4, v5, v3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
aput-object v4, v0, v2
|
|
|
|
invoke-static {v0}, Ly/q/m;->mutableMapOf([Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;Ljava/util/Map;)V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, v1}, Lcom/discord/rtcconnection/RtcConnection;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Ljava/lang/Long;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/RtcConnection;->o:Ljava/lang/Long;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/RtcConnection;->x:Ljava/lang/String;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "<set-?>"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Lkotlin/jvm/functions/Function1;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/discord/rtcconnection/RtcConnection$b;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p1, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->d:Lf/a/g/q/d;
|
|
|
|
invoke-virtual {v0}, Lf/a/g/q/d;->a()Lkotlin/Unit;
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->e:Lcom/discord/utilities/networking/Backoff;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/networking/Backoff;->cancel()V
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$State$d;
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/rtcconnection/RtcConnection$State$d;-><init>(Z)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/rtcconnection/RtcConnection;->j()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$f;->d:Lcom/discord/rtcconnection/RtcConnection$f;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/rtcconnection/RtcConnection;->a(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/rtcconnection/RtcConnection;->b()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->e:Lcom/discord/utilities/networking/Backoff;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/networking/Backoff;->cancel()V
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->j:Lf/a/g/p/a;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, v0, Lf/a/g/p/a;->p:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->clear()V
|
|
|
|
invoke-virtual {v0}, Lf/a/g/p/a;->a()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->j:Lf/a/g/p/a;
|
|
|
|
iget-object v1, p0, Lcom/discord/rtcconnection/RtcConnection;->g:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
instance-of v1, v1, Lcom/discord/rtcconnection/RtcConnection$State$d;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/discord/rtcconnection/RtcConnection;->i()V
|
|
|
|
iget-object v1, p0, Lcom/discord/rtcconnection/RtcConnection;->E:Lcom/discord/rtcconnection/RtcConnection$c;
|
|
|
|
instance-of v2, v1, Lcom/discord/rtcconnection/RtcConnection$c$b;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
check-cast v1, Lcom/discord/rtcconnection/RtcConnection$c$b;
|
|
|
|
iget-wide v1, v1, Lcom/discord/rtcconnection/RtcConnection$c$b;->a:J
|
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/RtcConnection;->d:Lf/a/g/q/d;
|
|
|
|
iget-object v3, v3, Lf/a/g/q/d;->a:Lco/discord/media_engine/Stats;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v3}, Lco/discord/media_engine/Stats;->getInboundRtpVideo()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v3, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lco/discord/media_engine/InboundRtpVideo;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/RtcConnection;->E:Lcom/discord/rtcconnection/RtcConnection$c;
|
|
|
|
check-cast v2, Lcom/discord/rtcconnection/RtcConnection$c$b;
|
|
|
|
iget-wide v2, v2, Lcom/discord/rtcconnection/RtcConnection$c$b;->a:J
|
|
|
|
invoke-virtual {p0, v2, v3, v1}, Lcom/discord/rtcconnection/RtcConnection;->a(JLco/discord/media_engine/InboundRtpVideo;)V
|
|
|
|
:cond_2
|
|
iget-object v1, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {v1}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a()V
|
|
|
|
:cond_3
|
|
iput-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->k:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/RtcConnection$State$d;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/rtcconnection/RtcConnection$State$d;-><init>(Z)V
|
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/rtcconnection/RtcConnection;->a(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/discord/rtcconnection/RtcConnection;->h:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/rtcconnection/RtcConnection;->w:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final d()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/rtcconnection/RtcConnection;->q:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final e()Ljava/lang/Long;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->v:Ljava/lang/Long;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final f()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->a:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final g()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->s:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->x:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i()V
|
|
.locals 12
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v1, v0, [Lkotlin/Pair;
|
|
|
|
iget v2, p0, Lcom/discord/rtcconnection/RtcConnection;->n:I
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
const-string v4, "ping_bad_count"
|
|
|
|
invoke-direct {v3, v4, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
iget v3, p0, Lcom/discord/rtcconnection/RtcConnection;->q:I
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
new-instance v4, Lkotlin/Pair;
|
|
|
|
const-string v5, "connect_count"
|
|
|
|
invoke-direct {v4, v5, v3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
invoke-static {v1}, Ly/q/m;->mutableMapOf([Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Lcom/discord/rtcconnection/RtcConnection;->a(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
iget-object v4, p0, Lcom/discord/rtcconnection/RtcConnection;->i:Ljava/util/LinkedList;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v4, :cond_13
|
|
|
|
const-wide/16 v6, 0x0
|
|
|
|
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
move-wide v7, v6
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Ljava/lang/Number;
|
|
|
|
invoke-virtual {v9}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v9
|
|
|
|
long-to-double v9, v9
|
|
|
|
add-double/2addr v7, v9
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
if-ltz v6, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {}, Lf/o/a/j/a;->throwCountOverflow()V
|
|
|
|
throw v5
|
|
|
|
:cond_1
|
|
if-nez v6, :cond_2
|
|
|
|
sget-wide v6, Ly/v/b/f;->a:D
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
int-to-double v9, v6
|
|
|
|
div-double v6, v7, v9
|
|
|
|
:goto_1
|
|
invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_6
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_5
|
|
|
|
const v4, 0x7fffffff
|
|
|
|
int-to-double v8, v4
|
|
|
|
const/high16 v10, -0x80000000
|
|
|
|
cmpl-double v11, v6, v8
|
|
|
|
if-lez v11, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
int-to-double v8, v10
|
|
|
|
cmpg-double v4, v6, v8
|
|
|
|
if-gez v4, :cond_4
|
|
|
|
const/high16 v4, -0x80000000
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
invoke-static {v6, v7}, Ljava/lang/Math;->round(D)J
|
|
|
|
move-result-wide v6
|
|
|
|
long-to-int v4, v6
|
|
|
|
:goto_2
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v6, "ping_average"
|
|
|
|
invoke-interface {v1, v6, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Cannot round NaN value."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_6
|
|
:goto_3
|
|
iget-object v4, p0, Lcom/discord/rtcconnection/RtcConnection;->s:Ljava/lang/String;
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
const-string v6, "media_session_id"
|
|
|
|
invoke-interface {v1, v6, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_7
|
|
iget-object v4, p0, Lcom/discord/rtcconnection/RtcConnection;->d:Lf/a/g/q/d;
|
|
|
|
iget-object v4, v4, Lf/a/g/q/d;->a:Lco/discord/media_engine/Stats;
|
|
|
|
if-eqz v4, :cond_a
|
|
|
|
invoke-virtual {v4}, Lco/discord/media_engine/Stats;->getOutboundRtpAudio()Lco/discord/media_engine/OutboundRtpAudio;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_8
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/OutboundRtpAudio;->getPacketsSent()I
|
|
|
|
move-result v7
|
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "packets_sent"
|
|
|
|
invoke-interface {v1, v8, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v6}, Lco/discord/media_engine/OutboundRtpAudio;->getPacketsLost()I
|
|
|
|
move-result v6
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "packets_sent_lost"
|
|
|
|
invoke-interface {v1, v7, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_8
|
|
invoke-virtual {v4}, Lco/discord/media_engine/Stats;->getInboundRtpAudio()Ljava/util/Map;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v4}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_4
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_9
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Lco/discord/media_engine/InboundRtpAudio;
|
|
|
|
invoke-virtual {v7}, Lco/discord/media_engine/InboundRtpAudio;->getPacketsLost()I
|
|
|
|
move-result v8
|
|
|
|
add-int/2addr v6, v8
|
|
|
|
invoke-virtual {v7}, Lco/discord/media_engine/InboundRtpAudio;->getPacketsReceived()I
|
|
|
|
move-result v7
|
|
|
|
add-int/2addr v2, v7
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v4, "packets_received"
|
|
|
|
invoke-interface {v1, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v4, "packets_received_lost"
|
|
|
|
invoke-interface {v1, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_a
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/RtcConnection;->p:Ljava/lang/Long;
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v6
|
|
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/RtcConnection;->D:Lcom/discord/utilities/time/Clock;
|
|
|
|
invoke-interface {v2}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
move-result-wide v8
|
|
|
|
sub-long/2addr v8, v6
|
|
|
|
invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_5
|
|
|
|
:cond_b
|
|
move-object v2, v5
|
|
|
|
:goto_5
|
|
if-eqz v2, :cond_c
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v4, "duration"
|
|
|
|
invoke-interface {v1, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_c
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/RtcConnection;->f:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo;
|
|
|
|
if-eqz v2, :cond_d
|
|
|
|
invoke-virtual {v2}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo;->c()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo$Protocol;
|
|
|
|
move-result-object v5
|
|
|
|
:cond_d
|
|
if-eqz v5, :cond_10
|
|
|
|
sget-object v2, Lf/a/g/d;->a:[I
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v4
|
|
|
|
aget v2, v2, v4
|
|
|
|
if-eq v2, v3, :cond_f
|
|
|
|
if-ne v2, v0, :cond_e
|
|
|
|
const-string v0, "tcp"
|
|
|
|
goto :goto_6
|
|
|
|
:cond_e
|
|
new-instance v0, Ly/g;
|
|
|
|
invoke-direct {v0}, Ly/g;-><init>()V
|
|
|
|
throw v0
|
|
|
|
:cond_f
|
|
const-string v0, "udp"
|
|
|
|
:goto_6
|
|
const-string v2, "protocol"
|
|
|
|
invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_10
|
|
sget-object v0, Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;->VOICE_DISCONNECT:Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/discord/rtcconnection/RtcConnection;->a(Lcom/discord/rtcconnection/RtcConnection$AnalyticsEvent;Ljava/util/Map;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->E:Lcom/discord/rtcconnection/RtcConnection$c;
|
|
|
|
instance-of v0, v0, Lcom/discord/rtcconnection/RtcConnection$c$a;
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->d:Lf/a/g/q/d;
|
|
|
|
iget-object v0, v0, Lf/a/g/q/d;->a:Lco/discord/media_engine/Stats;
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
invoke-virtual {v0}, Lco/discord/media_engine/Stats;->getInboundRtpVideo()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_11
|
|
:goto_7
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_12
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lco/discord/media_engine/InboundRtpVideo;
|
|
|
|
invoke-static {v2}, Ly/b0/o;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_11
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {p0, v2, v3, v1}, Lcom/discord/rtcconnection/RtcConnection;->a(JLco/discord/media_engine/InboundRtpVideo;)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_12
|
|
return-void
|
|
|
|
:cond_13
|
|
const-string v0, "$this$average"
|
|
|
|
invoke-static {v0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
.end method
|
|
|
|
.method public final j()V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->C:Lcom/discord/utilities/logging/Logger;
|
|
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/RtcConnection;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "reconnect"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/logging/Logger;->recordBreadcrumb$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
iget-boolean v0, p0, Lcom/discord/rtcconnection/RtcConnection;->r:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->D:Lcom/discord/utilities/time/Clock;
|
|
|
|
invoke-interface {v0}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->o:Ljava/lang/Long;
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/discord/rtcconnection/RtcConnection;->q:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/discord/rtcconnection/RtcConnection;->q:I
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/RtcConnection;->j:Lf/a/g/p/a;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lf/a/g/p/a;->a()V
|
|
|
|
invoke-virtual {v0}, Lf/a/g/p/a;->b()Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|