.class public final Landroidx/core/graphics/Insets; .super Ljava/lang/Object; .source "Insets.java" # static fields .field public static final NONE:Landroidx/core/graphics/Insets; .annotation build Landroidx/annotation/NonNull; .end annotation .end field # instance fields .field public final bottom:I .field public final left:I .field public final right:I .field public final top:I # direct methods .method public static constructor ()V .locals 2 new-instance v0, Landroidx/core/graphics/Insets; const/4 v1, 0x0 invoke-direct {v0, v1, v1, v1, v1}, Landroidx/core/graphics/Insets;->(IIII)V sput-object v0, Landroidx/core/graphics/Insets;->NONE:Landroidx/core/graphics/Insets; return-void .end method .method public constructor (IIII)V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V iput p1, p0, Landroidx/core/graphics/Insets;->left:I iput p2, p0, Landroidx/core/graphics/Insets;->top:I iput p3, p0, Landroidx/core/graphics/Insets;->right:I iput p4, p0, Landroidx/core/graphics/Insets;->bottom:I return-void .end method .method public static of(IIII)Landroidx/core/graphics/Insets; .locals 1 .annotation build Landroidx/annotation/NonNull; .end annotation if-nez p0, :cond_0 if-nez p1, :cond_0 if-nez p2, :cond_0 if-nez p3, :cond_0 sget-object p0, Landroidx/core/graphics/Insets;->NONE:Landroidx/core/graphics/Insets; return-object p0 :cond_0 new-instance v0, Landroidx/core/graphics/Insets; invoke-direct {v0, p0, p1, p2, p3}, Landroidx/core/graphics/Insets;->(IIII)V return-object v0 .end method .method public static of(Landroid/graphics/Rect;)Landroidx/core/graphics/Insets; .locals 3 .param p0 # Landroid/graphics/Rect; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iget v0, p0, Landroid/graphics/Rect;->left:I iget v1, p0, Landroid/graphics/Rect;->top:I iget v2, p0, Landroid/graphics/Rect;->right:I iget p0, p0, Landroid/graphics/Rect;->bottom:I invoke-static {v0, v1, v2, p0}, Landroidx/core/graphics/Insets;->of(IIII)Landroidx/core/graphics/Insets; move-result-object p0 return-object p0 .end method .method public static toCompatInsets(Landroid/graphics/Insets;)Landroidx/core/graphics/Insets; .locals 3 .param p0 # Landroid/graphics/Insets; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Landroidx/annotation/RequiresApi; api = 0x1d .end annotation iget v0, p0, Landroid/graphics/Insets;->left:I iget v1, p0, Landroid/graphics/Insets;->top:I iget v2, p0, Landroid/graphics/Insets;->right:I iget p0, p0, Landroid/graphics/Insets;->bottom:I invoke-static {v0, v1, v2, p0}, Landroidx/core/graphics/Insets;->of(IIII)Landroidx/core/graphics/Insets; move-result-object p0 return-object p0 .end method .method public static wrap(Landroid/graphics/Insets;)Landroidx/core/graphics/Insets; .locals 0 .param p0 # Landroid/graphics/Insets; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Landroidx/annotation/RequiresApi; api = 0x1d .end annotation .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-static {p0}, Landroidx/core/graphics/Insets;->toCompatInsets(Landroid/graphics/Insets;)Landroidx/core/graphics/Insets; move-result-object p0 return-object p0 .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 :cond_0 const/4 v1, 0x0 if-eqz p1, :cond_6 const-class v2, Landroidx/core/graphics/Insets; invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v3 if-eq v2, v3, :cond_1 goto :goto_0 :cond_1 check-cast p1, Landroidx/core/graphics/Insets; iget v2, p0, Landroidx/core/graphics/Insets;->bottom:I iget v3, p1, Landroidx/core/graphics/Insets;->bottom:I if-eq v2, v3, :cond_2 return v1 :cond_2 iget v2, p0, Landroidx/core/graphics/Insets;->left:I iget v3, p1, Landroidx/core/graphics/Insets;->left:I if-eq v2, v3, :cond_3 return v1 :cond_3 iget v2, p0, Landroidx/core/graphics/Insets;->right:I iget v3, p1, Landroidx/core/graphics/Insets;->right:I if-eq v2, v3, :cond_4 return v1 :cond_4 iget v2, p0, Landroidx/core/graphics/Insets;->top:I iget p1, p1, Landroidx/core/graphics/Insets;->top:I if-eq v2, p1, :cond_5 return v1 :cond_5 return v0 :cond_6 :goto_0 return v1 .end method .method public hashCode()I .locals 2 iget v0, p0, Landroidx/core/graphics/Insets;->left:I mul-int/lit8 v0, v0, 0x1f iget v1, p0, Landroidx/core/graphics/Insets;->top:I add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f iget v1, p0, Landroidx/core/graphics/Insets;->right:I add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f iget v1, p0, Landroidx/core/graphics/Insets;->bottom:I add-int/2addr v0, v1 return v0 .end method .method public toPlatformInsets()Landroid/graphics/Insets; .locals 4 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Landroidx/annotation/RequiresApi; api = 0x1d .end annotation iget v0, p0, Landroidx/core/graphics/Insets;->left:I iget v1, p0, Landroidx/core/graphics/Insets;->top:I iget v2, p0, Landroidx/core/graphics/Insets;->right:I iget v3, p0, Landroidx/core/graphics/Insets;->bottom:I invoke-static {v0, v1, v2, v3}, Landroid/graphics/Insets;->of(IIII)Landroid/graphics/Insets; move-result-object v0 return-object v0 .end method .method public toString()Ljava/lang/String; .locals 3 const-string v0, "Insets{left=" invoke-static {v0}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Landroidx/core/graphics/Insets;->left:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v1, ", top=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget v1, p0, Landroidx/core/graphics/Insets;->top:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v1, ", right=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget v1, p0, Landroidx/core/graphics/Insets;->right:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v1, ", bottom=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget v1, p0, Landroidx/core/graphics/Insets;->bottom:I const/16 v2, 0x7d invoke-static {v0, v1, v2}, Lf/e/c/a/a;->s(Ljava/lang/StringBuilder;IC)Ljava/lang/String; move-result-object v0 return-object v0 .end method