.class public final Lj6/w4;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroid/app/Application$ActivityLifecycleCallbacks;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field public final synthetic r:Lj6/x4;


# direct methods
.method public synthetic constructor <init>(Lj6/x4;)V
    .registers 2

    iput-object p1, p0, Lj6/w4;->r:Lj6/x4;

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

    return-void
.end method


# virtual methods
.method public final onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
    .registers 11

    :try_start_0
    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v1, "onActivityCreated"

    .line 2
    invoke-virtual {v0, v1}, Lj6/e3;->c(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0
    :try_end_13
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_13} :catch_7e
    .catchall {:try_start_0 .. :try_end_13} :catchall_80

    if-nez v0, :cond_21

    :cond_15
    :goto_15
    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->x()Lj6/g5;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lj6/g5;->p(Landroid/app/Activity;Landroid/os/Bundle;)V

    return-void

    :cond_21
    :try_start_21
    invoke-virtual {v0}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v4

    if-eqz v4, :cond_15

    invoke-virtual {v4}, Landroid/net/Uri;->isHierarchical()Z

    move-result v1

    if-nez v1, :cond_2e

    goto :goto_15

    :cond_2e
    iget-object v1, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    const-string v1, "android.intent.extra.REFERRER_NAME"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "android-app://com.google.android.googlequicksearchbox/https/www.google.com"

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

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez v1, :cond_58

    const-string v1, "https://www.google.com"

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

    move-result v1

    if-nez v1, :cond_58

    const-string v1, "android-app://com.google.appcrawler"

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

    move-result v0
    :try_end_53
    .catch Ljava/lang/RuntimeException; {:try_start_21 .. :try_end_53} :catch_7e
    .catchall {:try_start_21 .. :try_end_53} :catchall_80

    if-eqz v0, :cond_56

    goto :goto_58

    :cond_56
    move v0, v2

    goto :goto_59

    :cond_58
    :goto_58
    move v0, v3

    :goto_59
    if-eq v3, v0, :cond_5e

    const-string v0, "auto"

    goto :goto_60

    :cond_5e
    const-string v0, "gs"

    :goto_60
    move-object v5, v0

    :try_start_61
    const-string v0, "referrer"

    invoke-virtual {v4, v0}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez p2, :cond_6a

    goto :goto_6b

    :cond_6a
    move v3, v2

    :goto_6b
    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object v0

    new-instance v7, Ll5/i;

    move-object v1, v7

    move-object v2, p0

    invoke-direct/range {v1 .. v6}, Ll5/i;-><init>(Lj6/w4;ZLandroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v7}, Lj6/d4;->r(Ljava/lang/Runnable;)V
    :try_end_7d
    .catch Ljava/lang/RuntimeException; {:try_start_61 .. :try_end_7d} :catch_7e
    .catchall {:try_start_61 .. :try_end_7d} :catchall_80

    goto :goto_15

    :catch_7e
    move-exception v0

    goto :goto_82

    :catchall_80
    move-exception v0

    goto :goto_92

    :goto_82
    :try_start_82
    iget-object v1, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v1

    .line 3
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v2, "Throwable caught in onActivityCreated"

    .line 4
    invoke-virtual {v1, v2, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V
    :try_end_91
    .catchall {:try_start_82 .. :try_end_91} :catchall_80

    goto :goto_15

    :goto_92
    iget-object v1, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->x()Lj6/g5;

    move-result-object v1

    invoke-virtual {v1, p1, p2}, Lj6/g5;->p(Landroid/app/Activity;Landroid/os/Bundle;)V

    throw v0
.end method

.method public final onActivityDestroyed(Landroid/app/Activity;)V
    .registers 5

    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->x()Lj6/g5;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lj6/g5;->l:Ljava/lang/Object;

    monitor-enter v1

    :try_start_b
    iget-object v2, v0, Lj6/g5;->g:Landroid/app/Activity;

    if-ne p1, v2, :cond_12

    const/4 v2, 0x0

    iput-object v2, v0, Lj6/g5;->g:Landroid/app/Activity;

    :cond_12
    monitor-exit v1
    :try_end_13
    .catchall {:try_start_b .. :try_end_13} :catchall_24

    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 2
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 3
    invoke-virtual {v1}, Lj6/f;->w()Z

    move-result v1

    if-nez v1, :cond_1e

    goto :goto_23

    :cond_1e
    iget-object v0, v0, Lj6/g5;->f:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :goto_23
    return-void

    :catchall_24
    move-exception p1

    :try_start_25
    monitor-exit v1
    :try_end_26
    .catchall {:try_start_25 .. :try_end_26} :catchall_24

    throw p1
.end method

.method public final onActivityPaused(Landroid/app/Activity;)V
    .registers 8

    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->x()Lj6/g5;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lj6/g5;->l:Ljava/lang/Object;

    monitor-enter v1

    const/4 v2, 0x0

    :try_start_c
    iput-boolean v2, v0, Lj6/g5;->k:Z

    const/4 v2, 0x1

    iput-boolean v2, v0, Lj6/g5;->h:Z

    monitor-exit v1
    :try_end_12
    .catchall {:try_start_c .. :try_end_12} :catchall_6d

    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 2
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 3
    invoke-interface {v1}, Lu5/c;->c()J

    move-result-wide v3

    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 4
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 5
    invoke-virtual {v1}, Lj6/f;->w()Z

    move-result v1

    const/4 v5, 0x0

    if-nez v1, :cond_36

    iput-object v5, v0, Lj6/g5;->c:Lj6/d5;

    iget-object p1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object p1

    new-instance v1, Lz5/xj0;

    invoke-direct {v1, v0, v3, v4}, Lz5/xj0;-><init>(Lj6/g5;J)V

    invoke-virtual {p1, v1}, Lj6/d4;->r(Ljava/lang/Runnable;)V

    goto :goto_4e

    :cond_36
    invoke-virtual {v0, p1}, Lj6/g5;->t(Landroid/app/Activity;)Lj6/d5;

    move-result-object p1

    iget-object v1, v0, Lj6/g5;->c:Lj6/d5;

    iput-object v1, v0, Lj6/g5;->d:Lj6/d5;

    iput-object v5, v0, Lj6/g5;->c:Lj6/d5;

    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object v1

    new-instance v5, Lz5/jt1;

    invoke-direct {v5, v0, p1, v3, v4}, Lz5/jt1;-><init>(Lj6/g5;Lj6/d5;J)V

    invoke-virtual {v1, v5}, Lj6/d4;->r(Ljava/lang/Runnable;)V

    .line 6
    :goto_4e
    iget-object p1, p0, Lj6/w4;->r:Lj6/x4;

    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->z()Lj6/u5;

    move-result-object p1

    iget-object v0, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 7
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 8
    invoke-interface {v0}, Lu5/c;->c()J

    move-result-wide v0

    iget-object v3, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object v3

    new-instance v4, Lj6/q5;

    invoke-direct {v4, p1, v0, v1, v2}, Lj6/q5;-><init>(Lj6/u5;JI)V

    invoke-virtual {v3, v4}, Lj6/d4;->r(Ljava/lang/Runnable;)V

    return-void

    :catchall_6d
    move-exception p1

    .line 9
    :try_start_6e
    monitor-exit v1
    :try_end_6f
    .catchall {:try_start_6e .. :try_end_6f} :catchall_6d

    throw p1
.end method

.method public final onActivityResumed(Landroid/app/Activity;)V
    .registers 8

    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->z()Lj6/u5;

    move-result-object v0

    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 1
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 2
    invoke-interface {v1}, Lu5/c;->c()J

    move-result-wide v1

    iget-object v3, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object v3

    new-instance v4, Lj6/q5;

    const/4 v5, 0x0

    invoke-direct {v4, v0, v1, v2, v5}, Lj6/q5;-><init>(Lj6/u5;JI)V

    invoke-virtual {v3, v4}, Lj6/d4;->r(Ljava/lang/Runnable;)V

    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->x()Lj6/g5;

    move-result-object v0

    .line 3
    iget-object v1, v0, Lj6/g5;->l:Ljava/lang/Object;

    monitor-enter v1

    const/4 v2, 0x1

    :try_start_2b
    iput-boolean v2, v0, Lj6/g5;->k:Z

    iget-object v3, v0, Lj6/g5;->g:Landroid/app/Activity;

    if-eq p1, v3, :cond_58

    iget-object v3, v0, Lj6/g5;->l:Ljava/lang/Object;

    monitor-enter v3
    :try_end_34
    .catchall {:try_start_2b .. :try_end_34} :catchall_9a

    :try_start_34
    iput-object p1, v0, Lj6/g5;->g:Landroid/app/Activity;

    iput-boolean v5, v0, Lj6/g5;->h:Z

    monitor-exit v3
    :try_end_39
    .catchall {:try_start_34 .. :try_end_39} :catchall_55

    :try_start_39
    iget-object v3, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 4
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 5
    invoke-virtual {v3}, Lj6/f;->w()Z

    move-result v3

    if-eqz v3, :cond_58

    const/4 v3, 0x0

    iput-object v3, v0, Lj6/g5;->i:Lj6/d5;

    iget-object v3, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object v3

    new-instance v4, Lj6/f5;

    invoke-direct {v4, v0, v2}, Lj6/f5;-><init>(Lj6/g5;I)V

    invoke-virtual {v3, v4}, Lj6/d4;->r(Ljava/lang/Runnable;)V
    :try_end_54
    .catchall {:try_start_39 .. :try_end_54} :catchall_9a

    goto :goto_58

    :catchall_55
    move-exception p1

    :try_start_56
    monitor-exit v3
    :try_end_57
    .catchall {:try_start_56 .. :try_end_57} :catchall_55

    :try_start_57
    throw p1

    :cond_58
    :goto_58
    monitor-exit v1
    :try_end_59
    .catchall {:try_start_57 .. :try_end_59} :catchall_9a

    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 6
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 7
    invoke-virtual {v1}, Lj6/f;->w()Z

    move-result v1

    if-nez v1, :cond_76

    iget-object p1, v0, Lj6/g5;->i:Lj6/d5;

    iput-object p1, v0, Lj6/g5;->c:Lj6/d5;

    iget-object p1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object p1

    new-instance v1, Lj6/f5;

    invoke-direct {v1, v0, v5}, Lj6/f5;-><init>(Lj6/g5;I)V

    invoke-virtual {p1, v1}, Lj6/d4;->r(Ljava/lang/Runnable;)V

    goto :goto_99

    :cond_76
    invoke-virtual {v0, p1}, Lj6/g5;->t(Landroid/app/Activity;)Lj6/d5;

    move-result-object v1

    invoke-virtual {v0, p1, v1, v5}, Lj6/g5;->k(Landroid/app/Activity;Lj6/d5;Z)V

    iget-object p1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->l()Lj6/x1;

    move-result-object p1

    iget-object v0, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 8
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 9
    invoke-interface {v0}, Lu5/c;->c()J

    move-result-wide v0

    iget-object v2, p1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object v2

    new-instance v3, Lz5/xj0;

    invoke-direct {v3, p1, v0, v1}, Lz5/xj0;-><init>(Lj6/x1;J)V

    invoke-virtual {v2, v3}, Lj6/d4;->r(Ljava/lang/Runnable;)V

    :goto_99
    return-void

    :catchall_9a
    move-exception p1

    :try_start_9b
    monitor-exit v1
    :try_end_9c
    .catchall {:try_start_9b .. :try_end_9c} :catchall_9a

    throw p1
.end method

.method public final onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
    .registers 7

    iget-object v0, p0, Lj6/w4;->r:Lj6/x4;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->x()Lj6/g5;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 2
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 3
    invoke-virtual {v1}, Lj6/f;->w()Z

    move-result v1

    if-nez v1, :cond_13

    goto :goto_40

    :cond_13
    if-nez p2, :cond_16

    goto :goto_40

    :cond_16
    iget-object v0, v0, Lj6/g5;->f:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lj6/d5;

    if-nez p1, :cond_21

    goto :goto_40

    :cond_21
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    iget-wide v1, p1, Lj6/d5;->c:J

    const-string v3, "id"

    invoke-virtual {v0, v3, v1, v2}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    iget-object v1, p1, Lj6/d5;->a:Ljava/lang/String;

    const-string v2, "name"

    invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    iget-object p1, p1, Lj6/d5;->b:Ljava/lang/String;

    const-string v1, "referrer_name"

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "com.google.app_measurement.screen_service"

    invoke-virtual {p2, p1, v0}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V

    :goto_40
    return-void
.end method

.method public final onActivityStarted(Landroid/app/Activity;)V
    .registers 2

    return-void
.end method

.method public final onActivityStopped(Landroid/app/Activity;)V
    .registers 2

    return-void
.end method
