.class public final Landroidx/core/app/NotificationCompat$MessagingStyle$Message; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/core/app/NotificationCompat$MessagingStyle; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Message" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/core/app/NotificationCompat$MessagingStyle$Message$Api28Impl;, Landroidx/core/app/NotificationCompat$MessagingStyle$Message$Api24Impl; } .end annotation # static fields .field static final KEY_DATA_MIME_TYPE:Ljava/lang/String; = "type" .field static final KEY_DATA_URI:Ljava/lang/String; = "uri" .field static final KEY_EXTRAS_BUNDLE:Ljava/lang/String; = "extras" .field static final KEY_NOTIFICATION_PERSON:Ljava/lang/String; = "sender_person" .field static final KEY_PERSON:Ljava/lang/String; = "person" .field static final KEY_SENDER:Ljava/lang/String; = "sender" .field static final KEY_TEXT:Ljava/lang/String; = "text" .field static final KEY_TIMESTAMP:Ljava/lang/String; = "time" # instance fields .field private mDataMimeType:Ljava/lang/String; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private mDataUri:Landroid/net/Uri; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private mExtras:Landroid/os/Bundle; .field private final mPerson:Landroidx/core/app/Person; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private final mText:Ljava/lang/CharSequence; .field private final mTimestamp:J # direct methods .method public constructor (Ljava/lang/CharSequence;JLandroidx/core/app/Person;)V .locals 1 .param p1 # Ljava/lang/CharSequence; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p4 # Landroidx/core/app/Person; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .line 4142 invoke-direct {p0}, Ljava/lang/Object;->()V .line 4127 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V iput-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle; iput-object p1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence; iput-wide p2, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mTimestamp:J iput-object p4, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mPerson:Landroidx/core/app/Person; return-void .end method .method public constructor (Ljava/lang/CharSequence;JLjava/lang/CharSequence;)V .locals 1 .param p1 # Ljava/lang/CharSequence; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p4 # Ljava/lang/CharSequence; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation runtime Ljava/lang/Deprecated; .end annotation .line 4164 new-instance v0, Landroidx/core/app/Person$Builder; invoke-direct {v0}, Landroidx/core/app/Person$Builder;->()V invoke-virtual {v0, p4}, Landroidx/core/app/Person$Builder;->setName(Ljava/lang/CharSequence;)Landroidx/core/app/Person$Builder; move-result-object p4 invoke-virtual {p4}, Landroidx/core/app/Person$Builder;->build()Landroidx/core/app/Person; move-result-object p4 invoke-direct {p0, p1, p2, p3, p4}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->(Ljava/lang/CharSequence;JLandroidx/core/app/Person;)V return-void .end method .method public static getBundleArrayForMessages(Ljava/util/List;)[Landroid/os/Bundle; .locals 4 .param p0 # Ljava/util/List; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "Landroidx/core/app/NotificationCompat$MessagingStyle$Message;", ">;)[", "Landroid/os/Bundle;" } .end annotation .line 4287 invoke-interface {p0}, Ljava/util/List;->size()I move-result v0 new-array v0, v0, [Landroid/os/Bundle; .line 4288 invoke-interface {p0}, Ljava/util/List;->size()I move-result v1 const/4 v2, 0x0 :goto_0 if-ge v2, v1, :cond_0 .line 4290 invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Landroidx/core/app/NotificationCompat$MessagingStyle$Message; invoke-direct {v3}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->toBundle()Landroid/os/Bundle; move-result-object v3 aput-object v3, v0, v2 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_0 return-object v0 .end method .method public static getMessageFromBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$MessagingStyle$Message; .locals 10 .param p0 # Landroid/os/Bundle; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation const-string v0, "extras" const-string v1, "uri" const-string v2, "type" const-string v3, "sender" const-string v4, "sender_person" const-string v5, "person" const-string v6, "time" const-string v7, "text" const/4 v8, 0x0 .line 4313 :try_start_0 invoke-virtual {p0, v7}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v9 if-eqz v9, :cond_6 invoke-virtual {p0, v6}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v9 if-nez v9, :cond_0 goto/16 :goto_1 .line 4318 :cond_0 invoke-virtual {p0, v5}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v9 if-eqz v9, :cond_1 .line 4320 invoke-virtual {p0, v5}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle; move-result-object v3 invoke-static {v3}, Landroidx/core/app/Person;->fromBundle(Landroid/os/Bundle;)Landroidx/core/app/Person; move-result-object v3 goto :goto_0 .line 4321 :cond_1 invoke-virtual {p0, v4}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v5 if-eqz v5, :cond_2 sget v5, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v9, 0x1c if-lt v5, v9, :cond_2 .line 4325 invoke-virtual {p0, v4}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable; move-result-object v3 invoke-static {v3}, Landroidx/core/app/NotificationCompat$$ExternalSyntheticApiModelOutline0;->m(Ljava/lang/Object;)Landroid/app/Person; move-result-object v3 .line 4324 invoke-static {v3}, Landroidx/core/app/Person;->fromAndroidPerson(Landroid/app/Person;)Landroidx/core/app/Person; move-result-object v3 goto :goto_0 .line 4326 :cond_2 invoke-virtual {p0, v3}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v4 if-eqz v4, :cond_3 .line 4328 new-instance v4, Landroidx/core/app/Person$Builder; invoke-direct {v4}, Landroidx/core/app/Person$Builder;->()V .line 4329 invoke-virtual {p0, v3}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence; move-result-object v3 invoke-virtual {v4, v3}, Landroidx/core/app/Person$Builder;->setName(Ljava/lang/CharSequence;)Landroidx/core/app/Person$Builder; move-result-object v3 .line 4330 invoke-virtual {v3}, Landroidx/core/app/Person$Builder;->build()Landroidx/core/app/Person; move-result-object v3 goto :goto_0 :cond_3 move-object v3, v8 .line 4333 :goto_0 new-instance v4, Landroidx/core/app/NotificationCompat$MessagingStyle$Message; .line 4334 invoke-virtual {p0, v7}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence; move-result-object v5 .line 4335 invoke-virtual {p0, v6}, Landroid/os/BaseBundle;->getLong(Ljava/lang/String;)J move-result-wide v6 invoke-direct {v4, v5, v6, v7, v3}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->(Ljava/lang/CharSequence;JLandroidx/core/app/Person;)V .line 4338 invoke-virtual {p0, v2}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v3 if-eqz v3, :cond_4 .line 4339 invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v3 if-eqz v3, :cond_4 .line 4340 invoke-virtual {p0, v2}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 .line 4341 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable; move-result-object v1 check-cast v1, Landroid/net/Uri; .line 4340 invoke-virtual {v4, v2, v1}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->setData(Ljava/lang/String;Landroid/net/Uri;)Landroidx/core/app/NotificationCompat$MessagingStyle$Message; .line 4343 :cond_4 invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v1 if-eqz v1, :cond_5 .line 4344 invoke-virtual {v4}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getExtras()Landroid/os/Bundle; move-result-object v1 invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle; move-result-object p0 invoke-virtual {v1, p0}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V :try_end_0 .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0 :cond_5 return-object v4 :catch_0 :cond_6 :goto_1 return-object v8 .end method .method public static getMessagesFromBundleArray([Landroid/os/Parcelable;)Ljava/util/List; .locals 4 .param p0 # [Landroid/os/Parcelable; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "([", "Landroid/os/Parcelable;", ")", "Ljava/util/List<", "Landroidx/core/app/NotificationCompat$MessagingStyle$Message;", ">;" } .end annotation .line 4297 new-instance v0, Ljava/util/ArrayList; array-length v1, p0 invoke-direct {v0, v1}, Ljava/util/ArrayList;->(I)V const/4 v1, 0x0 .line 4298 :goto_0 array-length v2, p0 if-ge v1, v2, :cond_1 .line 4299 aget-object v2, p0, v1 instance-of v3, v2, Landroid/os/Bundle; if-eqz v3, :cond_0 .line 4300 check-cast v2, Landroid/os/Bundle; invoke-static {v2}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getMessageFromBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$MessagingStyle$Message; move-result-object v2 if-eqz v2, :cond_0 .line 4302 invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_1 return-object v0 .end method .method private toBundle()Landroid/os/Bundle; .locals 4 .annotation build Landroidx/annotation/NonNull; .end annotation .line 4255 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence; if-eqz v1, :cond_0 const-string v2, "text" .line 4257 invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V :cond_0 const-string v1, "time" iget-wide v2, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mTimestamp:J .line 4259 invoke-virtual {v0, v1, v2, v3}, Landroid/os/BaseBundle;->putLong(Ljava/lang/String;J)V iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mPerson:Landroidx/core/app/Person; if-eqz v1, :cond_2 const-string v2, "sender" .line 4263 invoke-virtual {v1}, Landroidx/core/app/Person;->getName()Ljava/lang/CharSequence; move-result-object v1 invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x1c if-lt v1, v2, :cond_1 iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mPerson:Landroidx/core/app/Person; .line 4268 invoke-virtual {v1}, Landroidx/core/app/Person;->toAndroidPerson()Landroid/app/Person; move-result-object v1 invoke-static {v1}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message$Api28Impl;->castToParcelable(Landroid/app/Person;)Landroid/os/Parcelable; move-result-object v1 const-string v2, "sender_person" .line 4267 invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V goto :goto_0 :cond_1 iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mPerson:Landroidx/core/app/Person; .line 4270 invoke-virtual {v1}, Landroidx/core/app/Person;->toBundle()Landroid/os/Bundle; move-result-object v1 const-string v2, "person" invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V :cond_2 :goto_0 iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String; if-eqz v1, :cond_3 const-string v2, "type" .line 4274 invoke-virtual {v0, v2, v1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V :cond_3 iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri; if-eqz v1, :cond_4 const-string v2, "uri" .line 4277 invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V :cond_4 iget-object v1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle; if-eqz v1, :cond_5 const-string v2, "extras" .line 4280 invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V :cond_5 return-object v0 .end method # virtual methods .method public getDataMimeType()Ljava/lang/String; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String; return-object v0 .end method .method public getDataUri()Landroid/net/Uri; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri; return-object v0 .end method .method public getExtras()Landroid/os/Bundle; .locals 1 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle; return-object v0 .end method .method public getPerson()Landroidx/core/app/Person; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mPerson:Landroidx/core/app/Person; return-object v0 .end method .method public getSender()Ljava/lang/CharSequence; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mPerson:Landroidx/core/app/Person; if-nez v0, :cond_0 const/4 v0, 0x0 goto :goto_0 .line 4230 :cond_0 invoke-virtual {v0}, Landroidx/core/app/Person;->getName()Ljava/lang/CharSequence; move-result-object v0 :goto_0 return-object v0 .end method .method public getText()Ljava/lang/CharSequence; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence; return-object v0 .end method .method public getTimestamp()J .locals 2 iget-wide v0, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mTimestamp:J return-wide v0 .end method .method public setData(Ljava/lang/String;Landroid/net/Uri;)Landroidx/core/app/NotificationCompat$MessagingStyle$Message; .locals 0 .param p1 # Ljava/lang/String; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p2 # Landroid/net/Uri; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iput-object p1, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String; iput-object p2, p0, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri; return-object p0 .end method .method public toAndroidMessage()Landroid/app/Notification$MessagingStyle$Message; .locals 6 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Landroidx/annotation/RequiresApi; value = 0x18 .end annotation .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .line 4361 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getPerson()Landroidx/core/app/Person; move-result-object v0 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x1c const/4 v3, 0x0 if-lt v1, v2, :cond_1 .line 4364 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getText()Ljava/lang/CharSequence; move-result-object v1 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getTimestamp()J move-result-wide v4 if-nez v0, :cond_0 goto :goto_0 .line 4365 :cond_0 invoke-virtual {v0}, Landroidx/core/app/Person;->toAndroidPerson()Landroid/app/Person; move-result-object v3 .line 4364 :goto_0 invoke-static {v1, v4, v5, v3}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message$Api28Impl;->createMessage(Ljava/lang/CharSequence;JLandroid/app/Person;)Landroid/app/Notification$MessagingStyle$Message; move-result-object v0 goto :goto_2 .line 4367 :cond_1 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getText()Ljava/lang/CharSequence; move-result-object v1 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getTimestamp()J move-result-wide v4 if-nez v0, :cond_2 goto :goto_1 .line 4368 :cond_2 invoke-virtual {v0}, Landroidx/core/app/Person;->getName()Ljava/lang/CharSequence; move-result-object v3 .line 4367 :goto_1 invoke-static {v1, v4, v5, v3}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message$Api24Impl;->createMessage(Ljava/lang/CharSequence;JLjava/lang/CharSequence;)Landroid/app/Notification$MessagingStyle$Message; move-result-object v0 .line 4371 :goto_2 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getDataMimeType()Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_3 .line 4372 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getDataMimeType()Ljava/lang/String; move-result-object v1 invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message;->getDataUri()Landroid/net/Uri; move-result-object v2 invoke-static {v0, v1, v2}, Landroidx/core/app/NotificationCompat$MessagingStyle$Message$Api24Impl;->setData(Landroid/app/Notification$MessagingStyle$Message;Ljava/lang/String;Landroid/net/Uri;)Landroid/app/Notification$MessagingStyle$Message; :cond_3 return-object v0 .end method