1030 lines
25 KiB
Smali
1030 lines
25 KiB
Smali
.class public Landroidx/core/app/NotificationCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "NotificationCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/app/NotificationCompat$CarExtender;,
|
|
Landroidx/core/app/NotificationCompat$WearableExtender;,
|
|
Landroidx/core/app/NotificationCompat$Extender;,
|
|
Landroidx/core/app/NotificationCompat$Action;,
|
|
Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;,
|
|
Landroidx/core/app/NotificationCompat$InboxStyle;,
|
|
Landroidx/core/app/NotificationCompat$MessagingStyle;,
|
|
Landroidx/core/app/NotificationCompat$BigTextStyle;,
|
|
Landroidx/core/app/NotificationCompat$BigPictureStyle;,
|
|
Landroidx/core/app/NotificationCompat$Style;,
|
|
Landroidx/core/app/NotificationCompat$Builder;,
|
|
Landroidx/core/app/NotificationCompat$GroupAlertBehavior;,
|
|
Landroidx/core/app/NotificationCompat$BadgeIconType;,
|
|
Landroidx/core/app/NotificationCompat$NotificationVisibility;,
|
|
Landroidx/core/app/NotificationCompat$StreamType;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final BADGE_ICON_LARGE:I = 0x2
|
|
|
|
.field public static final BADGE_ICON_NONE:I = 0x0
|
|
|
|
.field public static final BADGE_ICON_SMALL:I = 0x1
|
|
|
|
.field public static final CATEGORY_ALARM:Ljava/lang/String; = "alarm"
|
|
|
|
.field public static final CATEGORY_CALL:Ljava/lang/String; = "call"
|
|
|
|
.field public static final CATEGORY_EMAIL:Ljava/lang/String; = "email"
|
|
|
|
.field public static final CATEGORY_ERROR:Ljava/lang/String; = "err"
|
|
|
|
.field public static final CATEGORY_EVENT:Ljava/lang/String; = "event"
|
|
|
|
.field public static final CATEGORY_MESSAGE:Ljava/lang/String; = "msg"
|
|
|
|
.field public static final CATEGORY_PROGRESS:Ljava/lang/String; = "progress"
|
|
|
|
.field public static final CATEGORY_PROMO:Ljava/lang/String; = "promo"
|
|
|
|
.field public static final CATEGORY_RECOMMENDATION:Ljava/lang/String; = "recommendation"
|
|
|
|
.field public static final CATEGORY_REMINDER:Ljava/lang/String; = "reminder"
|
|
|
|
.field public static final CATEGORY_SERVICE:Ljava/lang/String; = "service"
|
|
|
|
.field public static final CATEGORY_SOCIAL:Ljava/lang/String; = "social"
|
|
|
|
.field public static final CATEGORY_STATUS:Ljava/lang/String; = "status"
|
|
|
|
.field public static final CATEGORY_SYSTEM:Ljava/lang/String; = "sys"
|
|
|
|
.field public static final CATEGORY_TRANSPORT:Ljava/lang/String; = "transport"
|
|
|
|
.field public static final COLOR_DEFAULT:I = 0x0
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final DEFAULT_ALL:I = -0x1
|
|
|
|
.field public static final DEFAULT_LIGHTS:I = 0x4
|
|
|
|
.field public static final DEFAULT_SOUND:I = 0x1
|
|
|
|
.field public static final DEFAULT_VIBRATE:I = 0x2
|
|
|
|
.field public static final EXTRA_AUDIO_CONTENTS_URI:Ljava/lang/String; = "android.audioContents"
|
|
|
|
.field public static final EXTRA_BACKGROUND_IMAGE_URI:Ljava/lang/String; = "android.backgroundImageUri"
|
|
|
|
.field public static final EXTRA_BIG_TEXT:Ljava/lang/String; = "android.bigText"
|
|
|
|
.field public static final EXTRA_COMPACT_ACTIONS:Ljava/lang/String; = "android.compactActions"
|
|
|
|
.field public static final EXTRA_CONVERSATION_TITLE:Ljava/lang/String; = "android.conversationTitle"
|
|
|
|
.field public static final EXTRA_HIDDEN_CONVERSATION_TITLE:Ljava/lang/String; = "android.hiddenConversationTitle"
|
|
|
|
.field public static final EXTRA_INFO_TEXT:Ljava/lang/String; = "android.infoText"
|
|
|
|
.field public static final EXTRA_IS_GROUP_CONVERSATION:Ljava/lang/String; = "android.isGroupConversation"
|
|
|
|
.field public static final EXTRA_LARGE_ICON:Ljava/lang/String; = "android.largeIcon"
|
|
|
|
.field public static final EXTRA_LARGE_ICON_BIG:Ljava/lang/String; = "android.largeIcon.big"
|
|
|
|
.field public static final EXTRA_MEDIA_SESSION:Ljava/lang/String; = "android.mediaSession"
|
|
|
|
.field public static final EXTRA_MESSAGES:Ljava/lang/String; = "android.messages"
|
|
|
|
.field public static final EXTRA_MESSAGING_STYLE_USER:Ljava/lang/String; = "android.messagingStyleUser"
|
|
|
|
.field public static final EXTRA_PEOPLE:Ljava/lang/String; = "android.people"
|
|
|
|
.field public static final EXTRA_PICTURE:Ljava/lang/String; = "android.picture"
|
|
|
|
.field public static final EXTRA_PROGRESS:Ljava/lang/String; = "android.progress"
|
|
|
|
.field public static final EXTRA_PROGRESS_INDETERMINATE:Ljava/lang/String; = "android.progressIndeterminate"
|
|
|
|
.field public static final EXTRA_PROGRESS_MAX:Ljava/lang/String; = "android.progressMax"
|
|
|
|
.field public static final EXTRA_REMOTE_INPUT_HISTORY:Ljava/lang/String; = "android.remoteInputHistory"
|
|
|
|
.field public static final EXTRA_SELF_DISPLAY_NAME:Ljava/lang/String; = "android.selfDisplayName"
|
|
|
|
.field public static final EXTRA_SHOW_CHRONOMETER:Ljava/lang/String; = "android.showChronometer"
|
|
|
|
.field public static final EXTRA_SHOW_WHEN:Ljava/lang/String; = "android.showWhen"
|
|
|
|
.field public static final EXTRA_SMALL_ICON:Ljava/lang/String; = "android.icon"
|
|
|
|
.field public static final EXTRA_SUB_TEXT:Ljava/lang/String; = "android.subText"
|
|
|
|
.field public static final EXTRA_SUMMARY_TEXT:Ljava/lang/String; = "android.summaryText"
|
|
|
|
.field public static final EXTRA_TEMPLATE:Ljava/lang/String; = "android.template"
|
|
|
|
.field public static final EXTRA_TEXT:Ljava/lang/String; = "android.text"
|
|
|
|
.field public static final EXTRA_TEXT_LINES:Ljava/lang/String; = "android.textLines"
|
|
|
|
.field public static final EXTRA_TITLE:Ljava/lang/String; = "android.title"
|
|
|
|
.field public static final EXTRA_TITLE_BIG:Ljava/lang/String; = "android.title.big"
|
|
|
|
.field public static final FLAG_AUTO_CANCEL:I = 0x10
|
|
|
|
.field public static final FLAG_FOREGROUND_SERVICE:I = 0x40
|
|
|
|
.field public static final FLAG_GROUP_SUMMARY:I = 0x200
|
|
|
|
.field public static final FLAG_HIGH_PRIORITY:I = 0x80
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final FLAG_INSISTENT:I = 0x4
|
|
|
|
.field public static final FLAG_LOCAL_ONLY:I = 0x100
|
|
|
|
.field public static final FLAG_NO_CLEAR:I = 0x20
|
|
|
|
.field public static final FLAG_ONGOING_EVENT:I = 0x2
|
|
|
|
.field public static final FLAG_ONLY_ALERT_ONCE:I = 0x8
|
|
|
|
.field public static final FLAG_SHOW_LIGHTS:I = 0x1
|
|
|
|
.field public static final GROUP_ALERT_ALL:I = 0x0
|
|
|
|
.field public static final GROUP_ALERT_CHILDREN:I = 0x2
|
|
|
|
.field public static final GROUP_ALERT_SUMMARY:I = 0x1
|
|
|
|
.field public static final PRIORITY_DEFAULT:I = 0x0
|
|
|
|
.field public static final PRIORITY_HIGH:I = 0x1
|
|
|
|
.field public static final PRIORITY_LOW:I = -0x1
|
|
|
|
.field public static final PRIORITY_MAX:I = 0x2
|
|
|
|
.field public static final PRIORITY_MIN:I = -0x2
|
|
|
|
.field public static final STREAM_DEFAULT:I = -0x1
|
|
|
|
.field public static final VISIBILITY_PRIVATE:I = 0x0
|
|
|
|
.field public static final VISIBILITY_PUBLIC:I = 0x1
|
|
|
|
.field public static final VISIBILITY_SECRET:I = -0x1
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getAction(Landroid/app/Notification;I)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;
|
|
|
|
aget-object p0, p0, p1
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompat;->getActionCompatFromAction(Landroid/app/Notification$Action;)Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
iget-object v0, p0, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;
|
|
|
|
aget-object v0, v0, p1
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v1, "android.support.actionExtras"
|
|
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
move-object v2, p0
|
|
|
|
check-cast v2, Landroid/os/Bundle;
|
|
|
|
:cond_1
|
|
iget p0, v0, Landroid/app/Notification$Action;->icon:I
|
|
|
|
iget-object p1, v0, Landroid/app/Notification$Action;->title:Ljava/lang/CharSequence;
|
|
|
|
iget-object v0, v0, Landroid/app/Notification$Action;->actionIntent:Landroid/app/PendingIntent;
|
|
|
|
invoke-static {p0, p1, v0, v2}, Landroidx/core/app/NotificationCompatJellybean;->readAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_3
|
|
|
|
invoke-static {p0, p1}, Landroidx/core/app/NotificationCompatJellybean;->getAction(Landroid/app/Notification;I)Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
return-object v2
|
|
.end method
|
|
|
|
.method static getActionCompatFromAction(Landroid/app/Notification$Action;)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 14
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x14
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getRemoteInputs()[Landroid/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move-object v9, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
array-length v2, v0
|
|
|
|
new-array v2, v2, [Landroidx/core/app/RemoteInput;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
array-length v4, v0
|
|
|
|
if-ge v3, v4, :cond_1
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
new-instance v12, Landroidx/core/app/RemoteInput;
|
|
|
|
invoke-virtual {v4}, Landroid/app/RemoteInput;->getResultKey()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v4}, Landroid/app/RemoteInput;->getLabel()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v4}, Landroid/app/RemoteInput;->getChoices()[Ljava/lang/CharSequence;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v4}, Landroid/app/RemoteInput;->getAllowFreeFormInput()Z
|
|
|
|
move-result v9
|
|
|
|
invoke-virtual {v4}, Landroid/app/RemoteInput;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v10
|
|
|
|
const/4 v11, 0x0
|
|
|
|
move-object v5, v12
|
|
|
|
invoke-direct/range {v5 .. v11}, Landroidx/core/app/RemoteInput;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;[Ljava/lang/CharSequence;ZLandroid/os/Bundle;Ljava/util/Set;)V
|
|
|
|
aput-object v12, v2, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v9, v2
|
|
|
|
:goto_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x18
|
|
|
|
const-string v3, "android.support.allowGeneratedReplies"
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-lt v0, v2, :cond_4
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getAllowGeneratedReplies()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
:goto_2
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
:goto_3
|
|
move v11, v0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "android.support.action.showsUserInterface"
|
|
|
|
invoke-virtual {v0, v2, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v13
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x1c
|
|
|
|
if-lt v0, v2, :cond_5
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getSemanticAction()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "android.support.action.semanticAction"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
:goto_4
|
|
move v12, v0
|
|
|
|
new-instance v0, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
iget v5, p0, Landroid/app/Notification$Action;->icon:I
|
|
|
|
iget-object v6, p0, Landroid/app/Notification$Action;->title:Ljava/lang/CharSequence;
|
|
|
|
iget-object v7, p0, Landroid/app/Notification$Action;->actionIntent:Landroid/app/PendingIntent;
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v8
|
|
|
|
const/4 v10, 0x0
|
|
|
|
move-object v4, v0
|
|
|
|
invoke-direct/range {v4 .. v13}, Landroidx/core/app/NotificationCompat$Action;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;[Landroidx/core/app/RemoteInput;ZIZ)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getActionCount(Landroid/app/Notification;)I
|
|
.locals 3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x13
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
iget-object v0, p0, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;
|
|
|
|
array-length p0, p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getActionCount(Landroid/app/Notification;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_2
|
|
return v1
|
|
.end method
|
|
|
|
.method public static getBadgeIconType(Landroid/app/Notification;)I
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getBadgeIconType()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getCategory(Landroid/app/Notification;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->category:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getChannelId(Landroid/app/Notification;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getChannelId()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getContentTitle(Landroid/app/Notification;)Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x13
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v0, "android.title"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getGroup(Landroid/app/Notification;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getGroup()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
const-string v2, "android.support.groupKey"
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getGroupAlertBehavior(Landroid/app/Notification;)I
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getGroupAlertBehavior()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getInvisibleActions(Landroid/app/Notification;)Ljava/util/List;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/app/Notification;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Landroidx/core/app/NotificationCompat$Action;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v1, "android.car.EXTENSIONS"
|
|
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v1, "invisible_actions"
|
|
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/os/Bundle;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Landroidx/core/app/NotificationCompatJellybean;->getActionFromBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getLocalOnly(Landroid/app/Notification;)Z
|
|
.locals 4
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x14
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
iget p0, p0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 p0, p0, 0x100
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x13
|
|
|
|
const-string v3, "android.support.localOnly"
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method static getNotificationArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/app/Notification;
|
|
.locals 4
|
|
|
|
invoke-virtual {p0, p1}, Landroid/os/Bundle;->getParcelableArray(Ljava/lang/String;)[Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v1, v0, [Landroid/app/Notification;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
array-length v1, v0
|
|
|
|
new-array v1, v1, [Landroid/app/Notification;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
array-length v3, v0
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
check-cast v3, Landroid/app/Notification;
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p1, v1}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
:goto_1
|
|
check-cast v0, [Landroid/app/Notification;
|
|
|
|
check-cast v0, [Landroid/app/Notification;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getShortcutId(Landroid/app/Notification;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getShortcutId()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getSortKey(Landroid/app/Notification;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getSortKey()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
const-string v2, "android.support.sortKey"
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getTimeoutAfter(Landroid/app/Notification;)J
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getTimeoutAfter()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static isGroupSummary(Landroid/app/Notification;)Z
|
|
.locals 4
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x14
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
iget p0, p0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 p0, p0, 0x200
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x13
|
|
|
|
const-string v3, "android.support.isGroupSummary"
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|