NetworkChangeNotifierAutoDetect$NetworkState.smali

.class public Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Laegon/chrome/net/NetworkChangeNotifierAutoDetect;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "NetworkState"
.end annotation


# instance fields
.field private final mConnected:Z

.field private final mIsPrivateDnsActive:Z

.field private final mNetworkIdentifier:Ljava/lang/String;

.field private final mSubtype:I

.field private final mType:I


# direct methods
.method public constructor <init>(ZIILjava/lang/String;Z)V
    .registers 6

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean p1, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mConnected:Z

    iput p2, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mType:I

    iput p3, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mSubtype:I

    if-nez p4, :cond_d

    const-string p4, ""

    :cond_d
    iput-object p4, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mNetworkIdentifier:Ljava/lang/String;

    iput-boolean p5, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mIsPrivateDnsActive:Z

    return-void
.end method


# virtual methods
.method public getConnectionSubtype()I
    .registers 3

    const/4 v0, 0x0

    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->isConnected()Z

    move-result v1

    if-nez v1, :cond_9

    const/4 v0, 0x1

    :goto_8
    :pswitch_8
    return v0

    :cond_9
    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->getNetworkType()I

    move-result v1

    packed-switch v1, :pswitch_data_42

    :pswitch_10
    goto :goto_8

    :pswitch_11
    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->getNetworkSubType()I

    move-result v1

    packed-switch v1, :pswitch_data_5a

    goto :goto_8

    :pswitch_19
    const/4 v0, 0x7

    goto :goto_8

    :pswitch_1b
    const/16 v0, 0x8

    goto :goto_8

    :pswitch_1e
    const/4 v0, 0x5

    goto :goto_8

    :pswitch_20
    const/4 v0, 0x6

    goto :goto_8

    :pswitch_22
    const/4 v0, 0x4

    goto :goto_8

    :pswitch_24
    const/16 v0, 0x9

    goto :goto_8

    :pswitch_27
    const/16 v0, 0xa

    goto :goto_8

    :pswitch_2a
    const/16 v0, 0xb

    goto :goto_8

    :pswitch_2d
    const/16 v0, 0xe

    goto :goto_8

    :pswitch_30
    const/16 v0, 0xf

    goto :goto_8

    :pswitch_33
    const/16 v0, 0xc

    goto :goto_8

    :pswitch_36
    const/16 v0, 0xd

    goto :goto_8

    :pswitch_39
    const/16 v0, 0x10

    goto :goto_8

    :pswitch_3c
    const/16 v0, 0x11

    goto :goto_8

    :pswitch_3f
    const/16 v0, 0x12

    goto :goto_8

    :pswitch_data_42
    .packed-switch 0x0
        :pswitch_11
        :pswitch_8
        :pswitch_10
        :pswitch_10
        :pswitch_10
        :pswitch_10
        :pswitch_8
        :pswitch_8
        :pswitch_10
        :pswitch_8
    .end packed-switch

    :pswitch_data_5a
    .packed-switch 0x1
        :pswitch_19
        :pswitch_1b
        :pswitch_24
        :pswitch_1e
        :pswitch_27
        :pswitch_2a
        :pswitch_20
        :pswitch_2d
        :pswitch_30
        :pswitch_33
        :pswitch_22
        :pswitch_36
        :pswitch_3f
        :pswitch_39
        :pswitch_3c
    .end packed-switch
.end method

.method public getConnectionType()I
    .registers 3

    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->isConnected()Z

    move-result v0

    if-nez v0, :cond_8

    const/4 v0, 0x6

    :goto_7
    return v0

    :cond_8
    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->getNetworkType()I

    move-result v0

    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->getNetworkSubType()I

    move-result v1

    # invokes: Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->convertToConnectionType(II)I
    invoke-static {v0, v1}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->access$000(II)I

    move-result v0

    goto :goto_7
.end method

.method public getNetworkIdentifier()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mNetworkIdentifier:Ljava/lang/String;

    return-object v0
.end method

.method public getNetworkSubType()I
    .registers 2

    iget v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mSubtype:I

    return v0
.end method

.method public getNetworkType()I
    .registers 2

    iget v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mType:I

    return v0
.end method

.method public isConnected()Z
    .registers 2

    iget-boolean v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mConnected:Z

    return v0
.end method

.method public isPrivateDnsActive()Z
    .registers 2

    iget-boolean v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;->mIsPrivateDnsActive:Z

    return v0
.end method