.class public Lcom/mbridge/msdk/interstitial/b/a; .super Ljava/lang/Object; .source "SourceFile" # static fields .field private static final a:Ljava/lang/String; = "com.mbridge.msdk.interstitial.b.a" .field private static c:Lcom/mbridge/msdk/interstitial/b/a; # instance fields .field private b:Lcom/mbridge/msdk/foundation/db/e; # direct methods .method static constructor ()V .locals 0 return-void .end method .method private constructor ()V .locals 1 .line 20 invoke-direct {p0}, Ljava/lang/Object;->()V .line 22 :try_start_0 invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c; move-result-object v0 invoke-virtual {v0}, Lcom/mbridge/msdk/foundation/controller/a;->c()Landroid/content/Context; move-result-object v0 if-eqz v0, :cond_0 .line 24 invoke-static {v0}, Lcom/mbridge/msdk/foundation/db/g;->a(Landroid/content/Context;)Lcom/mbridge/msdk/foundation/db/g; move-result-object v0 invoke-static {v0}, Lcom/mbridge/msdk/foundation/db/e;->a(Lcom/mbridge/msdk/foundation/db/f;)Lcom/mbridge/msdk/foundation/db/e; move-result-object v0 iput-object v0, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception v0 .line 27 invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V :cond_0 :goto_0 return-void .end method .method public static declared-synchronized a()Lcom/mbridge/msdk/interstitial/b/a; .locals 2 const-class v0, Lcom/mbridge/msdk/interstitial/b/a; monitor-enter v0 :try_start_0 sget-object v1, Lcom/mbridge/msdk/interstitial/b/a;->c:Lcom/mbridge/msdk/interstitial/b/a; if-nez v1, :cond_0 .line 33 new-instance v1, Lcom/mbridge/msdk/interstitial/b/a; invoke-direct {v1}, Lcom/mbridge/msdk/interstitial/b/a;->()V sput-object v1, Lcom/mbridge/msdk/interstitial/b/a;->c:Lcom/mbridge/msdk/interstitial/b/a; goto :goto_0 :catchall_0 move-exception v1 goto :goto_1 :cond_0 :goto_0 sget-object v1, Lcom/mbridge/msdk/interstitial/b/a;->c:Lcom/mbridge/msdk/interstitial/b/a; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 35 monitor-exit v0 return-object v1 :goto_1 monitor-exit v0 throw v1 .end method # virtual methods .method public final a(Ljava/lang/String;I)Ljava/util/List; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "I)", "Ljava/util/List<", "Lcom/mbridge/msdk/foundation/entity/CampaignEx;", ">;" } .end annotation const/4 v0, 0x0 .line 41 :try_start_0 invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v1 if-nez v1, :cond_1 iget-object v1, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; const/4 v2, 0x0 const/4 v3, 0x1 .line 42 invoke-virtual {v1, p1, p2, v2, v3}, Lcom/mbridge/msdk/foundation/db/e;->a(Ljava/lang/String;III)Ljava/util/List; move-result-object p1 if-eqz p1, :cond_1 .line 44 new-instance p2, Ljava/util/ArrayList; invoke-direct {p2}, Ljava/util/ArrayList;->()V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1 .line 46 :try_start_1 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_0 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_0 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/mbridge/msdk/foundation/entity/CampaignEx; .line 47 invoke-interface {p2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 goto :goto_0 :catch_0 move-exception p1 move-object v0, p2 goto :goto_1 :cond_0 move-object v0, p2 goto :goto_2 :catch_1 move-exception p1 .line 52 :goto_1 invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V :cond_1 :goto_2 return-object v0 .end method .method public final declared-synchronized a(JLjava/lang/String;)V .locals 2 monitor-enter p0 :try_start_0 iget-object v0, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; if-eqz v0, :cond_0 const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-eqz v0, :cond_0 .line 112 invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; .line 113 invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/foundation/db/e;->b(JLjava/lang/String;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p1 goto :goto_1 :catch_0 move-exception p1 .line 116 :try_start_1 invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V sget-object p2, Lcom/mbridge/msdk/interstitial/b/a;->a:Ljava/lang/String; .line 117 invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object p1 invoke-static {p2, p1}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 119 :cond_0 :goto_0 monitor-exit p0 return-void :goto_1 monitor-exit p0 throw p1 .end method .method public final a(Lcom/mbridge/msdk/foundation/entity/CampaignEx;Ljava/lang/String;)V .locals 1 if-eqz p1, :cond_0 .line 61 :try_start_0 invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; .line 62 invoke-virtual {p1}, Lcom/mbridge/msdk/out/Campaign;->getId()Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/foundation/db/e;->a(Ljava/lang/String;Ljava/lang/String;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p1 .line 65 invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V :cond_0 :goto_0 return-void .end method .method public final a(Ljava/util/List;Ljava/lang/String;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "Lcom/mbridge/msdk/foundation/entity/CampaignEx;", ">;", "Ljava/lang/String;", ")V" } .end annotation if-eqz p1, :cond_0 .line 71 invoke-interface {p1}, Ljava/util/List;->size()I move-result v0 if-lez v0, :cond_0 invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-nez v0, :cond_0 .line 72 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_0 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_0 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/mbridge/msdk/foundation/entity/CampaignEx; .line 73 invoke-virtual {p0, v0, p2}, Lcom/mbridge/msdk/interstitial/b/a;->a(Lcom/mbridge/msdk/foundation/entity/CampaignEx;Ljava/lang/String;)V goto :goto_0 :cond_0 return-void .end method .method public final b(Lcom/mbridge/msdk/foundation/entity/CampaignEx;Ljava/lang/String;)V .locals 2 :try_start_0 iget-object v0, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; if-eqz v0, :cond_0 if-eqz p1, :cond_0 .line 102 invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-nez v0, :cond_0 iget-object v0, p0, Lcom/mbridge/msdk/interstitial/b/a;->b:Lcom/mbridge/msdk/foundation/db/e; const/4 v1, 0x0 .line 103 invoke-virtual {v0, p1, p2, v1}, Lcom/mbridge/msdk/foundation/db/e;->a(Lcom/mbridge/msdk/foundation/entity/CampaignEx;Ljava/lang/String;I)J :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p1 .line 106 invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V :cond_0 :goto_0 return-void .end method