1728 lines
46 KiB
Smali
1728 lines
46 KiB
Smali
.class public abstract Landroidx/core/app/NotificationCompat$Style;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/app/NotificationCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x409
|
|
name = "Style"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/app/NotificationCompat$Style$Api24Impl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field mBigContentTitle:Ljava/lang/CharSequence;
|
|
|
|
.field protected mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field mSummaryText:Ljava/lang/CharSequence;
|
|
|
|
.field mSummaryTextSet:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 2694
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Landroidx/core/app/NotificationCompat$Style;->mSummaryTextSet:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private calculateTopPadding()I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3147
|
|
iget-object v0, v0, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Landroidx/core/R$dimen;->notification_top_pad:I
|
|
|
|
.line 3148
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v1
|
|
|
|
sget v2, Landroidx/core/R$dimen;->notification_top_pad_large_text:I
|
|
|
|
.line 3149
|
|
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v2
|
|
|
|
.line 3151
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/content/res/Configuration;->fontScale:F
|
|
|
|
const v3, 0x3fa66666 # 1.3f
|
|
|
|
const/high16 v4, 0x3f800000 # 1.0f
|
|
|
|
.line 3152
|
|
invoke-static {v0, v4, v3}, Landroidx/core/app/NotificationCompat$Style;->constrain(FFF)F
|
|
|
|
move-result v0
|
|
|
|
sub-float/2addr v0, v4
|
|
|
|
const v3, 0x3e999998 # 0.29999995f
|
|
|
|
div-float/2addr v0, v3
|
|
|
|
sub-float/2addr v4, v0
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float/2addr v4, v1
|
|
|
|
int-to-float v1, v2
|
|
|
|
mul-float/2addr v0, v1
|
|
|
|
add-float/2addr v4, v0
|
|
|
|
.line 3156
|
|
invoke-static {v4}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private static constrain(FFF)F
|
|
.locals 1
|
|
|
|
cmpg-float v0, p0, p1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
move p0, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
cmpl-float p1, p0, p2
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
move p0, p2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static constructCompatStyleByName(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Style;
|
|
.locals 2
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
if-eqz p0, :cond_6
|
|
|
|
.line 2860
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v0, "androidx.core.app.NotificationCompat$MessagingStyle"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x5
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v0, "androidx.core.app.NotificationCompat$BigTextStyle"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x4
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v0, "androidx.core.app.NotificationCompat$InboxStyle"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v1, 0x3
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v0, "androidx.core.app.NotificationCompat$CallStyle"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 v1, 0x2
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v0, "androidx.core.app.NotificationCompat$BigPictureStyle"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_5
|
|
const-string v0, "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 2870
|
|
:pswitch_0
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$MessagingStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 2862
|
|
:pswitch_1
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$BigTextStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$BigTextStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 2866
|
|
:pswitch_2
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$InboxStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$InboxStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 2872
|
|
:pswitch_3
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$CallStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$CallStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 2864
|
|
:pswitch_4
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$BigPictureStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$BigPictureStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 2868
|
|
:pswitch_5
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_6
|
|
:goto_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x2ab80d9c -> :sswitch_5
|
|
-0xa3fb04d -> :sswitch_4
|
|
0x2a94ad33 -> :sswitch_3
|
|
0x366a678b -> :sswitch_2
|
|
0x36cfe824 -> :sswitch_1
|
|
0x7c9f11cd -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private static constructCompatStyleByPlatformName(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Style;
|
|
.locals 2
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-class v1, Landroid/app/Notification$BigPictureStyle;
|
|
|
|
.line 2836
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 2837
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$BigPictureStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$BigPictureStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-class v1, Landroid/app/Notification$BigTextStyle;
|
|
|
|
.line 2839
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 2840
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$BigTextStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$BigTextStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const-class v1, Landroid/app/Notification$InboxStyle;
|
|
|
|
.line 2842
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 2843
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$InboxStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$InboxStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
const-class v1, Landroid/app/Notification$MessagingStyle;
|
|
|
|
.line 2846
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 2847
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$MessagingStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
const-class v1, Landroid/app/Notification$DecoratedCustomViewStyle;
|
|
|
|
.line 2850
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 2849
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
.line 2851
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static constructCompatStyleForBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Style;
|
|
.locals 1
|
|
.param p0 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "androidx.core.app.extra.COMPAT_TEMPLATE"
|
|
|
|
.line 2882
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroidx/core/app/NotificationCompat$Style;->constructCompatStyleByName(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Style;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v0, "android.selfDisplayName"
|
|
|
|
.line 2889
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
const-string v0, "android.messagingStyleUser"
|
|
|
|
.line 2890
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v0, "android.picture"
|
|
|
|
.line 2892
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
const-string v0, "android.pictureIcon"
|
|
|
|
.line 2893
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v0, "android.bigText"
|
|
|
|
.line 2895
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 2896
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$BigTextStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$BigTextStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
const-string v0, "android.textLines"
|
|
|
|
.line 2897
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 2898
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$InboxStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$InboxStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
const-string v0, "android.callType"
|
|
|
|
.line 2899
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 2900
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$CallStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$CallStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_5
|
|
const-string v0, "android.template"
|
|
|
|
.line 2903
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompat$Style;->constructCompatStyleByPlatformName(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Style;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 2894
|
|
:cond_6
|
|
:goto_0
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$BigPictureStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$BigPictureStyle;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 2891
|
|
:cond_7
|
|
:goto_1
|
|
new-instance p0, Landroidx/core/app/NotificationCompat$MessagingStyle;
|
|
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle;-><init>()V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static constructStyleForExtras(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Style;
|
|
.locals 2
|
|
.param p0 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 2908
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompat$Style;->constructCompatStyleForBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Style;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 2913
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {v0, p0}, Landroidx/core/app/NotificationCompat$Style;->restoreFromCompatExtras(Landroid/os/Bundle;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private createColoredBitmap(III)Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3089
|
|
iget-object v0, v0, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/core/app/NotificationCompat$Style;->createColoredBitmap(Landroidx/core/graphics/drawable/IconCompat;II)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private createColoredBitmap(Landroidx/core/graphics/drawable/IconCompat;II)Landroid/graphics/Bitmap;
|
|
.locals 3
|
|
.param p1 # Landroidx/core/graphics/drawable/IconCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3094
|
|
iget-object v0, v0, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/core/graphics/drawable/IconCompat;->loadDrawable(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 3095
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, p3
|
|
|
|
:goto_0
|
|
if-nez p3, :cond_1
|
|
|
|
.line 3096
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result p3
|
|
|
|
.line 3097
|
|
:cond_1
|
|
sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
|
|
|
|
invoke-static {v0, p3, v1}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 3098
|
|
invoke-virtual {p1, v2, v2, v0, p3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 3100
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p3
|
|
|
|
new-instance v0, Landroid/graphics/PorterDuffColorFilter;
|
|
|
|
sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-direct {v0, p2, v2}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
|
|
|
|
invoke-virtual {p3, v0}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
.line 3103
|
|
:cond_2
|
|
new-instance p2, Landroid/graphics/Canvas;
|
|
|
|
invoke-direct {p2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
.line 3104
|
|
invoke-virtual {p1, p2}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private createIconWithBackground(IIII)Landroid/graphics/Bitmap;
|
|
.locals 2
|
|
|
|
sget v0, Landroidx/core/R$drawable;->notification_icon_background:I
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
const/4 p4, 0x0
|
|
|
|
.line 3110
|
|
:cond_0
|
|
invoke-direct {p0, v0, p4, p2}, Landroidx/core/app/NotificationCompat$Style;->createColoredBitmap(III)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p4
|
|
|
|
.line 3112
|
|
new-instance v0, Landroid/graphics/Canvas;
|
|
|
|
invoke-direct {v0, p4}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3113
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 3114
|
|
invoke-virtual {p1, v1}, Landroid/graphics/drawable/Drawable;->setFilterBitmap(Z)V
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
.line 3115
|
|
div-int/lit8 p2, p2, 0x2
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
.line 3116
|
|
invoke-virtual {p1, p2, p2, p3, p3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 3117
|
|
new-instance p2, Landroid/graphics/PorterDuffColorFilter;
|
|
|
|
const/4 p3, -0x1
|
|
|
|
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-direct {p2, p3, v1}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
.line 3118
|
|
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
return-object p4
|
|
.end method
|
|
|
|
.method public static extractStyleFromNotification(Landroid/app/Notification;)Landroidx/core/app/NotificationCompat$Style;
|
|
.locals 0
|
|
.param p0 # Landroid/app/Notification;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.line 2823
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompat;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 2827
|
|
:cond_0
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompat$Style;->constructStyleForExtras(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Style;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private hideNormalContent(Landroid/widget/RemoteViews;)V
|
|
.locals 2
|
|
|
|
sget v0, Landroidx/core/R$id;->title:I
|
|
|
|
const/16 v1, 0x8
|
|
|
|
.line 3141
|
|
invoke-virtual {p1, v0, v1}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget v0, Landroidx/core/R$id;->text2:I
|
|
|
|
.line 3142
|
|
invoke-virtual {p1, v0, v1}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget v0, Landroidx/core/R$id;->text:I
|
|
|
|
.line 3143
|
|
invoke-virtual {p1, v0, v1}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addCompatExtras(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Landroidx/core/app/NotificationCompat$Style;->mSummaryTextSet:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "android.summaryText"
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mSummaryText:Ljava/lang/CharSequence;
|
|
|
|
.line 2787
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBigContentTitle:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v1, "android.title.big"
|
|
|
|
.line 2790
|
|
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
.line 2792
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Style;->getClassName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v1, "androidx.core.app.extra.COMPAT_TEMPLATE"
|
|
|
|
.line 2794
|
|
invoke-virtual {p1, v1, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public apply(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public applyStandardTemplate(ZIZ)Landroid/widget/RemoteViews;
|
|
.locals 11
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2926
|
|
iget-object v0, v0, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2927
|
|
new-instance v7, Landroid/widget/RemoteViews;
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v7, v1, p2}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
|
|
|
|
iget-object p2, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2931
|
|
invoke-virtual {p2}, Landroidx/core/app/NotificationCompat$Builder;->getPriority()I
|
|
|
|
iget-object p2, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2947
|
|
iget-object v1, p2, Landroidx/core/app/NotificationCompat$Builder;->mLargeIcon:Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
sget p2, Landroidx/core/R$id;->icon:I
|
|
|
|
.line 2950
|
|
invoke-virtual {v7, p2, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget p2, Landroidx/core/R$id;->icon:I
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2951
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mLargeIcon:Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
.line 2952
|
|
invoke-virtual {p0, v1, v8}, Landroidx/core/app/NotificationCompat$Style;->createColoredBitmap(Landroidx/core/graphics/drawable/IconCompat;I)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v1
|
|
|
|
.line 2951
|
|
invoke-virtual {v7, p2, v1}, Landroid/widget/RemoteViews;->setImageViewBitmap(ILandroid/graphics/Bitmap;)V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2953
|
|
iget-object p1, p1, Landroidx/core/app/NotificationCompat$Builder;->mNotification:Landroid/app/Notification;
|
|
|
|
iget p1, p1, Landroid/app/Notification;->icon:I
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
sget p1, Landroidx/core/R$dimen;->notification_right_icon_size:I
|
|
|
|
.line 2954
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p1
|
|
|
|
sget p2, Landroidx/core/R$dimen;->notification_small_icon_background_padding:I
|
|
|
|
.line 2956
|
|
invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p2
|
|
|
|
mul-int/lit8 p2, p2, 0x2
|
|
|
|
sub-int p2, p1, p2
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2959
|
|
iget-object v2, v1, Landroidx/core/app/NotificationCompat$Builder;->mNotification:Landroid/app/Notification;
|
|
|
|
iget v2, v2, Landroid/app/Notification;->icon:I
|
|
|
|
.line 2963
|
|
invoke-virtual {v1}, Landroidx/core/app/NotificationCompat$Builder;->getColor()I
|
|
|
|
move-result v1
|
|
|
|
.line 2959
|
|
invoke-direct {p0, v2, p1, p2, v1}, Landroidx/core/app/NotificationCompat$Style;->createIconWithBackground(IIII)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
sget p2, Landroidx/core/R$id;->right_icon:I
|
|
|
|
.line 2964
|
|
invoke-virtual {v7, p2, p1}, Landroid/widget/RemoteViews;->setImageViewBitmap(ILandroid/graphics/Bitmap;)V
|
|
|
|
sget p1, Landroidx/core/R$id;->right_icon:I
|
|
|
|
.line 2969
|
|
invoke-virtual {v7, p1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 2971
|
|
iget-object p1, p2, Landroidx/core/app/NotificationCompat$Builder;->mNotification:Landroid/app/Notification;
|
|
|
|
iget p1, p1, Landroid/app/Notification;->icon:I
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
sget p1, Landroidx/core/R$id;->icon:I
|
|
|
|
.line 2972
|
|
invoke-virtual {v7, p1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget p1, Landroidx/core/R$dimen;->notification_large_icon_width:I
|
|
|
|
.line 2974
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p1
|
|
|
|
sget p2, Landroidx/core/R$dimen;->notification_big_circle_margin:I
|
|
|
|
.line 2976
|
|
invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
sget p2, Landroidx/core/R$dimen;->notification_small_icon_size_as_large:I
|
|
|
|
.line 2977
|
|
invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2979
|
|
iget-object v2, v1, Landroidx/core/app/NotificationCompat$Builder;->mNotification:Landroid/app/Notification;
|
|
|
|
iget v2, v2, Landroid/app/Notification;->icon:I
|
|
|
|
.line 2983
|
|
invoke-virtual {v1}, Landroidx/core/app/NotificationCompat$Builder;->getColor()I
|
|
|
|
move-result v1
|
|
|
|
.line 2979
|
|
invoke-direct {p0, v2, p1, p2, v1}, Landroidx/core/app/NotificationCompat$Style;->createIconWithBackground(IIII)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
sget p2, Landroidx/core/R$id;->icon:I
|
|
|
|
.line 2984
|
|
invoke-virtual {v7, p2, p1}, Landroid/widget/RemoteViews;->setImageViewBitmap(ILandroid/graphics/Bitmap;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2990
|
|
iget-object p1, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentTitle:Ljava/lang/CharSequence;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
sget p2, Landroidx/core/R$id;->title:I
|
|
|
|
.line 2991
|
|
invoke-virtual {v7, p2, p1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 2993
|
|
iget-object p1, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentText:Ljava/lang/CharSequence;
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
sget v1, Landroidx/core/R$id;->text:I
|
|
|
|
.line 2994
|
|
invoke-virtual {v7, v1, p1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
move p1, p2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move p1, v8
|
|
|
|
:goto_1
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3000
|
|
iget-object v2, v1, Landroidx/core/app/NotificationCompat$Builder;->mContentInfo:Ljava/lang/CharSequence;
|
|
|
|
const/16 v9, 0x8
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
sget p1, Landroidx/core/R$id;->info:I
|
|
|
|
.line 3001
|
|
invoke-virtual {v7, p1, v2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
sget p1, Landroidx/core/R$id;->info:I
|
|
|
|
.line 3002
|
|
invoke-virtual {v7, p1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
:goto_2
|
|
move p1, p2
|
|
|
|
move v10, p1
|
|
|
|
goto :goto_4
|
|
|
|
.line 3005
|
|
:cond_4
|
|
iget v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mNumber:I
|
|
|
|
if-lez v1, :cond_6
|
|
|
|
sget p1, Landroidx/core/R$integer;->status_bar_notification_info_maxnum:I
|
|
|
|
.line 3006
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getInteger(I)I
|
|
|
|
move-result p1
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3008
|
|
iget v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mNumber:I
|
|
|
|
if-le v1, p1, :cond_5
|
|
|
|
sget p1, Landroidx/core/R$id;->info:I
|
|
|
|
sget v1, Landroidx/core/R$string;->status_bar_notification_info_overflow:I
|
|
|
|
.line 3009
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v7, p1, v1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 3012
|
|
:cond_5
|
|
invoke-static {}, Ljava/text/NumberFormat;->getIntegerInstance()Ljava/text/NumberFormat;
|
|
|
|
move-result-object p1
|
|
|
|
sget v1, Landroidx/core/R$id;->info:I
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3013
|
|
iget v2, v2, Landroidx/core/app/NotificationCompat$Builder;->mNumber:I
|
|
|
|
int-to-long v2, v2
|
|
|
|
invoke-virtual {p1, v2, v3}, Ljava/text/NumberFormat;->format(J)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v7, v1, p1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
:goto_3
|
|
sget p1, Landroidx/core/R$id;->info:I
|
|
|
|
.line 3015
|
|
invoke-virtual {v7, p1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
sget v1, Landroidx/core/R$id;->info:I
|
|
|
|
.line 3019
|
|
invoke-virtual {v7, v1, v9}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
move v10, v8
|
|
|
|
:goto_4
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3023
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mSubText:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
sget v2, Landroidx/core/R$id;->text:I
|
|
|
|
.line 3024
|
|
invoke-virtual {v7, v2, v1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3025
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mContentText:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
sget v2, Landroidx/core/R$id;->text2:I
|
|
|
|
.line 3026
|
|
invoke-virtual {v7, v2, v1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
sget v1, Landroidx/core/R$id;->text2:I
|
|
|
|
.line 3027
|
|
invoke-virtual {v7, v1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
if-eqz p3, :cond_7
|
|
|
|
sget p3, Landroidx/core/R$dimen;->notification_subtext_size:I
|
|
|
|
.line 3039
|
|
invoke-virtual {v0, p3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p3
|
|
|
|
int-to-float p3, p3
|
|
|
|
sget v0, Landroidx/core/R$id;->text:I
|
|
|
|
.line 3041
|
|
invoke-virtual {v7, v0, v8, p3}, Landroid/widget/RemoteViews;->setTextViewTextSize(IIF)V
|
|
|
|
:cond_7
|
|
sget v2, Landroidx/core/R$id;->line1:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v7
|
|
|
|
.line 3045
|
|
invoke-virtual/range {v1 .. v6}, Landroid/widget/RemoteViews;->setViewPadding(IIIII)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
sget p3, Landroidx/core/R$id;->text2:I
|
|
|
|
.line 3030
|
|
invoke-virtual {v7, p3, v9}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
:cond_9
|
|
:goto_5
|
|
iget-object p3, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3048
|
|
invoke-virtual {p3}, Landroidx/core/app/NotificationCompat$Builder;->getWhenIfShowing()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long p3, v0, v2
|
|
|
|
if-eqz p3, :cond_b
|
|
|
|
iget-object p3, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3049
|
|
iget-boolean p3, p3, Landroidx/core/app/NotificationCompat$Builder;->mUseChronometer:Z
|
|
|
|
if-eqz p3, :cond_a
|
|
|
|
sget p3, Landroidx/core/R$id;->chronometer:I
|
|
|
|
.line 3050
|
|
invoke-virtual {v7, p3, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget p3, Landroidx/core/R$id;->chronometer:I
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3052
|
|
invoke-virtual {v0}, Landroidx/core/app/NotificationCompat$Builder;->getWhenIfShowing()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 3053
|
|
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v4
|
|
|
|
sub-long/2addr v2, v4
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
const-string v2, "setBase"
|
|
|
|
.line 3051
|
|
invoke-virtual {v7, p3, v2, v0, v1}, Landroid/widget/RemoteViews;->setLong(ILjava/lang/String;J)V
|
|
|
|
sget p3, Landroidx/core/R$id;->chronometer:I
|
|
|
|
const-string v0, "setStarted"
|
|
|
|
.line 3054
|
|
invoke-virtual {v7, p3, v0, p2}, Landroid/widget/RemoteViews;->setBoolean(ILjava/lang/String;Z)V
|
|
|
|
iget-object p3, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3055
|
|
iget-boolean p3, p3, Landroidx/core/app/NotificationCompat$Builder;->mChronometerCountDown:Z
|
|
|
|
if-eqz p3, :cond_c
|
|
|
|
sget v0, Landroidx/core/R$id;->chronometer:I
|
|
|
|
.line 3056
|
|
invoke-static {v7, v0, p3}, Landroidx/core/app/NotificationCompat$Style$Api24Impl;->setChronometerCountDown(Landroid/widget/RemoteViews;IZ)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_a
|
|
sget p3, Landroidx/core/R$id;->time:I
|
|
|
|
.line 3060
|
|
invoke-virtual {v7, p3, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget p3, Landroidx/core/R$id;->time:I
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 3061
|
|
invoke-virtual {v0}, Landroidx/core/app/NotificationCompat$Builder;->getWhenIfShowing()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-string v2, "setTime"
|
|
|
|
invoke-virtual {v7, p3, v2, v0, v1}, Landroid/widget/RemoteViews;->setLong(ILjava/lang/String;J)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
move p2, v10
|
|
|
|
:cond_c
|
|
:goto_6
|
|
sget p3, Landroidx/core/R$id;->right_side:I
|
|
|
|
if-eqz p2, :cond_d
|
|
|
|
move p2, v8
|
|
|
|
goto :goto_7
|
|
|
|
:cond_d
|
|
move p2, v9
|
|
|
|
.line 3065
|
|
:goto_7
|
|
invoke-virtual {v7, p3, p2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget p2, Landroidx/core/R$id;->line3:I
|
|
|
|
if-eqz p1, :cond_e
|
|
|
|
goto :goto_8
|
|
|
|
:cond_e
|
|
move v8, v9
|
|
|
|
.line 3066
|
|
:goto_8
|
|
invoke-virtual {v7, p2, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
return-object v7
|
|
.end method
|
|
|
|
.method public build()Landroid/app/Notification;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2722
|
|
invoke-virtual {v0}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public buildIntoRemoteViews(Landroid/widget/RemoteViews;Landroid/widget/RemoteViews;)V
|
|
.locals 7
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.line 3129
|
|
invoke-direct {p0, p1}, Landroidx/core/app/NotificationCompat$Style;->hideNormalContent(Landroid/widget/RemoteViews;)V
|
|
|
|
sget v0, Landroidx/core/R$id;->notification_main_column:I
|
|
|
|
.line 3130
|
|
invoke-virtual {p1, v0}, Landroid/widget/RemoteViews;->removeAllViews(I)V
|
|
|
|
sget v0, Landroidx/core/R$id;->notification_main_column:I
|
|
|
|
.line 3131
|
|
invoke-virtual {p2}, Landroid/widget/RemoteViews;->clone()Landroid/widget/RemoteViews;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, v0, p2}, Landroid/widget/RemoteViews;->addView(ILandroid/widget/RemoteViews;)V
|
|
|
|
sget p2, Landroidx/core/R$id;->notification_main_column:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3132
|
|
invoke-virtual {p1, p2, v0}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
.line 3135
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$Style;->calculateTopPadding()I
|
|
|
|
move-result v4
|
|
|
|
sget v2, Landroidx/core/R$id;->notification_main_column_container:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, p1
|
|
|
|
.line 3136
|
|
invoke-virtual/range {v1 .. v6}, Landroid/widget/RemoteViews;->setViewPadding(IIIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public clearCompatExtraKeys(Landroid/os/Bundle;)V
|
|
.locals 1
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "android.summaryText"
|
|
|
|
.line 2813
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
|
|
|
const-string v0, "android.title.big"
|
|
|
|
.line 2814
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
|
|
|
const-string v0, "androidx.core.app.extra.COMPAT_TEMPLATE"
|
|
|
|
.line 2815
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public createColoredBitmap(II)Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3077
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/core/app/NotificationCompat$Style;->createColoredBitmap(III)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public createColoredBitmap(Landroidx/core/graphics/drawable/IconCompat;I)Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
.param p1 # Landroidx/core/graphics/drawable/IconCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3085
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/core/app/NotificationCompat$Style;->createColoredBitmap(Landroidx/core/graphics/drawable/IconCompat;II)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public displayCustomViewInline()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getClassName()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public makeBigContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public makeContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public makeHeadsUpContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public restoreFromCompatExtras(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "android.summaryText"
|
|
|
|
.line 2802
|
|
invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 2803
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mSummaryText:Ljava/lang/CharSequence;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/core/app/NotificationCompat$Style;->mSummaryTextSet:Z
|
|
|
|
:cond_0
|
|
const-string v0, "android.title.big"
|
|
|
|
.line 2806
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Style;->mBigContentTitle:Ljava/lang/CharSequence;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBuilder(Landroidx/core/app/NotificationCompat$Builder;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/core/app/NotificationCompat$Builder;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2710
|
|
invoke-virtual {p1, p0}, Landroidx/core/app/NotificationCompat$Builder;->setStyle(Landroidx/core/app/NotificationCompat$Style;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|