184 lines
5.6 KiB
Smali
184 lines
5.6 KiB
Smali
|
.class Lcom/android/camera/CropImage$6$1;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "CropImage.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/lang/Runnable;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/android/camera/CropImage$6;->run()V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/android/camera/CropImage$6;)V
|
||
|
.locals 0
|
||
|
.param p1, "this$1" # Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
.prologue
|
||
|
iput-object p1, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public run()V
|
||
|
.locals 6
|
||
|
|
||
|
.prologue
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v5, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget v2, v2, Lcom/android/camera/CropImage$6;->mNumFaces:I
|
||
|
|
||
|
if-le v2, v3, :cond_0
|
||
|
|
||
|
move v2, v3
|
||
|
|
||
|
:goto_0
|
||
|
iput-boolean v2, v5, Lcom/android/camera/CropImage;->mWaitingToPick:Z
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget v2, v2, Lcom/android/camera/CropImage$6;->mNumFaces:I
|
||
|
|
||
|
if-lez v2, :cond_1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.local v0, "i":I
|
||
|
:goto_1
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget v2, v2, Lcom/android/camera/CropImage$6;->mNumFaces:I
|
||
|
|
||
|
if-ge v0, v2, :cond_2
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v5, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v5, v5, Lcom/android/camera/CropImage$6;->mFaces:[Landroid/media/FaceDetector$Face;
|
||
|
|
||
|
aget-object v5, v5, v0
|
||
|
|
||
|
invoke-static {v2, v5}, Lcom/android/camera/CropImage$6;->access$1200(Lcom/android/camera/CropImage$6;Landroid/media/FaceDetector$Face;)V
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.end local v0 # "i":I
|
||
|
:cond_0
|
||
|
move v2, v4
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
invoke-static {v2}, Lcom/android/camera/CropImage$6;->access$1300(Lcom/android/camera/CropImage$6;)V
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
invoke-static {v2}, Lcom/android/camera/CropImage;->access$300(Lcom/android/camera/CropImage;)Lcom/android/camera/CropImageView;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/android/camera/CropImageView;->invalidate()V
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
invoke-static {v2}, Lcom/android/camera/CropImage;->access$300(Lcom/android/camera/CropImage;)Lcom/android/camera/CropImageView;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImageView;->mHighlightViews:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-ne v2, v3, :cond_3
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v5, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
invoke-static {v2}, Lcom/android/camera/CropImage;->access$300(Lcom/android/camera/CropImage;)Lcom/android/camera/CropImageView;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImageView;->mHighlightViews:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lcom/android/camera/HighlightView;
|
||
|
|
||
|
iput-object v2, v5, Lcom/android/camera/CropImage;->mCrop:Lcom/android/camera/HighlightView;
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImage;->mCrop:Lcom/android/camera/HighlightView;
|
||
|
|
||
|
invoke-virtual {v2, v3}, Lcom/android/camera/HighlightView;->setFocus(Z)V
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget v2, v2, Lcom/android/camera/CropImage$6;->mNumFaces:I
|
||
|
|
||
|
if-le v2, v3, :cond_4
|
||
|
|
||
|
iget-object v2, p0, Lcom/android/camera/CropImage$6$1;->this$1:Lcom/android/camera/CropImage$6;
|
||
|
|
||
|
iget-object v2, v2, Lcom/android/camera/CropImage$6;->this$0:Lcom/android/camera/CropImage;
|
||
|
|
||
|
sget v3, Lcom/android/camera/R$string;->multiface_crop_help:I
|
||
|
|
||
|
invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.local v1, "t":Landroid/widget/Toast;
|
||
|
invoke-virtual {v1}, Landroid/widget/Toast;->show()V
|
||
|
|
||
|
.end local v1 # "t":Landroid/widget/Toast;
|
||
|
:cond_4
|
||
|
return-void
|
||
|
.end method
|