188 lines
4.7 KiB
Smali
188 lines
4.7 KiB
Smali
|
.class public Lcom/otaliastudios/cameraview/CameraView$b$e;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "CameraView.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/lang/Runnable;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/otaliastudios/cameraview/CameraView$b;->e(Lf/m/a/o/a;Landroid/graphics/PointF;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x1
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final synthetic d:Landroid/graphics/PointF;
|
||
|
|
||
|
.field public final synthetic e:Lf/m/a/o/a;
|
||
|
|
||
|
.field public final synthetic f:Lcom/otaliastudios/cameraview/CameraView$b;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/otaliastudios/cameraview/CameraView$b;Landroid/graphics/PointF;Lf/m/a/o/a;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->f:Lcom/otaliastudios/cameraview/CameraView$b;
|
||
|
|
||
|
iput-object p2, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->d:Landroid/graphics/PointF;
|
||
|
|
||
|
iput-object p3, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->e:Lf/m/a/o/a;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public run()V
|
||
|
.locals 5
|
||
|
|
||
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->f:Lcom/otaliastudios/cameraview/CameraView$b;
|
||
|
|
||
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
||
|
|
||
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->B:Lf/m/a/q/c;
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
new-array v2, v1, [Landroid/graphics/PointF;
|
||
|
|
||
|
iget-object v3, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->d:Landroid/graphics/PointF;
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
aput-object v3, v2, v4
|
||
|
|
||
|
iget-object v0, v0, Lf/m/a/q/c;->d:Ljava/util/HashMap;
|
||
|
|
||
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/view/View;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V
|
||
|
|
||
|
aget-object v1, v2, v4
|
||
|
|
||
|
iget v2, v1, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
div-int/lit8 v3, v3, 0x2
|
||
|
|
||
|
int-to-float v3, v3
|
||
|
|
||
|
sub-float/2addr v2, v3
|
||
|
|
||
|
float-to-int v2, v2
|
||
|
|
||
|
int-to-float v2, v2
|
||
|
|
||
|
iget v1, v1, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
div-int/lit8 v3, v3, 0x2
|
||
|
|
||
|
int-to-float v3, v3
|
||
|
|
||
|
sub-float/2addr v1, v3
|
||
|
|
||
|
float-to-int v1, v1
|
||
|
|
||
|
int-to-float v1, v1
|
||
|
|
||
|
invoke-virtual {v0, v2}, Landroid/view/View;->setTranslationX(F)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->setTranslationY(F)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->f:Lcom/otaliastudios/cameraview/CameraView$b;
|
||
|
|
||
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
||
|
|
||
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->t:Lf/m/a/q/a;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->e:Lf/m/a/o/a;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
sget-object v0, Lf/m/a/q/b;->d:Lf/m/a/q/b;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
sget-object v0, Lf/m/a/q/b;->e:Lf/m/a/q/b;
|
||
|
|
||
|
:goto_1
|
||
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->f:Lcom/otaliastudios/cameraview/CameraView$b;
|
||
|
|
||
|
iget-object v1, v1, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
||
|
|
||
|
iget-object v1, v1, Lcom/otaliastudios/cameraview/CameraView;->t:Lf/m/a/q/a;
|
||
|
|
||
|
iget-object v2, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->d:Landroid/graphics/PointF;
|
||
|
|
||
|
invoke-interface {v1, v0, v2}, Lf/m/a/q/a;->a(Lf/m/a/q/b;Landroid/graphics/PointF;)V
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b$e;->f:Lcom/otaliastudios/cameraview/CameraView$b;
|
||
|
|
||
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
||
|
|
||
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->u:Ljava/util/List;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Lf/m/a/a;
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_4
|
||
|
return-void
|
||
|
.end method
|