apkfuckery/com.discord/smali/androidx/loader/content/Loader.smali

705 lines
18 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Landroidx/loader/content/Loader;
.super Ljava/lang/Object;
.source "Loader.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/loader/content/Loader$OnLoadCanceledListener;,
Landroidx/loader/content/Loader$OnLoadCompleteListener;,
Landroidx/loader/content/Loader$ForceLoadContentObserver;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<D:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public mAbandoned:Z
.field public mContentChanged:Z
.field public mContext:Landroid/content/Context;
.field public mId:I
.field public mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/loader/content/Loader$OnLoadCompleteListener<",
"TD;>;"
}
.end annotation
.end field
.field public mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/loader/content/Loader$OnLoadCanceledListener<",
"TD;>;"
}
.end annotation
.end field
.field public mProcessingChange:Z
.field public mReset:Z
.field public mStarted:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 2
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
const/4 v1, 0x1
iput-boolean v1, p0, Landroidx/loader/content/Loader;->mReset:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Landroidx/loader/content/Loader;->mContext:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public abandon()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onAbandon()V
return-void
.end method
.method public cancelLoad()Z
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onCancelLoad()Z
move-result v0
return v0
.end method
.method public commitContentChanged()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
return-void
.end method
.method public dataToString(Ljava/lang/Object;)Ljava/lang/String;
.locals 2
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TD;)",
"Ljava/lang/String;"
}
.end annotation
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x40
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-static {p1, v0}, Landroidx/core/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
2020-08-26 17:47:03 +00:00
const-string/jumbo p1, "}"
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public deliverCancellation()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener;
if-eqz v0, :cond_0
invoke-interface {v0, p0}, Landroidx/loader/content/Loader$OnLoadCanceledListener;->onLoadCanceled(Landroidx/loader/content/Loader;)V
:cond_0
return-void
.end method
.method public deliverResult(Ljava/lang/Object;)V
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TD;)V"
}
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
if-eqz v0, :cond_0
invoke-interface {v0, p0, p1}, Landroidx/loader/content/Loader$OnLoadCompleteListener;->onLoadComplete(Landroidx/loader/content/Loader;Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, "mId="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget p2, p0, Landroidx/loader/content/Loader;->mId:I
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(I)V
const-string p2, " mListener="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-object p2, p0, Landroidx/loader/content/Loader;->mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mStarted:Z
if-nez p2, :cond_0
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
if-nez p2, :cond_0
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
if-eqz p2, :cond_1
:cond_0
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p2, "mStarted="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mStarted:Z
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Z)V
const-string p2, " mContentChanged="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Z)V
const-string p2, " mProcessingChange="
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Z)V
:cond_1
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
if-nez p2, :cond_2
iget-boolean p2, p0, Landroidx/loader/content/Loader;->mReset:Z
if-eqz p2, :cond_3
:cond_2
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string p1, "mAbandoned="
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p1, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Z)V
const-string p1, " mReset="
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean p1, p0, Landroidx/loader/content/Loader;->mReset:Z
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->println(Z)V
:cond_3
return-void
.end method
.method public forceLoad()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onForceLoad()V
return-void
.end method
.method public getContext()Landroid/content/Context;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mContext:Landroid/content/Context;
return-object v0
.end method
.method public getId()I
.locals 1
iget v0, p0, Landroidx/loader/content/Loader;->mId:I
return v0
.end method
.method public isAbandoned()Z
.locals 1
iget-boolean v0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
return v0
.end method
.method public isReset()Z
.locals 1
iget-boolean v0, p0, Landroidx/loader/content/Loader;->mReset:Z
return v0
.end method
.method public isStarted()Z
.locals 1
iget-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z
return v0
.end method
.method public onAbandon()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
return-void
.end method
.method public onCancelLoad()Z
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
const/4 v0, 0x0
return v0
.end method
.method public onContentChanged()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
iget-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroidx/loader/content/Loader;->forceLoad()V
goto :goto_0
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
:goto_0
return-void
.end method
.method public onForceLoad()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
return-void
.end method
.method public onReset()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
return-void
.end method
.method public onStartLoading()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
return-void
.end method
.method public onStopLoading()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
return-void
.end method
.method public registerListener(ILandroidx/loader/content/Loader$OnLoadCompleteListener;)V
.locals 1
.param p2 # Landroidx/loader/content/Loader$OnLoadCompleteListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Landroidx/loader/content/Loader$OnLoadCompleteListener<",
"TD;>;)V"
}
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
if-nez v0, :cond_0
iput-object p2, p0, Landroidx/loader/content/Loader;->mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
iput p1, p0, Landroidx/loader/content/Loader;->mId:I
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "There is already a listener registered"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public registerOnLoadCanceledListener(Landroidx/loader/content/Loader$OnLoadCanceledListener;)V
.locals 1
.param p1 # Landroidx/loader/content/Loader$OnLoadCanceledListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/loader/content/Loader$OnLoadCanceledListener<",
"TD;>;)V"
}
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener;
if-nez v0, :cond_0
iput-object p1, p0, Landroidx/loader/content/Loader;->mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener;
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "There is already a listener registered"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public reset()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onReset()V
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mReset:Z
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
return-void
.end method
.method public rollbackContentChanged()V
.locals 1
iget-boolean v0, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onContentChanged()V
:cond_0
return-void
.end method
.method public final startLoading()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mReset:Z
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onStartLoading()V
return-void
.end method
.method public stopLoading()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z
invoke-virtual {p0}, Landroidx/loader/content/Loader;->onStopLoading()V
return-void
.end method
.method public takeContentChanged()Z
.locals 2
iget-boolean v0, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
const/4 v1, 0x0
iput-boolean v1, p0, Landroidx/loader/content/Loader;->mContentChanged:Z
iget-boolean v1, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
or-int/2addr v1, v0
iput-boolean v1, p0, Landroidx/loader/content/Loader;->mProcessingChange:Z
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x40
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-static {p0, v0}, Landroidx/core/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
const-string v1, " id="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/loader/content/Loader;->mId:I
2020-08-26 17:47:03 +00:00
const-string/jumbo v2, "}"
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->t(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object v0
return-object v0
.end method
.method public unregisterListener(Landroidx/loader/content/Loader$OnLoadCompleteListener;)V
.locals 1
.param p1 # Landroidx/loader/content/Loader$OnLoadCompleteListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/loader/content/Loader$OnLoadCompleteListener<",
"TD;>;)V"
}
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
if-eqz v0, :cond_1
if-ne v0, p1, :cond_0
const/4 p1, 0x0
iput-object p1, p0, Landroidx/loader/content/Loader;->mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener;
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Attempting to unregister the wrong listener"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "No listener register"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public unregisterOnLoadCanceledListener(Landroidx/loader/content/Loader$OnLoadCanceledListener;)V
.locals 1
.param p1 # Landroidx/loader/content/Loader$OnLoadCanceledListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/loader/content/Loader$OnLoadCanceledListener<",
"TD;>;)V"
}
.end annotation
iget-object v0, p0, Landroidx/loader/content/Loader;->mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener;
if-eqz v0, :cond_1
if-ne v0, p1, :cond_0
const/4 p1, 0x0
iput-object p1, p0, Landroidx/loader/content/Loader;->mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener;
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Attempting to unregister the wrong listener"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "No listener register"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method