533 lines
11 KiB
Smali
533 lines
11 KiB
Smali
.class public Ln3/l;
|
|
.super Ljava/lang/Object;
|
|
.source "MergePathsContent.java"
|
|
|
|
# interfaces
|
|
.implements Ln3/n;
|
|
.implements Ln3/j;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x13
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/graphics/Path;
|
|
|
|
.field public final b:Landroid/graphics/Path;
|
|
|
|
.field public final c:Landroid/graphics/Path;
|
|
|
|
.field public final d:Ljava/lang/String;
|
|
|
|
.field public final e:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ln3/n;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final f:Lcom/airbnb/lottie/model/content/MergePaths;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/airbnb/lottie/model/content/MergePaths;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Ln3/l;->a:Landroid/graphics/Path;
|
|
|
|
.line 3
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Ln3/l;->b:Landroid/graphics/Path;
|
|
|
|
.line 4
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Ln3/l;->c:Landroid/graphics/Path;
|
|
|
|
.line 5
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/model/content/MergePaths;->c()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Ln3/l;->d:Ljava/lang/String;
|
|
|
|
.line 7
|
|
iput-object p1, p0, Ln3/l;->f:Lcom/airbnb/lottie/model/content/MergePaths;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
iget-object v1, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Ln3/l;->c:Landroid/graphics/Path;
|
|
|
|
iget-object v2, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ln3/n;
|
|
|
|
invoke-interface {v2}, Ln3/n;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Ljava/util/List;Ljava/util/List;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ln3/c;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Ln3/c;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
iget-object v1, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ln3/n;
|
|
|
|
invoke-interface {v1, p1, p2}, Ln3/c;->b(Ljava/util/List;Ljava/util/List;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Landroid/graphics/Path$Op;)V
|
|
.locals 7
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x13
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ln3/l;->b:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ln3/l;->a:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
:goto_0
|
|
if-lt v0, v1, :cond_2
|
|
|
|
.line 4
|
|
iget-object v2, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ln3/n;
|
|
|
|
.line 5
|
|
instance-of v3, v2, Ln3/d;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 6
|
|
check-cast v2, Ln3/d;
|
|
|
|
invoke-virtual {v2}, Ln3/d;->i()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
.line 7
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v4, v1
|
|
|
|
:goto_1
|
|
if-ltz v4, :cond_1
|
|
|
|
.line 8
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ln3/n;
|
|
|
|
invoke-interface {v5}, Ln3/n;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v5
|
|
|
|
.line 9
|
|
invoke-virtual {v2}, Ln3/d;->j()Landroid/graphics/Matrix;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v5, v6}, Landroid/graphics/Path;->transform(Landroid/graphics/Matrix;)V
|
|
|
|
.line 10
|
|
iget-object v6, p0, Ln3/l;->b:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v6, v5}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;)V
|
|
|
|
add-int/lit8 v4, v4, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 11
|
|
:cond_0
|
|
iget-object v3, p0, Ln3/l;->b:Landroid/graphics/Path;
|
|
|
|
invoke-interface {v2}, Ln3/n;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v3, v2}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;)V
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_2
|
|
iget-object v0, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ln3/n;
|
|
|
|
.line 13
|
|
instance-of v2, v0, Ln3/d;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 14
|
|
check-cast v0, Ln3/d;
|
|
|
|
invoke-virtual {v0}, Ln3/d;->i()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
.line 15
|
|
:goto_2
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v1, v3, :cond_4
|
|
|
|
.line 16
|
|
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ln3/n;
|
|
|
|
invoke-interface {v3}, Ln3/n;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v3
|
|
|
|
.line 17
|
|
invoke-virtual {v0}, Ln3/d;->j()Landroid/graphics/Matrix;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Landroid/graphics/Path;->transform(Landroid/graphics/Matrix;)V
|
|
|
|
.line 18
|
|
iget-object v4, p0, Ln3/l;->a:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v4, v3}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 19
|
|
:cond_3
|
|
iget-object v1, p0, Ln3/l;->a:Landroid/graphics/Path;
|
|
|
|
invoke-interface {v0}, Ln3/n;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Landroid/graphics/Path;->set(Landroid/graphics/Path;)V
|
|
|
|
.line 20
|
|
:cond_4
|
|
iget-object v0, p0, Ln3/l;->c:Landroid/graphics/Path;
|
|
|
|
iget-object v1, p0, Ln3/l;->a:Landroid/graphics/Path;
|
|
|
|
iget-object v2, p0, Ln3/l;->b:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0, v1, v2, p1}, Landroid/graphics/Path;->op(Landroid/graphics/Path;Landroid/graphics/Path;Landroid/graphics/Path$Op;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f(Ljava/util/ListIterator;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ListIterator<",
|
|
"Ln3/c;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->hasPrevious()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eq v0, p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->hasPrevious()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ln3/c;
|
|
|
|
.line 4
|
|
instance-of v1, v0, Ln3/n;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 5
|
|
iget-object v1, p0, Ln3/l;->e:Ljava/util/List;
|
|
|
|
check-cast v0, Ln3/n;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 6
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->remove()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public getName()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ln3/l;->d:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getPath()Landroid/graphics/Path;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ln3/l;->c:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ln3/l;->f:Lcom/airbnb/lottie/model/content/MergePaths;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/model/content/MergePaths;->d()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
iget-object v0, p0, Ln3/l;->c:Landroid/graphics/Path;
|
|
|
|
return-object v0
|
|
|
|
.line 4
|
|
:cond_0
|
|
sget-object v0, Ln3/l$a;->a:[I
|
|
|
|
iget-object v1, p0, Ln3/l;->f:Lcom/airbnb/lottie/model/content/MergePaths;
|
|
|
|
invoke-virtual {v1}, Lcom/airbnb/lottie/model/content/MergePaths;->b()Lcom/airbnb/lottie/model/content/MergePaths$MergePathsMode;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v0, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_5
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_1
|
|
sget-object v0, Landroid/graphics/Path$Op;->XOR:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Ln3/l;->c(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_2
|
|
sget-object v0, Landroid/graphics/Path$Op;->INTERSECT:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Ln3/l;->c(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_3
|
|
sget-object v0, Landroid/graphics/Path$Op;->REVERSE_DIFFERENCE:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Ln3/l;->c(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_4
|
|
sget-object v0, Landroid/graphics/Path$Op;->UNION:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Ln3/l;->c(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_5
|
|
invoke-virtual {p0}, Ln3/l;->a()V
|
|
|
|
.line 10
|
|
:goto_0
|
|
iget-object v0, p0, Ln3/l;->c:Landroid/graphics/Path;
|
|
|
|
return-object v0
|
|
.end method
|