480 lines
10 KiB
Smali
480 lines
10 KiB
Smali
.class public Le/d/a/s/b/l;
|
|
.super Ljava/lang/Object;
|
|
.source "MergePathsContent.java"
|
|
|
|
# interfaces
|
|
.implements Le/d/a/s/b/m;
|
|
.implements Le/d/a/s/b/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/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Le/d/a/s/b/m;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:Le/d/a/u/k/h;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Le/d/a/u/k/h;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Le/d/a/s/b/l;->a:Landroid/graphics/Path;
|
|
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Le/d/a/s/b/l;->b:Landroid/graphics/Path;
|
|
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Le/d/a/s/b/l;->c:Landroid/graphics/Path;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
iget-object v0, p1, Le/d/a/u/k/h;->a:Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Le/d/a/s/b/l;->e:Le/d/a/u/k/h;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/graphics/Path$Op;)V
|
|
.locals 7
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x13
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Le/d/a/s/b/l;->b:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
iget-object v0, p0, Le/d/a/s/b/l;->a:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
iget-object v0, p0, Le/d/a/s/b/l;->d: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_3
|
|
|
|
iget-object v2, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Le/d/a/s/b/m;
|
|
|
|
instance-of v3, v2, Le/d/a/s/b/d;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
check-cast v2, Le/d/a/s/b/d;
|
|
|
|
invoke-virtual {v2}, Le/d/a/s/b/d;->b()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v4, v1
|
|
|
|
:goto_1
|
|
if-ltz v4, :cond_2
|
|
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Le/d/a/s/b/m;
|
|
|
|
invoke-interface {v5}, Le/d/a/s/b/m;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v5
|
|
|
|
iget-object v6, v2, Le/d/a/s/b/d;->i:Le/d/a/s/c/o;
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
invoke-virtual {v6}, Le/d/a/s/c/o;->b()Landroid/graphics/Matrix;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
iget-object v6, v2, Le/d/a/s/b/d;->a:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v6}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
iget-object v6, v2, Le/d/a/s/b/d;->a:Landroid/graphics/Matrix;
|
|
|
|
:goto_2
|
|
invoke-virtual {v5, v6}, Landroid/graphics/Path;->transform(Landroid/graphics/Matrix;)V
|
|
|
|
iget-object v6, p0, Le/d/a/s/b/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
|
|
|
|
:cond_1
|
|
iget-object v3, p0, Le/d/a/s/b/l;->b:Landroid/graphics/Path;
|
|
|
|
invoke-interface {v2}, Le/d/a/s/b/m;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v3, v2}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;)V
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Le/d/a/s/b/l;->d: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, Le/d/a/s/b/m;
|
|
|
|
instance-of v2, v0, Le/d/a/s/b/d;
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
check-cast v0, Le/d/a/s/b/d;
|
|
|
|
invoke-virtual {v0}, Le/d/a/s/b/d;->b()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_3
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v1, v3, :cond_6
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Le/d/a/s/b/m;
|
|
|
|
invoke-interface {v3}, Le/d/a/s/b/m;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, v0, Le/d/a/s/b/d;->i:Le/d/a/s/c/o;
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
invoke-virtual {v4}, Le/d/a/s/c/o;->b()Landroid/graphics/Matrix;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
iget-object v4, v0, Le/d/a/s/b/d;->a:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
iget-object v4, v0, Le/d/a/s/b/d;->a:Landroid/graphics/Matrix;
|
|
|
|
:goto_4
|
|
invoke-virtual {v3, v4}, Landroid/graphics/Path;->transform(Landroid/graphics/Matrix;)V
|
|
|
|
iget-object v4, p0, Le/d/a/s/b/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_3
|
|
|
|
:cond_5
|
|
iget-object v1, p0, Le/d/a/s/b/l;->a:Landroid/graphics/Path;
|
|
|
|
invoke-interface {v0}, Le/d/a/s/b/m;->getPath()Landroid/graphics/Path;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Landroid/graphics/Path;->set(Landroid/graphics/Path;)V
|
|
|
|
:cond_6
|
|
iget-object v0, p0, Le/d/a/s/b/l;->c:Landroid/graphics/Path;
|
|
|
|
iget-object v1, p0, Le/d/a/s/b/l;->a:Landroid/graphics/Path;
|
|
|
|
iget-object v2, p0, Le/d/a/s/b/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 a(Ljava/util/List;Ljava/util/List;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Le/d/a/s/b/c;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Le/d/a/s/b/c;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v1, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Le/d/a/s/b/m;
|
|
|
|
invoke-interface {v1, p1, p2}, Le/d/a/s/b/c;->a(Ljava/util/List;Ljava/util/List;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/ListIterator;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ListIterator<",
|
|
"Le/d/a/s/b/c;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
: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
|
|
|
|
:cond_0
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->hasPrevious()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Le/d/a/s/b/c;
|
|
|
|
instance-of v1, v0, Le/d/a/s/b/m;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
check-cast v0, Le/d/a/s/b/m;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {p1}, Ljava/util/ListIterator;->remove()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public getPath()Landroid/graphics/Path;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Le/d/a/s/b/l;->c:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
iget-object v0, p0, Le/d/a/s/b/l;->e:Le/d/a/u/k/h;
|
|
|
|
iget-boolean v1, v0, Le/d/a/u/k/h;->c:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v0, p0, Le/d/a/s/b/l;->c:Landroid/graphics/Path;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Le/d/a/u/k/h;->b:Le/d/a/u/k/h$a;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sget-object v0, Landroid/graphics/Path$Op;->XOR:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Le/d/a/s/b/l;->a(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
sget-object v0, Landroid/graphics/Path$Op;->INTERSECT:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Le/d/a/s/b/l;->a(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
sget-object v0, Landroid/graphics/Path$Op;->REVERSE_DIFFERENCE:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Le/d/a/s/b/l;->a(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
sget-object v0, Landroid/graphics/Path$Op;->UNION:Landroid/graphics/Path$Op;
|
|
|
|
invoke-virtual {p0, v0}, Le/d/a/s/b/l;->a(Landroid/graphics/Path$Op;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_6
|
|
|
|
iget-object v1, p0, Le/d/a/s/b/l;->c:Landroid/graphics/Path;
|
|
|
|
iget-object v2, p0, Le/d/a/s/b/l;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Le/d/a/s/b/m;
|
|
|
|
invoke-interface {v2}, Le/d/a/s/b/m;->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_6
|
|
:goto_1
|
|
iget-object v0, p0, Le/d/a/s/b/l;->c:Landroid/graphics/Path;
|
|
|
|
return-object v0
|
|
.end method
|