.class public Landroid/support/v4/content/Loader; .super Ljava/lang/Object; .source "Loader.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroid/support/v4/content/Loader$OnLoadCanceledListener;, Landroid/support/v4/content/Loader$OnLoadCompleteListener;, Landroid/support/v4/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:Landroid/support/v4/content/Loader$OnLoadCompleteListener; .annotation system Ldalvik/annotation/Signature; value = { "Landroid/support/v4/content/Loader$OnLoadCompleteListener<", "TD;>;" } .end annotation .end field .field mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; .annotation system Ldalvik/annotation/Signature; value = { "Landroid/support/v4/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 .param p1 # Landroid/content/Context; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .line 116 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x0 .line 42 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mStarted:Z .line 43 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mAbandoned:Z const/4 v1, 0x1 .line 44 iput-boolean v1, p0, Landroid/support/v4/content/Loader;->mReset:Z .line 45 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z .line 46 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z .line 117 invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object p1 iput-object p1, p0, Landroid/support/v4/content/Loader;->mContext:Landroid/content/Context; return-void .end method # virtual methods .method public abandon()V .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation const/4 v0, 0x1 .line 407 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mAbandoned:Z .line 408 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onAbandon()V return-void .end method .method public cancelLoad()Z .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation .line 316 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onCancelLoad()Z move-result v0 return v0 .end method .method public commitContentChanged()V .locals 1 const/4 v0, 0x0 .line 483 iput-boolean v0, p0, Landroid/support/v4/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 Landroid/support/annotation/Nullable; .end annotation .end param .annotation build Landroid/support/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TD;)", "Ljava/lang/String;" } .end annotation .line 525 new-instance v0, Ljava/lang/StringBuilder; const/16 v1, 0x40 invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(I)V .line 526 invoke-static {p1, v0}, Landroid/support/v4/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V const-string p1, "}" .line 527 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 528 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 Landroid/support/annotation/MainThread; .end annotation .line 142 iget-object v0, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; if-eqz v0, :cond_0 .line 143 iget-object v0, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; invoke-interface {v0, p0}, Landroid/support/v4/content/Loader$OnLoadCanceledListener;->onLoadCanceled(Landroid/support/v4/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 Landroid/support/annotation/Nullable; .end annotation .end param .annotation build Landroid/support/annotation/MainThread; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TD;)V" } .end annotation .line 129 iget-object v0, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; if-eqz v0, :cond_0 .line 130 iget-object v0, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; invoke-interface {v0, p0, p1}, Landroid/support/v4/content/Loader$OnLoadCompleteListener;->onLoadComplete(Landroid/support/v4/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 .line 550 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, Landroid/support/v4/content/Loader;->mId:I invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(I)V const-string p2, " mListener=" .line 551 invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V .line 552 iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mStarted:Z if-nez p2, :cond_0 iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z if-nez p2, :cond_0 iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z if-eqz p2, :cond_1 .line 553 :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, Landroid/support/v4/content/Loader;->mStarted:Z invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Z)V const-string p2, " mContentChanged=" .line 554 invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Z)V const-string p2, " mProcessingChange=" .line 555 invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Z)V .line 557 :cond_1 iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mAbandoned:Z if-nez p2, :cond_2 iget-boolean p2, p0, Landroid/support/v4/content/Loader;->mReset:Z if-eqz p2, :cond_3 .line 558 :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, Landroid/support/v4/content/Loader;->mAbandoned:Z invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Z)V const-string p1, " mReset=" .line 559 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-boolean p1, p0, Landroid/support/v4/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 Landroid/support/annotation/MainThread; .end annotation .line 345 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onForceLoad()V return-void .end method .method public getContext()Landroid/content/Context; .locals 1 .annotation build Landroid/support/annotation/NonNull; .end annotation .line 152 iget-object v0, p0, Landroid/support/v4/content/Loader;->mContext:Landroid/content/Context; return-object v0 .end method .method public getId()I .locals 1 .line 159 iget v0, p0, Landroid/support/v4/content/Loader;->mId:I return v0 .end method .method public isAbandoned()Z .locals 1 .line 245 iget-boolean v0, p0, Landroid/support/v4/content/Loader;->mAbandoned:Z return v0 .end method .method public isReset()Z .locals 1 .line 254 iget-boolean v0, p0, Landroid/support/v4/content/Loader;->mReset:Z return v0 .end method .method public isStarted()Z .locals 1 .line 236 iget-boolean v0, p0, Landroid/support/v4/content/Loader;->mStarted:Z return v0 .end method .method protected onAbandon()V .locals 0 .annotation build Landroid/support/annotation/MainThread; .end annotation return-void .end method .method protected onCancelLoad()Z .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation const/4 v0, 0x0 return v0 .end method .method public onContentChanged()V .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation .line 509 iget-boolean v0, p0, Landroid/support/v4/content/Loader;->mStarted:Z if-eqz v0, :cond_0 .line 510 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->forceLoad()V goto :goto_0 :cond_0 const/4 v0, 0x1 .line 515 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z :goto_0 return-void .end method .method protected onForceLoad()V .locals 0 .annotation build Landroid/support/annotation/MainThread; .end annotation return-void .end method .method protected onReset()V .locals 0 .annotation build Landroid/support/annotation/MainThread; .end annotation return-void .end method .method protected onStartLoading()V .locals 0 .annotation build Landroid/support/annotation/MainThread; .end annotation return-void .end method .method protected onStopLoading()V .locals 0 .annotation build Landroid/support/annotation/MainThread; .end annotation return-void .end method .method public registerListener(ILandroid/support/v4/content/Loader$OnLoadCompleteListener;)V .locals 1 .param p2 # Landroid/support/v4/content/Loader$OnLoadCompleteListener; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .annotation build Landroid/support/annotation/MainThread; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(I", "Landroid/support/v4/content/Loader$OnLoadCompleteListener<", "TD;>;)V" } .end annotation .line 171 iget-object v0, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; if-nez v0, :cond_0 .line 174 iput-object p2, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; .line 175 iput p1, p0, Landroid/support/v4/content/Loader;->mId:I return-void .line 172 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "There is already a listener registered" invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public registerOnLoadCanceledListener(Landroid/support/v4/content/Loader$OnLoadCanceledListener;)V .locals 1 .param p1 # Landroid/support/v4/content/Loader$OnLoadCanceledListener; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .annotation build Landroid/support/annotation/MainThread; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/support/v4/content/Loader$OnLoadCanceledListener<", "TD;>;)V" } .end annotation .line 205 iget-object v0, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; if-nez v0, :cond_0 .line 208 iput-object p1, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; return-void .line 206 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "There is already a listener registered" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public reset()V .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation .line 445 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onReset()V const/4 v0, 0x1 .line 446 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mReset:Z const/4 v0, 0x0 .line 447 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mStarted:Z .line 448 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mAbandoned:Z .line 449 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z .line 450 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z return-void .end method .method public rollbackContentChanged()V .locals 1 .line 494 iget-boolean v0, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z if-eqz v0, :cond_0 .line 495 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onContentChanged()V :cond_0 return-void .end method .method public final startLoading()V .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation const/4 v0, 0x1 .line 280 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mStarted:Z const/4 v0, 0x0 .line 281 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mReset:Z .line 282 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mAbandoned:Z .line 283 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onStartLoading()V return-void .end method .method public stopLoading()V .locals 1 .annotation build Landroid/support/annotation/MainThread; .end annotation const/4 v0, 0x0 .line 378 iput-boolean v0, p0, Landroid/support/v4/content/Loader;->mStarted:Z .line 379 invoke-virtual {p0}, Landroid/support/v4/content/Loader;->onStopLoading()V return-void .end method .method public takeContentChanged()Z .locals 2 .line 469 iget-boolean v0, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z const/4 v1, 0x0 .line 470 iput-boolean v1, p0, Landroid/support/v4/content/Loader;->mContentChanged:Z .line 471 iget-boolean v1, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z or-int/2addr v1, v0 iput-boolean v1, p0, Landroid/support/v4/content/Loader;->mProcessingChange:Z return v0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 533 new-instance v0, Ljava/lang/StringBuilder; const/16 v1, 0x40 invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(I)V .line 534 invoke-static {p0, v0}, Landroid/support/v4/util/DebugUtils;->buildShortClassTag(Ljava/lang/Object;Ljava/lang/StringBuilder;)V const-string v1, " id=" .line 535 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 536 iget v1, p0, Landroid/support/v4/content/Loader;->mId:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v1, "}" .line 537 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 538 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public unregisterListener(Landroid/support/v4/content/Loader$OnLoadCompleteListener;)V .locals 1 .param p1 # Landroid/support/v4/content/Loader$OnLoadCompleteListener; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .annotation build Landroid/support/annotation/MainThread; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/support/v4/content/Loader$OnLoadCompleteListener<", "TD;>;)V" } .end annotation .line 185 iget-object v0, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; if-eqz v0, :cond_1 .line 188 iget-object v0, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; if-ne v0, p1, :cond_0 const/4 p1, 0x0 .line 191 iput-object p1, p0, Landroid/support/v4/content/Loader;->mListener:Landroid/support/v4/content/Loader$OnLoadCompleteListener; return-void .line 189 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Attempting to unregister the wrong listener" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 186 :cond_1 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "No listener register" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public unregisterOnLoadCanceledListener(Landroid/support/v4/content/Loader$OnLoadCanceledListener;)V .locals 1 .param p1 # Landroid/support/v4/content/Loader$OnLoadCanceledListener; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .annotation build Landroid/support/annotation/MainThread; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/support/v4/content/Loader$OnLoadCanceledListener<", "TD;>;)V" } .end annotation .line 221 iget-object v0, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; if-eqz v0, :cond_1 .line 224 iget-object v0, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; if-ne v0, p1, :cond_0 const/4 p1, 0x0 .line 227 iput-object p1, p0, Landroid/support/v4/content/Loader;->mOnLoadCanceledListener:Landroid/support/v4/content/Loader$OnLoadCanceledListener; return-void .line 225 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Attempting to unregister the wrong listener" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 222 :cond_1 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "No listener register" invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method