73 lines
1.6 KiB
Smali
73 lines
1.6 KiB
Smali
.class public final Lcom/discord/rtcconnection/RtcConnection$Quality$a;
|
|
.super Ljava/lang/Object;
|
|
.source "RtcConnection.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/rtcconnection/RtcConnection$Quality;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(D)Lcom/discord/rtcconnection/RtcConnection$Quality;
|
|
.locals 3
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$Quality;->UNKNOWN:Lcom/discord/rtcconnection/RtcConnection$Quality;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v0, 0xfa
|
|
|
|
int-to-double v0, v0
|
|
|
|
cmpg-double v2, p1, v0
|
|
|
|
if-gez v2, :cond_1
|
|
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$Quality;->FINE:Lcom/discord/rtcconnection/RtcConnection$Quality;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 v0, 0x1f4
|
|
|
|
int-to-double v0, v0
|
|
|
|
cmpg-double v2, p1, v0
|
|
|
|
if-gez v2, :cond_2
|
|
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$Quality;->AVERAGE:Lcom/discord/rtcconnection/RtcConnection$Quality;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
sget-object p1, Lcom/discord/rtcconnection/RtcConnection$Quality;->BAD:Lcom/discord/rtcconnection/RtcConnection$Quality;
|
|
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|