apkfuckery/com.discord/smali/androidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo.smali

187 lines
4.6 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;
.super Ljava/lang/Object;
.source "ActivityChooserModel.java"
# interfaces
.implements Ljava/lang/Comparable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/appcompat/widget/ActivityChooserModel;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ActivityResolveInfo"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Comparable<",
"Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;",
">;"
}
.end annotation
# instance fields
.field public final resolveInfo:Landroid/content/pm/ResolveInfo;
.field public weight:F
# direct methods
.method public constructor <init>(Landroid/content/pm/ResolveInfo;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->resolveInfo:Landroid/content/pm/ResolveInfo;
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public compareTo(Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;)I
2019-07-24 11:27:29 +00:00
.locals 1
iget p1, p1, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->weight:F
invoke-static {p1}, Ljava/lang/Float;->floatToIntBits(F)I
move-result p1
iget v0, p0, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->weight:F
invoke-static {v0}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v0
sub-int/2addr p1, v0
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public bridge synthetic compareTo(Ljava/lang/Object;)I
2019-07-24 11:27:29 +00:00
.locals 0
check-cast p1, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->compareTo(Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;)I
move-result p1
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public equals(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-nez p1, :cond_1
return v1
:cond_1
2019-12-06 03:29:40 +00:00
const-class v2, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_2
return v1
:cond_2
check-cast p1, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;
iget v2, p0, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->weight:F
invoke-static {v2}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v2
iget p1, p1, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->weight:F
invoke-static {p1}, Ljava/lang/Float;->floatToIntBits(F)I
move-result p1
if-eq v2, p1, :cond_3
return v1
:cond_3
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public hashCode()I
2019-07-24 11:27:29 +00:00
.locals 1
iget v0, p0, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->weight:F
invoke-static {v0}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v0
add-int/lit8 v0, v0, 0x1f
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
.locals 4
2019-12-06 03:29:40 +00:00
const-string v0, "["
2019-07-24 11:27:29 +00:00
const-string v1, "resolveInfo:"
2020-05-11 19:22:21 +00:00
invoke-static {v0, v1}, Lf/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
iget-object v1, p0, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->resolveInfo:Landroid/content/pm/ResolveInfo;
invoke-virtual {v1}, Landroid/content/pm/ResolveInfo;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "; weight:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
new-instance v1, Ljava/math/BigDecimal;
iget v2, p0, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;->weight:F
float-to-double v2, v2
invoke-direct {v1, v2, v3}, Ljava/math/BigDecimal;-><init>(D)V
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "]"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method