.class public final Landroidx/room/MultiInstanceInvalidationService$binder$1; .super Landroidx/room/IMultiInstanceInvalidationService$Stub; .source "MultiInstanceInvalidationService.kt" # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Landroidx/room/MultiInstanceInvalidationService;->()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = null .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000+\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003*\u0001\u0000\u0008\n\u0018\u00002\u00020\u0001J%\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u000e\u0010\u0006\u001a\n\u0012\u0006\u0008\u0001\u0012\u00020\u00080\u0007H\u0016\u00a2\u0006\u0002\u0010\tJ\u001a\u0010\n\u001a\u00020\u00052\u0006\u0010\u000b\u001a\u00020\u000c2\u0008\u0010\r\u001a\u0004\u0018\u00010\u0008H\u0016J\u0018\u0010\u000e\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\u0004\u001a\u00020\u0005H\u0016\u00a8\u0006\u000f" } d2 = { "androidx/room/MultiInstanceInvalidationService$binder$1", "Landroidx/room/IMultiInstanceInvalidationService$Stub;", "broadcastInvalidation", "", "clientId", "", "tables", "", "", "(I[Ljava/lang/String;)V", "registerCallback", "callback", "Landroidx/room/IMultiInstanceInvalidationCallback;", "name", "unregisterCallback", "room-runtime_release" } k = 0x1 mv = { 0x1, 0x7, 0x1 } xi = 0x30 .end annotation # instance fields .field final synthetic this$0:Landroidx/room/MultiInstanceInvalidationService; # direct methods .method constructor (Landroidx/room/MultiInstanceInvalidationService;)V .locals 0 iput-object p1, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; .line 52 invoke-direct {p0}, Landroidx/room/IMultiInstanceInvalidationService$Stub;->()V return-void .end method # virtual methods .method public broadcastInvalidation(I[Ljava/lang/String;)V .locals 7 const-string v0, "tables" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; .line 90 invoke-virtual {v0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v0 iget-object p0, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; monitor-enter v0 .line 91 :try_start_0 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getClientNames$room_runtime_release()Ljava/util/Map; move-result-object v1 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/String; if-nez v1, :cond_0 const-string p0, "ROOM" const-string p1, "Remote invalidation client ID not registered" .line 93 invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_1 .line 94 monitor-exit v0 return-void .line 96 :cond_0 :try_start_1 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v2 invoke-virtual {v2}, Landroid/os/RemoteCallbackList;->beginBroadcast()I move-result v2 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 const/4 v3, 0x0 :goto_0 if-ge v3, v2, :cond_3 .line 99 :try_start_2 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v4 invoke-virtual {v4, v3}, Landroid/os/RemoteCallbackList;->getBroadcastCookie(I)Ljava/lang/Object; move-result-object v4 const-string v5, "null cannot be cast to non-null type kotlin.Int" invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast v4, Ljava/lang/Integer; invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I move-result v4 .line 100 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getClientNames$room_runtime_release()Ljava/util/Map; move-result-object v5 invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v6 invoke-interface {v5, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v5 check-cast v5, Ljava/lang/String; if-eq p1, v4, :cond_2 .line 101 invoke-static {v1, v5}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v4 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 if-nez v4, :cond_1 goto :goto_1 .line 107 :cond_1 :try_start_3 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v4 invoke-virtual {v4, v3}, Landroid/os/RemoteCallbackList;->getBroadcastItem(I)Landroid/os/IInterface; move-result-object v4 check-cast v4, Landroidx/room/IMultiInstanceInvalidationCallback; invoke-interface {v4, p2}, Landroidx/room/IMultiInstanceInvalidationCallback;->onInvalidation([Ljava/lang/String;)V :try_end_3 .catch Landroid/os/RemoteException; {:try_start_3 .. :try_end_3} :catch_0 .catchall {:try_start_3 .. :try_end_3} :catchall_0 goto :goto_1 :catch_0 move-exception v4 :try_start_4 const-string v5, "ROOM" const-string v6, "Error invoking a remote callback" .line 109 check-cast v4, Ljava/lang/Throwable; invoke-static {v5, v6, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_0 :cond_2 :goto_1 add-int/lit8 v3, v3, 0x1 goto :goto_0 :catchall_0 move-exception p1 .line 113 :try_start_5 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object p0 invoke-virtual {p0}, Landroid/os/RemoteCallbackList;->finishBroadcast()V throw p1 :cond_3 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object p0 invoke-virtual {p0}, Landroid/os/RemoteCallbackList;->finishBroadcast()V .line 115 sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_1 .line 90 monitor-exit v0 return-void :catchall_1 move-exception p0 monitor-exit v0 throw p0 .end method .method public registerCallback(Landroidx/room/IMultiInstanceInvalidationCallback;Ljava/lang/String;)I .locals 5 const-string v0, "callback" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 if-nez p2, :cond_0 return v0 :cond_0 iget-object v1, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; .line 61 invoke-virtual {v1}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v1 iget-object p0, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; monitor-enter v1 .line 62 :try_start_0 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getMaxClientId$room_runtime_release()I move-result v2 add-int/lit8 v2, v2, 0x1 invoke-virtual {p0, v2}, Landroidx/room/MultiInstanceInvalidationService;->setMaxClientId$room_runtime_release(I)V invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getMaxClientId$room_runtime_release()I move-result v2 .line 64 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v3 check-cast p1, Landroid/os/IInterface; invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 invoke-virtual {v3, p1, v4}, Landroid/os/RemoteCallbackList;->register(Landroid/os/IInterface;Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_1 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 .line 65 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getClientNames$room_runtime_release()Ljava/util/Map; move-result-object p0 invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move v0, v2 goto :goto_0 .line 68 :cond_1 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getMaxClientId$room_runtime_release()I move-result p1 add-int/lit8 p1, p1, -0x1 invoke-virtual {p0, p1}, Landroidx/room/MultiInstanceInvalidationService;->setMaxClientId$room_runtime_release(I)V invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getMaxClientId$room_runtime_release()I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 64 :goto_0 monitor-exit v1 return v0 :catchall_0 move-exception p0 monitor-exit v1 throw p0 .end method .method public unregisterCallback(Landroidx/room/IMultiInstanceInvalidationCallback;I)V .locals 2 const-string v0, "callback" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; .line 81 invoke-virtual {v0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v0 iget-object p0, p0, Landroidx/room/MultiInstanceInvalidationService$binder$1;->this$0:Landroidx/room/MultiInstanceInvalidationService; monitor-enter v0 .line 82 :try_start_0 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getCallbackList$room_runtime_release()Landroid/os/RemoteCallbackList; move-result-object v1 check-cast p1, Landroid/os/IInterface; invoke-virtual {v1, p1}, Landroid/os/RemoteCallbackList;->unregister(Landroid/os/IInterface;)Z .line 83 invoke-virtual {p0}, Landroidx/room/MultiInstanceInvalidationService;->getClientNames$room_runtime_release()Ljava/util/Map; move-result-object p0 invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 invoke-interface {p0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 81 monitor-exit v0 return-void :catchall_0 move-exception p0 monitor-exit v0 throw p0 .end method