379 lines
		
	
	
		
			8.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			379 lines
		
	
	
		
			8.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Landroidx/room/g$a;
 | |
| .super Ljava/lang/Object;
 | |
| .source "InvalidationTracker.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Ljava/lang/Runnable;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Landroidx/room/g;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x1
 | |
|     name = null
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final synthetic a:Landroidx/room/g;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroidx/room/g;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public final a()Ljava/util/Set;
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Ljava/util/Set<",
 | |
|             "Ljava/lang/Integer;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/HashSet;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v1, v1, Landroidx/room/g;->d:Landroidx/room/RoomDatabase;
 | |
| 
 | |
|     new-instance v2, Lc3/b;
 | |
| 
 | |
|     const-string v3, "SELECT * FROM room_table_modification_log WHERE invalidated = 1;"
 | |
| 
 | |
|     invoke-direct {v2, v3}, Lc3/b;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroidx/room/RoomDatabase;->v(Lc3/g;)Landroid/database/Cursor;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     :try_start_0
 | |
|     invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {v1, v2}, Landroid/database/Cursor;->getInt(I)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v0, v2}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-interface {v1}, Landroid/database/Cursor;->close()V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0}, Ljava/util/HashSet;->isEmpty()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v1, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v1, v1, Landroidx/room/g;->g:Lc3/i;
 | |
| 
 | |
|     invoke-interface {v1}, Lc3/i;->s()I
 | |
| 
 | |
|     :cond_1
 | |
|     return-object v0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception v0
 | |
| 
 | |
|     .line 9
 | |
|     invoke-interface {v1}, Landroid/database/Cursor;->close()V
 | |
| 
 | |
|     .line 10
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public run()V
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v0, v0, Landroidx/room/g;->d:Landroidx/room/RoomDatabase;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroidx/room/RoomDatabase;->k()Ljava/util/concurrent/locks/Lock;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v2, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroidx/room/g;->f()Z
 | |
| 
 | |
|     move-result v2
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_1
 | |
|     .catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_0} :catch_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_1
 | |
| 
 | |
|     if-nez v2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     :try_start_1
 | |
|     iget-object v2, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v2, v2, Landroidx/room/g;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     invoke-virtual {v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
 | |
| 
 | |
|     move-result v2
 | |
|     :try_end_1
 | |
|     .catch Ljava/lang/IllegalStateException; {:try_start_1 .. :try_end_1} :catch_1
 | |
|     .catch Landroid/database/sqlite/SQLiteException; {:try_start_1 .. :try_end_1} :catch_0
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_1
 | |
| 
 | |
|     if-nez v2, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     :try_start_2
 | |
|     iget-object v2, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v2, v2, Landroidx/room/g;->d:Landroidx/room/RoomDatabase;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroidx/room/RoomDatabase;->q()Z
 | |
| 
 | |
|     move-result v2
 | |
|     :try_end_2
 | |
|     .catch Ljava/lang/IllegalStateException; {:try_start_2 .. :try_end_2} :catch_1
 | |
|     .catch Landroid/database/sqlite/SQLiteException; {:try_start_2 .. :try_end_2} :catch_0
 | |
|     .catchall {:try_start_2 .. :try_end_2} :catchall_1
 | |
| 
 | |
|     if-eqz v2, :cond_2
 | |
| 
 | |
|     .line 8
 | |
|     invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     :try_start_3
 | |
|     iget-object v2, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v2, v2, Landroidx/room/g;->d:Landroidx/room/RoomDatabase;
 | |
| 
 | |
|     iget-boolean v3, v2, Landroidx/room/RoomDatabase;->g:Z
 | |
| 
 | |
|     if-eqz v3, :cond_3
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v2}, Landroidx/room/RoomDatabase;->m()Lc3/e;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-interface {v2}, Lc3/e;->getWritableDatabase()Lc3/c;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     .line 11
 | |
|     invoke-interface {v2}, Lc3/c;->beginTransaction()V
 | |
|     :try_end_3
 | |
|     .catch Ljava/lang/IllegalStateException; {:try_start_3 .. :try_end_3} :catch_1
 | |
|     .catch Landroid/database/sqlite/SQLiteException; {:try_start_3 .. :try_end_3} :catch_0
 | |
|     .catchall {:try_start_3 .. :try_end_3} :catchall_1
 | |
| 
 | |
|     .line 12
 | |
|     :try_start_4
 | |
|     invoke-virtual {p0}, Landroidx/room/g$a;->a()Ljava/util/Set;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 13
 | |
|     invoke-interface {v2}, Lc3/c;->setTransactionSuccessful()V
 | |
|     :try_end_4
 | |
|     .catchall {:try_start_4 .. :try_end_4} :catchall_0
 | |
| 
 | |
|     .line 14
 | |
|     :try_start_5
 | |
|     invoke-interface {v2}, Lc3/c;->endTransaction()V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception v3
 | |
| 
 | |
|     invoke-interface {v2}, Lc3/c;->endTransaction()V
 | |
| 
 | |
|     .line 15
 | |
|     throw v3
 | |
| 
 | |
|     .line 16
 | |
|     :cond_3
 | |
|     invoke-virtual {p0}, Landroidx/room/g$a;->a()Ljava/util/Set;
 | |
| 
 | |
|     move-result-object v1
 | |
|     :try_end_5
 | |
|     .catch Ljava/lang/IllegalStateException; {:try_start_5 .. :try_end_5} :catch_1
 | |
|     .catch Landroid/database/sqlite/SQLiteException; {:try_start_5 .. :try_end_5} :catch_0
 | |
|     .catchall {:try_start_5 .. :try_end_5} :catchall_1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :catchall_1
 | |
|     move-exception v1
 | |
| 
 | |
|     goto :goto_4
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception v2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_1
 | |
|     move-exception v2
 | |
| 
 | |
|     :goto_0
 | |
|     :try_start_6
 | |
|     const-string v3, "ROOM"
 | |
| 
 | |
|     const-string v4, "Cannot run invalidation tracker. Is the db closed?"
 | |
| 
 | |
|     .line 17
 | |
|     invoke-static {v3, v4, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
 | |
|     :try_end_6
 | |
|     .catchall {:try_start_6 .. :try_end_6} :catchall_1
 | |
| 
 | |
|     .line 18
 | |
|     :goto_1
 | |
|     invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
 | |
| 
 | |
|     if-eqz v1, :cond_5
 | |
| 
 | |
|     .line 19
 | |
|     invoke-interface {v1}, Ljava/util/Set;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_5
 | |
| 
 | |
|     .line 20
 | |
|     iget-object v0, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v0, v0, Landroidx/room/g;->j:Lm/b;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 21
 | |
|     :try_start_7
 | |
|     iget-object v2, p0, Landroidx/room/g$a;->a:Landroidx/room/g;
 | |
| 
 | |
|     iget-object v2, v2, Landroidx/room/g;->j:Lm/b;
 | |
| 
 | |
|     invoke-virtual {v2}, Lm/b;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     :goto_2
 | |
|     invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-eqz v3, :cond_4
 | |
| 
 | |
|     invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Ljava/util/Map$Entry;
 | |
| 
 | |
|     .line 22
 | |
|     invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Landroidx/room/g$d;
 | |
| 
 | |
|     invoke-virtual {v3, v1}, Landroidx/room/g$d;->a(Ljava/util/Set;)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 23
 | |
|     :cond_4
 | |
|     monitor-exit v0
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :catchall_2
 | |
|     move-exception v1
 | |
| 
 | |
|     monitor-exit v0
 | |
|     :try_end_7
 | |
|     .catchall {:try_start_7 .. :try_end_7} :catchall_2
 | |
| 
 | |
|     throw v1
 | |
| 
 | |
|     :cond_5
 | |
|     :goto_3
 | |
|     return-void
 | |
| 
 | |
|     .line 24
 | |
|     :goto_4
 | |
|     invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
 | |
| 
 | |
|     .line 25
 | |
|     throw v1
 | |
| .end method
 |