298 lines
5.9 KiB
Smali
298 lines
5.9 KiB
Smali
.class public Lcom/moji/camera/model/CropOptions;
|
|
.super Ljava/lang/Object;
|
|
.source "CropOptions.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/camera/model/CropOptions$Builder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/moji/camera/model/CropOptions;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private aspectX:I
|
|
|
|
.field private aspectY:I
|
|
|
|
.field private needCrop:Z
|
|
|
|
.field private outputX:I
|
|
|
|
.field private outputY:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 113
|
|
new-instance v0, Lcom/moji/camera/model/CropOptions$1;
|
|
|
|
invoke-direct {v0}, Lcom/moji/camera/model/CropOptions$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/camera/model/CropOptions;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 16
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 11
|
|
iput-boolean v0, p0, Lcom/moji/camera/model/CropOptions;->needCrop:Z
|
|
|
|
.line 12
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->aspectX:I
|
|
|
|
.line 13
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->aspectY:I
|
|
|
|
.line 14
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->outputX:I
|
|
|
|
.line 15
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->outputY:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 3
|
|
|
|
.line 125
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 11
|
|
iput-boolean v0, p0, Lcom/moji/camera/model/CropOptions;->needCrop:Z
|
|
|
|
.line 12
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->aspectX:I
|
|
|
|
.line 13
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->aspectY:I
|
|
|
|
.line 14
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->outputX:I
|
|
|
|
.line 15
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->outputY:I
|
|
|
|
.line 126
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 127
|
|
:cond_0
|
|
iput-boolean v0, p0, Lcom/moji/camera/model/CropOptions;->needCrop:Z
|
|
|
|
.line 129
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->aspectX:I
|
|
|
|
.line 130
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->aspectY:I
|
|
|
|
.line 131
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/camera/model/CropOptions;->outputX:I
|
|
|
|
.line 132
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/camera/model/CropOptions;->outputY:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/moji/camera/model/CropOptions$1;)V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0, p1}, Lcom/moji/camera/model/CropOptions;-><init>(Landroid/os/Parcel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lcom/moji/camera/model/CropOptions$1;)V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Lcom/moji/camera/model/CropOptions;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getAspectX()I
|
|
.locals 1
|
|
|
|
.line 27
|
|
iget v0, p0, Lcom/moji/camera/model/CropOptions;->aspectX:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getAspectY()I
|
|
.locals 1
|
|
|
|
.line 35
|
|
iget v0, p0, Lcom/moji/camera/model/CropOptions;->aspectY:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOutputX()I
|
|
.locals 1
|
|
|
|
.line 43
|
|
iget v0, p0, Lcom/moji/camera/model/CropOptions;->outputX:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOutputY()I
|
|
.locals 1
|
|
|
|
.line 51
|
|
iget v0, p0, Lcom/moji/camera/model/CropOptions;->outputY:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isNeedCrop()Z
|
|
.locals 1
|
|
|
|
.line 19
|
|
iget-boolean v0, p0, Lcom/moji/camera/model/CropOptions;->needCrop:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setAspectX(I)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
iput p1, p0, Lcom/moji/camera/model/CropOptions;->aspectX:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAspectY(I)V
|
|
.locals 0
|
|
|
|
.line 39
|
|
iput p1, p0, Lcom/moji/camera/model/CropOptions;->aspectY:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNeedCrop(Z)V
|
|
.locals 0
|
|
|
|
.line 23
|
|
iput-boolean p1, p0, Lcom/moji/camera/model/CropOptions;->needCrop:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOutputX(I)V
|
|
.locals 0
|
|
|
|
.line 47
|
|
iput p1, p0, Lcom/moji/camera/model/CropOptions;->outputX:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOutputY(I)V
|
|
.locals 0
|
|
|
|
.line 55
|
|
iput p1, p0, Lcom/moji/camera/model/CropOptions;->outputY:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 0
|
|
|
|
.line 106
|
|
iget-boolean p2, p0, Lcom/moji/camera/model/CropOptions;->needCrop:Z
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 107
|
|
iget p2, p0, Lcom/moji/camera/model/CropOptions;->aspectX:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 108
|
|
iget p2, p0, Lcom/moji/camera/model/CropOptions;->aspectY:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 109
|
|
iget p2, p0, Lcom/moji/camera/model/CropOptions;->outputX:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 110
|
|
iget p2, p0, Lcom/moji/camera/model/CropOptions;->outputY:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
return-void
|
|
.end method
|