.class public Landroid/support/v4/app/NotificationCompatKitKat$Builder; .super Ljava/lang/Object; .source "NotificationCompatKitKat.java" # interfaces .implements Landroid/support/v4/app/NotificationBuilderWithBuilderAccessor; .implements Landroid/support/v4/app/NotificationBuilderWithActions; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/support/v4/app/NotificationCompatKitKat; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "Builder" .end annotation # instance fields .field private b:Landroid/app/Notification$Builder; .field private mActionExtrasList:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List", "<", "Landroid/os/Bundle;", ">;" } .end annotation .end field .field private mExtras:Landroid/os/Bundle; # direct methods .method public constructor (Landroid/content/Context;Landroid/app/Notification;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/widget/RemoteViews;ILandroid/app/PendingIntent;Landroid/app/PendingIntent;Landroid/graphics/Bitmap;IIZZZILjava/lang/CharSequence;ZLjava/util/ArrayList;Landroid/os/Bundle;Ljava/lang/String;ZLjava/lang/String;)V .locals 7 .param p1, "context" # Landroid/content/Context; .param p2, "n" # Landroid/app/Notification; .param p3, "contentTitle" # Ljava/lang/CharSequence; .param p4, "contentText" # Ljava/lang/CharSequence; .param p5, "contentInfo" # Ljava/lang/CharSequence; .param p6, "tickerView" # Landroid/widget/RemoteViews; .param p7, "number" # I .param p8, "contentIntent" # Landroid/app/PendingIntent; .param p9, "fullScreenIntent" # Landroid/app/PendingIntent; .param p10, "largeIcon" # Landroid/graphics/Bitmap; .param p11, "progressMax" # I .param p12, "progress" # I .param p13, "progressIndeterminate" # Z .param p14, "showWhen" # Z .param p15, "useChronometer" # Z .param p16, "priority" # I .param p17, "subText" # Ljava/lang/CharSequence; .param p18, "localOnly" # Z .param p20, "extras" # Landroid/os/Bundle; .param p21, "groupKey" # Ljava/lang/String; .param p22, "groupSummary" # Z .param p23, "sortKey" # Ljava/lang/String; .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Landroid/app/Notification;", "Ljava/lang/CharSequence;", "Ljava/lang/CharSequence;", "Ljava/lang/CharSequence;", "Landroid/widget/RemoteViews;", "I", "Landroid/app/PendingIntent;", "Landroid/app/PendingIntent;", "Landroid/graphics/Bitmap;", "IIZZZI", "Ljava/lang/CharSequence;", "Z", "Ljava/util/ArrayList", "<", "Ljava/lang/String;", ">;", "Landroid/os/Bundle;", "Ljava/lang/String;", "Z", "Ljava/lang/String;", ")V" } .end annotation .prologue .line 44 .local p19, "people":Ljava/util/ArrayList;, "Ljava/util/ArrayList;" invoke-direct {p0}, Ljava/lang/Object;->()V .line 35 new-instance v3, Ljava/util/ArrayList; invoke-direct {v3}, Ljava/util/ArrayList;->()V iput-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mActionExtrasList:Ljava/util/List; .line 45 new-instance v3, Landroid/app/Notification$Builder; invoke-direct {v3, p1}, Landroid/app/Notification$Builder;->(Landroid/content/Context;)V iget-wide v4, p2, Landroid/app/Notification;->when:J invoke-virtual {v3, v4, v5}, Landroid/app/Notification$Builder;->setWhen(J)Landroid/app/Notification$Builder; move-result-object v3 move/from16 v0, p14 invoke-virtual {v3, v0}, Landroid/app/Notification$Builder;->setShowWhen(Z)Landroid/app/Notification$Builder; move-result-object v3 iget v4, p2, Landroid/app/Notification;->icon:I iget v5, p2, Landroid/app/Notification;->iconLevel:I invoke-virtual {v3, v4, v5}, Landroid/app/Notification$Builder;->setSmallIcon(II)Landroid/app/Notification$Builder; move-result-object v3 iget-object v4, p2, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews; invoke-virtual {v3, v4}, Landroid/app/Notification$Builder;->setContent(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder; move-result-object v3 iget-object v4, p2, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence; invoke-virtual {v3, v4, p6}, Landroid/app/Notification$Builder;->setTicker(Ljava/lang/CharSequence;Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder; move-result-object v3 iget-object v4, p2, Landroid/app/Notification;->sound:Landroid/net/Uri; iget v5, p2, Landroid/app/Notification;->audioStreamType:I invoke-virtual {v3, v4, v5}, Landroid/app/Notification$Builder;->setSound(Landroid/net/Uri;I)Landroid/app/Notification$Builder; move-result-object v3 iget-object v4, p2, Landroid/app/Notification;->vibrate:[J invoke-virtual {v3, v4}, Landroid/app/Notification$Builder;->setVibrate([J)Landroid/app/Notification$Builder; move-result-object v3 iget v4, p2, Landroid/app/Notification;->ledARGB:I iget v5, p2, Landroid/app/Notification;->ledOnMS:I iget v6, p2, Landroid/app/Notification;->ledOffMS:I invoke-virtual {v3, v4, v5, v6}, Landroid/app/Notification$Builder;->setLights(III)Landroid/app/Notification$Builder; move-result-object v4 iget v3, p2, Landroid/app/Notification;->flags:I and-int/lit8 v3, v3, 0x2 if-eqz v3, :cond_5 const/4 v3, 0x1 :goto_0 invoke-virtual {v4, v3}, Landroid/app/Notification$Builder;->setOngoing(Z)Landroid/app/Notification$Builder; move-result-object v4 iget v3, p2, Landroid/app/Notification;->flags:I and-int/lit8 v3, v3, 0x8 if-eqz v3, :cond_6 const/4 v3, 0x1 :goto_1 invoke-virtual {v4, v3}, Landroid/app/Notification$Builder;->setOnlyAlertOnce(Z)Landroid/app/Notification$Builder; move-result-object v4 iget v3, p2, Landroid/app/Notification;->flags:I and-int/lit8 v3, v3, 0x10 if-eqz v3, :cond_7 const/4 v3, 0x1 :goto_2 invoke-virtual {v4, v3}, Landroid/app/Notification$Builder;->setAutoCancel(Z)Landroid/app/Notification$Builder; move-result-object v3 iget v4, p2, Landroid/app/Notification;->defaults:I invoke-virtual {v3, v4}, Landroid/app/Notification$Builder;->setDefaults(I)Landroid/app/Notification$Builder; move-result-object v3 invoke-virtual {v3, p3}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder; move-result-object v3 invoke-virtual {v3, p4}, Landroid/app/Notification$Builder;->setContentText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder; move-result-object v3 move-object/from16 v0, p17 invoke-virtual {v3, v0}, Landroid/app/Notification$Builder;->setSubText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder; move-result-object v3 invoke-virtual {v3, p5}, Landroid/app/Notification$Builder;->setContentInfo(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder; move-result-object v3 invoke-virtual {v3, p8}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder; move-result-object v3 iget-object v4, p2, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent; invoke-virtual {v3, v4}, Landroid/app/Notification$Builder;->setDeleteIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder; move-result-object v4 iget v3, p2, Landroid/app/Notification;->flags:I and-int/lit16 v3, v3, 0x80 if-eqz v3, :cond_8 const/4 v3, 0x1 :goto_3 move-object/from16 v0, p9 invoke-virtual {v4, v0, v3}, Landroid/app/Notification$Builder;->setFullScreenIntent(Landroid/app/PendingIntent;Z)Landroid/app/Notification$Builder; move-result-object v3 move-object/from16 v0, p10 invoke-virtual {v3, v0}, Landroid/app/Notification$Builder;->setLargeIcon(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder; move-result-object v3 invoke-virtual {v3, p7}, Landroid/app/Notification$Builder;->setNumber(I)Landroid/app/Notification$Builder; move-result-object v3 move/from16 v0, p15 invoke-virtual {v3, v0}, Landroid/app/Notification$Builder;->setUsesChronometer(Z)Landroid/app/Notification$Builder; move-result-object v3 move/from16 v0, p16 invoke-virtual {v3, v0}, Landroid/app/Notification$Builder;->setPriority(I)Landroid/app/Notification$Builder; move-result-object v3 move/from16 v0, p11 move/from16 v1, p12 move/from16 v2, p13 invoke-virtual {v3, v0, v1, v2}, Landroid/app/Notification$Builder;->setProgress(IIZ)Landroid/app/Notification$Builder; move-result-object v3 iput-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->b:Landroid/app/Notification$Builder; .line 71 new-instance v3, Landroid/os/Bundle; invoke-direct {v3}, Landroid/os/Bundle;->()V iput-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; .line 72 if-eqz p20, :cond_0 .line 73 iget-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; move-object/from16 v0, p20 invoke-virtual {v3, v0}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V .line 75 :cond_0 if-eqz p19, :cond_1 invoke-virtual/range {p19 .. p19}, Ljava/util/ArrayList;->isEmpty()Z move-result v3 if-nez v3, :cond_1 .line 76 iget-object v4, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v5, "android.people" invoke-virtual/range {p19 .. p19}, Ljava/util/ArrayList;->size()I move-result v3 new-array v3, v3, [Ljava/lang/String; move-object/from16 v0, p19 invoke-virtual {v0, v3}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object v3 check-cast v3, [Ljava/lang/String; invoke-virtual {v4, v5, v3}, Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V .line 79 :cond_1 if-eqz p18, :cond_2 .line 80 iget-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v4, "android.support.localOnly" const/4 v5, 0x1 invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V .line 82 :cond_2 if-eqz p21, :cond_3 .line 83 iget-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v4, "android.support.groupKey" move-object/from16 v0, p21 invoke-virtual {v3, v4, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V .line 84 if-eqz p22, :cond_9 .line 85 iget-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v4, "android.support.isGroupSummary" const/4 v5, 0x1 invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V .line 90 :cond_3 :goto_4 if-eqz p23, :cond_4 .line 91 iget-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v4, "android.support.sortKey" move-object/from16 v0, p23 invoke-virtual {v3, v4, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V .line 93 :cond_4 return-void .line 45 :cond_5 const/4 v3, 0x0 goto/16 :goto_0 :cond_6 const/4 v3, 0x0 goto/16 :goto_1 :cond_7 const/4 v3, 0x0 goto/16 :goto_2 :cond_8 const/4 v3, 0x0 goto/16 :goto_3 .line 87 :cond_9 iget-object v3, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v4, "android.support.useSideChannel" const/4 v5, 0x1 invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V goto :goto_4 .end method # virtual methods .method public addAction(Landroid/support/v4/app/NotificationCompatBase$Action;)V .locals 2 .param p1, "action" # Landroid/support/v4/app/NotificationCompatBase$Action; .prologue .line 97 iget-object v0, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mActionExtrasList:Ljava/util/List; iget-object v1, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->b:Landroid/app/Notification$Builder; invoke-static {v1, p1}, Landroid/support/v4/app/NotificationCompatJellybean;->writeActionAndGetExtras(Landroid/app/Notification$Builder;Landroid/support/v4/app/NotificationCompatBase$Action;)Landroid/os/Bundle; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 98 return-void .end method .method public build()Landroid/app/Notification; .locals 3 .prologue .line 107 iget-object v1, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mActionExtrasList:Ljava/util/List; invoke-static {v1}, Landroid/support/v4/app/NotificationCompatJellybean;->buildActionExtrasMap(Ljava/util/List;)Landroid/util/SparseArray; move-result-object v0 .line 109 .local v0, "actionExtrasMap":Landroid/util/SparseArray;, "Landroid/util/SparseArray;" if-eqz v0, :cond_0 .line 111 iget-object v1, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; const-string v2, "android.support.actionExtras" invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putSparseParcelableArray(Ljava/lang/String;Landroid/util/SparseArray;)V .line 114 :cond_0 iget-object v1, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->b:Landroid/app/Notification$Builder; iget-object v2, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->mExtras:Landroid/os/Bundle; invoke-virtual {v1, v2}, Landroid/app/Notification$Builder;->setExtras(Landroid/os/Bundle;)Landroid/app/Notification$Builder; .line 115 iget-object v1, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->b:Landroid/app/Notification$Builder; invoke-virtual {v1}, Landroid/app/Notification$Builder;->build()Landroid/app/Notification; move-result-object v1 return-object v1 .end method .method public getBuilder()Landroid/app/Notification$Builder; .locals 1 .prologue .line 102 iget-object v0, p0, Landroid/support/v4/app/NotificationCompatKitKat$Builder;->b:Landroid/app/Notification$Builder; return-object v0 .end method