358 lines
11 KiB
Smali
358 lines
11 KiB
Smali
|
.class public final Landroid/support/v4/media/MediaDescriptionCompat;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "MediaDescriptionCompat.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroid/os/Parcelable;
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Landroid/os/Parcelable$Creator<",
|
||
|
"Landroid/support/v4/media/MediaDescriptionCompat;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final d:Ljava/lang/String;
|
||
|
|
||
|
.field public final e:Ljava/lang/CharSequence;
|
||
|
|
||
|
.field public final f:Ljava/lang/CharSequence;
|
||
|
|
||
|
.field public final g:Ljava/lang/CharSequence;
|
||
|
|
||
|
.field public final h:Landroid/graphics/Bitmap;
|
||
|
|
||
|
.field public final i:Landroid/net/Uri;
|
||
|
|
||
|
.field public final j:Landroid/os/Bundle;
|
||
|
|
||
|
.field public final k:Landroid/net/Uri;
|
||
|
|
||
|
.field public l:Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Landroid/support/v4/media/MediaDescriptionCompat$a;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/support/v4/media/MediaDescriptionCompat$a;-><init>()V
|
||
|
|
||
|
sput-object v0, Landroid/support/v4/media/MediaDescriptionCompat;->CREATOR:Landroid/os/Parcelable$Creator;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/graphics/Bitmap;Landroid/net/Uri;Landroid/os/Bundle;Landroid/net/Uri;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->d:Ljava/lang/String;
|
||
|
|
||
|
iput-object p2, p0, Landroid/support/v4/media/MediaDescriptionCompat;->e:Ljava/lang/CharSequence;
|
||
|
|
||
|
iput-object p3, p0, Landroid/support/v4/media/MediaDescriptionCompat;->f:Ljava/lang/CharSequence;
|
||
|
|
||
|
iput-object p4, p0, Landroid/support/v4/media/MediaDescriptionCompat;->g:Ljava/lang/CharSequence;
|
||
|
|
||
|
iput-object p5, p0, Landroid/support/v4/media/MediaDescriptionCompat;->h:Landroid/graphics/Bitmap;
|
||
|
|
||
|
iput-object p6, p0, Landroid/support/v4/media/MediaDescriptionCompat;->i:Landroid/net/Uri;
|
||
|
|
||
|
iput-object p7, p0, Landroid/support/v4/media/MediaDescriptionCompat;->j:Landroid/os/Bundle;
|
||
|
|
||
|
iput-object p8, p0, Landroid/support/v4/media/MediaDescriptionCompat;->k:Landroid/net/Uri;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Ljava/lang/Object;)Landroid/support/v4/media/MediaDescriptionCompat;
|
||
|
.locals 14
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-eqz p0, :cond_5
|
||
|
|
||
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
move-object v1, p0
|
||
|
|
||
|
check-cast v1, Landroid/media/MediaDescription;
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getMediaId()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getTitle()Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getSubtitle()Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getDescription()Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getIconBitmap()Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getIconUri()Landroid/net/Uri;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getExtras()Landroid/os/Bundle;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v9, "android.support.v4.media.description.MEDIA_URI"
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-static {v2}, Landroid/support/v4/media/session/MediaSessionCompat;->a(Landroid/os/Bundle;)V
|
||
|
|
||
|
invoke-virtual {v2, v9}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
check-cast v10, Landroid/net/Uri;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
move-object v10, v0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v10, :cond_2
|
||
|
|
||
|
const-string v11, "android.support.v4.media.description.NULL_BUNDLE_FLAG"
|
||
|
|
||
|
invoke-virtual {v2, v11}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
if-eqz v12, :cond_1
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/os/Bundle;->size()I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
const/4 v13, 0x2
|
||
|
|
||
|
if-ne v12, v13, :cond_1
|
||
|
|
||
|
move-object v9, v0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {v2, v9}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v2, v11}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
||
|
|
||
|
:cond_2
|
||
|
move-object v9, v2
|
||
|
|
||
|
:goto_1
|
||
|
if-eqz v10, :cond_3
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v10, 0x17
|
||
|
|
||
|
if-lt v2, v10, :cond_4
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/media/MediaDescription;->getMediaUri()Landroid/net/Uri;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:cond_4
|
||
|
move-object v10, v0
|
||
|
|
||
|
:goto_2
|
||
|
new-instance v0, Landroid/support/v4/media/MediaDescriptionCompat;
|
||
|
|
||
|
move-object v2, v0
|
||
|
|
||
|
invoke-direct/range {v2 .. v10}, Landroid/support/v4/media/MediaDescriptionCompat;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/graphics/Bitmap;Landroid/net/Uri;Landroid/os/Bundle;Landroid/net/Uri;)V
|
||
|
|
||
|
iput-object p0, v0, Landroid/support/v4/media/MediaDescriptionCompat;->l:Ljava/lang/Object;
|
||
|
|
||
|
:cond_5
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public describeContents()I
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public n()Ljava/lang/Object;
|
||
|
.locals 5
|
||
|
|
||
|
iget-object v0, p0, Landroid/support/v4/media/MediaDescriptionCompat;->l:Ljava/lang/Object;
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
new-instance v0, Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/media/MediaDescription$Builder;-><init>()V
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->d:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setMediaId(Ljava/lang/String;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->e:Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->f:Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setSubtitle(Ljava/lang/CharSequence;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->g:Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setDescription(Ljava/lang/CharSequence;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->h:Landroid/graphics/Bitmap;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setIconBitmap(Landroid/graphics/Bitmap;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->i:Landroid/net/Uri;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setIconUri(Landroid/net/Uri;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->j:Landroid/os/Bundle;
|
||
|
|
||
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v3, 0x17
|
||
|
|
||
|
if-ge v2, v3, :cond_1
|
||
|
|
||
|
iget-object v2, p0, Landroid/support/v4/media/MediaDescriptionCompat;->k:Landroid/net/Uri;
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
new-instance v1, Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
const-string v4, "android.support.v4.media.description.NULL_BUNDLE_FLAG"
|
||
|
|
||
|
invoke-virtual {v1, v4, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v2, p0, Landroid/support/v4/media/MediaDescriptionCompat;->k:Landroid/net/Uri;
|
||
|
|
||
|
const-string v4, "android.support.v4.media.description.MEDIA_URI"
|
||
|
|
||
|
invoke-virtual {v1, v4, v2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setExtras(Landroid/os/Bundle;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
if-lt v1, v3, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->k:Landroid/net/Uri;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/media/MediaDescription$Builder;->setMediaUri(Landroid/net/Uri;)Landroid/media/MediaDescription$Builder;
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {v0}, Landroid/media/MediaDescription$Builder;->build()Landroid/media/MediaDescription;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Landroid/support/v4/media/MediaDescriptionCompat;->l:Ljava/lang/Object;
|
||
|
|
||
|
iget-object v0, p0, Landroid/support/v4/media/MediaDescriptionCompat;->l:Ljava/lang/Object;
|
||
|
|
||
|
:cond_3
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public o()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Landroid/support/v4/media/MediaDescriptionCompat;->d:Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 3
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->e:Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, ", "
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-object v2, p0, Landroid/support/v4/media/MediaDescriptionCompat;->f:Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/v4/media/MediaDescriptionCompat;->g:Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
||
|
.locals 1
|
||
|
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/support/v4/media/MediaDescriptionCompat;->n()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/media/MediaDescription;
|
||
|
|
||
|
invoke-virtual {v0, p1, p2}, Landroid/media/MediaDescription;->writeToParcel(Landroid/os/Parcel;I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|