今奥全景相机
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.

167 lines
5.0 KiB

.class Lcom/viatech/gallery/ClipAudioView$1;
.super Ljava/lang/Object;
.source "ClipAudioView.java"
# interfaces
.implements Landroid/media/MediaPlayer$OnPreparedListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/gallery/ClipAudioView;->setClipAudioFile(Ljava/io/File;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/gallery/ClipAudioView;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/ClipAudioView;)V
.locals 0
.prologue
.line 51
iput-object p1, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onPrepared(Landroid/media/MediaPlayer;)V
.locals 6
.prologue
const/16 v1, 0x110
.line 55
iget-object v0, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v0}, Lcom/viatech/gallery/ClipAudioView;->access$000(Lcom/viatech/gallery/ClipAudioView;)Landroid/media/MediaPlayer;
move-result-object v0
invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V
.line 56
iget-object v0, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v0}, Lcom/viatech/gallery/ClipAudioView;->access$100(Lcom/viatech/gallery/ClipAudioView;)Landroid/os/Handler;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V
.line 57
iget-object v0, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v0}, Lcom/viatech/gallery/ClipAudioView;->access$100(Lcom/viatech/gallery/ClipAudioView;)Landroid/os/Handler;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z
.line 58
iget-object v0, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
iget-object v1, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v1}, Lcom/viatech/gallery/ClipAudioView;->access$000(Lcom/viatech/gallery/ClipAudioView;)Landroid/media/MediaPlayer;
move-result-object v1
invoke-virtual {v1}, Landroid/media/MediaPlayer;->getDuration()I
move-result v1
int-to-long v2, v1
invoke-static {v0, v2, v3}, Lcom/viatech/gallery/ClipAudioView;->access$202(Lcom/viatech/gallery/ClipAudioView;J)J
.line 59
iget-object v0, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v0}, Lcom/viatech/gallery/ClipAudioView;->access$300(Lcom/viatech/gallery/ClipAudioView;)Lcom/viatech/gallery/ClipAudioBar;
move-result-object v0
iget-object v1, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v1}, Lcom/viatech/gallery/ClipAudioView;->access$200(Lcom/viatech/gallery/ClipAudioView;)J
move-result-wide v2
invoke-virtual {v0, v2, v3}, Lcom/viatech/gallery/ClipAudioBar;->setTimeLength(J)V
.line 60
new-instance v0, Ljava/text/DecimalFormat;
invoke-direct {v0}, Ljava/text/DecimalFormat;-><init>()V
.line 61
const-string v1, "0.0"
invoke-virtual {v0, v1}, Ljava/text/DecimalFormat;->applyPattern(Ljava/lang/String;)V
.line 62
iget-object v1, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v1}, Lcom/viatech/gallery/ClipAudioView;->access$400(Lcom/viatech/gallery/ClipAudioView;)Landroid/widget/TextView;
move-result-object v1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, ""
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget-object v3, p0, Lcom/viatech/gallery/ClipAudioView$1;->this$0:Lcom/viatech/gallery/ClipAudioView;
invoke-static {v3}, Lcom/viatech/gallery/ClipAudioView;->access$200(Lcom/viatech/gallery/ClipAudioView;)J
move-result-wide v4
long-to-float v3, v4
const/high16 v4, 0x447a0000 # 1000.0f
div-float/2addr v3, v4
float-to-double v4, v3
invoke-virtual {v0, v4, v5}, Ljava/text/DecimalFormat;->format(D)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
const-string v2, "sec."
invoke-virtual {v0, v2}, 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-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 63
return-void
.end method