Files
rr3-apk/smali_classes3/com/google/firebase/perf/util/StorageUnit.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

280 lines
7.5 KiB
Smali

.class public abstract enum Lcom/google/firebase/perf/util/StorageUnit;
.super Ljava/lang/Enum;
.source "SourceFile"
# static fields
.field private static final synthetic $VALUES:[Lcom/google/firebase/perf/util/StorageUnit;
.field public static final enum BYTES:Lcom/google/firebase/perf/util/StorageUnit;
.field public static final enum GIGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.field public static final enum KILOBYTES:Lcom/google/firebase/perf/util/StorageUnit;
.field public static final enum MEGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.field public static final enum TERABYTES:Lcom/google/firebase/perf/util/StorageUnit;
# instance fields
.field numBytes:J
# direct methods
.method private static synthetic $values()[Lcom/google/firebase/perf/util/StorageUnit;
.locals 3
const/4 v0, 0x5
new-array v0, v0, [Lcom/google/firebase/perf/util/StorageUnit;
const/4 v1, 0x0
sget-object v2, Lcom/google/firebase/perf/util/StorageUnit;->TERABYTES:Lcom/google/firebase/perf/util/StorageUnit;
aput-object v2, v0, v1
const/4 v1, 0x1
sget-object v2, Lcom/google/firebase/perf/util/StorageUnit;->GIGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
aput-object v2, v0, v1
const/4 v1, 0x2
sget-object v2, Lcom/google/firebase/perf/util/StorageUnit;->MEGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
aput-object v2, v0, v1
const/4 v1, 0x3
sget-object v2, Lcom/google/firebase/perf/util/StorageUnit;->KILOBYTES:Lcom/google/firebase/perf/util/StorageUnit;
aput-object v2, v0, v1
const/4 v1, 0x4
sget-object v2, Lcom/google/firebase/perf/util/StorageUnit;->BYTES:Lcom/google/firebase/perf/util/StorageUnit;
aput-object v2, v0, v1
return-object v0
.end method
.method static constructor <clinit>()V
.locals 5
.line 26
new-instance v0, Lcom/google/firebase/perf/util/StorageUnit$1;
const/4 v1, 0x0
const-wide v2, 0x10000000000L
const-string v4, "TERABYTES"
invoke-direct {v0, v4, v1, v2, v3}, Lcom/google/firebase/perf/util/StorageUnit$1;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Lcom/google/firebase/perf/util/StorageUnit;->TERABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 32
new-instance v0, Lcom/google/firebase/perf/util/StorageUnit$2;
const/4 v1, 0x1
const-wide/32 v2, 0x40000000
const-string v4, "GIGABYTES"
invoke-direct {v0, v4, v1, v2, v3}, Lcom/google/firebase/perf/util/StorageUnit$2;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Lcom/google/firebase/perf/util/StorageUnit;->GIGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 38
new-instance v0, Lcom/google/firebase/perf/util/StorageUnit$3;
const/4 v1, 0x2
const-wide/32 v2, 0x100000
const-string v4, "MEGABYTES"
invoke-direct {v0, v4, v1, v2, v3}, Lcom/google/firebase/perf/util/StorageUnit$3;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Lcom/google/firebase/perf/util/StorageUnit;->MEGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 44
new-instance v0, Lcom/google/firebase/perf/util/StorageUnit$4;
const/4 v1, 0x3
const-wide/16 v2, 0x400
const-string v4, "KILOBYTES"
invoke-direct {v0, v4, v1, v2, v3}, Lcom/google/firebase/perf/util/StorageUnit$4;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Lcom/google/firebase/perf/util/StorageUnit;->KILOBYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 50
new-instance v0, Lcom/google/firebase/perf/util/StorageUnit$5;
const/4 v1, 0x4
const-wide/16 v2, 0x1
const-string v4, "BYTES"
invoke-direct {v0, v4, v1, v2, v3}, Lcom/google/firebase/perf/util/StorageUnit$5;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Lcom/google/firebase/perf/util/StorageUnit;->BYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 25
invoke-static {}, Lcom/google/firebase/perf/util/StorageUnit;->$values()[Lcom/google/firebase/perf/util/StorageUnit;
move-result-object v0
sput-object v0, Lcom/google/firebase/perf/util/StorageUnit;->$VALUES:[Lcom/google/firebase/perf/util/StorageUnit;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;IJ)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)V"
}
.end annotation
.line 59
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput-wide p3, p0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;IJLcom/google/firebase/perf/util/StorageUnit$1;)V
.locals 0
.line 25
invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/firebase/perf/util/StorageUnit;-><init>(Ljava/lang/String;IJ)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/firebase/perf/util/StorageUnit;
.locals 1
const-class v0, Lcom/google/firebase/perf/util/StorageUnit;
.line 25
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/firebase/perf/util/StorageUnit;
return-object p0
.end method
.method public static values()[Lcom/google/firebase/perf/util/StorageUnit;
.locals 1
sget-object v0, Lcom/google/firebase/perf/util/StorageUnit;->$VALUES:[Lcom/google/firebase/perf/util/StorageUnit;
.line 25
invoke-virtual {v0}, [Lcom/google/firebase/perf/util/StorageUnit;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/firebase/perf/util/StorageUnit;
return-object v0
.end method
# virtual methods
.method public abstract convert(JLcom/google/firebase/perf/util/StorageUnit;)J
.end method
.method public toBytes(J)J
.locals 2
iget-wide v0, p0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
mul-long/2addr p1, v0
return-wide p1
.end method
.method public toGigabytes(J)J
.locals 2
iget-wide v0, p0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
mul-long/2addr p1, v0
sget-object v0, Lcom/google/firebase/perf/util/StorageUnit;->GIGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 100
iget-wide v0, v0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
div-long/2addr p1, v0
return-wide p1
.end method
.method public toKilobytes(J)J
.locals 2
iget-wide v0, p0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
mul-long/2addr p1, v0
sget-object v0, Lcom/google/firebase/perf/util/StorageUnit;->KILOBYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 80
iget-wide v0, v0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
div-long/2addr p1, v0
return-wide p1
.end method
.method public toMegabytes(J)J
.locals 2
iget-wide v0, p0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
mul-long/2addr p1, v0
sget-object v0, Lcom/google/firebase/perf/util/StorageUnit;->MEGABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 90
iget-wide v0, v0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
div-long/2addr p1, v0
return-wide p1
.end method
.method public toTerabytes(J)J
.locals 2
iget-wide v0, p0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
mul-long/2addr p1, v0
sget-object v0, Lcom/google/firebase/perf/util/StorageUnit;->TERABYTES:Lcom/google/firebase/perf/util/StorageUnit;
.line 110
iget-wide v0, v0, Lcom/google/firebase/perf/util/StorageUnit;->numBytes:J
div-long/2addr p1, v0
return-wide p1
.end method