RLottieDrawable.smali
.class public Lim/tpelyyftgw/ui/components/RLottieDrawable;
.super Landroid/graphics/drawable/BitmapDrawable;
.source "RLottieDrawable.java"
# interfaces
.implements Landroid/graphics/drawable/Animatable;
# static fields
.field private static buffer:[B
.field private static loadFrameRunnableQueue:Ljava/util/concurrent/ExecutorService;
.field private static lottieCacheGenerateQueue:Ljava/util/concurrent/ThreadPoolExecutor;
.field private static readBuffer:[B
.field private static final uiHandler:Landroid/os/Handler;
# instance fields
.field private applyTransformation:Z
.field private applyingLayerColors:Z
.field private autoRepeat:I
.field private autoRepeatPlayCount:I
.field private volatile backgroundBitmap:Landroid/graphics/Bitmap;
.field private cacheGenerateTask:Ljava/lang/Runnable;
.field private currentFrame:I
.field private currentParentView:Landroid/view/View;
.field private decodeSingleFrame:Z
.field private destroyWhenDone:Z
.field private final dstRect:Landroid/graphics/Rect;
.field private forceFrameRedraw:Z
.field private height:I
.field private volatile isRecycled:Z
.field private volatile isRunning:Z
.field private lastFrameTime:J
.field private loadFrameRunnable:Ljava/lang/Runnable;
.field private loadFrameTask:Ljava/lang/Runnable;
.field private final metaData:[I
.field private volatile nativePtr:J
.field private needGenerateCache:Z
.field private newColorUpdates:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private volatile nextFrameIsLast:Z
.field private volatile nextRenderingBitmap:Landroid/graphics/Bitmap;
.field private parentViews:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/ref/WeakReference<",
"Landroid/view/View;",
">;>;"
}
.end annotation
.end field
.field private volatile pendingColorUpdates:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private volatile renderingBitmap:Landroid/graphics/Bitmap;
.field private scaleX:F
.field private scaleY:F
.field private shouldLimitFps:Z
.field private singleFrameDecoded:Z
.field private timeBetweenFrames:I
.field private uiRunnable:Ljava/lang/Runnable;
.field private uiRunnableCacheFinished:Ljava/lang/Runnable;
.field private uiRunnableGenerateCache:Ljava/lang/Runnable;
.field private uiRunnableLastFrame:Ljava/lang/Runnable;
.field private uiRunnableNoFrame:Ljava/lang/Runnable;
.field private vibrationPattern:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private width:I
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 76
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
sput-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiHandler:Landroid/os/Handler;
.line 81
const/high16 v0, 0x10000
new-array v0, v0, [B
sput-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
.line 82
const/16 v0, 0x1000
new-array v0, v0, [B
sput-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->buffer:[B
.line 85
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
sput-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameRunnableQueue:Ljava/util/concurrent/ExecutorService;
return-void
.end method
.method public constructor <init>(ILjava/lang/String;II)V
.registers 11
.param p1, "rawRes" # I
.param p2, "name" # Ljava/lang/String;
.param p3, "w" # I
.param p4, "h" # I
.line 270
const/4 v5, 0x1
move-object v0, p0
move v1, p1
move-object v2, p2
move v3, p3
move v4, p4
invoke-direct/range {v0 .. v5}, Lim/tpelyyftgw/ui/components/RLottieDrawable;-><init>(ILjava/lang/String;IIZ)V
.line 271
return-void
.end method
.method public constructor <init>(ILjava/lang/String;IIZ)V
.registers 15
.param p1, "rawRes" # I
.param p2, "name" # Ljava/lang/String;
.param p3, "w" # I
.param p4, "h" # I
.param p5, "startDecode" # Z
.line 273
invoke-direct {p0}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V
.line 43
const/4 v0, 0x3
new-array v0, v0, [I
iput-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
.line 45
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->newColorUpdates:Ljava/util/HashMap;
.line 46
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->pendingColorUpdates:Ljava/util/HashMap;
.line 51
const/4 v0, 0x1
iput v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
.line 72
const/high16 v1, 0x3f800000 # 1.0f
iput v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleX:F
.line 73
iput v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleY:F
.line 75
new-instance v1, Landroid/graphics/Rect;
invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
.line 84
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
.line 88
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$1;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$1;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableNoFrame:Ljava/lang/Runnable;
.line 96
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$2;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$2;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableCacheFinished:Ljava/lang/Runnable;
.line 104
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$3;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$3;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnable:Ljava/lang/Runnable;
.line 113
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$4;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$4;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableLastFrame:Ljava/lang/Runnable;
.line 123
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$5;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$5;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableGenerateCache:Ljava/lang/Runnable;
.line 181
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$6;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$6;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameRunnable:Ljava/lang/Runnable;
.line 275
:try_start_57
sget-object v1, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;
move-result-object v1
.line 277
.local v1, "inputStream":Ljava/io/InputStream;
const/4 v2, 0x0
.line 278
.local v2, "totalRead":I
:goto_62
sget-object v3, Lim/tpelyyftgw/ui/components/RLottieDrawable;->buffer:[B
sget-object v4, Lim/tpelyyftgw/ui/components/RLottieDrawable;->buffer:[B
array-length v4, v4
const/4 v5, 0x0
invoke-virtual {v1, v3, v5, v4}, Ljava/io/InputStream;->read([BII)I
move-result v3
move v4, v3
.local v4, "readLen":I
const/4 v6, 0x2
if-lez v3, :cond_8e
.line 279
sget-object v3, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
array-length v3, v3
add-int v7, v2, v4
if-ge v3, v7, :cond_85
.line 280
sget-object v3, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
array-length v3, v3
mul-int/lit8 v3, v3, 0x2
new-array v3, v3, [B
.line 281
.local v3, "newBuffer":[B
sget-object v6, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
invoke-static {v6, v5, v3, v5, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 282
sput-object v3, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
.line 284
.end local v3 # "newBuffer":[B
:cond_85
sget-object v3, Lim/tpelyyftgw/ui/components/RLottieDrawable;->buffer:[B
sget-object v6, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
invoke-static {v3, v5, v6, v2, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 285
add-int/2addr v2, v4
goto :goto_62
.line 287
:cond_8e
new-instance v3, Ljava/lang/String;
sget-object v7, Lim/tpelyyftgw/ui/components/RLottieDrawable;->readBuffer:[B
invoke-direct {v3, v7, v5, v2}, Ljava/lang/String;-><init>([BII)V
.line 288
.local v3, "jsonString":Ljava/lang/String;
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
.line 290
iput p3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->width:I
.line 291
iput p4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->height:I
.line 292
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getPaint()Landroid/graphics/Paint;
move-result-object v7
invoke-virtual {v7, v6}, Landroid/graphics/Paint;->setFlags(I)V
.line 293
iget-object v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
invoke-static {v3, p2, v6}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->createWithJson(Ljava/lang/String;Ljava/lang/String;[I)J
move-result-wide v6
iput-wide v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
.line 294
const/16 v6, 0x10
const/high16 v7, 0x447a0000 # 1000.0f
iget-object v8, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
aget v8, v8, v0
int-to-float v8, v8
div-float/2addr v7, v8
float-to-int v7, v7
invoke-static {v6, v7}, Ljava/lang/Math;->max(II)I
move-result v6
iput v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->timeBetweenFrames:I
.line 295
iput v5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
.line 296
if-eqz p5, :cond_c3
.line 297
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->setAllowDecodeSingleFrame(Z)V
:try_end_c3
.catchall {:try_start_57 .. :try_end_c3} :catchall_c4
.line 301
.end local v1 # "inputStream":Ljava/io/InputStream;
.end local v2 # "totalRead":I
.end local v3 # "jsonString":Ljava/lang/String;
.end local v4 # "readLen":I
:cond_c3
goto :goto_c8
.line 299
:catchall_c4
move-exception v0
.line 300
.local v0, "e":Ljava/lang/Throwable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 302
.end local v0 # "e":Ljava/lang/Throwable;
:goto_c8
return-void
.end method
.method public constructor <init>(Ljava/io/File;IIZZ)V
.registers 13
.param p1, "file" # Ljava/io/File;
.param p2, "w" # I
.param p3, "h" # I
.param p4, "precache" # Z
.param p5, "limitFps" # Z
.line 247
const/4 v6, 0x0
move-object v0, p0
move-object v1, p1
move v2, p2
move v3, p3
move v4, p4
move v5, p5
invoke-direct/range {v0 .. v6}, Lim/tpelyyftgw/ui/components/RLottieDrawable;-><init>(Ljava/io/File;IIZZ[I)V
.line 248
return-void
.end method
.method public constructor <init>(Ljava/io/File;IIZZ[I)V
.registers 16
.param p1, "file" # Ljava/io/File;
.param p2, "w" # I
.param p3, "h" # I
.param p4, "precache" # Z
.param p5, "limitFps" # Z
.param p6, "colorReplacement" # [I
.line 250
invoke-direct {p0}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V
.line 43
const/4 v0, 0x3
new-array v0, v0, [I
iput-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
.line 45
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->newColorUpdates:Ljava/util/HashMap;
.line 46
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->pendingColorUpdates:Ljava/util/HashMap;
.line 51
const/4 v0, 0x1
iput v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
.line 72
const/high16 v1, 0x3f800000 # 1.0f
iput v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleX:F
.line 73
iput v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleY:F
.line 75
new-instance v1, Landroid/graphics/Rect;
invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
.line 84
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
.line 88
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$1;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$1;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableNoFrame:Ljava/lang/Runnable;
.line 96
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$2;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$2;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableCacheFinished:Ljava/lang/Runnable;
.line 104
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$3;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$3;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnable:Ljava/lang/Runnable;
.line 113
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$4;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$4;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableLastFrame:Ljava/lang/Runnable;
.line 123
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$5;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$5;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableGenerateCache:Ljava/lang/Runnable;
.line 181
new-instance v1, Lim/tpelyyftgw/ui/components/RLottieDrawable$6;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable$6;-><init>(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameRunnable:Ljava/lang/Runnable;
.line 251
iput p2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->width:I
.line 252
iput p3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->height:I
.line 253
iput-boolean p5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->shouldLimitFps:Z
.line 254
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getPaint()Landroid/graphics/Paint;
move-result-object v1
const/4 v2, 0x2
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setFlags(I)V
.line 256
invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
invoke-static {v1, v2, p4, p6}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->create(Ljava/lang/String;[IZ[I)J
move-result-wide v1
iput-wide v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
.line 257
if-eqz p4, :cond_8a
sget-object v1, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lottieCacheGenerateQueue:Ljava/util/concurrent/ThreadPoolExecutor;
if-nez v1, :cond_8a
.line 258
new-instance v1, Ljava/util/concurrent/ThreadPoolExecutor;
const/4 v3, 0x1
const/4 v4, 0x1
const-wide/16 v5, 0x0
sget-object v7, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v8, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v8}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
move-object v2, v1
invoke-direct/range {v2 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V
sput-object v1, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lottieCacheGenerateQueue:Ljava/util/concurrent/ThreadPoolExecutor;
.line 260
:cond_8a
iget-wide v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-nez v5, :cond_95
.line 261
invoke-virtual {p1}, Ljava/io/File;->delete()Z
.line 263
:cond_95
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->shouldLimitFps:Z
if-eqz v1, :cond_a4
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
aget v1, v1, v0
const/16 v2, 0x3c
if-ge v1, v2, :cond_a4
.line 264
const/4 v1, 0x0
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->shouldLimitFps:Z
.line 266
:cond_a4
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->shouldLimitFps:Z
if-eqz v1, :cond_ab
const/16 v1, 0x21
goto :goto_ad
:cond_ab
const/16 v1, 0x10
:goto_ad
const/high16 v2, 0x447a0000 # 1000.0f
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
aget v0, v3, v0
int-to-float v0, v0
div-float/2addr v2, v0
float-to-int v0, v2
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->timeBetweenFrames:I
.line 267
return-void
.end method
.method static synthetic access$002(Lim/tpelyyftgw/ui/components/RLottieDrawable;Ljava/lang/Runnable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Ljava/lang/Runnable;
.line 32
iput-object p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
return-object p1
.end method
.method static synthetic access$100(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
.registers 1
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->decodeFrameFinishedInternal()V
return-void
.end method
.method static synthetic access$1000(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Landroid/graphics/Bitmap;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
return-object v0
.end method
.method static synthetic access$1002(Lim/tpelyyftgw/ui/components/RLottieDrawable;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Landroid/graphics/Bitmap;
.line 32
iput-object p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
return-object p1
.end method
.method static synthetic access$1100(Lim/tpelyyftgw/ui/components/RLottieDrawable;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->width:I
return v0
.end method
.method static synthetic access$1200(Lim/tpelyyftgw/ui/components/RLottieDrawable;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->height:I
return v0
.end method
.method static synthetic access$1300(JLandroid/graphics/Bitmap;III)V
.registers 6
.param p0, "x0" # J
.param p2, "x1" # Landroid/graphics/Bitmap;
.param p3, "x2" # I
.param p4, "x3" # I
.param p5, "x4" # I
.line 32
invoke-static/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->createCache(JLandroid/graphics/Bitmap;III)V
return-void
.end method
.method static synthetic access$1400(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableCacheFinished:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$1500()Landroid/os/Handler;
.registers 1
.line 32
sget-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiHandler:Landroid/os/Handler;
return-object v0
.end method
.method static synthetic access$1600(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableNoFrame:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$1700(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->needGenerateCache:Z
return v0
.end method
.method static synthetic access$1702(Lim/tpelyyftgw/ui/components/RLottieDrawable;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Z
.line 32
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->needGenerateCache:Z
return p1
.end method
.method static synthetic access$1800(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnableGenerateCache:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$1900(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Ljava/util/HashMap;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->pendingColorUpdates:Ljava/util/HashMap;
return-object v0
.end method
.method static synthetic access$200(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$2000(JLjava/lang/String;I)V
.registers 4
.param p0, "x0" # J
.param p2, "x1" # Ljava/lang/String;
.param p3, "x2" # I
.line 32
invoke-static {p0, p1, p2, p3}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->setLayerColor(JLjava/lang/String;I)V
return-void
.end method
.method static synthetic access$202(Lim/tpelyyftgw/ui/components/RLottieDrawable;Ljava/lang/Runnable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Ljava/lang/Runnable;
.line 32
iput-object p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
return-object p1
.end method
.method static synthetic access$2100(Lim/tpelyyftgw/ui/components/RLottieDrawable;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
return v0
.end method
.method static synthetic access$2102(Lim/tpelyyftgw/ui/components/RLottieDrawable;I)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # I
.line 32
iput p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
return p1
.end method
.method static synthetic access$2200(JILandroid/graphics/Bitmap;III)I
.registers 8
.param p0, "x0" # J
.param p2, "x1" # I
.param p3, "x2" # Landroid/graphics/Bitmap;
.param p4, "x3" # I
.param p5, "x4" # I
.param p6, "x5" # I
.line 32
invoke-static/range {p0 .. p6}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getFrame(JILandroid/graphics/Bitmap;III)I
move-result v0
return v0
.end method
.method static synthetic access$2300(Lim/tpelyyftgw/ui/components/RLottieDrawable;)[I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
return-object v0
.end method
.method static synthetic access$2402(Lim/tpelyyftgw/ui/components/RLottieDrawable;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Landroid/graphics/Bitmap;
.line 32
iput-object p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
return-object p1
.end method
.method static synthetic access$2500(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->shouldLimitFps:Z
return v0
.end method
.method static synthetic access$2600(Lim/tpelyyftgw/ui/components/RLottieDrawable;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
return v0
.end method
.method static synthetic access$2702(Lim/tpelyyftgw/ui/components/RLottieDrawable;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Z
.line 32
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextFrameIsLast:Z
return p1
.end method
.method static synthetic access$2808(Lim/tpelyyftgw/ui/components/RLottieDrawable;)I
.registers 3
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeatPlayCount:I
add-int/lit8 v1, v0, 0x1
iput v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeatPlayCount:I
return v0
.end method
.method static synthetic access$2900(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->uiRunnable:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$302(Lim/tpelyyftgw/ui/components/RLottieDrawable;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Z
.line 32
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
return p1
.end method
.method static synthetic access$400(Lim/tpelyyftgw/ui/components/RLottieDrawable;)V
.registers 1
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateInternal()V
return-void
.end method
.method static synthetic access$502(Lim/tpelyyftgw/ui/components/RLottieDrawable;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.param p1, "x1" # Z
.line 32
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
return p1
.end method
.method static synthetic access$600(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRecycled:Z
return v0
.end method
.method static synthetic access$700(Lim/tpelyyftgw/ui/components/RLottieDrawable;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroyWhenDone:Z
return v0
.end method
.method static synthetic access$800(Lim/tpelyyftgw/ui/components/RLottieDrawable;)J
.registers 3
.param p0, "x0" # Lim/tpelyyftgw/ui/components/RLottieDrawable;
.line 32
iget-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
return-wide v0
.end method
.method static synthetic access$900()Ljava/util/concurrent/ThreadPoolExecutor;
.registers 1
.line 32
sget-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lottieCacheGenerateQueue:Ljava/util/concurrent/ThreadPoolExecutor;
return-object v0
.end method
.method private checkRunningTasks()V
.registers 4
.line 141
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
const/4 v1, 0x0
if-eqz v0, :cond_f
.line 142
sget-object v2, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lottieCacheGenerateQueue:Ljava/util/concurrent/ThreadPoolExecutor;
invoke-virtual {v2, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->remove(Ljava/lang/Runnable;)Z
move-result v0
if-eqz v0, :cond_f
.line 143
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
.line 146
:cond_f
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->hasParentView()Z
move-result v0
if-nez v0, :cond_21
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-eqz v0, :cond_21
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
if-eqz v0, :cond_21
.line 147
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
.line 148
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
.line 150
:cond_21
return-void
.end method
.method private static native create(Ljava/lang/String;[IZ[I)J
.end method
.method private static native createCache(JLandroid/graphics/Bitmap;III)V
.end method
.method private static native createWithJson(Ljava/lang/String;Ljava/lang/String;[I)J
.end method
.method private decodeFrameFinishedInternal()V
.registers 6
.line 153
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroyWhenDone:Z
const-wide/16 v1, 0x0
if-eqz v0, :cond_1e
.line 154
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->checkRunningTasks()V
.line 155
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
if-nez v0, :cond_1e
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
if-nez v0, :cond_1e
iget-wide v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
cmp-long v0, v3, v1
if-eqz v0, :cond_1e
.line 156
iget-wide v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
invoke-static {v3, v4}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroy(J)V
.line 157
iput-wide v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
.line 160
:cond_1e
iget-wide v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
cmp-long v0, v3, v1
if-nez v0, :cond_28
.line 161
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->recycleResources()V
.line 162
return-void
.line 164
:cond_28
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->hasParentView()Z
move-result v0
if-nez v0, :cond_31
.line 165
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->stop()V
.line 167
:cond_31
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
.line 168
return-void
.end method
.method private static native destroy(J)V
.end method
.method private static native getFrame(JILandroid/graphics/Bitmap;III)I
.end method
.method private hasParentView()Z
.registers 6
.line 335
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v0
const/4 v1, 0x1
if-eqz v0, :cond_8
.line 336
return v1
.line 338
:cond_8
const/4 v0, 0x0
.local v0, "a":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result v2
.local v2, "N":I
:goto_f
if-ge v0, v2, :cond_2e
.line 339
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/ref/WeakReference;
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/View;
.line 340
.local v3, "view":Landroid/view/View;
if-eqz v3, :cond_22
.line 341
return v1
.line 343
:cond_22
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v4, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
.line 344
add-int/lit8 v2, v2, -0x1
.line 345
nop
.end local v3 # "view":Landroid/view/View;
add-int/lit8 v0, v0, -0x1
.line 338
add-int/2addr v0, v1
goto :goto_f
.line 348
.end local v0 # "a":I
.end local v2 # "N":I
:cond_2e
const/4 v0, 0x0
return v0
.end method
.method private invalidateInternal()V
.registers 5
.line 352
const/4 v0, 0x0
.local v0, "a":I
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
.local v1, "N":I
:goto_7
if-ge v0, v1, :cond_29
.line 353
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/View;
.line 354
.local v2, "view":Landroid/view/View;
if-eqz v2, :cond_1d
.line 355
invoke-virtual {v2}, Landroid/view/View;->invalidate()V
goto :goto_26
.line 357
:cond_1d
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
.line 358
add-int/lit8 v1, v1, -0x1
.line 359
add-int/lit8 v0, v0, -0x1
.line 352
.end local v2 # "view":Landroid/view/View;
:goto_26
add-int/lit8 v0, v0, 0x1
goto :goto_7
.line 362
.end local v0 # "a":I
.end local v1 # "N":I
:cond_29
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v0
if-eqz v0, :cond_32
.line 363
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateSelf()V
.line 365
:cond_32
return-void
.end method
.method private isCurrentParentViewMaster()Z
.registers 6
.line 510
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v0
const/4 v1, 0x1
if-eqz v0, :cond_8
.line 511
return v1
.line 513
:cond_8
const/4 v0, 0x0
.local v0, "a":I
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result v2
.local v2, "N":I
:goto_f
if-ge v0, v2, :cond_3e
.line 514
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/ref/WeakReference;
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v3
if-nez v3, :cond_2b
.line 515
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
.line 516
add-int/lit8 v2, v2, -0x1
.line 517
add-int/lit8 v0, v0, -0x1
.line 518
nop
.line 513
add-int/2addr v0, v1
goto :goto_f
.line 520
:cond_2b
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/ref/WeakReference;
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v3
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentParentView:Landroid/view/View;
if-ne v3, v4, :cond_3c
goto :goto_3d
:cond_3c
const/4 v1, 0x0
:goto_3d
return v1
.line 522
.end local v0 # "a":I
.end local v2 # "N":I
:cond_3e
return v1
.end method
.method private recycleResources()V
.registers 3
.line 171
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
const/4 v1, 0x0
if-eqz v0, :cond_c
.line 172
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V
.line 173
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
.line 175
:cond_c
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
if-eqz v0, :cond_17
.line 176
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V
.line 177
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
.line 179
:cond_17
return-void
.end method
.method private scheduleNextGetFrame()Z
.registers 6
.line 472
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
if-nez v0, :cond_46
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
if-nez v0, :cond_46
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-nez v0, :cond_46
iget-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_46
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroyWhenDone:Z
if-nez v0, :cond_46
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
if-nez v0, :cond_27
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->decodeSingleFrame:Z
if-eqz v0, :cond_46
if-eqz v0, :cond_27
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
if-eqz v0, :cond_27
goto :goto_46
.line 475
:cond_27
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->newColorUpdates:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->isEmpty()Z
move-result v0
if-nez v0, :cond_3b
.line 476
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->pendingColorUpdates:Ljava/util/HashMap;
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->newColorUpdates:Ljava/util/HashMap;
invoke-virtual {v0, v1}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
.line 477
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->newColorUpdates:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->clear()V
.line 479
:cond_3b
sget-object v0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameRunnableQueue:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameRunnable:Ljava/lang/Runnable;
iput-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
.line 480
const/4 v0, 0x1
return v0
.line 473
:cond_46
:goto_46
const/4 v0, 0x0
return v0
.end method
.method private static native setLayerColor(JLjava/lang/String;I)V
.end method
# virtual methods
.method public addParentView(Landroid/view/View;)V
.registers 5
.param p1, "view" # Landroid/view/View;
.line 305
if-nez p1, :cond_3
.line 306
return-void
.line 308
:cond_3
const/4 v0, 0x0
.local v0, "a":I
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
.local v1, "N":I
:goto_a
if-ge v0, v1, :cond_35
.line 309
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
if-ne v2, p1, :cond_1b
.line 310
return-void
.line 311
:cond_1b
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
if-nez v2, :cond_32
.line 312
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
.line 313
add-int/lit8 v1, v1, -0x1
.line 314
add-int/lit8 v0, v0, -0x1
.line 308
:cond_32
add-int/lit8 v0, v0, 0x1
goto :goto_a
.line 317
.end local v0 # "a":I
.end local v1 # "N":I
:cond_35
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
const/4 v1, 0x0
new-instance v2, Ljava/lang/ref/WeakReference;
invoke-direct {v2, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {v0, v1, v2}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
.line 318
return-void
.end method
.method public beginApplyLayerColors()V
.registers 2
.line 435
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyingLayerColors:Z
.line 436
return-void
.end method
.method public commitApplyLayerColors()V
.registers 4
.line 439
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyingLayerColors:Z
if-nez v0, :cond_5
.line 440
return-void
.line 442
:cond_5
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyingLayerColors:Z
.line 443
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
if-nez v1, :cond_24
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->decodeSingleFrame:Z
if-eqz v1, :cond_24
.line 444
iget v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
const/4 v2, 0x2
if-gt v1, v2, :cond_17
.line 445
iput v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
.line 447
:cond_17
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextFrameIsLast:Z
.line 448
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
.line 449
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
move-result v0
if-nez v0, :cond_24
.line 450
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->forceFrameRedraw:Z
.line 453
:cond_24
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateInternal()V
.line 454
return-void
.end method
.method public draw(Landroid/graphics/Canvas;)V
.registers 13
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 548
iget-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_109
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroyWhenDone:Z
if-eqz v0, :cond_e
goto/16 :goto_109
.line 551
:cond_e
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
.line 552
.local v0, "now":J
iget-wide v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lastFrameTime:J
sub-long v2, v0, v2
invoke-static {v2, v3}, Ljava/lang/Math;->abs(J)J
move-result-wide v2
.line 553
.local v2, "timeDiff":J
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
const/4 v5, 0x0
const/4 v6, 0x1
const/4 v7, 0x0
if-eqz v4, :cond_86
.line 554
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
if-nez v4, :cond_2e
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-nez v4, :cond_2e
.line 555
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
goto/16 :goto_b6
.line 556
:cond_2e
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-eqz v4, :cond_b6
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
if-eqz v4, :cond_3f
iget v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->timeBetweenFrames:I
add-int/lit8 v4, v4, -0x6
int-to-long v8, v4
cmp-long v4, v2, v8
if-ltz v4, :cond_b6
:cond_3f
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isCurrentParentViewMaster()Z
move-result v4
if-eqz v4, :cond_b6
.line 557
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->vibrationPattern:Ljava/util/HashMap;
if-eqz v4, :cond_6b
iget-object v8, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentParentView:Landroid/view/View;
if-eqz v8, :cond_6b
.line 558
iget v8, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
sub-int/2addr v8, v6
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v8
invoke-virtual {v4, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Integer;
.line 559
.local v4, "force":Ljava/lang/Integer;
if-eqz v4, :cond_6b
.line 560
iget-object v8, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentParentView:Landroid/view/View;
invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
move-result v9
if-ne v9, v6, :cond_66
const/4 v9, 0x0
goto :goto_67
:cond_66
const/4 v9, 0x3
:goto_67
const/4 v10, 0x2
invoke-virtual {v8, v9, v10}, Landroid/view/View;->performHapticFeedback(II)Z
.line 564
.end local v4 # "force":Ljava/lang/Integer;
:cond_6b
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
iput-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
.line 565
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
iput-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
.line 566
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextFrameIsLast:Z
if-eqz v4, :cond_7a
.line 567
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->stop()V
.line 569
:cond_7a
iput-object v7, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
.line 570
iput-boolean v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
.line 571
iput-object v7, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
.line 572
iput-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lastFrameTime:J
.line 573
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
goto :goto_b6
.line 575
:cond_86
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->forceFrameRedraw:Z
if-nez v4, :cond_9b
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->decodeSingleFrame:Z
if-eqz v4, :cond_b6
iget v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->timeBetweenFrames:I
add-int/lit8 v4, v4, -0x6
int-to-long v8, v4
cmp-long v4, v2, v8
if-ltz v4, :cond_b6
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-eqz v4, :cond_b6
.line 576
:cond_9b
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
iput-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
.line 577
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
iput-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
.line 578
iput-object v7, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
.line 579
iput-boolean v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
.line 580
iput-object v7, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
.line 581
iput-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->lastFrameTime:J
.line 582
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->forceFrameRedraw:Z
if-eqz v4, :cond_b3
.line 583
iput-boolean v5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
.line 584
iput-boolean v5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->forceFrameRedraw:Z
.line 586
:cond_b3
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
.line 589
:cond_b6
:goto_b6
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
if-eqz v4, :cond_108
.line 590
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyTransformation:Z
if-eqz v4, :cond_e3
.line 591
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getBounds()Landroid/graphics/Rect;
move-result-object v6
invoke-virtual {v4, v6}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
.line 592
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
invoke-virtual {v4}, Landroid/graphics/Rect;->width()I
move-result v4
int-to-float v4, v4
iget v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->width:I
int-to-float v6, v6
div-float/2addr v4, v6
iput v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleX:F
.line 593
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
invoke-virtual {v4}, Landroid/graphics/Rect;->height()I
move-result v4
int-to-float v4, v4
iget v6, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->height:I
int-to-float v6, v6
div-float/2addr v4, v6
iput v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleY:F
.line 594
iput-boolean v5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyTransformation:Z
.line 596
:cond_e3
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
iget v4, v4, Landroid/graphics/Rect;->left:I
int-to-float v4, v4
iget-object v5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->dstRect:Landroid/graphics/Rect;
iget v5, v5, Landroid/graphics/Rect;->top:I
int-to-float v5, v5
invoke-virtual {p1, v4, v5}, Landroid/graphics/Canvas;->translate(FF)V
.line 597
iget v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleX:F
iget v5, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scaleY:F
invoke-virtual {p1, v4, v5}, Landroid/graphics/Canvas;->scale(FF)V
.line 598
iget-object v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->getPaint()Landroid/graphics/Paint;
move-result-object v5
const/4 v6, 0x0
invoke-virtual {p1, v4, v6, v6, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
.line 599
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
if-eqz v4, :cond_108
.line 600
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateInternal()V
.line 603
:cond_108
return-void
.line 549
.end local v0 # "now":J
.end local v2 # "timeDiff":J
:cond_109
:goto_109
return-void
.end method
.method protected finalize()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 399
:try_start_0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->recycle()V
:try_end_3
.catchall {:try_start_0 .. :try_end_3} :catchall_8
.line 401
invoke-super {p0}, Ljava/lang/Object;->finalize()V
.line 402
nop
.line 403
return-void
.line 401
:catchall_8
move-exception v0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
.line 402
throw v0
.end method
.method public getAnimatedBitmap()Landroid/graphics/Bitmap;
.registers 2
.line 628
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
if-eqz v0, :cond_7
.line 629
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
return-object v0
.line 630
:cond_7
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-eqz v0, :cond_e
.line 631
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
return-object v0
.line 633
:cond_e
const/4 v0, 0x0
return-object v0
.end method
.method public getBackgroundBitmap()Landroid/graphics/Bitmap;
.registers 2
.line 624
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->backgroundBitmap:Landroid/graphics/Bitmap;
return-object v0
.end method
.method public getIntrinsicHeight()I
.registers 2
.line 532
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->height:I
return v0
.end method
.method public getIntrinsicWidth()I
.registers 2
.line 537
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->width:I
return v0
.end method
.method public getMinimumHeight()I
.registers 2
.line 607
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->height:I
return v0
.end method
.method public getMinimumWidth()I
.registers 2
.line 612
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->width:I
return v0
.end method
.method public getNextRenderingBitmap()Landroid/graphics/Bitmap;
.registers 2
.line 620
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
return-object v0
.end method
.method public getOpacity()I
.registers 2
.line 407
const/4 v0, -0x2
return v0
.end method
.method public getRenderingBitmap()Landroid/graphics/Bitmap;
.registers 2
.line 616
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
return-object v0
.end method
.method public hasBitmap()Z
.registers 6
.line 637
iget-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_12
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->renderingBitmap:Landroid/graphics/Bitmap;
if-nez v0, :cond_10
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextRenderingBitmap:Landroid/graphics/Bitmap;
if-eqz v0, :cond_12
:cond_10
const/4 v0, 0x1
goto :goto_13
:cond_12
const/4 v0, 0x0
:goto_13
return v0
.end method
.method public isRunning()Z
.registers 2
.line 527
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
return v0
.end method
.method protected onBoundsChange(Landroid/graphics/Rect;)V
.registers 3
.param p1, "bounds" # Landroid/graphics/Rect;
.line 542
invoke-super {p0, p1}, Landroid/graphics/drawable/BitmapDrawable;->onBoundsChange(Landroid/graphics/Rect;)V
.line 543
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyTransformation:Z
.line 544
return-void
.end method
.method public recycle()V
.registers 6
.line 375
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
.line 376
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRecycled:Z
.line 377
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->checkRunningTasks()V
.line 378
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->loadFrameTask:Ljava/lang/Runnable;
if-nez v1, :cond_24
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->cacheGenerateTask:Ljava/lang/Runnable;
if-nez v1, :cond_24
.line 379
iget-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_20
.line 380
iget-wide v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroy(J)V
.line 381
iput-wide v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nativePtr:J
.line 383
:cond_20
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->recycleResources()V
goto :goto_26
.line 385
:cond_24
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->destroyWhenDone:Z
.line 387
:goto_26
return-void
.end method
.method public removeParentView(Landroid/view/View;)V
.registers 6
.param p1, "view" # Landroid/view/View;
.line 321
if-nez p1, :cond_3
.line 322
return-void
.line 324
:cond_3
const/4 v0, 0x0
.local v0, "a":I
iget-object v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
.local v1, "N":I
:goto_a
if-ge v0, v1, :cond_2a
.line 325
iget-object v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/View;
.line 326
.local v2, "v":Landroid/view/View;
if-eq v2, p1, :cond_1e
if-nez v2, :cond_27
.line 327
:cond_1e
iget-object v3, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->parentViews:Ljava/util/ArrayList;
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
.line 328
add-int/lit8 v1, v1, -0x1
.line 329
add-int/lit8 v0, v0, -0x1
.line 324
.end local v2 # "v":Landroid/view/View;
:cond_27
add-int/lit8 v0, v0, 0x1
goto :goto_a
.line 332
.end local v0 # "a":I
.end local v1 # "N":I
:cond_2a
return-void
.end method
.method public restart()Z
.registers 4
.line 421
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
const/4 v1, 0x0
const/4 v2, 0x2
if-lt v0, v2, :cond_14
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeatPlayCount:I
if-nez v0, :cond_b
goto :goto_14
.line 424
:cond_b
iput v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeatPlayCount:I
.line 425
iput v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
.line 426
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->start()V
.line 427
const/4 v0, 0x1
return v0
.line 422
:cond_14
:goto_14
return v1
.end method
.method public setAllowDecodeSingleFrame(Z)V
.registers 2
.param p1, "value" # Z
.line 368
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->decodeSingleFrame:Z
.line 369
if-eqz p1, :cond_7
.line 370
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
.line 372
:cond_7
return-void
.end method
.method public setAutoRepeat(I)V
.registers 4
.param p1, "value" # I
.line 390
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
const/4 v1, 0x2
if-ne v0, v1, :cond_d
const/4 v0, 0x3
if-ne p1, v0, :cond_d
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
if-eqz v0, :cond_d
.line 391
return-void
.line 393
:cond_d
iput p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
.line 394
return-void
.end method
.method public setCurrentFrame(I)V
.registers 3
.param p1, "frame" # I
.line 500
iput p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
.line 501
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextFrameIsLast:Z
.line 502
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateSelf()V
.line 503
return-void
.end method
.method public setCurrentParentView(Landroid/view/View;)V
.registers 2
.param p1, "view" # Landroid/view/View;
.line 506
iput-object p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentParentView:Landroid/view/View;
.line 507
return-void
.end method
.method public setLayerColor(Ljava/lang/String;I)V
.registers 6
.param p1, "layerName" # Ljava/lang/String;
.param p2, "color" # I
.line 457
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->newColorUpdates:Ljava/util/HashMap;
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, p1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 458
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->applyingLayerColors:Z
if-nez v0, :cond_2a
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
if-nez v0, :cond_2a
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->decodeSingleFrame:Z
if-eqz v0, :cond_2a
.line 459
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
const/4 v1, 0x2
const/4 v2, 0x0
if-gt v0, v1, :cond_1d
.line 460
iput v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
.line 462
:cond_1d
iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextFrameIsLast:Z
.line 463
iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->singleFrameDecoded:Z
.line 464
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
move-result v0
if-nez v0, :cond_2a
.line 465
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->forceFrameRedraw:Z
.line 468
:cond_2a
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateInternal()V
.line 469
return-void
.end method
.method public setProgress(F)V
.registers 4
.param p1, "progress" # F
.line 489
const/4 v0, 0x0
cmpg-float v0, p1, v0
if-gez v0, :cond_7
.line 490
const/4 p1, 0x0
goto :goto_f
.line 491
:cond_7
const/high16 v0, 0x3f800000 # 1.0f
cmpl-float v0, p1, v0
if-lez v0, :cond_f
.line 492
const/high16 p1, 0x3f800000 # 1.0f
.line 494
:cond_f
:goto_f
iget-object v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->metaData:[I
const/4 v1, 0x0
aget v0, v0, v1
int-to-float v0, v0
mul-float v0, v0, p1
float-to-int v0, v0
iput v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->currentFrame:I
.line 495
iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->nextFrameIsLast:Z
.line 496
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateSelf()V
.line 497
return-void
.end method
.method public setVibrationPattern(Ljava/util/HashMap;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/HashMap<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
.line 431
.local p1, "pattern":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/Integer;Ljava/lang/Integer;>;"
iput-object p1, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->vibrationPattern:Ljava/util/HashMap;
.line 432
return-void
.end method
.method public start()V
.registers 3
.line 412
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
if-nez v0, :cond_18
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeat:I
const/4 v1, 0x2
if-lt v0, v1, :cond_e
iget v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->autoRepeatPlayCount:I
if-eqz v0, :cond_e
goto :goto_18
.line 415
:cond_e
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
.line 416
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->scheduleNextGetFrame()Z
.line 417
invoke-direct {p0}, Lim/tpelyyftgw/ui/components/RLottieDrawable;->invalidateInternal()V
.line 418
return-void
.line 413
:cond_18
:goto_18
return-void
.end method
.method public stop()V
.registers 2
.line 485
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/RLottieDrawable;->isRunning:Z
.line 486
return-void
.end method