118 lines
2.7 KiB
Smali
118 lines
2.7 KiB
Smali
.class public final Landroid/support/v4/media/RatingCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "RatingCompat.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/RatingCompat;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field public final d:I
|
|
|
|
.field public final e:F
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Landroid/support/v4/media/RatingCompat$a;
|
|
|
|
invoke-direct {v0}, Landroid/support/v4/media/RatingCompat$a;-><init>()V
|
|
|
|
sput-object v0, Landroid/support/v4/media/RatingCompat;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(IF)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Landroid/support/v4/media/RatingCompat;->d:I
|
|
|
|
iput p2, p0, Landroid/support/v4/media/RatingCompat;->e:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroid/support/v4/media/RatingCompat;->d:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "Rating:style="
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Landroid/support/v4/media/RatingCompat;->d:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " rating="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Landroid/support/v4/media/RatingCompat;->e:F
|
|
|
|
const/4 v2, 0x0
|
|
|
|
cmpg-float v2, v1, v2
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
const-string v1, "unrated"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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 0
|
|
|
|
iget p2, p0, Landroid/support/v4/media/RatingCompat;->d:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
iget p2, p0, Landroid/support/v4/media/RatingCompat;->e:F
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeFloat(F)V
|
|
|
|
return-void
|
|
.end method
|