.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 = { "", "Ljava/lang/Object;" } .end annotation # instance fields .field mAbandoned:Z .field mContentChanged:Z .field mContext:Landroid/content/Context; .field mId:I .field mListener:Landroidx/loader/content/Loader$OnLoadCompleteListener; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/loader/content/Loader$OnLoadCompleteListener<", "TD;>;" } .end annotation .end field .field mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/loader/content/Loader$OnLoadCanceledListener<", "TD;>;" } .end annotation .end field .field mProcessingChange:Z .field mReset:Z .field mStarted:Z # direct methods .method public constructor (Landroid/content/Context;)V .locals 2 .line 118 invoke-direct {p0}, Ljava/lang/Object;->()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 .line 119 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 const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z .line 410 invoke-virtual {p0}, Landroidx/loader/content/Loader;->onAbandon()V return-void .end method .method public cancelLoad()Z .locals 0 .line 318 invoke-virtual {p0}, Landroidx/loader/content/Loader;->onCancelLoad()Z move-result p0 return p0 .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 1 .annotation system Ldalvik/annotation/Signature; value = { "(TD;)", "Ljava/lang/String;" } .end annotation .line 527 new-instance p0, Ljava/lang/StringBuilder; const/16 v0, 0x40 invoke-direct {p0, v0}, Ljava/lang/StringBuilder;->(I)V .line 528 invoke-static {p1, p0}, Landroidx/core/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V const-string p1, "}" .line 529 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 530 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public deliverCancellation()V .locals 1 iget-object v0, p0, Landroidx/loader/content/Loader;->mOnLoadCanceledListener:Landroidx/loader/content/Loader$OnLoadCanceledListener; if-eqz v0, :cond_0 .line 145 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 .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 .line 132 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 .line 555 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=" .line 556 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 .line 558 :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=" .line 559 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=" .line 560 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 .line 563 :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=" .line 564 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-boolean p0, p0, Landroidx/loader/content/Loader;->mReset:Z invoke-virtual {p3, p0}, Ljava/io/PrintWriter;->println(Z)V :cond_3 return-void .end method .method public forceLoad()V .locals 0 .line 347 invoke-virtual {p0}, Landroidx/loader/content/Loader;->onForceLoad()V return-void .end method .method public getContext()Landroid/content/Context; .locals 0 iget-object p0, p0, Landroidx/loader/content/Loader;->mContext:Landroid/content/Context; return-object p0 .end method .method public getId()I .locals 0 iget p0, p0, Landroidx/loader/content/Loader;->mId:I return p0 .end method .method public isAbandoned()Z .locals 0 iget-boolean p0, p0, Landroidx/loader/content/Loader;->mAbandoned:Z return p0 .end method .method public isReset()Z .locals 0 iget-boolean p0, p0, Landroidx/loader/content/Loader;->mReset:Z return p0 .end method .method public isStarted()Z .locals 0 iget-boolean p0, p0, Landroidx/loader/content/Loader;->mStarted:Z return p0 .end method .method protected onAbandon()V .locals 0 return-void .end method .method protected onCancelLoad()Z .locals 0 const/4 p0, 0x0 return p0 .end method .method public onContentChanged()V .locals 1 iget-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z if-eqz v0, :cond_0 .line 512 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 protected onForceLoad()V .locals 0 return-void .end method .method protected onReset()V .locals 0 return-void .end method .method protected onStartLoading()V .locals 0 return-void .end method .method protected onStopLoading()V .locals 0 return-void .end method .method public registerListener(ILandroidx/loader/content/Loader$OnLoadCompleteListener;)V .locals 1 .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 .line 174 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "There is already a listener registered" invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method .method public registerOnLoadCanceledListener(Landroidx/loader/content/Loader$OnLoadCanceledListener;)V .locals 1 .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 .line 208 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "There is already a listener registered" invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method .method public reset()V .locals 1 .line 447 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 .line 497 invoke-virtual {p0}, Landroidx/loader/content/Loader;->onContentChanged()V :cond_0 return-void .end method .method public final startLoading()V .locals 1 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 .line 285 invoke-virtual {p0}, Landroidx/loader/content/Loader;->onStartLoading()V return-void .end method .method public stopLoading()V .locals 1 const/4 v0, 0x0 iput-boolean v0, p0, Landroidx/loader/content/Loader;->mStarted:Z .line 381 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 2 .line 535 new-instance v0, Ljava/lang/StringBuilder; const/16 v1, 0x40 invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(I)V .line 536 invoke-static {p0, v0}, Landroidx/core/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V const-string v1, " id=" .line 537 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget p0, p0, Landroidx/loader/content/Loader;->mId:I .line 538 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string p0, "}" .line 539 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 540 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public unregisterListener(Landroidx/loader/content/Loader$OnLoadCompleteListener;)V .locals 1 .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 .line 191 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Attempting to unregister the wrong listener" invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .line 188 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "No listener register" invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method .method public unregisterOnLoadCanceledListener(Landroidx/loader/content/Loader$OnLoadCanceledListener;)V .locals 1 .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 .line 227 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Attempting to unregister the wrong listener" invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .line 224 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "No listener register" invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method