- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
353 lines
6.9 KiB
Smali
353 lines
6.9 KiB
Smali
.class public final Landroidx/core/os/CancellationSignal;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/os/CancellationSignal$OnCancelListener;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mCancelInProgress:Z
|
|
|
|
.field private mCancellationSignalObj:Ljava/lang/Object;
|
|
|
|
.field private mIsCanceled:Z
|
|
|
|
.field private mOnCancelListener:Landroidx/core/os/CancellationSignal$OnCancelListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 42
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private waitForCancelFinishedLocked()V
|
|
.locals 1
|
|
|
|
:catch_0
|
|
:goto_0
|
|
iget-boolean v0, p0, Landroidx/core/os/CancellationSignal;->mCancelInProgress:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 157
|
|
:try_start_0
|
|
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cancel()V
|
|
.locals 3
|
|
|
|
.line 74
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Landroidx/core/os/CancellationSignal;->mIsCanceled:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 76
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/core/os/CancellationSignal;->mIsCanceled:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/core/os/CancellationSignal;->mCancelInProgress:Z
|
|
|
|
iget-object v0, p0, Landroidx/core/os/CancellationSignal;->mOnCancelListener:Landroidx/core/os/CancellationSignal$OnCancelListener;
|
|
|
|
iget-object v1, p0, Landroidx/core/os/CancellationSignal;->mCancellationSignalObj:Ljava/lang/Object;
|
|
|
|
.line 82
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 86
|
|
:try_start_1
|
|
invoke-interface {v0}, Landroidx/core/os/CancellationSignal$OnCancelListener;->onCancel()V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 89
|
|
check-cast v1, Landroid/os/CancellationSignal;
|
|
|
|
invoke-virtual {v1}, Landroid/os/CancellationSignal;->cancel()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
goto :goto_2
|
|
|
|
.line 92
|
|
:goto_1
|
|
monitor-enter p0
|
|
|
|
:try_start_2
|
|
iput-boolean v2, p0, Landroidx/core/os/CancellationSignal;->mCancelInProgress:Z
|
|
|
|
.line 94
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 95
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
|
|
|
.line 96
|
|
throw v0
|
|
|
|
:catchall_2
|
|
move-exception v0
|
|
|
|
.line 95
|
|
:try_start_3
|
|
monitor-exit p0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
|
|
|
throw v0
|
|
|
|
.line 92
|
|
:cond_2
|
|
:goto_2
|
|
monitor-enter p0
|
|
|
|
:try_start_4
|
|
iput-boolean v2, p0, Landroidx/core/os/CancellationSignal;->mCancelInProgress:Z
|
|
|
|
.line 94
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 95
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_3
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_3
|
|
|
|
throw v0
|
|
|
|
.line 82
|
|
:goto_3
|
|
:try_start_5
|
|
monitor-exit p0
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getCancellationSignalObject()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 143
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Landroidx/core/os/CancellationSignal;->mCancellationSignalObj:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 145
|
|
new-instance v0, Landroid/os/CancellationSignal;
|
|
|
|
invoke-direct {v0}, Landroid/os/CancellationSignal;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/core/os/CancellationSignal;->mCancellationSignalObj:Ljava/lang/Object;
|
|
|
|
iget-boolean v1, p0, Landroidx/core/os/CancellationSignal;->mIsCanceled:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 147
|
|
invoke-virtual {v0}, Landroid/os/CancellationSignal;->cancel()V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/core/os/CancellationSignal;->mCancellationSignalObj:Ljava/lang/Object;
|
|
|
|
.line 150
|
|
monitor-exit p0
|
|
|
|
return-object v0
|
|
|
|
.line 151
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public isCanceled()Z
|
|
.locals 1
|
|
|
|
.line 51
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Landroidx/core/os/CancellationSignal;->mIsCanceled:Z
|
|
|
|
.line 52
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 53
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public setOnCancelListener(Landroidx/core/os/CancellationSignal$OnCancelListener;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/core/os/CancellationSignal$OnCancelListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 116
|
|
monitor-enter p0
|
|
|
|
.line 117
|
|
:try_start_0
|
|
invoke-direct {p0}, Landroidx/core/os/CancellationSignal;->waitForCancelFinishedLocked()V
|
|
|
|
iget-object v0, p0, Landroidx/core/os/CancellationSignal;->mOnCancelListener:Landroidx/core/os/CancellationSignal$OnCancelListener;
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
.line 120
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iput-object p1, p0, Landroidx/core/os/CancellationSignal;->mOnCancelListener:Landroidx/core/os/CancellationSignal$OnCancelListener;
|
|
|
|
iget-boolean v0, p0, Landroidx/core/os/CancellationSignal;->mIsCanceled:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 126
|
|
:cond_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 127
|
|
invoke-interface {p1}, Landroidx/core/os/CancellationSignal$OnCancelListener;->onCancel()V
|
|
|
|
return-void
|
|
|
|
.line 124
|
|
:cond_2
|
|
:goto_0
|
|
:try_start_1
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
.line 126
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public throwIfCanceled()V
|
|
.locals 1
|
|
|
|
.line 62
|
|
invoke-virtual {p0}, Landroidx/core/os/CancellationSignal;->isCanceled()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 63
|
|
:cond_0
|
|
new-instance v0, Landroidx/core/os/OperationCanceledException;
|
|
|
|
invoke-direct {v0}, Landroidx/core/os/OperationCanceledException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|