.class public abstract Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;
.super Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer;
.source "AdSplashVideoPlayer.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer<",
        "Lcom/moji/mjad/splash/data/AdSplashVideo;",
        ">;"
    }
.end annotation


# instance fields
.field private c:[C

.field private d:Ljava/security/MessageDigest;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 27
    invoke-direct {p0, p1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer;-><init>(Landroid/content/Context;)V

    const/16 p1, 0x10

    .line 22
    new-array p1, p1, [C

    fill-array-data p1, :array_0

    iput-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->c:[C

    const/4 p1, 0x0

    .line 24
    iput-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->d:Ljava/security/MessageDigest;

    :try_start_0
    const-string p1, "MD5"

    .line 29
    invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->d:Ljava/security/MessageDigest;
    :try_end_0
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string v0, "SplashViewCreater"

    const-string v1, "sea SplashViewCreater\u521d\u59cb\u5316\u5931\u8d25\uff0cMessageDigest\u4e0d\u652f\u6301MD5Util"

    .line 31
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "AdSplashVideoPlayer"

    .line 32
    invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_0
    return-void

    :array_0
    .array-data 2
        0x30s
        0x31s
        0x32s
        0x33s
        0x34s
        0x35s
        0x36s
        0x37s
        0x38s
        0x39s
        0x61s
        0x62s
        0x63s
        0x64s
        0x65s
        0x66s
    .end array-data
.end method

.method private a(Ljava/io/File;)Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    .line 46
    :try_start_0
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/16 p1, 0x400

    .line 47
    :try_start_1
    new-array p1, p1, [B

    .line 49
    :goto_0
    invoke-virtual {v1, p1}, Ljava/io/InputStream;->read([B)I

    move-result v0

    if-lez v0, :cond_0

    .line 50
    iget-object v2, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->d:Ljava/security/MessageDigest;

    const/4 v3, 0x0

    invoke-virtual {v2, p1, v3, v0}, Ljava/security/MessageDigest;->update([BII)V

    goto :goto_0

    .line 52
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->d:Ljava/security/MessageDigest;

    invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a([B)Ljava/lang/String;

    move-result-object p1
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 59
    :try_start_2
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    const-string v1, "AdSplashVideoPlayer"

    .line 62
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_1
    return-object p1

    :catchall_0
    move-exception p1

    goto :goto_4

    :catch_1
    move-exception p1

    move-object v0, v1

    goto :goto_2

    :catchall_1
    move-exception p1

    move-object v1, v0

    goto :goto_4

    :catch_2
    move-exception p1

    :goto_2
    :try_start_3
    const-string v1, "sea"

    .line 54
    invoke-static {v1, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    const-string p1, ""
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    if-eqz v0, :cond_1

    .line 59
    :try_start_4
    invoke-virtual {v0}, Ljava/io/InputStream;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3

    goto :goto_3

    :catch_3
    move-exception v0

    const-string v1, "AdSplashVideoPlayer"

    .line 62
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_1
    :goto_3
    return-object p1

    :goto_4
    if-eqz v1, :cond_2

    .line 59
    :try_start_5
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4

    goto :goto_5

    :catch_4
    move-exception v0

    const-string v1, "AdSplashVideoPlayer"

    .line 62
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 64
    :cond_2
    :goto_5
    throw p1
.end method

.method private a([B)Ljava/lang/String;
    .locals 2

    .line 81
    array-length v0, p1

    const/4 v1, 0x0

    invoke-direct {p0, p1, v1, v0}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a([BII)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a([BII)Ljava/lang/String;
    .locals 2

    .line 85
    new-instance v0, Ljava/lang/StringBuffer;

    mul-int/lit8 v1, p3, 0x2

    invoke-direct {v0, v1}, Ljava/lang/StringBuffer;-><init>(I)V

    add-int/2addr p3, p2

    :goto_0
    if-ge p2, p3, :cond_0

    .line 88
    aget-byte v1, p1, p2

    invoke-direct {p0, v1, v0}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a(BLjava/lang/StringBuffer;)V

    add-int/lit8 p2, p2, 0x1

    goto :goto_0

    .line 90
    :cond_0
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(BLjava/lang/StringBuffer;)V
    .locals 2

    .line 94
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->c:[C

    and-int/lit16 v1, p1, 0xf0

    shr-int/lit8 v1, v1, 0x4

    aget-char v0, v0, v1

    .line 95
    iget-object v1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->c:[C

    and-int/lit8 p1, p1, 0xf

    aget-char p1, v1, p1

    .line 96
    invoke-virtual {p2, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 97
    invoke-virtual {p2, p1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    return-void
.end method


# virtual methods
.method protected a(Ljava/io/File;Ljava/lang/String;)Z
    .locals 1

    .line 75
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 p1, 0x0

    return p1

    .line 77
    :cond_0
    invoke-direct {p0, p1}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;->a(Ljava/io/File;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    return p1
.end method
