a.smali

.class public final enum Lsg/bigo/web/a;
.super Ljava/lang/Enum;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum<",
        "Lsg/bigo/web/a;",
        ">;"
    }
.end annotation


# static fields
.field private static final synthetic $VALUES:[Lsg/bigo/web/a;

.field public static final enum INSTANC:Lsg/bigo/web/a;


# instance fields
.field private downloadFilter:Lsg/bigo/web/c/b/c;

.field private downloadTunnel:Lsg/bigo/web/c/b/d;

.field private enableOverwall:Z

.field private enableReplace:Z

.field private hostReplaceAccurate:Z

.field private isAllSwitch:Z

.field private isDebug:Z

.field private mEnableStatisticInject:Z


# direct methods
.method static constructor <clinit>()V
    .registers 3

    .line 18
    new-instance v0, Lsg/bigo/web/a;

    const/4 v1, 0x0

    const-string v2, "INSTANC"

    invoke-direct {v0, v2, v1}, Lsg/bigo/web/a;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lsg/bigo/web/a;->INSTANC:Lsg/bigo/web/a;

    const/4 v2, 0x1

    new-array v2, v2, [Lsg/bigo/web/a;

    aput-object v0, v2, v1

    .line 17
    sput-object v2, Lsg/bigo/web/a;->$VALUES:[Lsg/bigo/web/a;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;I)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 17
    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    const/4 p1, 0x0

    .line 21
    iput-boolean p1, p0, Lsg/bigo/web/a;->isDebug:Z

    const/4 p2, 0x1

    .line 22
    iput-boolean p2, p0, Lsg/bigo/web/a;->isAllSwitch:Z

    .line 25
    iput-boolean p1, p0, Lsg/bigo/web/a;->enableReplace:Z

    .line 26
    iput-boolean p1, p0, Lsg/bigo/web/a;->hostReplaceAccurate:Z

    .line 29
    iput-boolean p1, p0, Lsg/bigo/web/a;->enableOverwall:Z

    .line 30
    new-instance p1, Lsg/bigo/web/c/b/a;

    invoke-direct {p1}, Lsg/bigo/web/c/b/a;-><init>()V

    iput-object p1, p0, Lsg/bigo/web/a;->downloadTunnel:Lsg/bigo/web/c/b/d;

    .line 31
    new-instance p1, Lsg/bigo/web/c/b/b;

    invoke-direct {p1}, Lsg/bigo/web/c/b/b;-><init>()V

    iput-object p1, p0, Lsg/bigo/web/a;->downloadFilter:Lsg/bigo/web/c/b/c;

    .line 34
    iput-boolean p2, p0, Lsg/bigo/web/a;->mEnableStatisticInject:Z

    return-void
.end method

.method public static valueOf(Ljava/lang/String;)Lsg/bigo/web/a;
    .registers 2

    .line 17
    const-class v0, Lsg/bigo/web/a;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object p0

    check-cast p0, Lsg/bigo/web/a;

    return-object p0
.end method

.method public static values()[Lsg/bigo/web/a;
    .registers 1

    .line 17
    sget-object v0, Lsg/bigo/web/a;->$VALUES:[Lsg/bigo/web/a;

    invoke-virtual {v0}, [Lsg/bigo/web/a;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lsg/bigo/web/a;

    return-object v0
.end method


# virtual methods
.method public final addBlackList(Ljava/util/List;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 5048
    invoke-static {}, Lsg/bigo/web/jsbridge/a$a;->a()Lsg/bigo/web/jsbridge/a;

    move-result-object v0

    if-eqz p1, :cond_26

    .line 5081
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_a
    :goto_a
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_26

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

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

    move-result v2

    if-nez v2, :cond_a

    .line 5083
    iget-object v2, v0, Lsg/bigo/web/jsbridge/a;->a:Ljava/util/Set;

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_a

    :cond_26
    return-void
.end method

.method public final addWhiteList(Ljava/util/List;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 3048
    invoke-static {}, Lsg/bigo/web/jsbridge/a$a;->a()Lsg/bigo/web/jsbridge/a;

    move-result-object v0

    .line 117
    invoke-virtual {v0, p1}, Lsg/bigo/web/jsbridge/a;->a(Ljava/util/List;)V

    return-void
.end method

.method public final varargs addWhiteList([Ljava/lang/String;)V
    .registers 3

    .line 4048
    invoke-static {}, Lsg/bigo/web/jsbridge/a$a;->a()Lsg/bigo/web/jsbridge/a;

    move-result-object v0

    .line 121
    invoke-virtual {v0, p1}, Lsg/bigo/web/jsbridge/a;->a([Ljava/lang/String;)V

    return-void
.end method

.method public final getDownloadFilter()Lsg/bigo/web/c/b/c;
    .registers 2

    .line 61
    iget-object v0, p0, Lsg/bigo/web/a;->downloadFilter:Lsg/bigo/web/c/b/c;

    return-object v0
.end method

.method public final getDownloadTunnel()Lsg/bigo/web/c/b/d;
    .registers 2

    .line 69
    iget-object v0, p0, Lsg/bigo/web/a;->downloadTunnel:Lsg/bigo/web/c/b/d;

    return-object v0
.end method

.method public final getReplaceMapping()Ljava/util/Map;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 81
    sget-object v0, Lsg/bigo/web/b/a;->b:Lsg/bigo/web/b/a$a;

    .line 3016
    sget-object v0, Lsg/bigo/web/b/a$b;->a:Lsg/bigo/web/b/a$b;

    invoke-static {}, Lsg/bigo/web/b/a$b;->a()Lsg/bigo/web/b/a;

    move-result-object v0

    .line 3037
    iget-object v0, v0, Lsg/bigo/web/b/a;->a:Ljava/util/concurrent/ConcurrentHashMap;

    check-cast v0, Ljava/util/Map;

    return-object v0
.end method

.method public final isAllSwitch()Z
    .registers 2

    .line 45
    iget-boolean v0, p0, Lsg/bigo/web/a;->isAllSwitch:Z

    return v0
.end method

.method public final isDebug()Z
    .registers 2

    .line 41
    iget-boolean v0, p0, Lsg/bigo/web/a;->isDebug:Z

    return v0
.end method

.method public final isEnableOverwall()Z
    .registers 2

    .line 105
    iget-boolean v0, p0, Lsg/bigo/web/a;->enableOverwall:Z

    return v0
.end method

.method public final isEnableReplace()Z
    .registers 2

    .line 89
    iget-boolean v0, p0, Lsg/bigo/web/a;->enableReplace:Z

    return v0
.end method

.method public final isEnableStatisticInject()Z
    .registers 2

    .line 109
    iget-boolean v0, p0, Lsg/bigo/web/a;->mEnableStatisticInject:Z

    return v0
.end method

.method public final isHostReplaceAccurate()Z
    .registers 2

    .line 93
    iget-boolean v0, p0, Lsg/bigo/web/a;->hostReplaceAccurate:Z

    return v0
.end method

.method public final setAllSwitch(Z)V
    .registers 2

    .line 49
    iput-boolean p1, p0, Lsg/bigo/web/a;->isAllSwitch:Z

    return-void
.end method

.method public final setDebug(Z)V
    .registers 2

    .line 37
    iput-boolean p1, p0, Lsg/bigo/web/a;->isDebug:Z

    return-void
.end method

.method public final setDownloadFilter(Lsg/bigo/web/c/b/c;)V
    .registers 2

    .line 65
    iput-object p1, p0, Lsg/bigo/web/a;->downloadFilter:Lsg/bigo/web/c/b/c;

    return-void
.end method

.method public final setDownloadTunnel(Lsg/bigo/web/c/b/d;)V
    .registers 2

    .line 73
    iput-object p1, p0, Lsg/bigo/web/a;->downloadTunnel:Lsg/bigo/web/c/b/d;

    return-void
.end method

.method public final setEnableOverwall(Z)V
    .registers 2

    .line 101
    iput-boolean p1, p0, Lsg/bigo/web/a;->enableOverwall:Z

    return-void
.end method

.method public final setEnableReplace(Z)V
    .registers 2

    .line 85
    iput-boolean p1, p0, Lsg/bigo/web/a;->enableReplace:Z

    return-void
.end method

.method public final setEnableStatisticInject(Z)V
    .registers 2

    .line 113
    iput-boolean p1, p0, Lsg/bigo/web/a;->mEnableStatisticInject:Z

    return-void
.end method

.method public final setHostReplaceAccurate(Z)V
    .registers 2

    .line 97
    iput-boolean p1, p0, Lsg/bigo/web/a;->hostReplaceAccurate:Z

    return-void
.end method

.method public final setReplaceMapping(Ljava/util/Map;)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 77
    sget-object v0, Lsg/bigo/web/b/a;->b:Lsg/bigo/web/b/a$a;

    .line 1016
    sget-object v0, Lsg/bigo/web/b/a$b;->a:Lsg/bigo/web/b/a$b;

    invoke-static {}, Lsg/bigo/web/b/a$b;->a()Lsg/bigo/web/b/a;

    move-result-object v0

    if-eqz p1, :cond_51

    .line 1025
    iget-object v1, v0, Lsg/bigo/web/b/a;->a:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentHashMap;->clear()V

    .line 1026
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_17
    :goto_17
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_51

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-eqz v2, :cond_17

    if-eqz v1, :cond_17

    .line 1028
    iget-object v3, v0, Lsg/bigo/web/b/a;->a:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v3, v2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1048
    invoke-static {}, Lsg/bigo/web/jsbridge/a$a;->a()Lsg/bigo/web/jsbridge/a;

    move-result-object v3

    const/4 v4, 0x1

    new-array v5, v4, [Ljava/lang/String;

    const/4 v6, 0x0

    aput-object v2, v5, v6

    .line 1029
    invoke-virtual {v3, v5}, Lsg/bigo/web/jsbridge/a;->a([Ljava/lang/String;)V

    .line 2048
    invoke-static {}, Lsg/bigo/web/jsbridge/a$a;->a()Lsg/bigo/web/jsbridge/a;

    move-result-object v2

    new-array v3, v4, [Ljava/lang/String;

    aput-object v1, v3, v6

    .line 1030
    invoke-virtual {v2, v3}, Lsg/bigo/web/jsbridge/a;->a([Ljava/lang/String;)V

    goto :goto_17

    :cond_51
    return-void
.end method

.method public final setReportConfig(Lsg/bigo/web/d/c;)V
    .registers 2

    .line 57
    invoke-static {p1}, Lsg/bigo/web/d/e;->a(Lsg/bigo/web/d/c;)V

    return-void
.end method

.method public final setReporter(Lsg/bigo/web/d/a;)V
    .registers 2

    .line 53
    invoke-static {p1}, Lsg/bigo/web/d/d;->a(Lsg/bigo/web/d/a;)V

    return-void
.end method