granularity level: instruction
.class public final Lcom/google/android/gms/common/images/Size;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"
.field private final zaa:I
.field private final zab:I
.method public constructor <init>(II)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/google/android/gms/common/images/Size;->zaa:I
iput p2, p0, Lcom/google/android/gms/common/images/Size;->zab:I
return-void
.end method
.method public static parseSize(Ljava/lang/String;)Lcom/google/android/gms/common/images/Size;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
if-eqz p0, :cond_2
const/16 v0, 0x2a
invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(I)I
move-result v0
if-gez v0, :cond_0
const/16 v0, 0x78
invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(I)I
move-result v0
:cond_0
if-ltz v0, :cond_1
:try_start_0
new-instance v1, Lcom/google/android/gms/common/images/Size;
const/4 v2, 0x0
invoke-virtual {p0, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v2
add-int/lit8 v0, v0, 0x1
invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
invoke-direct {v1, v2, v0}, Lcom/google/android/gms/common/images/Size;-><init>(II)V
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
return-object v1
:catch_0
invoke-static {p0}, Lcom/google/android/gms/common/images/Size;->zaa(Ljava/lang/String;)Ljava/lang/NumberFormatException;
move-result-object p0
throw p0
:cond_1
invoke-static {p0}, Lcom/google/android/gms/common/images/Size;->zaa(Ljava/lang/String;)Ljava/lang/NumberFormatException;
move-result-object p0
throw p0
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "string must not be null"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private static zaa(Ljava/lang/String;)Ljava/lang/NumberFormatException;
.locals 3
new-instance v0, Ljava/lang/NumberFormatException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v2
add-int/lit8 v2, v2, 0x10
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v2, "Invalid Size: \""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p0, "\""
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x0
if-nez p1, :cond_0
return v0
:cond_0
const/4 v1, 0x1
if-ne p0, p1, :cond_1
return v1
:cond_1
instance-of v2, p1, Lcom/google/android/gms/common/images/Size;
if-eqz v2, :cond_2
check-cast p1, Lcom/google/android/gms/common/images/Size;
iget v2, p0, Lcom/google/android/gms/common/images/Size;->zaa:I
iget v3, p1, Lcom/google/android/gms/common/images/Size;->zaa:I
if-ne v2, v3, :cond_2
iget v2, p0, Lcom/google/android/gms/common/images/Size;->zab:I
iget p1, p1, Lcom/google/android/gms/common/images/Size;->zab:I
if-ne v2, p1, :cond_2
return v1
:cond_2
return v0
.end method
.method public getHeight()I
.locals 1
iget v0, p0, Lcom/google/android/gms/common/images/Size;->zab:I
return v0
.end method
.method public getWidth()I
.locals 1
iget v0, p0, Lcom/google/android/gms/common/images/Size;->zaa:I
return v0
.end method
.method public hashCode()I
.locals 3
iget v0, p0, Lcom/google/android/gms/common/images/Size;->zab:I
iget v1, p0, Lcom/google/android/gms/common/images/Size;->zaa:I
shl-int/lit8 v2, v1, 0x10
ushr-int/lit8 v1, v1, 0x10
or-int/2addr v1, v2
xor-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
iget v0, p0, Lcom/google/android/gms/common/images/Size;->zaa:I
iget v1, p0, Lcom/google/android/gms/common/images/Size;->zab:I
new-instance v2, Ljava/lang/StringBuilder;
const/16 v3, 0x17
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, "x"
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method