187 lines
4.6 KiB
Smali
187 lines
4.6 KiB
Smali
.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
|
|
.method public compareTo(Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;)I
|
|
.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
|
|
|
|
.method public bridge synthetic compareTo(Ljava/lang/Object;)I
|
|
.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
|
|
|
|
.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-nez p1, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
const-class v2, Landroidx/appcompat/widget/ActivityChooserModel$ActivityResolveInfo;
|
|
|
|
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
|
|
|
|
.method public hashCode()I
|
|
.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
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "["
|
|
|
|
const-string v1, "resolveInfo:"
|
|
|
|
invoke-static {v0, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
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
|