210 lines
6.2 KiB
Smali
210 lines
6.2 KiB
Smali
.class public final enum Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
.super Ljava/lang/Enum;
|
|
.source "RtpTransceiver.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lorg/webrtc/RtpTransceiver;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x4019
|
|
name = "RtpTransceiverDirection"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Enum<",
|
|
"Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $VALUES:[Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
.field public static final enum INACTIVE:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
.field public static final enum RECV_ONLY:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
.field public static final enum SEND_ONLY:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
.field public static final enum SEND_RECV:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
|
|
# instance fields
|
|
.field public final nativeIndex:I
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
new-instance v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "SEND_RECV"
|
|
|
|
invoke-direct {v0, v2, v1, v1}, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->SEND_RECV:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
new-instance v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-string v3, "SEND_ONLY"
|
|
|
|
invoke-direct {v0, v3, v2, v2}, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->SEND_ONLY:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
new-instance v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const-string v4, "RECV_ONLY"
|
|
|
|
invoke-direct {v0, v4, v3, v3}, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->RECV_ONLY:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
new-instance v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const-string v5, "INACTIVE"
|
|
|
|
invoke-direct {v0, v5, v4, v4}, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;-><init>(Ljava/lang/String;II)V
|
|
|
|
sput-object v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->INACTIVE:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
const/4 v0, 0x4
|
|
|
|
new-array v0, v0, [Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
sget-object v5, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->SEND_RECV:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
aput-object v5, v0, v1
|
|
|
|
sget-object v1, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->SEND_ONLY:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->RECV_ONLY:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
sget-object v1, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->INACTIVE:Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
sput-object v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->$VALUES:[Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;II)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
|
|
|
|
iput p3, p0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->nativeIndex:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static fromNativeIndex(I)Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
.locals 5
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
value = "RtpTransceiverDirection"
|
|
.end annotation
|
|
|
|
invoke-static {}, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->values()[Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
move-result-object v0
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
invoke-virtual {v3}, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->getNativeIndex()I
|
|
|
|
move-result v4
|
|
|
|
if-ne v4, p0, :cond_0
|
|
|
|
return-object v3
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Uknown native RtpTransceiverDirection type"
|
|
|
|
invoke-static {v1, p0}, Lf/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static valueOf(Ljava/lang/String;)Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
.locals 1
|
|
|
|
const-class v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static values()[Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
.locals 1
|
|
|
|
sget-object v0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->$VALUES:[Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
invoke-virtual {v0}, [Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getNativeIndex()I
|
|
.locals 1
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
value = "RtpTransceiverDirection"
|
|
.end annotation
|
|
|
|
iget v0, p0, Lorg/webrtc/RtpTransceiver$RtpTransceiverDirection;->nativeIndex:I
|
|
|
|
return v0
|
|
.end method
|