230 lines
7.1 KiB
Smali
230 lines
7.1 KiB
Smali
.class public final Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;
|
|
.super Ljava/lang/Object;
|
|
.source "PlaybackStateCompat.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroid/support/v4/media/session/PlaybackStateCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "CustomAction"
|
|
.end annotation
|
|
|
|
|
|
# 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/session/PlaybackStateCompat$CustomAction;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final aX:Ljava/lang/String;
|
|
|
|
.field private aY:Ljava/lang/Object;
|
|
|
|
.field private final mExtras:Landroid/os/Bundle;
|
|
|
|
.field private final mIcon:I
|
|
|
|
.field private final mName:Ljava/lang/CharSequence;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction$1;
|
|
|
|
invoke-direct {v0}, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction$1;-><init>()V
|
|
|
|
sput-object v0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->aX:Ljava/lang/String;
|
|
|
|
sget-object v0, Landroid/text/TextUtils;->CHAR_SEQUENCE_CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
invoke-interface {v0, p1}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mName:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mIcon:I
|
|
|
|
const-class v0, Landroid/support/v4/media/session/MediaSessionCompat;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->readBundle(Ljava/lang/ClassLoader;)Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mExtras:Landroid/os/Bundle;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Ljava/lang/String;Ljava/lang/CharSequence;ILandroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->aX:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mName:Ljava/lang/CharSequence;
|
|
|
|
iput p3, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mIcon:I
|
|
|
|
iput-object p4, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mExtras:Landroid/os/Bundle;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static h(Ljava/lang/Object;)Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;
|
|
.locals 5
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;
|
|
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Landroid/media/session/PlaybackState$CustomAction;
|
|
|
|
invoke-virtual {v1}, Landroid/media/session/PlaybackState$CustomAction;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1}, Landroid/media/session/PlaybackState$CustomAction;->getName()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1}, Landroid/media/session/PlaybackState$CustomAction;->getIcon()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v1}, Landroid/media/session/PlaybackState$CustomAction;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v2, v3, v4, v1}, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;ILandroid/os/Bundle;)V
|
|
|
|
iput-object p0, v0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->aY:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final describeContents()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Action:mName=\'"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mName:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", mIcon="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mIcon:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", mExtras="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mExtras:Landroid/os/Bundle;
|
|
|
|
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 final writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->aX:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mName:Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v0, p1, p2}, Landroid/text/TextUtils;->writeToParcel(Ljava/lang/CharSequence;Landroid/os/Parcel;I)V
|
|
|
|
iget p2, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mIcon:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
iget-object p2, p0, Landroid/support/v4/media/session/PlaybackStateCompat$CustomAction;->mExtras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeBundle(Landroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|