ImageOrientation.smali
.class public final enum Lcom/facebook/spectrum/image/ImageOrientation;
.super Ljava/lang/Enum;
.source "ImageOrientation.java"
# annotations
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/spectrum/image/ImageOrientation;",
">;"
}
.end annotation
.annotation build Ljavax/annotation/concurrent/Immutable;
.end annotation
# static fields
.field public static final synthetic $VALUES:[Lcom/facebook/spectrum/image/ImageOrientation;
.field public static final enum BOTTOM:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum BOTTOM_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum LEFT:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum LEFT_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum RIGHT:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum RIGHT_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum UP:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum UP_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
# instance fields
.field public final value:S
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.registers 11
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v1, 0x0
const/4 v2, 0x1
const-string v3, "UP"
invoke-direct {v0, v3, v1, v2}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->UP:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v3, 0x2
const-string v4, "UP_MIRRORED"
invoke-direct {v0, v4, v2, v3}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->UP_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v4, 0x3
const-string v5, "BOTTOM"
invoke-direct {v0, v5, v3, v4}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->BOTTOM:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v5, 0x4
const-string v6, "BOTTOM_MIRRORED"
invoke-direct {v0, v6, v4, v5}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->BOTTOM_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v6, 0x5
const-string v7, "LEFT_MIRRORED"
invoke-direct {v0, v7, v5, v6}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->LEFT_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v7, 0x6
const-string v8, "RIGHT"
invoke-direct {v0, v8, v6, v7}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->RIGHT:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/4 v8, 0x7
const-string v9, "RIGHT_MIRRORED"
invoke-direct {v0, v9, v7, v8}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->RIGHT_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
new-instance v0, Lcom/facebook/spectrum/image/ImageOrientation;
const/16 v9, 0x8
const-string v10, "LEFT"
invoke-direct {v0, v10, v8, v9}, Lcom/facebook/spectrum/image/ImageOrientation;-><init>(Ljava/lang/String;IS)V
sput-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->LEFT:Lcom/facebook/spectrum/image/ImageOrientation;
new-array v9, v9, [Lcom/facebook/spectrum/image/ImageOrientation;
sget-object v10, Lcom/facebook/spectrum/image/ImageOrientation;->UP:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v10, v9, v1
sget-object v1, Lcom/facebook/spectrum/image/ImageOrientation;->UP_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v1, v9, v2
sget-object v1, Lcom/facebook/spectrum/image/ImageOrientation;->BOTTOM:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v1, v9, v3
sget-object v1, Lcom/facebook/spectrum/image/ImageOrientation;->BOTTOM_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v1, v9, v4
sget-object v1, Lcom/facebook/spectrum/image/ImageOrientation;->LEFT_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v1, v9, v5
sget-object v1, Lcom/facebook/spectrum/image/ImageOrientation;->RIGHT:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v1, v9, v6
sget-object v1, Lcom/facebook/spectrum/image/ImageOrientation;->RIGHT_MIRRORED:Lcom/facebook/spectrum/image/ImageOrientation;
aput-object v1, v9, v7
aput-object v0, v9, v8
sput-object v9, Lcom/facebook/spectrum/image/ImageOrientation;->$VALUES:[Lcom/facebook/spectrum/image/ImageOrientation;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;IS)V
.registers 4
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(S)V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput-short p3, p0, Lcom/facebook/spectrum/image/ImageOrientation;->value:S
return-void
.end method
.method public static from(S)Lcom/facebook/spectrum/image/ImageOrientation;
.registers 6
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
invoke-static {}, Lcom/facebook/spectrum/image/ImageOrientation;->values()[Lcom/facebook/spectrum/image/ImageOrientation;
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-short v4, v3, Lcom/facebook/spectrum/image/ImageOrientation;->value:S
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 ImageOrientation"
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/image/ImageOrientation;
.registers 2
const-class v0, Lcom/facebook/spectrum/image/ImageOrientation;
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/image/ImageOrientation;
return-object p0
.end method
.method public static values()[Lcom/facebook/spectrum/image/ImageOrientation;
.registers 1
sget-object v0, Lcom/facebook/spectrum/image/ImageOrientation;->$VALUES:[Lcom/facebook/spectrum/image/ImageOrientation;
invoke-virtual {v0}, [Lcom/facebook/spectrum/image/ImageOrientation;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/spectrum/image/ImageOrientation;
return-object v0
.end method