bie.smali

.class public Ldxoptimizer/bie;
.super Ldxoptimizer/big;
.source "GlobalNetDev.java"


# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
    .registers 3

    .prologue
    .line 22
    invoke-direct {p0, p1, p2}, Ldxoptimizer/big;-><init>(Ljava/lang/String;I)V

    .line 23
    return-void
.end method


# virtual methods
.method public a()Z
    .registers 3

    .prologue
    .line 27
    new-instance v0, Ljava/io/File;

    const-string v1, "/proc/net/dev"

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 28
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_15

    invoke-virtual {v0}, Ljava/io/File;->canRead()Z

    move-result v0

    if-eqz v0, :cond_15

    const/4 v0, 0x1

    :goto_14
    return v0

    :cond_15
    const/4 v0, 0x0

    goto :goto_14
.end method

.method public b()Ldxoptimizer/bhx;
    .registers 8

    .prologue
    const/4 v0, 0x0

    .line 33
    invoke-virtual {p0}, Ldxoptimizer/bie;->d()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_10

    .line 34
    invoke-virtual {p0}, Ldxoptimizer/bie;->c()Ldxoptimizer/bhx;

    move-result-object v0

    .line 68
    :cond_f
    :goto_f
    return-object v0

    .line 39
    :cond_10
    :try_start_10
    new-instance v1, Ljava/io/BufferedReader;

    new-instance v2, Ljava/io/FileReader;

    const-string v3, "/proc/net/dev"

    invoke-direct {v2, v3}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V

    invoke-direct {v1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_1c} :catch_62
    .catchall {:try_start_10 .. :try_end_1c} :catchall_6c

    .line 41
    :cond_1c
    :try_start_1c
    invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_5a

    .line 42
    const-string v3, "|"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1c

    .line 45
    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    const-string v3, "\\s+|:\\s*"

    invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    .line 46
    invoke-virtual {p0}, Ldxoptimizer/bie;->d()Ljava/lang/String;

    move-result-object v2

    const/4 v4, 0x0

    aget-object v4, v3, v4

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

    move-result v2

    if-eqz v2, :cond_1c

    .line 47
    new-instance v2, Ldxoptimizer/bhx;

    invoke-direct {v2}, Ldxoptimizer/bhx;-><init>()V
    :try_end_46
    .catch Ljava/lang/Exception; {:try_start_1c .. :try_end_46} :catch_7a
    .catchall {:try_start_1c .. :try_end_46} :catchall_78

    .line 48
    const/4 v0, 0x1

    :try_start_47
    aget-object v0, v3, v0

    invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, v2, Ldxoptimizer/bhx;->b:J

    .line 49
    const/16 v0, 0x9

    aget-object v0, v3, v0

    invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, v2, Ldxoptimizer/bhx;->c:J
    :try_end_59
    .catch Ljava/lang/Exception; {:try_start_47 .. :try_end_59} :catch_7c
    .catchall {:try_start_47 .. :try_end_59} :catchall_78

    move-object v0, v2

    .line 58
    :cond_5a
    if-eqz v1, :cond_f

    .line 60
    :try_start_5c
    invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
    :try_end_5f
    .catch Ljava/io/IOException; {:try_start_5c .. :try_end_5f} :catch_60

    goto :goto_f

    .line 61
    :catch_60
    move-exception v1

    goto :goto_f

    .line 53
    :catch_62
    move-exception v1

    move-object v1, v0

    .line 58
    :goto_64
    if-eqz v1, :cond_f

    .line 60
    :try_start_66
    invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
    :try_end_69
    .catch Ljava/io/IOException; {:try_start_66 .. :try_end_69} :catch_6a

    goto :goto_f

    .line 61
    :catch_6a
    move-exception v1

    goto :goto_f

    .line 58
    :catchall_6c
    move-exception v1

    move-object v6, v1

    move-object v1, v0

    move-object v0, v6

    :goto_70
    if-eqz v1, :cond_75

    .line 60
    :try_start_72
    invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
    :try_end_75
    .catch Ljava/io/IOException; {:try_start_72 .. :try_end_75} :catch_76

    .line 65
    :cond_75
    :goto_75
    throw v0

    .line 61
    :catch_76
    move-exception v1

    goto :goto_75

    .line 58
    :catchall_78
    move-exception v0

    goto :goto_70

    .line 53
    :catch_7a
    move-exception v2

    goto :goto_64

    :catch_7c
    move-exception v0

    move-object v0, v2

    goto :goto_64
.end method