.class public Lcom/in2wow/sdk/triggerresponse/a;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/in2wow/sdk/triggerresponse/a$a;
    }
.end annotation


# direct methods
.method public static a(Ljava/lang/String;Lcom/in2wow/sdk/triggerresponse/b;)Ljava/lang/String;
    .locals 6

    if-eqz p1, :cond_3

    .line 62
    invoke-static {}, Lcom/in2wow/sdk/triggerresponse/a$a;->values()[Lcom/in2wow/sdk/triggerresponse/a$a;

    move-result-object v0

    array-length v1, v0

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v1, :cond_0

    goto :goto_1

    :cond_0
    aget-object v3, v0, v2

    .line 63
    invoke-virtual {v3}, Lcom/in2wow/sdk/triggerresponse/a$a;->a()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    const/4 v5, -0x1

    if-eq v4, v5, :cond_2

    const-string v4, ""

    .line 66
    invoke-virtual {v3}, Lcom/in2wow/sdk/triggerresponse/a$a;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p1, v5}, Lcom/in2wow/sdk/triggerresponse/b;->b(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 67
    invoke-virtual {v3}, Lcom/in2wow/sdk/triggerresponse/a$a;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v4}, Lcom/in2wow/sdk/triggerresponse/b;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 70
    :cond_1
    invoke-virtual {v3}, Lcom/in2wow/sdk/triggerresponse/a$a;->a()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0, v3, v4}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    :goto_1
    return-object p0
.end method

.method static synthetic a(Ljava/io/File;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;
    .locals 0

    .line 218
    invoke-static {p0, p1, p2}, Lcom/in2wow/sdk/triggerresponse/a;->b(Ljava/io/File;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;

    move-result-object p0

    return-object p0
.end method

.method public static a(Lcom/in2wow/sdk/triggerresponse/e;)V
    .locals 5

    .line 117
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->g()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 123
    :cond_0
    new-instance v0, Lcom/in2wow/sdk/m/i;

    sget-boolean v1, Lcom/in2wow/sdk/a/b;->e:Z

    invoke-direct {v0, v1}, Lcom/in2wow/sdk/m/i;-><init>(Z)V

    .line 124
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->d()Ljava/util/concurrent/ConcurrentHashMap;

    move-result-object v1

    .line 125
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->a()Ljava/lang/Object;

    move-result-object v2

    .line 127
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->f()Ljava/util/concurrent/ExecutorService;

    move-result-object v3

    new-instance v4, Lcom/in2wow/sdk/triggerresponse/a$1;

    invoke-direct {v4, p0, v2, v1, v0}, Lcom/in2wow/sdk/triggerresponse/a$1;-><init>(Lcom/in2wow/sdk/triggerresponse/e;Ljava/lang/Object;Ljava/util/concurrent/ConcurrentHashMap;Lcom/in2wow/sdk/m/i;)V

    invoke-interface {v3, v4}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    return-void
.end method

.method public static declared-synchronized a(Lcom/in2wow/sdk/triggerresponse/e;[Ljava/lang/String;)V
    .locals 12

    const-class v0, Lcom/in2wow/sdk/triggerresponse/a;

    monitor-enter v0

    .line 79
    :try_start_0
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->c()Ljava/io/File;

    move-result-object v1

    .line 80
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    .line 81
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->a()Ljava/lang/Object;

    move-result-object v2

    .line 82
    monitor-enter v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v3, 0x0

    const/4 v4, 0x0

    .line 83
    :goto_0
    :try_start_1
    array-length v5, p1

    if-lt v4, v5, :cond_0

    .line 82
    monitor-exit v2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 114
    monitor-exit v0

    return-void

    .line 84
    :cond_0
    :try_start_2
    aget-object v5, p1, v4

    .line 85
    invoke-static {v5}, Lcom/in2wow/sdk/m/p;->a(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    goto/16 :goto_2

    .line 88
    :cond_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->e()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    invoke-virtual {v6, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, "_"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const-string v7, "?"

    .line 91
    invoke-virtual {v5, v7}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v7

    const/4 v8, -0x1

    if-eq v7, v8, :cond_2

    .line 92
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v7, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "&ce_et="

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    invoke-virtual {v7, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    goto :goto_1

    .line 94
    :cond_2
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v7, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "?ce_et="

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    invoke-virtual {v7, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 99
    :goto_1
    invoke-virtual {p0}, Lcom/in2wow/sdk/triggerresponse/e;->h()Lcom/in2wow/sdk/triggerresponse/b;

    move-result-object v7

    invoke-static {v5, v7}, Lcom/in2wow/sdk/triggerresponse/a;->a(Ljava/lang/String;Lcom/in2wow/sdk/triggerresponse/b;)Ljava/lang/String;

    move-result-object v5

    .line 101
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, "/"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7, v5}, Lcom/in2wow/sdk/m/g;->c(Ljava/lang/String;Ljava/lang/String;)Z

    .line 103
    sget-boolean v7, Lcom/in2wow/sdk/a/b;->e:Z

    if-eqz v7, :cond_4

    .line 104
    new-instance v7, Ljava/io/File;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "/"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

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

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

    move-result v8

    const/4 v9, 0x2

    const/4 v10, 0x1

    if-eqz v8, :cond_3

    invoke-virtual {v7}, Ljava/io/File;->isFile()Z

    move-result v8

    if-eqz v8, :cond_3

    const-string v8, "third-party tracking write ok ! [%s] modify[%d] [%s]"

    const/4 v11, 0x3

    .line 106
    new-array v11, v11, [Ljava/lang/Object;

    aput-object v6, v11, v3

    invoke-virtual {v7}, Ljava/io/File;->lastModified()J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    aput-object v6, v11, v10

    aput-object v5, v11, v9

    invoke-static {v8, v11}, Lcom/in2wow/sdk/m/j;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_2

    :cond_3
    const-string v7, "third-party tracking write error ! [%s] [%s]"

    .line 108
    new-array v8, v9, [Ljava/lang/Object;

    aput-object v6, v8, v3

    aput-object v5, v8, v10

    invoke-static {v7, v8}, Lcom/in2wow/sdk/m/j;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    :cond_4
    :goto_2
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    :catchall_0
    move-exception p0

    .line 82
    monitor-exit v2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :try_start_3
    throw p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :catchall_1
    move-exception p0

    .line 78
    monitor-exit v0

    throw p0
.end method

.method public static a(ZLcom/in2wow/sdk/triggerresponse/e;[Ljava/lang/String;)V
    .locals 0

    .line 51
    invoke-static {p1, p2}, Lcom/in2wow/sdk/triggerresponse/a;->a(Lcom/in2wow/sdk/triggerresponse/e;[Ljava/lang/String;)V

    .line 55
    invoke-static {p1}, Lcom/in2wow/sdk/triggerresponse/a;->a(Lcom/in2wow/sdk/triggerresponse/e;)V

    return-void
.end method

.method private static b(Ljava/io/File;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/File;",
            "Ljava/lang/Object;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Ljava/io/File;",
            ">;"
        }
    .end annotation

    .line 220
    monitor-enter p1

    .line 221
    :try_start_0
    new-instance v0, Lcom/in2wow/sdk/triggerresponse/a$2;

    invoke-direct {v0, p2}, Lcom/in2wow/sdk/triggerresponse/a$2;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object p0

    if-eqz p0, :cond_0

    .line 229
    invoke-static {p0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p0

    .line 230
    new-instance p2, Lcom/in2wow/sdk/triggerresponse/a$3;

    invoke-direct {p2}, Lcom/in2wow/sdk/triggerresponse/a$3;-><init>()V

    invoke-static {p0, p2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    .line 220
    :goto_0
    monitor-exit p1

    return-object p0

    :catchall_0
    move-exception p0

    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0
.end method
