今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

302 lines
9.0 KiB

.class Lcom/viatech/camera/CameraControlView$24;
.super Ljava/lang/Object;
.source "CameraControlView.java"
# interfaces
.implements Lcom/viatech/util/HttpDownloadManager$OnDownloadListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/camera/CameraControlView;->downloadAndDeleteFile(Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/camera/CameraControlView;
.field final synthetic val$filename:Ljava/lang/String;
# direct methods
.method constructor <init>(Lcom/viatech/camera/CameraControlView;Ljava/lang/String;)V
.locals 0
.prologue
.line 2347
iput-object p1, p0, Lcom/viatech/camera/CameraControlView$24;->this$0:Lcom/viatech/camera/CameraControlView;
iput-object p2, p0, Lcom/viatech/camera/CameraControlView$24;->val$filename:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onDownloadEnd(Lcom/viatech/util/DownloadTask;Z)V
.locals 6
.prologue
const/4 v5, 0x0
.line 2370
const-string v0, "Vpai_CameraControlView"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "onDownloadEnd success: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 2371
if-eqz p2, :cond_1
.line 2373
:try_start_0
invoke-virtual {p1}, Lcom/viatech/util/DownloadTask;->getFilePath()Ljava/lang/String;
move-result-object v0
.line 2374
new-instance v1, Ljava/io/File;
invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 2375
invoke-static {v1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
move-result-object v1
.line 2376
new-instance v2, Landroid/graphics/BitmapFactory$Options;
invoke-direct {v2}, Landroid/graphics/BitmapFactory$Options;-><init>()V
.line 2377
const/4 v3, 0x1
iput-boolean v3, v2, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z
.line 2378
iget-object v3, p0, Lcom/viatech/camera/CameraControlView$24;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v3}, Lcom/viatech/camera/CameraControlView;->access$4100(Lcom/viatech/camera/CameraControlView;)Landroid/app/Activity;
move-result-object v3
invoke-virtual {v3}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v3
const-string v4, "r"
invoke-virtual {v3, v1, v4}, Landroid/content/ContentResolver;->openFileDescriptor(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;
move-result-object v3
.line 2379
invoke-virtual {v3}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
move-result-object v3
const/4 v4, 0x0
invoke-static {v3, v4, v2}, Landroid/graphics/BitmapFactory;->decodeFileDescriptor(Ljava/io/FileDescriptor;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.line 2380
iget v3, v2, Landroid/graphics/BitmapFactory$Options;->outWidth:I
.line 2381
iget v2, v2, Landroid/graphics/BitmapFactory$Options;->outHeight:I
.line 2382
new-instance v4, Lcom/via/vpailib/mediarecorder/JpegInsertTag;
invoke-direct {v4}, Lcom/via/vpailib/mediarecorder/JpegInsertTag;-><init>()V
.line 2384
invoke-virtual {v4, v0, v3, v2}, Lcom/via/vpailib/mediarecorder/JpegInsertTag;->repalcePanoTag(Ljava/lang/String;II)I
.line 2385
sget-boolean v0, Lcom/viatech/a;->v:Z
if-eqz v0, :cond_0
.line 2386
new-instance v0, Landroid/content/Intent;
const-string v2, "android.intent.action.MEDIA_SCANNER_SCAN_FILE"
invoke-direct {v0, v2, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
.line 2387
iget-object v1, p0, Lcom/viatech/camera/CameraControlView$24;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v1}, Lcom/viatech/camera/CameraControlView;->access$4100(Lcom/viatech/camera/CameraControlView;)Landroid/app/Activity;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/app/Activity;->sendBroadcast(Landroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 2394
:cond_0
:goto_0
sget-object v0, Lcom/viatech/camera/CameraControlView;->mCurVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v1, p0, Lcom/viatech/camera/CameraControlView$24;->val$filename:Ljava/lang/String;
invoke-virtual {v0, v1, v5}, Lcom/viatech/device/VPaiDevice;->requestDeleteRemoteFile(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)V
.line 2398
:goto_1
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$24;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$4100(Lcom/viatech/camera/CameraControlView;)Landroid/app/Activity;
move-result-object v0
new-instance v1, Lcom/viatech/camera/CameraControlView$24$2;
invoke-direct {v1, p0}, Lcom/viatech/camera/CameraControlView$24$2;-><init>(Lcom/viatech/camera/CameraControlView$24;)V
invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2435
return-void
.line 2389
:catch_0
move-exception v0
.line 2390
const-string v1, "Vpai_CameraControlView"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "e:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
.line 2396
:cond_1
const v0, 0x7f070094
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V
goto :goto_1
.end method
.method public onDownloadProgress(Lcom/viatech/util/DownloadTask;I)V
.locals 3
.prologue
.line 2440
const-string v0, "Vpai_CameraControlView"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "onDownloadProgress oprogress: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 2442
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$24;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$4100(Lcom/viatech/camera/CameraControlView;)Landroid/app/Activity;
move-result-object v0
new-instance v1, Lcom/viatech/camera/CameraControlView$24$3;
invoke-direct {v1, p0, p2, p2}, Lcom/viatech/camera/CameraControlView$24$3;-><init>(Lcom/viatech/camera/CameraControlView$24;II)V
invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2452
return-void
.end method
.method public onDownloadStart(Lcom/viatech/util/DownloadTask;)V
.locals 2
.prologue
.line 2350
const-string v0, "Vpai_CameraControlView"
const-string v1, "onDownloadStart"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 2351
iget-object v0, p0, Lcom/viatech/camera/CameraControlView$24;->this$0:Lcom/viatech/camera/CameraControlView;
invoke-static {v0}, Lcom/viatech/camera/CameraControlView;->access$4100(Lcom/viatech/camera/CameraControlView;)Landroid/app/Activity;
move-result-object v0
new-instance v1, Lcom/viatech/camera/CameraControlView$24$1;
invoke-direct {v1, p0}, Lcom/viatech/camera/CameraControlView$24$1;-><init>(Lcom/viatech/camera/CameraControlView$24;)V
invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
.line 2366
return-void
.end method