250 lines
5.3 KiB
Smali
250 lines
5.3 KiB
Smali
.class Lpl/droidsonroids/gif/GifViewSavedState;
|
|
.super Landroid/view/View$BaseSavedState;
|
|
.source "GifViewSavedState.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lpl/droidsonroids/gif/GifViewSavedState;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field final mStates:[[J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 47
|
|
new-instance v0, Lpl/droidsonroids/gif/GifViewSavedState$1;
|
|
|
|
invoke-direct {v0}, Lpl/droidsonroids/gif/GifViewSavedState$1;-><init>()V
|
|
|
|
sput-object v0, Lpl/droidsonroids/gif/GifViewSavedState;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 3
|
|
|
|
.line 27
|
|
invoke-direct {p0, p1}, Landroid/view/View$BaseSavedState;-><init>(Landroid/os/Parcel;)V
|
|
|
|
.line 28
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [[J
|
|
|
|
iput-object v0, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 29
|
|
:goto_0
|
|
iget-object v1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
array-length v1, v1
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 30
|
|
:cond_0
|
|
iget-object v1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->createLongArray()[J
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Landroid/os/Parcel;Lpl/droidsonroids/gif/GifViewSavedState;)V
|
|
.locals 0
|
|
|
|
.line 26
|
|
invoke-direct {p0, p1}, Lpl/droidsonroids/gif/GifViewSavedState;-><init>(Landroid/os/Parcel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/os/Parcelable;[J)V
|
|
.locals 1
|
|
|
|
.line 34
|
|
invoke-direct {p0, p1}, Landroid/view/View$BaseSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 35
|
|
new-array p1, p1, [[J
|
|
|
|
iput-object p1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
.line 36
|
|
iget-object p1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aput-object p2, p1, v0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method varargs constructor <init>(Landroid/os/Parcelable;[Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
|
|
.line 13
|
|
invoke-direct {p0, p1}, Landroid/view/View$BaseSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 14
|
|
array-length p1, p2
|
|
|
|
new-array p1, p1, [[J
|
|
|
|
iput-object p1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 15
|
|
:goto_0
|
|
array-length v0, p2
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 16
|
|
:cond_0
|
|
aget-object v0, p2, p1
|
|
|
|
.line 17
|
|
instance-of v1, v0, Lpl/droidsonroids/gif/GifDrawable;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 18
|
|
iget-object v1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
check-cast v0, Lpl/droidsonroids/gif/GifDrawable;
|
|
|
|
iget-object v0, v0, Lpl/droidsonroids/gif/GifDrawable;->f:Lpl/droidsonroids/gif/GifInfoHandle;
|
|
|
|
.line 19
|
|
invoke-virtual {v0}, Lpl/droidsonroids/gif/GifInfoHandle;->k()[J
|
|
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
aput-object v0, v1, p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 21
|
|
:cond_1
|
|
iget-object v0, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput-object v1, v0, p1
|
|
|
|
:goto_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method restoreState(Landroid/graphics/drawable/Drawable;I)V
|
|
.locals 2
|
|
|
|
.line 59
|
|
iget-object v0, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
aget-object v0, v0, p2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
instance-of v0, p1, Lpl/droidsonroids/gif/GifDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 60
|
|
check-cast p1, Lpl/droidsonroids/gif/GifDrawable;
|
|
|
|
.line 61
|
|
iget-object v0, p1, Lpl/droidsonroids/gif/GifDrawable;->f:Lpl/droidsonroids/gif/GifInfoHandle;
|
|
|
|
.line 62
|
|
iget-object v1, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
aget-object p2, v1, p2
|
|
|
|
iget-object v1, p1, Lpl/droidsonroids/gif/GifDrawable;->e:Landroid/graphics/Bitmap;
|
|
|
|
invoke-virtual {v0, p2, v1}, Lpl/droidsonroids/gif/GifInfoHandle;->a([JLandroid/graphics/Bitmap;)I
|
|
|
|
move-result p2
|
|
|
|
int-to-long v0, p2
|
|
|
|
.line 61
|
|
invoke-virtual {p1, v0, v1}, Lpl/droidsonroids/gif/GifDrawable;->a(J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 3
|
|
|
|
.line 41
|
|
invoke-super {p0, p1, p2}, Landroid/view/View$BaseSavedState;->writeToParcel(Landroid/os/Parcel;I)V
|
|
|
|
.line 42
|
|
iget-object p2, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
array-length p2, p2
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 43
|
|
iget-object p2, p0, Lpl/droidsonroids/gif/GifViewSavedState;->mStates:[[J
|
|
|
|
array-length v0, p2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-lt v1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
aget-object v2, p2, v1
|
|
|
|
.line 44
|
|
invoke-virtual {p1, v2}, Landroid/os/Parcel;->writeLongArray([J)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|