granularity level: instruction
.class public Lcom/google/firebase/messaging/NotificationParams;
.super Ljava/lang/Object;
.source "NotificationParams.java"
.field private static final COLOR_TRANSPARENT_IN_HEX:I = -0x1000000
.field private static final EMPTY_JSON_ARRAY_LENGTH:I = 0x1
.field private static final TAG:Ljava/lang/String; = "NotificationParams"
.field private static final VISIBILITY_MAX:I = 0x1
.field private static final VISIBILITY_MIN:I = -0x1
.field private final data:Landroid/os/Bundle;
.method public constructor <init>(Landroid/os/Bundle;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0, p1}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
iput-object v0, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
return-void
.end method
.method private static getLightColor(Ljava/lang/String;)I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method private static isAnalyticsKey(Ljava/lang/String;)Z
.locals 1
const-string v0, "google.c.a."
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "from"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method public static isNotification(Landroid/os/Bundle;)Z
.locals 3
const-string v0, "gcm.n.e"
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "1"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
invoke-static {v0}, Lcom/google/firebase/messaging/NotificationParams;->keyWithOldPrefix(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-virtual {v2, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method private static isReservedKey(Ljava/lang/String;)Z
.locals 1
const-string v0, "google.c."
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "gcm.n."
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "gcm.notification."
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method private static keyWithOldPrefix(Ljava/lang/String;)Ljava/lang/String;
.locals 2
const-string v0, "gcm.n."
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
const-string v1, "gcm.notification."
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private normalizePrefix(Ljava/lang/String;)Ljava/lang/String;
.locals 2
iget-object v0, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-virtual {v0, p1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "gcm.n."
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
invoke-static {p1}, Lcom/google/firebase/messaging/NotificationParams;->keyWithOldPrefix(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-virtual {v1, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
return-object v0
:cond_0
return-object p1
.end method
.method private static userFriendlyKey(Ljava/lang/String;)Ljava/lang/String;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getBoolean(Ljava/lang/String;)Z
.locals 1
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v0, "1"
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
invoke-static {p1}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z
move-result p1
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
return p1
.end method
.method public getInteger(Ljava/lang/String;)Ljava/lang/Integer;
.locals 3
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
const/4 p1, 0x0
return-object p1
.end method
.method public getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
.locals 3
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
const/4 p1, 0x0
return-object p1
.end method
.method getLightSettings()[I
.locals 8
const-string v0, ". Skipping setting LightSettings"
const-string v1, "LightSettings is invalid: "
const-string v2, "NotificationParams"
const-string v3, "gcm.n.light_settings"
invoke-virtual {p0, v3}, Lcom/google/firebase/messaging/NotificationParams;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v3
const/4 v4, 0x0
return-object v4
.end method
.method public getLink()Landroid/net/Uri;
.locals 2
const-string v0, "gcm.n.link_android"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_0
const-string v0, "gcm.n.link"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
:cond_0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
const/4 v0, 0x0
return-object v0
.end method
.method public getLocalizationArgsForKey(Ljava/lang/String;)[Ljava/lang/Object;
.locals 4
const/4 v0, 0x0
return-object v0
.end method
.method public getLocalizationResourceForKey(Ljava/lang/String;)Ljava/lang/String;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getLocalizedString(Landroid/content/res/Resources;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 5
const/4 v0, 0x0
return-object v0
.end method
.method public getLong(Ljava/lang/String;)Ljava/lang/Long;
.locals 3
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
const/4 p1, 0x0
return-object p1
.end method
.method public getNotificationChannelId()Ljava/lang/String;
.locals 1
const-string v0, "gcm.n.android_channel_id"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method getNotificationCount()Ljava/lang/Integer;
.locals 4
const-string v0, "gcm.n.notification_count"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getInteger(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object v0
const/4 v1, 0x0
return-object v1
.end method
.method getNotificationPriority()Ljava/lang/Integer;
.locals 4
const-string v0, "gcm.n.notification_priority"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getInteger(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object v0
const/4 v1, 0x0
return-object v1
.end method
.method public getPossiblyLocalizedString(Landroid/content/res/Resources;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 2
invoke-virtual {p0, p3}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
return-object v0
.end method
.method public getSoundResourceName()Ljava/lang/String;
.locals 2
const-string v0, "gcm.n.sound2"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_0
const-string v0, "gcm.n.sound"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
:cond_0
return-object v0
.end method
.method public getString(Ljava/lang/String;)Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-direct {p0, p1}, Lcom/google/firebase/messaging/NotificationParams;->normalizePrefix(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getVibrateTimings()[J
.locals 7
const-string v0, "gcm.n.vibrate_timings"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v0
const/4 v1, 0x0
return-object v1
.end method
.method getVisibility()Ljava/lang/Integer;
.locals 4
const-string v0, "gcm.n.visibility"
invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/NotificationParams;->getInteger(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object v0
const/4 v1, 0x0
return-object v1
.end method
.method public hasImage()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isNotification()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public paramsForAnalyticsIntent()Landroid/os/Bundle;
.locals 4
new-instance v0, Landroid/os/Bundle;
iget-object v1, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-direct {v0, v1}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
iget-object v1, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
:cond_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-static {v2}, Lcom/google/firebase/messaging/NotificationParams;->isAnalyticsKey(Ljava/lang/String;)Z
move-result v3
if-nez v3, :cond_0
invoke-virtual {v0, v2}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
goto :goto_0
:cond_1
return-object v0
.end method
.method public paramsWithReservedKeysRemoved()Landroid/os/Bundle;
.locals 4
new-instance v0, Landroid/os/Bundle;
iget-object v1, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-direct {v0, v1}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
iget-object v1, p0, Lcom/google/firebase/messaging/NotificationParams;->data:Landroid/os/Bundle;
invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
:cond_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-static {v2}, Lcom/google/firebase/messaging/NotificationParams;->isReservedKey(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_0
invoke-virtual {v0, v2}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
goto :goto_0
:cond_1
return-object v0
.end method