452 lines
12 KiB
Smali
452 lines
12 KiB
Smali
.class public final Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
.super Ljava/lang/Object;
|
|
.source "NotificationCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroid/support/v4/app/NotificationCompat$MessagingStyle;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Message"
|
|
.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_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;
|
|
|
|
.field private mDataUri:Landroid/net/Uri;
|
|
|
|
.field private mExtras:Landroid/os/Bundle;
|
|
|
|
.field private final mSender:Ljava/lang/CharSequence;
|
|
|
|
.field private final mText:Ljava/lang/CharSequence;
|
|
|
|
.field private final mTimestamp:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/CharSequence;JLjava/lang/CharSequence;)V
|
|
.locals 1
|
|
|
|
.line 2363
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2349
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle;
|
|
|
|
.line 2364
|
|
iput-object p1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence;
|
|
|
|
.line 2365
|
|
iput-wide p2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mTimestamp:J
|
|
|
|
.line 2366
|
|
iput-object p4, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mSender:Ljava/lang/CharSequence;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static getBundleArrayForMessages(Ljava/util/List;)[Landroid/os/Bundle;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;",
|
|
">;)[",
|
|
"Landroid/os/Bundle;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2468
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [Landroid/os/Bundle;
|
|
|
|
.line 2469
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 2471
|
|
invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
|
|
invoke-direct {v3}, Landroid/support/v4/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 static getMessageFromBundle(Landroid/os/Bundle;)Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
.locals 6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
const-string v1, "text"
|
|
|
|
.line 2491
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const-string v1, "time"
|
|
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2494
|
|
:cond_0
|
|
new-instance v1, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
|
|
const-string v2, "text"
|
|
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "time"
|
|
|
|
.line 2495
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v3
|
|
|
|
const-string v5, "sender"
|
|
|
|
invoke-virtual {p0, v5}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-direct {v1, v2, v3, v4, v5}, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;-><init>(Ljava/lang/CharSequence;JLjava/lang/CharSequence;)V
|
|
|
|
const-string v2, "type"
|
|
|
|
.line 2496
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const-string v2, "uri"
|
|
|
|
.line 2497
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const-string v2, "type"
|
|
|
|
.line 2498
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "uri"
|
|
|
|
.line 2499
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/net/Uri;
|
|
|
|
.line 2498
|
|
invoke-virtual {v1, v2, v3}, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->setData(Ljava/lang/String;Landroid/net/Uri;)Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
|
|
:cond_1
|
|
const-string v2, "extras"
|
|
|
|
.line 2501
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 2502
|
|
invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "extras"
|
|
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v2, 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_2
|
|
return-object v1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:catch_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static getMessagesFromBundleArray([Landroid/os/Parcelable;)Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"([",
|
|
"Landroid/os/Parcelable;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2477
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
array-length v1, p0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 2478
|
|
:goto_0
|
|
array-length v2, p0
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 2479
|
|
aget-object v2, p0, v1
|
|
|
|
instance-of v2, v2, Landroid/os/Bundle;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 2480
|
|
aget-object v2, p0, v1
|
|
|
|
check-cast v2, Landroid/os/Bundle;
|
|
|
|
invoke-static {v2}, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->getMessageFromBundle(Landroid/os/Bundle;)Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 2482
|
|
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
|
|
|
|
.line 2447
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 2448
|
|
iget-object v1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "text"
|
|
|
|
.line 2449
|
|
iget-object v2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
const-string v1, "time"
|
|
|
|
.line 2451
|
|
iget-wide v2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mTimestamp:J
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
.line 2452
|
|
iget-object v1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mSender:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "sender"
|
|
|
|
.line 2453
|
|
iget-object v2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mSender:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
.line 2455
|
|
:cond_1
|
|
iget-object v1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v1, "type"
|
|
|
|
.line 2456
|
|
iget-object v2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 2458
|
|
:cond_2
|
|
iget-object v1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const-string v1, "uri"
|
|
|
|
.line 2459
|
|
iget-object v2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
.line 2461
|
|
:cond_3
|
|
iget-object v1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
const-string v1, "extras"
|
|
|
|
.line 2462
|
|
iget-object v2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getDataMimeType()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 2435
|
|
iget-object v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDataUri()Landroid/net/Uri;
|
|
.locals 1
|
|
|
|
.line 2443
|
|
iget-object v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getExtras()Landroid/os/Bundle;
|
|
.locals 1
|
|
|
|
.line 2421
|
|
iget-object v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mExtras:Landroid/os/Bundle;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSender()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 2428
|
|
iget-object v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mSender:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getText()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 2407
|
|
iget-object v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mText:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTimestamp()J
|
|
.locals 2
|
|
|
|
.line 2414
|
|
iget-wide v0, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mTimestamp:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public setData(Ljava/lang/String;Landroid/net/Uri;)Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;
|
|
.locals 0
|
|
|
|
.line 2397
|
|
iput-object p1, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataMimeType:Ljava/lang/String;
|
|
|
|
.line 2398
|
|
iput-object p2, p0, Landroid/support/v4/app/NotificationCompat$MessagingStyle$Message;->mDataUri:Landroid/net/Uri;
|
|
|
|
return-object p0
|
|
.end method
|