granularity level: instruction
.class public final Lcom/google/android/gms/common/images/WebImage;
.super Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;
.source "com.google.android.gms:play-services-base@@18.0.1"
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lcom/google/android/gms/common/images/WebImage;",
">;"
}
.end annotation
.end field
.field final zaa:I
.field private final zab:Landroid/net/Uri;
.field private final zac:I
.field private final zad:I
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/android/gms/common/images/zah;
invoke-direct {v0}, Lcom/google/android/gms/common/images/zah;-><init>()V
sput-object v0, Lcom/google/android/gms/common/images/WebImage;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method constructor <init>(ILandroid/net/Uri;II)V
.locals 0
invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;-><init>()V
iput p1, p0, Lcom/google/android/gms/common/images/WebImage;->zaa:I
iput-object p2, p0, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
iput p3, p0, Lcom/google/android/gms/common/images/WebImage;->zac:I
iput p4, p0, Lcom/google/android/gms/common/images/WebImage;->zad:I
return-void
.end method
.method public constructor <init>(Landroid/net/Uri;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, v0, v0}, Lcom/google/android/gms/common/images/WebImage;-><init>(Landroid/net/Uri;II)V
return-void
.end method
.method public constructor <init>(Landroid/net/Uri;II)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
const/4 v0, 0x1
invoke-direct {p0, v0, p1, p2, p3}, Lcom/google/android/gms/common/images/WebImage;-><init>(ILandroid/net/Uri;II)V
if-eqz p1, :cond_1
if-ltz p2, :cond_0
if-ltz p3, :cond_0
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "width and height must not be negative"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "url cannot be null"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public constructor <init>(Lorg/json/JSONObject;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
const-string v1, "url"
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_0
:try_start_0
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
:cond_0
:catch_0
const-string v1, "width"
const/4 v2, 0x0
invoke-virtual {p1, v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I
move-result v1
const-string v3, "height"
invoke-virtual {p1, v3, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I
move-result p1
invoke-direct {p0, v0, v1, p1}, Lcom/google/android/gms/common/images/WebImage;-><init>(Landroid/net/Uri;II)V
return-void
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_2
instance-of v2, p1, Lcom/google/android/gms/common/images/WebImage;
if-nez v2, :cond_1
goto :goto_0
:cond_1
check-cast p1, Lcom/google/android/gms/common/images/WebImage;
iget-object v2, p0, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
iget-object v3, p1, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
iget v2, p0, Lcom/google/android/gms/common/images/WebImage;->zac:I
iget v3, p1, Lcom/google/android/gms/common/images/WebImage;->zac:I
if-ne v2, v3, :cond_2
iget v2, p0, Lcom/google/android/gms/common/images/WebImage;->zad:I
iget p1, p1, Lcom/google/android/gms/common/images/WebImage;->zad:I
if-ne v2, p1, :cond_2
return v0
:cond_2
:goto_0
return v1
.end method
.method public getHeight()I
.locals 1
iget v0, p0, Lcom/google/android/gms/common/images/WebImage;->zad:I
return v0
.end method
.method public getUrl()Landroid/net/Uri;
.locals 1
iget-object v0, p0, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
return-object v0
.end method
.method public getWidth()I
.locals 1
iget v0, p0, Lcom/google/android/gms/common/images/WebImage;->zac:I
return v0
.end method
.method public hashCode()I
.locals 3
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
iget-object v1, p0, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
const/4 v2, 0x0
aput-object v1, v0, v2
iget v1, p0, Lcom/google/android/gms/common/images/WebImage;->zac:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
iget v1, p0, Lcom/google/android/gms/common/images/WebImage;->zad:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x2
aput-object v1, v0, v2
invoke-static {v0}, Lcom/google/android/gms/common/internal/Objects;->hashCode([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public toJson()Lorg/json/JSONObject;
.locals 3
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_start_0
const-string v1, "url"
iget-object v2, p0, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
invoke-virtual {v2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const-string v1, "width"
iget v2, p0, Lcom/google/android/gms/common/images/WebImage;->zac:I
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
const-string v1, "height"
iget v2, p0, Lcom/google/android/gms/common/images/WebImage;->zad:I
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/Object;
iget v2, p0, Lcom/google/android/gms/common/images/WebImage;->zac:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x0
aput-object v2, v1, v3
iget v2, p0, Lcom/google/android/gms/common/images/WebImage;->zad:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
aput-object v2, v1, v3
iget-object v2, p0, Lcom/google/android/gms/common/images/WebImage;->zab:Landroid/net/Uri;
invoke-virtual {v2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object v2
const/4 v3, 0x2
aput-object v2, v1, v3
const-string v2, "Image %dx%d %s"
invoke-static {v0, v2, v1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.locals 4
invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->beginObjectHeader(Landroid/os/Parcel;)I
move-result v0
iget v1, p0, Lcom/google/android/gms/common/images/WebImage;->zaa:I
const/4 v2, 0x1
invoke-static {p1, v2, v1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
invoke-virtual {p0}, Lcom/google/android/gms/common/images/WebImage;->getUrl()Landroid/net/Uri;
move-result-object v1
const/4 v2, 0x2
const/4 v3, 0x0
invoke-static {p1, v2, v1, p2, v3}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeParcelable(Landroid/os/Parcel;ILandroid/os/Parcelable;IZ)V
invoke-virtual {p0}, Lcom/google/android/gms/common/images/WebImage;->getWidth()I
move-result p2
const/4 v1, 0x3
invoke-static {p1, v1, p2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
invoke-virtual {p0}, Lcom/google/android/gms/common/images/WebImage;->getHeight()I
move-result p2
const/4 v1, 0x4
invoke-static {p1, v1, p2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->finishObjectHeader(Landroid/os/Parcel;I)V
return-void
.end method