.class public Lcom/google/android/gms/ads/MobileAds;
.super Ljava/lang/Object;
.source ""


# static fields
.field public static final ERROR_DOMAIN:Ljava/lang/String; = "com.google.android.gms.ads"
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation
.end field


# direct methods
.method private constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static disableMediationAdapterInitialization(Landroid/content/Context;)V
    .registers 3
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_7
    invoke-virtual {v0, p0}, Lcom/google/android/gms/internal/ads/f0;->e(Landroid/content/Context;)V
    :try_end_a
    .catchall {:try_start_7 .. :try_end_a} :catchall_17

    :try_start_a
    iget-object p0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    invoke-interface {p0}, Lz5/gm;->zzs()V
    :try_end_f
    .catch Landroid/os/RemoteException; {:try_start_a .. :try_end_f} :catch_10
    .catchall {:try_start_a .. :try_end_f} :catchall_17

    goto :goto_15

    :catch_10
    :try_start_10
    const-string p0, "Unable to disable mediation adapter initialization."

    invoke-static {p0}, Lz5/d50;->zzf(Ljava/lang/String;)V

    :goto_15
    monitor-exit v1

    return-void

    :catchall_17
    move-exception p0

    monitor-exit v1
    :try_end_19
    .catchall {:try_start_10 .. :try_end_19} :catchall_17

    throw p0
.end method

.method public static getInitializationStatus()Lcom/google/android/gms/ads/initialization/InitializationStatus;
    .registers 1
    .annotation build Landroidx/annotation/RecentlyNullable;
    .end annotation

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/f0;->d()Lcom/google/android/gms/ads/initialization/InitializationStatus;

    move-result-object v0

    return-object v0
.end method

.method public static getRequestConfiguration()Lcom/google/android/gms/ads/RequestConfiguration;
    .registers 1

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    .line 1
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->g:Lcom/google/android/gms/ads/RequestConfiguration;

    return-object v0
.end method

.method public static getVersionString()Ljava/lang/String;
    .registers 1
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/f0;->c()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static initialize(Landroid/content/Context;)V
    .registers 3
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1, v1}, Lcom/google/android/gms/internal/ads/f0;->b(Landroid/content/Context;Ljava/lang/String;Lcom/google/android/gms/ads/initialization/OnInitializationCompleteListener;)V

    return-void
.end method

.method public static initialize(Landroid/content/Context;Lcom/google/android/gms/ads/initialization/OnInitializationCompleteListener;)V
    .registers 4
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .param p1    # Lcom/google/android/gms/ads/initialization/OnInitializationCompleteListener;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1, p1}, Lcom/google/android/gms/internal/ads/f0;->b(Landroid/content/Context;Ljava/lang/String;Lcom/google/android/gms/ads/initialization/OnInitializationCompleteListener;)V

    return-void
.end method

.method public static openAdInspector(Landroid/content/Context;Lcom/google/android/gms/ads/OnAdInspectorClosedListener;)V
    .registers 6
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .param p1    # Lcom/google/android/gms/ads/OnAdInspectorClosedListener;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_7
    invoke-virtual {v0, p0}, Lcom/google/android/gms/internal/ads/f0;->e(Landroid/content/Context;)V

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object p0

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/f0;->f:Lcom/google/android/gms/ads/OnAdInspectorClosedListener;
    :try_end_10
    .catchall {:try_start_7 .. :try_end_10} :catchall_31

    :try_start_10
    iget-object p0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    new-instance v0, Lcom/google/android/gms/internal/ads/e0;

    invoke-direct {v0}, Lcom/google/android/gms/internal/ads/e0;-><init>()V

    invoke-interface {p0, v0}, Lz5/gm;->C1(Lcom/google/android/gms/internal/ads/b0;)V
    :try_end_1a
    .catch Landroid/os/RemoteException; {:try_start_10 .. :try_end_1a} :catch_1b
    .catchall {:try_start_10 .. :try_end_1a} :catchall_31

    goto :goto_2f

    :catch_1b
    :try_start_1b
    const-string p0, "Unable to open the ad inspector."

    invoke-static {p0}, Lz5/d50;->zzf(Ljava/lang/String;)V

    if-eqz p1, :cond_2f

    new-instance p0, Lcom/google/android/gms/ads/AdInspectorError;

    const/4 v0, 0x0

    const-string v2, "Ad inspector had an internal error."

    const-string v3, "com.google.android.gms.ads"

    invoke-direct {p0, v0, v2, v3}, Lcom/google/android/gms/ads/AdInspectorError;-><init>(ILjava/lang/String;Ljava/lang/String;)V

    invoke-interface {p1, p0}, Lcom/google/android/gms/ads/OnAdInspectorClosedListener;->onAdInspectorClosed(Lcom/google/android/gms/ads/AdInspectorError;)V

    :cond_2f
    :goto_2f
    monitor-exit v1

    return-void

    :catchall_31
    move-exception p0

    monitor-exit v1
    :try_end_33
    .catchall {:try_start_1b .. :try_end_33} :catchall_31

    throw p0
.end method

.method public static openDebugMenu(Landroid/content/Context;Ljava/lang/String;)V
    .registers 6
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_7
    iget-object v2, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    if-eqz v2, :cond_d

    const/4 v2, 0x1

    goto :goto_e

    :cond_d
    const/4 v2, 0x0

    :goto_e
    const-string v3, "MobileAds.initialize() must be called prior to opening debug menu."

    invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/d;->k(ZLjava/lang/Object;)V
    :try_end_13
    .catchall {:try_start_7 .. :try_end_13} :catchall_26

    :try_start_13
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    .line 2
    new-instance v2, Lx5/b;

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

    .line 3
    invoke-interface {v0, v2, p1}, Lz5/gm;->w1(Lx5/a;Ljava/lang/String;)V
    :try_end_1d
    .catch Landroid/os/RemoteException; {:try_start_13 .. :try_end_1d} :catch_1e
    .catchall {:try_start_13 .. :try_end_1d} :catchall_26

    goto :goto_24

    :catch_1e
    move-exception p0

    :try_start_1f
    const-string p1, "Unable to open debug menu."

    invoke-static {p1, p0}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_24
    monitor-exit v1

    return-void

    :catchall_26
    move-exception p0

    monitor-exit v1
    :try_end_28
    .catchall {:try_start_1f .. :try_end_28} :catchall_26

    throw p0
.end method

.method public static registerRtbAdapter(Ljava/lang/Class;)V
    .registers 3
    .param p0    # Ljava/lang/Class;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class<",
            "+",
            "Lcom/google/android/gms/ads/mediation/rtb/RtbAdapter;",
            ">;)V"
        }
    .end annotation

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_7
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    invoke-virtual {p0}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object p0

    invoke-interface {v0, p0}, Lz5/gm;->x(Ljava/lang/String;)V
    :try_end_10
    .catch Landroid/os/RemoteException; {:try_start_7 .. :try_end_10} :catch_13
    .catchall {:try_start_7 .. :try_end_10} :catchall_11

    goto :goto_19

    :catchall_11
    move-exception p0

    goto :goto_1b

    :catch_13
    move-exception p0

    :try_start_14
    const-string v0, "Unable to register RtbAdapter"

    invoke-static {v0, p0}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_19
    monitor-exit v1

    return-void

    :goto_1b
    monitor-exit v1
    :try_end_1c
    .catchall {:try_start_14 .. :try_end_1c} :catchall_11

    throw p0
.end method

.method public static registerWebView(Landroid/webkit/WebView;)V
    .registers 4
    .param p0    # Landroid/webkit/WebView;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

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

    const-string v1, "#008 Must be called on the main UI thread."

    .line 1
    invoke-static {v1}, Lcom/google/android/gms/common/internal/d;->d(Ljava/lang/String;)V

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v0

    if-nez p0, :cond_18

    :try_start_11
    const-string p0, "The webview to be registered cannot be null."

    invoke-static {p0}, Lz5/d50;->zzf(Ljava/lang/String;)V

    :goto_16
    monitor-exit v0

    goto :goto_38

    :cond_18
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/google/android/gms/internal/ads/d1;->e(Landroid/content/Context;)Lz5/k40;

    move-result-object v1

    if-nez v1, :cond_28

    const-string p0, "Internal error, query info generator is null."

    invoke-static {p0}, Lz5/d50;->zzi(Ljava/lang/String;)V
    :try_end_27
    .catchall {:try_start_11 .. :try_end_27} :catchall_39

    goto :goto_16

    .line 2
    :cond_28
    :try_start_28
    new-instance v2, Lx5/b;

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

    .line 3
    invoke-interface {v1, v2}, Lz5/k40;->zzj(Lx5/a;)V
    :try_end_30
    .catch Landroid/os/RemoteException; {:try_start_28 .. :try_end_30} :catch_31
    .catchall {:try_start_28 .. :try_end_30} :catchall_39

    goto :goto_16

    :catch_31
    move-exception p0

    :try_start_32
    const-string v1, ""

    invoke-static {v1, p0}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_16

    :goto_38
    return-void

    :catchall_39
    move-exception p0

    monitor-exit v0
    :try_end_3b
    .catchall {:try_start_32 .. :try_end_3b} :catchall_39

    throw p0
.end method

.method public static setAppMuted(Z)V
    .registers 5

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_7
    iget-object v2, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    if-eqz v2, :cond_d

    const/4 v2, 0x1

    goto :goto_e

    :cond_d
    const/4 v2, 0x0

    :goto_e
    const-string v3, "MobileAds.initialize() must be called prior to setting app muted state."

    invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/d;->k(ZLjava/lang/Object;)V
    :try_end_13
    .catchall {:try_start_7 .. :try_end_13} :catchall_21

    :try_start_13
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    invoke-interface {v0, p0}, Lz5/gm;->m(Z)V
    :try_end_18
    .catch Landroid/os/RemoteException; {:try_start_13 .. :try_end_18} :catch_19
    .catchall {:try_start_13 .. :try_end_18} :catchall_21

    goto :goto_1f

    :catch_19
    move-exception p0

    :try_start_1a
    const-string v0, "Unable to set app mute state."

    invoke-static {v0, p0}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_1f
    monitor-exit v1

    return-void

    :catchall_21
    move-exception p0

    monitor-exit v1
    :try_end_23
    .catchall {:try_start_1a .. :try_end_23} :catchall_21

    throw p0
.end method

.method public static setAppVolume(F)V
    .registers 6

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

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

    const/4 v1, 0x0

    cmpg-float v1, p0, v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-ltz v1, :cond_16

    const/high16 v1, 0x3f800000    # 1.0f

    cmpg-float v1, p0, v1

    if-gtz v1, :cond_16

    move v1, v2

    goto :goto_17

    :cond_16
    move v1, v3

    :goto_17
    const-string v4, "The app volume must be a value between 0 and 1 inclusive."

    .line 1
    invoke-static {v1, v4}, Lcom/google/android/gms/common/internal/d;->b(ZLjava/lang/Object;)V

    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_1f
    iget-object v4, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    if-eqz v4, :cond_24

    goto :goto_25

    :cond_24
    move v2, v3

    :goto_25
    const-string v3, "MobileAds.initialize() must be called prior to setting the app volume."

    invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/d;->k(ZLjava/lang/Object;)V
    :try_end_2a
    .catchall {:try_start_1f .. :try_end_2a} :catchall_38

    :try_start_2a
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    invoke-interface {v0, p0}, Lz5/gm;->e1(F)V
    :try_end_2f
    .catch Landroid/os/RemoteException; {:try_start_2a .. :try_end_2f} :catch_30
    .catchall {:try_start_2a .. :try_end_2f} :catchall_38

    goto :goto_36

    :catch_30
    move-exception p0

    :try_start_31
    const-string v0, "Unable to set app volume."

    invoke-static {v0, p0}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_36
    monitor-exit v1

    return-void

    :catchall_38
    move-exception p0

    monitor-exit v1
    :try_end_3a
    .catchall {:try_start_31 .. :try_end_3a} :catchall_38

    throw p0
.end method

.method public static setRequestConfiguration(Lcom/google/android/gms/ads/RequestConfiguration;)V
    .registers 6
    .param p0    # Lcom/google/android/gms/ads/RequestConfiguration;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v0

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

    if-eqz p0, :cond_b

    const/4 v1, 0x1

    goto :goto_c

    :cond_b
    const/4 v1, 0x0

    :goto_c
    const-string v2, "Null passed to setRequestConfiguration."

    .line 1
    invoke-static {v1, v2}, Lcom/google/android/gms/common/internal/d;->b(ZLjava/lang/Object;)V

    iget-object v1, v0, Lcom/google/android/gms/internal/ads/f0;->b:Ljava/lang/Object;

    monitor-enter v1

    :try_start_14
    iget-object v2, v0, Lcom/google/android/gms/internal/ads/f0;->g:Lcom/google/android/gms/ads/RequestConfiguration;

    iput-object p0, v0, Lcom/google/android/gms/internal/ads/f0;->g:Lcom/google/android/gms/ads/RequestConfiguration;

    iget-object v3, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    if-nez v3, :cond_1e

    :cond_1c
    :goto_1c
    monitor-exit v1

    goto :goto_44

    :cond_1e
    invoke-virtual {v2}, Lcom/google/android/gms/ads/RequestConfiguration;->getTagForChildDirectedTreatment()I

    move-result v3

    invoke-virtual {p0}, Lcom/google/android/gms/ads/RequestConfiguration;->getTagForChildDirectedTreatment()I

    move-result v4

    if-ne v3, v4, :cond_32

    invoke-virtual {v2}, Lcom/google/android/gms/ads/RequestConfiguration;->getTagForUnderAgeOfConsent()I

    move-result v2

    invoke-virtual {p0}, Lcom/google/android/gms/ads/RequestConfiguration;->getTagForUnderAgeOfConsent()I

    move-result v3
    :try_end_30
    .catchall {:try_start_14 .. :try_end_30} :catchall_45

    if-eq v2, v3, :cond_1c

    .line 2
    :cond_32
    :try_start_32
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/f0;->c:Lz5/gm;

    new-instance v2, Lz5/yn;

    invoke-direct {v2, p0}, Lz5/yn;-><init>(Lcom/google/android/gms/ads/RequestConfiguration;)V

    invoke-interface {v0, v2}, Lz5/gm;->C0(Lz5/yn;)V
    :try_end_3c
    .catch Landroid/os/RemoteException; {:try_start_32 .. :try_end_3c} :catch_3d
    .catchall {:try_start_32 .. :try_end_3c} :catchall_45

    goto :goto_1c

    :catch_3d
    move-exception p0

    :try_start_3e
    const-string v0, "Unable to set request configuration parcel."

    invoke-static {v0, p0}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_1c

    :goto_44
    return-void

    :catchall_45
    move-exception p0

    .line 3
    monitor-exit v1
    :try_end_47
    .catchall {:try_start_3e .. :try_end_47} :catchall_45

    throw p0
.end method
