mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
299 lines
7 KiB
Smali
299 lines
7 KiB
Smali
.class Landroidx/profileinstaller/ProfileVerifier$Cache;
|
|
.super Ljava/lang/Object;
|
|
.source "ProfileVerifier.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/profileinstaller/ProfileVerifier;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "Cache"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final SCHEMA:I = 0x1
|
|
|
|
|
|
# instance fields
|
|
.field final mInstalledCurrentProfileSize:J
|
|
|
|
.field final mPackageLastUpdateTime:J
|
|
|
|
.field final mResultCode:I
|
|
|
|
.field final mSchema:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(IIJJ)V
|
|
.locals 0
|
|
|
|
.line 337
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
|
|
|
iput p2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
|
|
|
iput-wide p3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
|
|
|
iput-wide p5, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static readFromFile(Ljava/io/File;)Landroidx/profileinstaller/ProfileVerifier$Cache;
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 376
|
|
new-instance v0, Ljava/io/DataInputStream;
|
|
|
|
new-instance v1, Ljava/io/FileInputStream;
|
|
|
|
invoke-direct {v1, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
.line 377
|
|
:try_start_0
|
|
new-instance p0, Landroidx/profileinstaller/ProfileVerifier$Cache;
|
|
|
|
.line 378
|
|
invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I
|
|
|
|
move-result v3
|
|
|
|
.line 379
|
|
invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I
|
|
|
|
move-result v4
|
|
|
|
.line 380
|
|
invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J
|
|
|
|
move-result-wide v5
|
|
|
|
.line 381
|
|
invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J
|
|
|
|
move-result-wide v7
|
|
|
|
move-object v2, p0
|
|
|
|
invoke-direct/range {v2 .. v8}, Landroidx/profileinstaller/ProfileVerifier$Cache;-><init>(IIJJ)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 383
|
|
invoke-virtual {v0}, Ljava/io/DataInputStream;->close()V
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 376
|
|
:try_start_1
|
|
invoke-virtual {v0}, Ljava/io/DataInputStream;->close()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 6
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 347
|
|
instance-of v2, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 348
|
|
:cond_1
|
|
check-cast p1, Landroidx/profileinstaller/ProfileVerifier$Cache;
|
|
|
|
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
|
|
|
.line 349
|
|
iget v3, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
iget-wide v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
|
|
|
iget-wide v4, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
|
|
|
iget v3, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
iget-wide v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
|
|
|
iget-wide p0, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
|
|
|
cmp-long p0, v2, p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 5
|
|
|
|
iget v0, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
|
|
|
.line 358
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
|
|
|
.line 359
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
|
|
|
.line 360
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
iget-wide v3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
|
|
|
.line 361
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
filled-new-array {v0, v1, v2, p0}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 357
|
|
invoke-static {p0}, Ljava/util/Objects;->hash([Ljava/lang/Object;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method writeOnFile(Ljava/io/File;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 366
|
|
invoke-virtual {p1}, Ljava/io/File;->delete()Z
|
|
|
|
.line 367
|
|
new-instance v0, Ljava/io/DataOutputStream;
|
|
|
|
new-instance v1, Ljava/io/FileOutputStream;
|
|
|
|
invoke-direct {v1, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
|
|
|
|
:try_start_0
|
|
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
|
|
|
.line 368
|
|
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
|
|
|
|
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
|
|
|
.line 369
|
|
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
|
|
|
|
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
|
|
|
.line 370
|
|
invoke-virtual {v0, v1, v2}, Ljava/io/DataOutputStream;->writeLong(J)V
|
|
|
|
iget-wide p0, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
|
|
|
.line 371
|
|
invoke-virtual {v0, p0, p1}, Ljava/io/DataOutputStream;->writeLong(J)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 372
|
|
invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 367
|
|
:try_start_1
|
|
invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
throw p0
|
|
.end method
|