961 lines
22 KiB
Smali
961 lines
22 KiB
Smali
.class public Landroid/support/v4/app/NotificationCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "NotificationCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroid/support/v4/app/NotificationCompat$CarExtender;,
|
|
Landroid/support/v4/app/NotificationCompat$WearableExtender;,
|
|
Landroid/support/v4/app/NotificationCompat$Extender;,
|
|
Landroid/support/v4/app/NotificationCompat$Action;,
|
|
Landroid/support/v4/app/NotificationCompat$DecoratedCustomViewStyle;,
|
|
Landroid/support/v4/app/NotificationCompat$InboxStyle;,
|
|
Landroid/support/v4/app/NotificationCompat$MessagingStyle;,
|
|
Landroid/support/v4/app/NotificationCompat$BigTextStyle;,
|
|
Landroid/support/v4/app/NotificationCompat$BigPictureStyle;,
|
|
Landroid/support/v4/app/NotificationCompat$Style;,
|
|
Landroid/support/v4/app/NotificationCompat$Builder;,
|
|
Landroid/support/v4/app/NotificationCompat$GroupAlertBehavior;,
|
|
Landroid/support/v4/app/NotificationCompat$BadgeIconType;,
|
|
Landroid/support/v4/app/NotificationCompat$NotificationVisibility;,
|
|
Landroid/support/v4/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 Landroid/support/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_INFO_TEXT:Ljava/lang/String; = "android.infoText"
|
|
|
|
.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_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
|
|
|
|
.line 72
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getAction(Landroid/app/Notification;I)Landroid/support/v4/app/NotificationCompat$Action;
|
|
.locals 3
|
|
|
|
.line 4586
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4587
|
|
iget-object p0, p0, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;
|
|
|
|
aget-object p0, p0, p1
|
|
|
|
invoke-static {p0}, Landroid/support/v4/app/NotificationCompat;->getActionCompatFromAction(Landroid/app/Notification$Action;)Landroid/support/v4/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 4588
|
|
: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
|
|
|
|
.line 4589
|
|
iget-object v0, p0, Landroid/app/Notification;->actions:[Landroid/app/Notification$Action;
|
|
|
|
aget-object v0, v0, p1
|
|
|
|
.line 4591
|
|
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
|
|
|
|
.line 4594
|
|
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;
|
|
|
|
.line 4596
|
|
: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}, Landroid/support/v4/app/NotificationCompatJellybean;->readAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;)Landroid/support/v4/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 4598
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_3
|
|
|
|
.line 4599
|
|
invoke-static {p0, p1}, Landroid/support/v4/app/NotificationCompatJellybean;->getAction(Landroid/app/Notification;I)Landroid/support/v4/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
return-object v2
|
|
.end method
|
|
|
|
.method static getActionCompatFromAction(Landroid/app/Notification$Action;)Landroid/support/v4/app/NotificationCompat$Action;
|
|
.locals 13
|
|
.annotation build Landroid/support/annotation/RequiresApi;
|
|
.end annotation
|
|
|
|
.line 4608
|
|
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
|
|
|
|
.line 4612
|
|
:cond_0
|
|
array-length v2, v0
|
|
|
|
new-array v2, v2, [Landroid/support/v4/app/RemoteInput;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 4613
|
|
:goto_0
|
|
array-length v4, v0
|
|
|
|
if-ge v3, v4, :cond_1
|
|
|
|
.line 4614
|
|
aget-object v4, v0, v3
|
|
|
|
.line 4615
|
|
new-instance v12, Landroid/support/v4/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
|
|
|
|
.line 4616
|
|
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}, Landroid/support/v4/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
|
|
|
|
.line 4621
|
|
:goto_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x18
|
|
|
|
if-lt v0, v2, :cond_4
|
|
|
|
.line 4622
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "android.support.allowGeneratedReplies"
|
|
|
|
invoke-virtual {v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 4624
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getAllowGeneratedReplies()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:cond_2
|
|
const/4 v1, 0x1
|
|
|
|
:cond_3
|
|
move v11, v1
|
|
|
|
goto :goto_2
|
|
|
|
.line 4626
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/app/Notification$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.support.allowGeneratedReplies"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
move v11, v0
|
|
|
|
.line 4629
|
|
:goto_2
|
|
new-instance v0, Landroid/support/v4/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;
|
|
|
|
.line 4630
|
|
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 .. v11}, Landroid/support/v4/app/NotificationCompat$Action;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroid/support/v4/app/RemoteInput;[Landroid/support/v4/app/RemoteInput;Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getActionCount(Landroid/app/Notification;)I
|
|
.locals 3
|
|
|
|
.line 4570
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x13
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
.line 4571
|
|
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 v1, p0
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
.line 4572
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
.line 4573
|
|
invoke-static {p0}, Landroid/support/v4/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
|
|
|
|
.line 4755
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4756
|
|
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
|
|
|
|
.line 4639
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4640
|
|
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
|
|
|
|
.line 4730
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4731
|
|
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 getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
.locals 2
|
|
|
|
.line 4556
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4557
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
return-object p0
|
|
|
|
.line 4558
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 4559
|
|
invoke-static {p0}, Landroid/support/v4/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 2
|
|
|
|
.line 4670
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4671
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getGroup()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 4672
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 4673
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v0, "android.support.groupKey"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 4674
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
.line 4675
|
|
invoke-static {p0}, Landroid/support/v4/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "android.support.groupKey"
|
|
|
|
invoke-virtual {p0, v0}, 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
|
|
|
|
.line 4781
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4782
|
|
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 getLocalOnly(Landroid/app/Notification;)Z
|
|
.locals 3
|
|
|
|
.line 4653
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x14
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
.line 4654
|
|
iget p0, p0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 p0, p0, 0x100
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
.line 4655
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x13
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
.line 4656
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v0, "android.support.localOnly"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
.line 4657
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
.line 4658
|
|
invoke-static {p0}, Landroid/support/v4/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "android.support.localOnly"
|
|
|
|
invoke-virtual {p0, v0}, 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
|
|
|
|
.line 4538
|
|
invoke-virtual {p0, p1}, Landroid/os/Bundle;->getParcelableArray(Ljava/lang/String;)[Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 4539
|
|
instance-of v1, v0, [Landroid/app/Notification;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 4542
|
|
:cond_0
|
|
array-length v1, v0
|
|
|
|
new-array v1, v1, [Landroid/app/Notification;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 4543
|
|
:goto_0
|
|
array-length v3, v0
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
.line 4544
|
|
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
|
|
|
|
.line 4546
|
|
:cond_1
|
|
invoke-virtual {p0, p1, v1}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
|
|
|
|
return-object v1
|
|
|
|
.line 4540
|
|
:cond_2
|
|
:goto_1
|
|
check-cast v0, [Landroid/app/Notification;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getShortcutId(Landroid/app/Notification;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 4767
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4768
|
|
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 2
|
|
|
|
.line 4714
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4715
|
|
invoke-virtual {p0}, Landroid/app/Notification;->getSortKey()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 4716
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 4717
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v0, "android.support.sortKey"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 4718
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
.line 4719
|
|
invoke-static {p0}, Landroid/support/v4/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "android.support.sortKey"
|
|
|
|
invoke-virtual {p0, v0}, 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
|
|
|
|
.line 4742
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 4743
|
|
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 3
|
|
|
|
.line 4689
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x14
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
.line 4690
|
|
iget p0, p0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 p0, p0, 0x200
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
.line 4691
|
|
:cond_1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x13
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
.line 4692
|
|
iget-object p0, p0, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v0, "android.support.isGroupSummary"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
.line 4693
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
.line 4694
|
|
invoke-static {p0}, Landroid/support/v4/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "android.support.isGroupSummary"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|