.class public Landroidx/loader/content/CursorLoader; .super Landroidx/loader/content/AsyncTaskLoader; .source "CursorLoader.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/loader/content/AsyncTaskLoader<", "Landroid/database/Cursor;", ">;" } .end annotation # instance fields .field mCancellationSignal:Landroidx/core/os/CancellationSignal; .field mCursor:Landroid/database/Cursor; .field final mObserver:Landroidx/loader/content/Loader$ForceLoadContentObserver; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/loader/content/Loader<", "Landroid/database/Cursor;", ">.Force", "LoadContentObserver;" } .end annotation .end field .field mProjection:[Ljava/lang/String; .field mSelection:Ljava/lang/String; .field mSelectionArgs:[Ljava/lang/String; .field mSortOrder:Ljava/lang/String; .field mUri:Landroid/net/Uri; # direct methods .method public constructor (Landroid/content/Context;)V .locals 0 .line 123 invoke-direct {p0, p1}, Landroidx/loader/content/AsyncTaskLoader;->(Landroid/content/Context;)V .line 124 new-instance p1, Landroidx/loader/content/Loader$ForceLoadContentObserver; invoke-direct {p1, p0}, Landroidx/loader/content/Loader$ForceLoadContentObserver;->(Landroidx/loader/content/Loader;)V iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mObserver:Landroidx/loader/content/Loader$ForceLoadContentObserver; return-void .end method .method public constructor (Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V .locals 0 .line 136 invoke-direct {p0, p1}, Landroidx/loader/content/AsyncTaskLoader;->(Landroid/content/Context;)V .line 137 new-instance p1, Landroidx/loader/content/Loader$ForceLoadContentObserver; invoke-direct {p1, p0}, Landroidx/loader/content/Loader$ForceLoadContentObserver;->(Landroidx/loader/content/Loader;)V iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mObserver:Landroidx/loader/content/Loader$ForceLoadContentObserver; iput-object p2, p0, Landroidx/loader/content/CursorLoader;->mUri:Landroid/net/Uri; iput-object p3, p0, Landroidx/loader/content/CursorLoader;->mProjection:[Ljava/lang/String; iput-object p4, p0, Landroidx/loader/content/CursorLoader;->mSelection:Ljava/lang/String; iput-object p5, p0, Landroidx/loader/content/CursorLoader;->mSelectionArgs:[Ljava/lang/String; iput-object p6, p0, Landroidx/loader/content/CursorLoader;->mSortOrder:Ljava/lang/String; return-void .end method # virtual methods .method public cancelLoadInBackground()V .locals 1 .line 86 invoke-super {p0}, Landroidx/loader/content/AsyncTaskLoader;->cancelLoadInBackground()V .line 88 monitor-enter p0 :try_start_0 iget-object v0, p0, Landroidx/loader/content/CursorLoader;->mCancellationSignal:Landroidx/core/os/CancellationSignal; if-eqz v0, :cond_0 .line 90 invoke-virtual {v0}, Landroidx/core/os/CancellationSignal;->cancel()V .line 92 :cond_0 monitor-exit p0 return-void :catchall_0 move-exception v0 monitor-exit p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw v0 .end method .method public deliverResult(Landroid/database/Cursor;)V .locals 2 .line 98 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->isReset()Z move-result v0 if-eqz v0, :cond_1 if-eqz p1, :cond_0 .line 101 invoke-interface {p1}, Landroid/database/Cursor;->close()V :cond_0 return-void :cond_1 iget-object v0, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; .line 108 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->isStarted()Z move-result v1 if-eqz v1, :cond_2 .line 109 invoke-super {p0, p1}, Landroidx/loader/content/AsyncTaskLoader;->deliverResult(Ljava/lang/Object;)V :cond_2 if-eqz v0, :cond_3 if-eq v0, p1, :cond_3 .line 112 invoke-interface {v0}, Landroid/database/Cursor;->isClosed()Z move-result p0 if-nez p0, :cond_3 .line 113 invoke-interface {v0}, Landroid/database/Cursor;->close()V :cond_3 return-void .end method .method public bridge synthetic deliverResult(Ljava/lang/Object;)V .locals 0 .line 41 check-cast p1, Landroid/database/Cursor; invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->deliverResult(Landroid/database/Cursor;)V 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 239 invoke-super {p0, p1, p2, p3, p4}, Landroidx/loader/content/AsyncTaskLoader;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V .line 240 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p2, "mUri=" invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroidx/loader/content/CursorLoader;->mUri:Landroid/net/Uri; invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V .line 241 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p2, "mProjection=" invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroidx/loader/content/CursorLoader;->mProjection:[Ljava/lang/String; .line 242 invoke-static {p2}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String; move-result-object p2 invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V .line 243 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p2, "mSelection=" invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroidx/loader/content/CursorLoader;->mSelection:Ljava/lang/String; invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V .line 244 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p2, "mSelectionArgs=" invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroidx/loader/content/CursorLoader;->mSelectionArgs:[Ljava/lang/String; .line 245 invoke-static {p2}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String; move-result-object p2 invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V .line 246 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p2, "mSortOrder=" invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroidx/loader/content/CursorLoader;->mSortOrder:Ljava/lang/String; invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V .line 247 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p2, "mCursor=" invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-object p2, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; invoke-virtual {p3, p2}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V .line 248 invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V const-string p1, "mContentChanged=" invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V iget-boolean p0, p0, Landroidx/loader/content/CursorLoader;->mContentChanged:Z invoke-virtual {p3, p0}, Ljava/io/PrintWriter;->println(Z)V return-void .end method .method public getProjection()[Ljava/lang/String; .locals 0 iget-object p0, p0, Landroidx/loader/content/CursorLoader;->mProjection:[Ljava/lang/String; return-object p0 .end method .method public getSelection()Ljava/lang/String; .locals 0 iget-object p0, p0, Landroidx/loader/content/CursorLoader;->mSelection:Ljava/lang/String; return-object p0 .end method .method public getSelectionArgs()[Ljava/lang/String; .locals 0 iget-object p0, p0, Landroidx/loader/content/CursorLoader;->mSelectionArgs:[Ljava/lang/String; return-object p0 .end method .method public getSortOrder()Ljava/lang/String; .locals 0 iget-object p0, p0, Landroidx/loader/content/CursorLoader;->mSortOrder:Ljava/lang/String; return-object p0 .end method .method public getUri()Landroid/net/Uri; .locals 0 iget-object p0, p0, Landroidx/loader/content/CursorLoader;->mUri:Landroid/net/Uri; return-object p0 .end method .method public loadInBackground()Landroid/database/Cursor; .locals 9 .line 56 monitor-enter p0 .line 57 :try_start_0 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->isLoadInBackgroundCanceled()Z move-result v0 if-nez v0, :cond_1 .line 60 new-instance v0, Landroidx/core/os/CancellationSignal; invoke-direct {v0}, Landroidx/core/os/CancellationSignal;->()V iput-object v0, p0, Landroidx/loader/content/CursorLoader;->mCancellationSignal:Landroidx/core/os/CancellationSignal; .line 61 monitor-exit p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_3 const/4 v0, 0x0 .line 63 :try_start_1 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->getContext()Landroid/content/Context; move-result-object v1 invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; move-result-object v2 iget-object v3, p0, Landroidx/loader/content/CursorLoader;->mUri:Landroid/net/Uri; iget-object v4, p0, Landroidx/loader/content/CursorLoader;->mProjection:[Ljava/lang/String; iget-object v5, p0, Landroidx/loader/content/CursorLoader;->mSelection:Ljava/lang/String; iget-object v6, p0, Landroidx/loader/content/CursorLoader;->mSelectionArgs:[Ljava/lang/String; iget-object v7, p0, Landroidx/loader/content/CursorLoader;->mSortOrder:Ljava/lang/String; iget-object v8, p0, Landroidx/loader/content/CursorLoader;->mCancellationSignal:Landroidx/core/os/CancellationSignal; invoke-static/range {v2 .. v8}, Landroidx/core/content/ContentResolverCompat;->query(Landroid/content/ContentResolver;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Landroidx/core/os/CancellationSignal;)Landroid/database/Cursor; move-result-object v1 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 if-eqz v1, :cond_0 .line 69 :try_start_2 invoke-interface {v1}, Landroid/database/Cursor;->getCount()I iget-object v2, p0, Landroidx/loader/content/CursorLoader;->mObserver:Landroidx/loader/content/Loader$ForceLoadContentObserver; .line 70 invoke-interface {v1, v2}, Landroid/database/Cursor;->registerContentObserver(Landroid/database/ContentObserver;)V :try_end_2 .catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_0 .catchall {:try_start_2 .. :try_end_2} :catchall_1 goto :goto_0 :catch_0 move-exception v2 .line 72 :try_start_3 invoke-interface {v1}, Landroid/database/Cursor;->close()V .line 73 throw v2 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_1 .line 78 :cond_0 :goto_0 monitor-enter p0 :try_start_4 iput-object v0, p0, Landroidx/loader/content/CursorLoader;->mCancellationSignal:Landroidx/core/os/CancellationSignal; .line 80 monitor-exit p0 return-object v1 :catchall_0 move-exception v0 monitor-exit p0 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_0 throw v0 :catchall_1 move-exception v1 .line 78 monitor-enter p0 :try_start_5 iput-object v0, p0, Landroidx/loader/content/CursorLoader;->mCancellationSignal:Landroidx/core/os/CancellationSignal; .line 80 monitor-exit p0 :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_2 throw v1 :catchall_2 move-exception v0 :try_start_6 monitor-exit p0 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_2 throw v0 .line 58 :cond_1 :try_start_7 new-instance v0, Landroidx/core/os/OperationCanceledException; invoke-direct {v0}, Landroidx/core/os/OperationCanceledException;->()V throw v0 :catchall_3 move-exception v0 .line 61 monitor-exit p0 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_3 throw v0 .end method .method public bridge synthetic loadInBackground()Ljava/lang/Object; .locals 0 .line 41 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->loadInBackground()Landroid/database/Cursor; move-result-object p0 return-object p0 .end method .method public onCanceled(Landroid/database/Cursor;)V .locals 0 if-eqz p1, :cond_0 .line 173 invoke-interface {p1}, Landroid/database/Cursor;->isClosed()Z move-result p0 if-nez p0, :cond_0 .line 174 invoke-interface {p1}, Landroid/database/Cursor;->close()V :cond_0 return-void .end method .method public bridge synthetic onCanceled(Ljava/lang/Object;)V .locals 0 .line 41 check-cast p1, Landroid/database/Cursor; invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->onCanceled(Landroid/database/Cursor;)V return-void .end method .method protected onReset()V .locals 1 .line 180 invoke-super {p0}, Landroidx/loader/content/AsyncTaskLoader;->onReset()V .line 183 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->onStopLoading()V iget-object v0, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; if-eqz v0, :cond_0 .line 185 invoke-interface {v0}, Landroid/database/Cursor;->isClosed()Z move-result v0 if-nez v0, :cond_0 iget-object v0, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; .line 186 invoke-interface {v0}, Landroid/database/Cursor;->close()V :cond_0 const/4 v0, 0x0 iput-object v0, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; return-void .end method .method protected onStartLoading()V .locals 1 iget-object v0, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; if-eqz v0, :cond_0 .line 155 invoke-virtual {p0, v0}, Landroidx/loader/content/CursorLoader;->deliverResult(Landroid/database/Cursor;)V .line 157 :cond_0 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->takeContentChanged()Z move-result v0 if-nez v0, :cond_1 iget-object v0, p0, Landroidx/loader/content/CursorLoader;->mCursor:Landroid/database/Cursor; if-nez v0, :cond_2 .line 158 :cond_1 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->forceLoad()V :cond_2 return-void .end method .method protected onStopLoading()V .locals 0 .line 168 invoke-virtual {p0}, Landroidx/loader/content/CursorLoader;->cancelLoad()Z return-void .end method .method public setProjection([Ljava/lang/String;)V .locals 0 iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mProjection:[Ljava/lang/String; return-void .end method .method public setSelection(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mSelection:Ljava/lang/String; return-void .end method .method public setSelectionArgs([Ljava/lang/String;)V .locals 0 iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mSelectionArgs:[Ljava/lang/String; return-void .end method .method public setSortOrder(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mSortOrder:Ljava/lang/String; return-void .end method .method public setUri(Landroid/net/Uri;)V .locals 0 iput-object p1, p0, Landroidx/loader/content/CursorLoader;->mUri:Landroid/net/Uri; return-void .end method