Configuration$SamplingMethod.smali
.class public final enum Lcom/facebook/spectrum/Configuration$SamplingMethod;
.super Ljava/lang/Enum;
.source "Configuration.java"
# annotations
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/spectrum/Configuration;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "SamplingMethod"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/spectrum/Configuration$SamplingMethod;",
">;"
}
.end annotation
.annotation build Ljavax/annotation/concurrent/Immutable;
.end annotation
# static fields
.field public static final synthetic $VALUES:[Lcom/facebook/spectrum/Configuration$SamplingMethod;
.field public static final enum Bicubic:Lcom/facebook/spectrum/Configuration$SamplingMethod;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum MagicKernel:Lcom/facebook/spectrum/Configuration$SamplingMethod;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
# instance fields
.field public final value:I
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.registers 5
new-instance v0, Lcom/facebook/spectrum/Configuration$SamplingMethod;
const/4 v1, 0x0
const/4 v2, 0x1
const-string v3, "Bicubic"
invoke-direct {v0, v3, v1, v2}, Lcom/facebook/spectrum/Configuration$SamplingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/spectrum/Configuration$SamplingMethod;->Bicubic:Lcom/facebook/spectrum/Configuration$SamplingMethod;
new-instance v0, Lcom/facebook/spectrum/Configuration$SamplingMethod;
const/4 v3, 0x2
const-string v4, "MagicKernel"
invoke-direct {v0, v4, v2, v3}, Lcom/facebook/spectrum/Configuration$SamplingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/spectrum/Configuration$SamplingMethod;->MagicKernel:Lcom/facebook/spectrum/Configuration$SamplingMethod;
new-array v3, v3, [Lcom/facebook/spectrum/Configuration$SamplingMethod;
sget-object v4, Lcom/facebook/spectrum/Configuration$SamplingMethod;->Bicubic:Lcom/facebook/spectrum/Configuration$SamplingMethod;
aput-object v4, v3, v1
aput-object v0, v3, v2
sput-object v3, Lcom/facebook/spectrum/Configuration$SamplingMethod;->$VALUES:[Lcom/facebook/spectrum/Configuration$SamplingMethod;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;II)V
.registers 4
.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, Lcom/facebook/spectrum/Configuration$SamplingMethod;->value:I
return-void
.end method
.method public static from(I)Lcom/facebook/spectrum/Configuration$SamplingMethod;
.registers 6
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
invoke-static {}, Lcom/facebook/spectrum/Configuration$SamplingMethod;->values()[Lcom/facebook/spectrum/Configuration$SamplingMethod;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_6
if-ge v2, v1, :cond_12
aget-object v3, v0, v2
iget v4, v3, Lcom/facebook/spectrum/Configuration$SamplingMethod;->value:I
if-ne v4, p0, :cond_f
return-object v3
:cond_f
add-int/lit8 v2, v2, 0x1
goto :goto_6
:cond_12
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Unsupported SamplingMethod"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
goto :goto_1b
:goto_1a
throw p0
:goto_1b
goto :goto_1a
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/facebook/spectrum/Configuration$SamplingMethod;
.registers 2
const-class v0, Lcom/facebook/spectrum/Configuration$SamplingMethod;
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/facebook/spectrum/Configuration$SamplingMethod;
return-object p0
.end method
.method public static values()[Lcom/facebook/spectrum/Configuration$SamplingMethod;
.registers 1
sget-object v0, Lcom/facebook/spectrum/Configuration$SamplingMethod;->$VALUES:[Lcom/facebook/spectrum/Configuration$SamplingMethod;
invoke-virtual {v0}, [Lcom/facebook/spectrum/Configuration$SamplingMethod;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/spectrum/Configuration$SamplingMethod;
return-object v0
.end method