.class final Landroidx/lifecycle/ClassesInfoCache$MethodReference; .super Ljava/lang/Object; .source "ClassesInfoCache.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/lifecycle/ClassesInfoCache; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x18 name = "MethodReference" .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation # instance fields .field final mCallType:I .field final mMethod:Ljava/lang/reflect/Method; # direct methods .method constructor (ILjava/lang/reflect/Method;)V .locals 0 .line 211 invoke-direct {p0}, Ljava/lang/Object;->()V iput p1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I iput-object p2, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; const/4 p0, 0x1 .line 214 invoke-virtual {p2, p0}, Ljava/lang/reflect/Method;->setAccessible(Z)V return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 4 const/4 v0, 0x1 if-ne p0, p1, :cond_0 return v0 .line 243 :cond_0 instance-of v1, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference; const/4 v2, 0x0 if-nez v1, :cond_1 return v2 .line 247 :cond_1 check-cast p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference; iget v1, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I .line 248 iget v3, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I if-ne v1, v3, :cond_2 iget-object p0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; invoke-virtual {p0}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String; move-result-object p0 iget-object p1, p1, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; invoke-virtual {p1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String; move-result-object p1 invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p0 if-eqz p0, :cond_2 goto :goto_0 :cond_2 move v0, v2 :goto_0 return v0 .end method .method public hashCode()I .locals 1 iget v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I mul-int/lit8 v0, v0, 0x1f iget-object p0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; .line 253 invoke-virtual {p0}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String; move-result-object p0 invoke-virtual {p0}, Ljava/lang/String;->hashCode()I move-result p0 add-int/2addr v0, p0 return v0 .end method .method invokeCallback(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;Ljava/lang/Object;)V .locals 2 :try_start_0 iget v0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mCallType:I if-eqz v0, :cond_2 const/4 v1, 0x1 if-eq v0, v1, :cond_1 const/4 v1, 0x2 if-eq v0, v1, :cond_0 goto :goto_0 :cond_0 iget-object p0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; .line 228 filled-new-array {p1, p2}, [Ljava/lang/Object; move-result-object p1 invoke-virtual {p0, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_1 iget-object p0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; .line 225 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 invoke-virtual {p0, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_2 iget-object p0, p0, Landroidx/lifecycle/ClassesInfoCache$MethodReference;->mMethod:Ljava/lang/reflect/Method; const/4 p1, 0x0 new-array p1, p1, [Ljava/lang/Object; .line 222 invoke-virtual {p0, p3, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; :try_end_0 .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0 :goto_0 return-void :catch_0 move-exception p0 .line 234 new-instance p1, Ljava/lang/RuntimeException; invoke-direct {p1, p0}, Ljava/lang/RuntimeException;->(Ljava/lang/Throwable;)V throw p1 :catch_1 move-exception p0 .line 232 new-instance p1, Ljava/lang/RuntimeException; const-string p2, "Failed to call observer method" invoke-virtual {p0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable; move-result-object p0 invoke-direct {p1, p2, p0}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw p1 .end method