.class public final Landroidx/room/CoroutinesRoom$Companion; .super Ljava/lang/Object; .source "CoroutinesRoom.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/room/CoroutinesRoom; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Companion" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nCoroutinesRoom.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CoroutinesRoom.kt\nandroidx/room/CoroutinesRoom$Companion\n*L\n1#1,111:1\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = {} d1 = { "\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\t\u0008\u0002\u00a2\u0006\u0004\u0008\u0012\u0010\u0013J7\u0010\t\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u00022\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u00052\u000c\u0010\u0008\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0007H\u0087@\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\t\u0010\nJL\u0010\u0010\u001a\r\u0012\t\u0012\u00078\u0000\u00a2\u0006\u0002\u0008\u000f0\u000e\"\u0004\u0008\u0000\u0010\u00022\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u00052\u000c\u0010\r\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\u000b2\u000c\u0010\u0008\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0007H\u0007\u00a2\u0006\u0004\u0008\u0010\u0010\u0011\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u0014" } d2 = { "Landroidx/room/CoroutinesRoom$Companion;", "", "R", "Landroidx/room/RoomDatabase;", "db", "", "inTransaction", "Ljava/util/concurrent/Callable;", "callable", "b", "(Landroidx/room/RoomDatabase;ZLjava/util/concurrent/Callable;Lkotlin/coroutines/c;)Ljava/lang/Object;", "", "", "tableNames", "Lkotlinx/coroutines/flow/f;", "Lkotlin/jvm/JvmSuppressWildcards;", "a", "(Landroidx/room/RoomDatabase;Z[Ljava/lang/String;Ljava/util/concurrent/Callable;)Lkotlinx/coroutines/flow/f;", "", "()V", "room-ktx_release" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # direct methods .method public constructor ()V .locals 0 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public synthetic constructor (Lkotlin/jvm/internal/u;)V .locals 0 .line 2 invoke-direct {p0}, Landroidx/room/CoroutinesRoom$Companion;->()V return-void .end method # virtual methods .method public final a(Landroidx/room/RoomDatabase;Z[Ljava/lang/String;Ljava/util/concurrent/Callable;)Lkotlinx/coroutines/flow/f; .locals 7 .param p1 # Landroidx/room/RoomDatabase; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # [Ljava/lang/String; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p4 # Ljava/util/concurrent/Callable; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/room/RoomDatabase;", "Z[", "Ljava/lang/String;", "Ljava/util/concurrent/Callable<", "TR;>;)", "Lkotlinx/coroutines/flow/f<", "TR;>;" } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation const-string v0, "db" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "tableNames" invoke-static {p3, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "callable" invoke-static {p4, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V .line 1 new-instance v0, Landroidx/room/CoroutinesRoom$Companion$createFlow$1; const/4 v6, 0x0 move-object v1, v0 move-object v2, p3 move v3, p2 move-object v4, p1 move-object v5, p4 invoke-direct/range {v1 .. v6}, Landroidx/room/CoroutinesRoom$Companion$createFlow$1;->([Ljava/lang/String;ZLandroidx/room/RoomDatabase;Ljava/util/concurrent/Callable;Lkotlin/coroutines/c;)V invoke-static {v0}, Lkotlinx/coroutines/flow/i;->N0(Lej/p;)Lkotlinx/coroutines/flow/f; move-result-object p1 return-object p1 .end method .method public final b(Landroidx/room/RoomDatabase;ZLjava/util/concurrent/Callable;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 2 .param p1 # Landroidx/room/RoomDatabase; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Ljava/util/concurrent/Callable; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p4 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/room/RoomDatabase;", "Z", "Ljava/util/concurrent/Callable<", "TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 invoke-virtual {p1}, Landroidx/room/RoomDatabase;->u()Z move-result v0 if-eqz v0, :cond_0 invoke-virtual {p1}, Landroidx/room/RoomDatabase;->q()Z move-result v0 if-eqz v0, :cond_0 .line 2 invoke-interface {p3}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object; move-result-object p1 return-object p1 .line 3 :cond_0 invoke-interface {p4}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object v0 sget-object v1, Landroidx/room/s;->d:Landroidx/room/s$a; invoke-interface {v0, v1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a; move-result-object v0 check-cast v0, Landroidx/room/s; if-eqz v0, :cond_1 invoke-virtual {v0}, Landroidx/room/s;->e()Lkotlin/coroutines/d; move-result-object v0 if-eqz v0, :cond_1 goto :goto_1 :cond_1 if-eqz p2, :cond_2 .line 4 invoke-static {p1}, Landroidx/room/a;->b(Landroidx/room/RoomDatabase;)Lkotlinx/coroutines/CoroutineDispatcher; move-result-object p1 goto :goto_0 :cond_2 invoke-static {p1}, Landroidx/room/a;->a(Landroidx/room/RoomDatabase;)Lkotlinx/coroutines/CoroutineDispatcher; move-result-object p1 :goto_0 move-object v0, p1 .line 5 :goto_1 new-instance p1, Landroidx/room/CoroutinesRoom$Companion$execute$2; const/4 p2, 0x0 invoke-direct {p1, p3, p2}, Landroidx/room/CoroutinesRoom$Companion$execute$2;->(Ljava/util/concurrent/Callable;Lkotlin/coroutines/c;)V invoke-static {v0, p1, p4}, Lkotlinx/coroutines/g;->i(Lkotlin/coroutines/CoroutineContext;Lej/p;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p1 return-object p1 .end method