.class public final Landroidx/room/RoomOpenHelper$Companion; .super Ljava/lang/Object; .source "RoomOpenHelper.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/room/RoomOpenHelper; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Companion" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nRoomOpenHelper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RoomOpenHelper.kt\nandroidx/room/RoomOpenHelper$Companion\n+ 2 CursorUtil.kt\nandroidx/room/util/CursorUtil\n*L\n1#1,247:1\n145#2,7:248\n145#2,7:255\n*S KotlinDebug\n*F\n+ 1 RoomOpenHelper.kt\nandroidx/room/RoomOpenHelper$Companion\n*L\n234#1:248,7\n242#1:255,7\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0015\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0000\u00a2\u0006\u0002\u0008\u0007J\u0015\u0010\u0008\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0000\u00a2\u0006\u0002\u0008\t\u00a8\u0006\n" } d2 = { "Landroidx/room/RoomOpenHelper$Companion;", "", "()V", "hasEmptySchema", "", "db", "Landroidx/sqlite/db/SupportSQLiteDatabase;", "hasEmptySchema$room_runtime_release", "hasRoomMasterTable", "hasRoomMasterTable$room_runtime_release", "room-runtime_release" } k = 0x1 mv = { 0x1, 0x7, 0x1 } xi = 0x30 .end annotation # direct methods .method private constructor ()V .locals 0 .line 229 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public synthetic constructor (Lkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 invoke-direct {p0}, Landroidx/room/RoomOpenHelper$Companion;->()V return-void .end method # virtual methods .method public final hasEmptySchema$room_runtime_release(Landroidx/sqlite/db/SupportSQLiteDatabase;)Z .locals 2 const-string p0, "db" invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p0, "SELECT count(*) FROM sqlite_master WHERE name != \'android_metadata\'" .line 240 invoke-interface {p1, p0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->query(Ljava/lang/String;)Landroid/database/Cursor; move-result-object p0 .line 256 check-cast p0, Ljava/io/Closeable; :try_start_0 move-object p1, p0 check-cast p1, Landroid/database/Cursor; .line 243 invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 invoke-interface {p1, v1}, Landroid/database/Cursor;->getInt(I)I move-result p1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-nez p1, :cond_0 const/4 v1, 0x1 :cond_0 const/4 p1, 0x0 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V return v1 :catchall_0 move-exception p1 :try_start_1 throw p1 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 :catchall_1 move-exception v0 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v0 .end method .method public final hasRoomMasterTable$room_runtime_release(Landroidx/sqlite/db/SupportSQLiteDatabase;)Z .locals 2 const-string p0, "db" invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p0, "SELECT 1 FROM sqlite_master WHERE type = \'table\' AND name=\'room_master_table\'" .line 231 invoke-interface {p1, p0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->query(Ljava/lang/String;)Landroid/database/Cursor; move-result-object p0 .line 249 check-cast p0, Ljava/io/Closeable; :try_start_0 move-object p1, p0 check-cast p1, Landroid/database/Cursor; .line 235 invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 invoke-interface {p1, v1}, Landroid/database/Cursor;->getInt(I)I move-result p1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz p1, :cond_0 const/4 v1, 0x1 :cond_0 const/4 p1, 0x0 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V return v1 :catchall_0 move-exception p1 :try_start_1 throw p1 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 :catchall_1 move-exception v0 invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v0 .end method