Rabbit-R1/original r1/smali/smali_classes2/com/airbnb/lottie/RenderMode.smali

188 lines
4.1 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final enum Lcom/airbnb/lottie/RenderMode;
.super Ljava/lang/Enum;
.source "RenderMode.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/airbnb/lottie/RenderMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/airbnb/lottie/RenderMode;
.field public static final enum AUTOMATIC:Lcom/airbnb/lottie/RenderMode;
.field public static final enum HARDWARE:Lcom/airbnb/lottie/RenderMode;
.field public static final enum SOFTWARE:Lcom/airbnb/lottie/RenderMode;
# direct methods
.method private static synthetic $values()[Lcom/airbnb/lottie/RenderMode;
.locals 3
sget-object v0, Lcom/airbnb/lottie/RenderMode;->AUTOMATIC:Lcom/airbnb/lottie/RenderMode;
sget-object v1, Lcom/airbnb/lottie/RenderMode;->HARDWARE:Lcom/airbnb/lottie/RenderMode;
sget-object v2, Lcom/airbnb/lottie/RenderMode;->SOFTWARE:Lcom/airbnb/lottie/RenderMode;
filled-new-array {v0, v1, v2}, [Lcom/airbnb/lottie/RenderMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 12
new-instance v0, Lcom/airbnb/lottie/RenderMode;
const-string v1, "AUTOMATIC"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/airbnb/lottie/RenderMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/airbnb/lottie/RenderMode;->AUTOMATIC:Lcom/airbnb/lottie/RenderMode;
.line 13
new-instance v0, Lcom/airbnb/lottie/RenderMode;
const-string v1, "HARDWARE"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/airbnb/lottie/RenderMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/airbnb/lottie/RenderMode;->HARDWARE:Lcom/airbnb/lottie/RenderMode;
.line 14
new-instance v0, Lcom/airbnb/lottie/RenderMode;
const-string v1, "SOFTWARE"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/airbnb/lottie/RenderMode;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/airbnb/lottie/RenderMode;->SOFTWARE:Lcom/airbnb/lottie/RenderMode;
.line 11
invoke-static {}, Lcom/airbnb/lottie/RenderMode;->$values()[Lcom/airbnb/lottie/RenderMode;
move-result-object v0
sput-object v0, Lcom/airbnb/lottie/RenderMode;->$VALUES:[Lcom/airbnb/lottie/RenderMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 11
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/airbnb/lottie/RenderMode;
.locals 1
const-class v0, Lcom/airbnb/lottie/RenderMode;
.line 11
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/RenderMode;
return-object p0
.end method
.method public static values()[Lcom/airbnb/lottie/RenderMode;
.locals 1
sget-object v0, Lcom/airbnb/lottie/RenderMode;->$VALUES:[Lcom/airbnb/lottie/RenderMode;
.line 11
invoke-virtual {v0}, [Lcom/airbnb/lottie/RenderMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/airbnb/lottie/RenderMode;
return-object v0
.end method
# virtual methods
.method public useSoftwareRendering(IZI)Z
.locals 3
.line 17
sget-object v0, Lcom/airbnb/lottie/RenderMode$1;->$SwitchMap$com$airbnb$lottie$RenderMode:[I
invoke-virtual {p0}, Lcom/airbnb/lottie/RenderMode;->ordinal()I
move-result p0
aget p0, v0, p0
const/4 v0, 0x0
const/4 v1, 0x1
if-eq p0, v1, :cond_4
const/4 v2, 0x2
if-eq p0, v2, :cond_3
if-eqz p2, :cond_0
const/16 p0, 0x1c
if-ge p1, p0, :cond_0
return v1
:cond_0
const/4 p0, 0x4
if-le p3, p0, :cond_1
return v1
:cond_1
const/16 p0, 0x19
if-gt p1, p0, :cond_2
move v0, v1
:cond_2
return v0
:cond_3
return v1
:cond_4
return v0
.end method