g.smali

.class public final synthetic Lcom/facebook/appevents/g;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field public static final synthetic b:Lcom/facebook/appevents/g;

.field public static final synthetic c:Lcom/facebook/appevents/g;

.field public static final synthetic d:Lcom/facebook/appevents/g;

.field public static final synthetic e:Lcom/facebook/appevents/g;

.field public static final synthetic f:Lcom/facebook/appevents/g;

.field public static final synthetic g:Lcom/facebook/appevents/g;


# instance fields
.field public final synthetic a:I


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

    new-instance v0, Lcom/facebook/appevents/g;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/facebook/appevents/g;-><init>(I)V

    sput-object v0, Lcom/facebook/appevents/g;->b:Lcom/facebook/appevents/g;

    new-instance v0, Lcom/facebook/appevents/g;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lcom/facebook/appevents/g;-><init>(I)V

    sput-object v0, Lcom/facebook/appevents/g;->c:Lcom/facebook/appevents/g;

    new-instance v0, Lcom/facebook/appevents/g;

    const/4 v1, 0x2

    invoke-direct {v0, v1}, Lcom/facebook/appevents/g;-><init>(I)V

    sput-object v0, Lcom/facebook/appevents/g;->d:Lcom/facebook/appevents/g;

    new-instance v0, Lcom/facebook/appevents/g;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Lcom/facebook/appevents/g;-><init>(I)V

    sput-object v0, Lcom/facebook/appevents/g;->e:Lcom/facebook/appevents/g;

    new-instance v0, Lcom/facebook/appevents/g;

    const/4 v1, 0x4

    invoke-direct {v0, v1}, Lcom/facebook/appevents/g;-><init>(I)V

    sput-object v0, Lcom/facebook/appevents/g;->f:Lcom/facebook/appevents/g;

    new-instance v0, Lcom/facebook/appevents/g;

    const/4 v1, 0x5

    invoke-direct {v0, v1}, Lcom/facebook/appevents/g;-><init>(I)V

    sput-object v0, Lcom/facebook/appevents/g;->g:Lcom/facebook/appevents/g;

    return-void
.end method

.method public synthetic constructor <init>(I)V
    .registers 2

    iput p1, p0, Lcom/facebook/appevents/g;->a:I

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 5

    iget v0, p0, Lcom/facebook/appevents/g;->a:I

    packed-switch v0, :pswitch_data_14c

    goto/16 :goto_148

    .line 1
    :pswitch_7
    sget-object v0, Lcom/shopee/cookiesmanager/c;->a:Lcom/shopee/cookiesmanager/c;

    invoke-virtual {v0}, Lcom/shopee/cookiesmanager/c;->b()Landroid/support/v4/media/b;

    move-result-object v0

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 2
    invoke-static {}, Landroid/webkit/CookieSyncManager;->getInstance()Landroid/webkit/CookieSyncManager;

    move-result-object v0

    if-eqz v0, :cond_19

    .line 3
    invoke-virtual {v0}, Landroid/webkit/CookieSyncManager;->sync()V

    :cond_19
    return-void

    .line 4
    :pswitch_1a
    sget-object v0, Lcom/shopee/app/stability/e;->a:Lcom/shopee/app/stability/e;

    .line 5
    :try_start_1c
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->gaLocalDispatchPeriod()I

    move-result v1

    const-string v2, "setting_config_ga_local_dispatch_period"

    .line 6
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->q(Ljava/lang/String;I)V

    .line 7
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->biEnabled()Z

    move-result v1

    const-string v2, "setting_config_bi"

    .line 8
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->p(Ljava/lang/String;Z)V

    .line 9
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getGlideImageDiskCacheSize()J

    move-result-wide v1

    .line 10
    iget-object v0, v0, Lcom/shopee/app/application/shopeetask/b;->b:Landroid/content/SharedPreferences;

    if-eqz v0, :cond_67

    .line 11
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v3, "setting_config_glide_image_disk_cache_size"

    invoke-interface {v0, v3, v1, v2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 12
    :cond_67
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getTcpPingIntervalTimeInSecondsLegacy()I

    move-result v1

    const-string v2, "setting_config_tcp_time_out"

    .line 13
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->q(Ljava/lang/String;I)V

    .line 14
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getOkhttpDispatcherMaxThreadPerHostForFrequentDomain()I

    move-result v1

    const-string v2, "setting_config_okhttp_max_thread_frequent_per_domain"

    .line 15
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->q(Ljava/lang/String;I)V

    .line 16
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getOkhttpDispatcherMaxThreadPerHost()I

    move-result v1

    const-string v2, "setting_config_okhttp_max_thread_per_host"

    .line 17
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->q(Ljava/lang/String;I)V

    .line 18
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getOkhttpDispatcherMaxThread()I

    move-result v1

    const-string v2, "setting_config_okhttp_dispatcher_max_thread"

    .line 19
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->q(Ljava/lang/String;I)V

    .line 20
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getOkhttpDispatcherFrequentDomains()Ljava/util/List;

    move-result-object v1

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 21
    new-instance v2, Ljava/util/HashSet;

    invoke-direct {v2, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V

    .line 22
    iget-object v0, v0, Lcom/shopee/app/application/shopeetask/b;->b:Landroid/content/SharedPreferences;

    if-eqz v0, :cond_e4

    .line 23
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "setting_config_okhttp_frequent_domains"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putStringSet(Ljava/lang/String;Ljava/util/Set;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 24
    :cond_e4
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getOkhttpConnectionPoolMaxIdle()I

    move-result v1

    const-string v2, "setting_config_okhttp_connection_pool_max_idle"

    .line 25
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->q(Ljava/lang/String;I)V

    .line 26
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->getDdFirstScreenValidTime()J

    move-result-wide v1

    .line 27
    iget-object v0, v0, Lcom/shopee/app/application/shopeetask/b;->b:Landroid/content/SharedPreferences;

    if-eqz v0, :cond_11a

    .line 28
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v3, "setting_config_dd_first_screen_valid_time"

    invoke-interface {v0, v3, v1, v2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 29
    :cond_11a
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    invoke-static {v0}, Lcom/shopee/app/application/shopeetask/b;->c(Landroid/app/Application;)Lcom/shopee/app/application/shopeetask/b;

    move-result-object v0

    invoke-static {}, Lcom/shopee/app/data/store/SettingConfigStore;->getInstance()Lcom/shopee/app/data/store/SettingConfigStore;

    move-result-object v1

    invoke-virtual {v1}, Lcom/shopee/app/data/store/SettingConfigStore;->isFirebasePerfAttrEnabled()Z

    move-result v1

    const-string v2, "setting_config_firebase_perfattr_enabled_flag"

    .line 30
    invoke-virtual {v0, v2, v1}, Lcom/shopee/app/application/shopeetask/b;->p(Ljava/lang/String;Z)V
    :try_end_12f
    .catchall {:try_start_1c .. :try_end_12f} :catchall_130

    goto :goto_138

    :catchall_130
    move-exception v0

    .line 31
    invoke-static {}, Lcom/shopee/app/apm/c;->d()Lcom/shopee/app/apm/nonfatal/a;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/shopee/app/apm/nonfatal/a;->c(Ljava/lang/Throwable;)V

    :goto_138
    return-void

    .line 32
    :pswitch_139
    sget-object v0, Lcom/shopee/react/modules/imageview/prefetch/e$a;->a:Lcom/shopee/react/modules/imageview/prefetch/e;

    sget-object v1, Lcom/shopee/app/react/prefetch/image/r;->a:Lcom/shopee/app/react/prefetch/image/r;

    .line 33
    iput-object v1, v0, Lcom/shopee/react/modules/imageview/prefetch/e;->a:Lcom/shopee/react/modules/imageview/prefetch/c;

    return-void

    .line 34
    :pswitch_140
    invoke-static {}, Lcom/facebook/appevents/ml/ModelManager;->c()V

    return-void

    :pswitch_144
    invoke-static {}, Lcom/facebook/appevents/AppEventQueue;->a()V

    return-void

    :goto_148
    invoke-static {}, Lcom/shopee/sz/picuploadsdk/utils/i;->a()V

    return-void

    :pswitch_data_14c
    .packed-switch 0x0
        :pswitch_144
        :pswitch_140
        :pswitch_139
        :pswitch_1a
        :pswitch_7
    .end packed-switch
.end method