a.smali
.class public Lcom/vivo/push/d/a;
.super Ljava/lang/Object;
.source "ClientConfigManagerImpl.java"
# interfaces
.implements Lcom/vivo/push/d/e;
# static fields
.field private static final a:Ljava/lang/Object;
.field private static volatile b:Lcom/vivo/push/d/a;
# instance fields
.field private c:Landroid/content/Context;
.field private d:Lcom/vivo/push/d/b;
.field private e:Lcom/vivo/push/d/f;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 16
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/vivo/push/d/a;->a:Ljava/lang/Object;
return-void
.end method
.method private constructor <init>(Landroid/content/Context;)V
.registers 4
.prologue
.line 23
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 25
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
iput-object v0, p0, Lcom/vivo/push/d/a;->c:Landroid/content/Context;
.line 26
new-instance v0, Lcom/vivo/push/d/b;
iget-object v1, p0, Lcom/vivo/push/d/a;->c:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/vivo/push/d/b;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
.line 27
new-instance v0, Lcom/vivo/push/d/f;
iget-object v1, p0, Lcom/vivo/push/d/a;->c:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/vivo/push/d/f;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/vivo/push/d/a;->e:Lcom/vivo/push/d/f;
.line 28
return-void
.end method
.method public static a(Landroid/content/Context;)Lcom/vivo/push/d/a;
.registers 3
.prologue
.line 32
sget-object v0, Lcom/vivo/push/d/a;->b:Lcom/vivo/push/d/a;
if-nez v0, :cond_13
.line 33
sget-object v1, Lcom/vivo/push/d/a;->a:Ljava/lang/Object;
monitor-enter v1
.line 34
:try_start_7
sget-object v0, Lcom/vivo/push/d/a;->b:Lcom/vivo/push/d/a;
if-nez v0, :cond_12
.line 35
new-instance v0, Lcom/vivo/push/d/a;
invoke-direct {v0, p0}, Lcom/vivo/push/d/a;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/vivo/push/d/a;->b:Lcom/vivo/push/d/a;
.line 37
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
.line 39
:cond_13
sget-object v0, Lcom/vivo/push/d/a;->b:Lcom/vivo/push/d/a;
return-object v0
.line 37
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method private g()V
.registers 3
.prologue
.line 57
iget-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
if-nez v0, :cond_e
.line 58
new-instance v0, Lcom/vivo/push/d/b;
iget-object v1, p0, Lcom/vivo/push/d/a;->c:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/vivo/push/d/b;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
.line 62
:goto_d
return-void
.line 60
:cond_e
iget-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
invoke-virtual {v0}, Lcom/vivo/push/d/b;->c()V
goto :goto_d
.end method
.method private h()Lcom/vivo/push/d/f;
.registers 3
.prologue
.line 133
iget-object v0, p0, Lcom/vivo/push/d/a;->e:Lcom/vivo/push/d/f;
if-nez v0, :cond_10
.line 134
new-instance v0, Lcom/vivo/push/d/f;
iget-object v1, p0, Lcom/vivo/push/d/a;->c:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/vivo/push/d/f;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/vivo/push/d/a;->e:Lcom/vivo/push/d/f;
.line 138
:goto_d
iget-object v0, p0, Lcom/vivo/push/d/a;->e:Lcom/vivo/push/d/f;
return-object v0
.line 136
:cond_10
iget-object v0, p0, Lcom/vivo/push/d/a;->e:Lcom/vivo/push/d/f;
invoke-virtual {v0}, Lcom/vivo/push/d/f;->c()V
goto :goto_d
.end method
# virtual methods
.method public a()Z
.registers 3
.prologue
.line 47
invoke-direct {p0}, Lcom/vivo/push/d/a;->g()V
.line 48
iget-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
iget-object v1, p0, Lcom/vivo/push/d/a;->c:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/vivo/push/d/b;->c(Ljava/lang/String;)Lcom/vivo/push/e/d;
move-result-object v0
.line 49
if-eqz v0, :cond_1c
.line 50
const-string v1, "1"
invoke-virtual {v0}, Lcom/vivo/push/e/d;->b()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
.line 52
:goto_1b
return v0
:cond_1c
const/4 v0, 0x1
goto :goto_1b
.end method
.method public a(I)Z
.registers 3
.prologue
.line 157
invoke-static {p1}, Lcom/vivo/push/d/b;->a(I)Z
move-result v0
return v0
.end method
.method public a(J)Z
.registers 12
.prologue
const/4 v0, 0x0
.line 76
invoke-direct {p0}, Lcom/vivo/push/d/a;->h()Lcom/vivo/push/d/f;
move-result-object v1
.line 77
const-string v2, "BL"
invoke-virtual {v1, v2}, Lcom/vivo/push/d/f;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 78
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_2c
.line 79
const-string v2, ","
invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v3
.line 80
array-length v4, v3
move v2, v0
:goto_19
if-ge v2, v4, :cond_2c
aget-object v1, v3, v2
.line 82
:try_start_1d
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_31
invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
:try_end_26
.catch Ljava/lang/NumberFormatException; {:try_start_1d .. :try_end_26} :catch_2d
move-result-wide v6
cmp-long v1, v6, p1
if-nez v1, :cond_31
.line 83
const/4 v0, 0x1
.line 90
:cond_2c
return v0
.line 86
:catch_2d
move-exception v1
invoke-virtual {v1}, Ljava/lang/NumberFormatException;->printStackTrace()V
.line 80
:cond_31
add-int/lit8 v1, v2, 0x1
move v2, v1
goto :goto_19
.end method
.method public b()V
.registers 2
.prologue
.line 68
iget-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
invoke-virtual {v0}, Lcom/vivo/push/d/b;->d()V
.line 69
return-void
.end method
.method public c()I
.registers 4
.prologue
.line 94
invoke-direct {p0}, Lcom/vivo/push/d/a;->h()Lcom/vivo/push/d/f;
move-result-object v1
.line 95
const/4 v0, 0x0
.line 97
:try_start_5
const-string v2, "DPL"
invoke-virtual {v1, v2}, Lcom/vivo/push/d/f;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 98
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
:try_end_e
.catch Ljava/lang/NumberFormatException; {:try_start_5 .. :try_end_e} :catch_1b
move-result v2
if-nez v2, :cond_15
.line 100
:try_start_11
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
:try_end_14
.catch Ljava/lang/NumberFormatException; {:try_start_11 .. :try_end_14} :catch_16
move-result v0
.line 108
:cond_15
:goto_15
return v0
.line 102
:catch_16
move-exception v1
:try_start_17
invoke-virtual {v1}, Ljava/lang/NumberFormatException;->printStackTrace()V
:try_end_1a
.catch Ljava/lang/NumberFormatException; {:try_start_17 .. :try_end_1a} :catch_1b
goto :goto_15
.line 106
:catch_1b
move-exception v1
invoke-virtual {v1}, Ljava/lang/NumberFormatException;->printStackTrace()V
goto :goto_15
.end method
.method public d()Z
.registers 4
.prologue
const/4 v0, 0x0
.line 118
invoke-direct {p0}, Lcom/vivo/push/d/a;->h()Lcom/vivo/push/d/f;
move-result-object v1
.line 120
const-string v2, "PSM"
invoke-virtual {v1, v2}, Lcom/vivo/push/d/f;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 121
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_1f
.line 123
:try_start_11
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
:try_end_14
.catch Ljava/lang/NumberFormatException; {:try_start_11 .. :try_end_14} :catch_1b
move-result v1
.line 128
:goto_15
and-int/lit8 v1, v1, 0x4
if-eqz v1, :cond_1a
const/4 v0, 0x1
:cond_1a
return v0
.line 125
:catch_1b
move-exception v1
invoke-virtual {v1}, Ljava/lang/NumberFormatException;->printStackTrace()V
:cond_1f
move v1, v0
goto :goto_15
.end method
.method public e()Ljava/lang/String;
.registers 3
.prologue
.line 147
invoke-direct {p0}, Lcom/vivo/push/d/a;->h()Lcom/vivo/push/d/f;
move-result-object v0
.line 148
const-string v1, "CSPT"
invoke-virtual {v0, v1}, Lcom/vivo/push/d/f;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public f()Z
.registers 2
.prologue
.line 152
iget-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
invoke-virtual {v0}, Lcom/vivo/push/d/b;->c()V
.line 153
iget-object v0, p0, Lcom/vivo/push/d/a;->d:Lcom/vivo/push/d/b;
.line 1180
invoke-virtual {v0}, Lcom/vivo/push/d/b;->b()I
move-result v0
invoke-static {v0}, Lcom/vivo/push/d/b;->a(I)Z
move-result v0
.line 153
return v0
.end method