358 lines
10 KiB
Smali
358 lines
10 KiB
Smali
|
.class public final Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "NotificationCompat.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/core/app/NotificationCompat$Action;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "Builder"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private mAllowGeneratedReplies:Z
|
||
|
|
||
|
.field private final mExtras:Landroid/os/Bundle;
|
||
|
|
||
|
.field private final mIcon:I
|
||
|
|
||
|
.field private final mIntent:Landroid/app/PendingIntent;
|
||
|
|
||
|
.field private mRemoteInputs:Ljava/util/ArrayList;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"Landroidx/core/app/RemoteInput;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private mSemanticAction:I
|
||
|
|
||
|
.field private mShowsUserInterface:Z
|
||
|
|
||
|
.field private final mTitle:Ljava/lang/CharSequence;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
||
|
.locals 9
|
||
|
|
||
|
new-instance v4, Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v4}, Landroid/os/Bundle;-><init>()V
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x1
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v8, 0x1
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move v1, p1
|
||
|
|
||
|
move-object v2, p2
|
||
|
|
||
|
move-object v3, p3
|
||
|
|
||
|
invoke-direct/range {v0 .. v8}, Landroidx/core/app/NotificationCompat$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;ZIZ)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private constructor <init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;ZIZ)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mAllowGeneratedReplies:Z
|
||
|
|
||
|
iput-boolean v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mShowsUserInterface:Z
|
||
|
|
||
|
iput p1, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mIcon:I
|
||
|
|
||
|
invoke-static {p2}, Landroidx/core/app/NotificationCompat$Builder;->limitCharSequenceLength(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mTitle:Ljava/lang/CharSequence;
|
||
|
|
||
|
iput-object p3, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mIntent:Landroid/app/PendingIntent;
|
||
|
|
||
|
iput-object p4, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mExtras:Landroid/os/Bundle;
|
||
|
|
||
|
if-nez p5, :cond_0
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-static {p5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-direct {p1, p2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
||
|
|
||
|
:goto_0
|
||
|
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mRemoteInputs:Ljava/util/ArrayList;
|
||
|
|
||
|
iput-boolean p6, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mAllowGeneratedReplies:Z
|
||
|
|
||
|
iput p7, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mSemanticAction:I
|
||
|
|
||
|
iput-boolean p8, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mShowsUserInterface:Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroidx/core/app/NotificationCompat$Action;)V
|
||
|
.locals 9
|
||
|
|
||
|
iget v1, p1, Landroidx/core/app/NotificationCompat$Action;->icon:I
|
||
|
|
||
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Action;->title:Ljava/lang/CharSequence;
|
||
|
|
||
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Action;->actionIntent:Landroid/app/PendingIntent;
|
||
|
|
||
|
new-instance v4, Landroid/os/Bundle;
|
||
|
|
||
|
iget-object v0, p1, Landroidx/core/app/NotificationCompat$Action;->mExtras:Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v4, v0}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getSemanticAction()I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
iget-boolean v8, p1, Landroidx/core/app/NotificationCompat$Action;->mShowsUserInterface:Z
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
invoke-direct/range {v0 .. v8}, Landroidx/core/app/NotificationCompat$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;ZIZ)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final addExtras(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.locals 1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mExtras:Landroid/os/Bundle;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V
|
||
|
|
||
|
:cond_0
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final addRemoteInput(Landroidx/core/app/RemoteInput;)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mRemoteInputs:Ljava/util/ArrayList;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mRemoteInputs:Ljava/util/ArrayList;
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mRemoteInputs:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final build()Landroidx/core/app/NotificationCompat$Action;
|
||
|
.locals 14
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
new-instance v1, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iget-object v2, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mRemoteInputs:Ljava/util/ArrayList;
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Landroidx/core/app/RemoteInput;
|
||
|
|
||
|
invoke-virtual {v3}, Landroidx/core/app/RemoteInput;->isDataOnly()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_0
|
||
|
|
||
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
move-object v10, v3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
new-array v2, v2, [Landroidx/core/app/RemoteInput;
|
||
|
|
||
|
invoke-interface {v0, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, [Landroidx/core/app/RemoteInput;
|
||
|
|
||
|
move-object v10, v0
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
new-array v0, v0, [Landroidx/core/app/RemoteInput;
|
||
|
|
||
|
invoke-interface {v1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v3, v0
|
||
|
|
||
|
check-cast v3, [Landroidx/core/app/RemoteInput;
|
||
|
|
||
|
:goto_2
|
||
|
move-object v9, v3
|
||
|
|
||
|
new-instance v0, Landroidx/core/app/NotificationCompat$Action;
|
||
|
|
||
|
iget v5, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mIcon:I
|
||
|
|
||
|
iget-object v6, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mTitle:Ljava/lang/CharSequence;
|
||
|
|
||
|
iget-object v7, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mIntent:Landroid/app/PendingIntent;
|
||
|
|
||
|
iget-object v8, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mExtras:Landroid/os/Bundle;
|
||
|
|
||
|
iget-boolean v11, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mAllowGeneratedReplies:Z
|
||
|
|
||
|
iget v12, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mSemanticAction:I
|
||
|
|
||
|
iget-boolean v13, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mShowsUserInterface:Z
|
||
|
|
||
|
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 final extend(Landroidx/core/app/NotificationCompat$Action$Extender;)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-interface {p1, p0}, Landroidx/core/app/NotificationCompat$Action$Extender;->extend(Landroidx/core/app/NotificationCompat$Action$Builder;)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getExtras()Landroid/os/Bundle;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mExtras:Landroid/os/Bundle;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public final setAllowGeneratedReplies(Z)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
iput-boolean p1, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mAllowGeneratedReplies:Z
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final setSemanticAction(I)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
iput p1, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mSemanticAction:I
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final setShowsUserInterface(Z)Landroidx/core/app/NotificationCompat$Action$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
iput-boolean p1, p0, Landroidx/core/app/NotificationCompat$Action$Builder;->mShowsUserInterface:Z
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|