CommonTabLayout$PointEvaluator.smali
.class Lcom/tablayout/CommonTabLayout$PointEvaluator;
.super Ljava/lang/Object;
.source "CommonTabLayout.java"
# interfaces
.implements Landroid/animation/TypeEvaluator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/tablayout/CommonTabLayout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "PointEvaluator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroid/animation/TypeEvaluator<",
"Lcom/tablayout/CommonTabLayout$IndicatorPoint;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/tablayout/CommonTabLayout;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lcom/tablayout/CommonTabLayout;)V
.registers 2
.param p1, "this$0" # Lcom/tablayout/CommonTabLayout;
.line 938
iput-object p1, p0, Lcom/tablayout/CommonTabLayout$PointEvaluator;->this$0:Lcom/tablayout/CommonTabLayout;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public evaluate(FLcom/tablayout/CommonTabLayout$IndicatorPoint;Lcom/tablayout/CommonTabLayout$IndicatorPoint;)Lcom/tablayout/CommonTabLayout$IndicatorPoint;
.registers 8
.param p1, "fraction" # F
.param p2, "startValue" # Lcom/tablayout/CommonTabLayout$IndicatorPoint;
.param p3, "endValue" # Lcom/tablayout/CommonTabLayout$IndicatorPoint;
.line 941
iget v0, p2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->left:F
iget v1, p3, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->left:F
iget v2, p2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->left:F
sub-float/2addr v1, v2
mul-float v1, v1, p1
add-float/2addr v0, v1
.line 942
.local v0, "left":F
iget v1, p2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->right:F
iget v2, p3, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->right:F
iget v3, p2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->right:F
sub-float/2addr v2, v3
mul-float v2, v2, p1
add-float/2addr v1, v2
.line 943
.local v1, "right":F
new-instance v2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;
iget-object v3, p0, Lcom/tablayout/CommonTabLayout$PointEvaluator;->this$0:Lcom/tablayout/CommonTabLayout;
invoke-direct {v2, v3}, Lcom/tablayout/CommonTabLayout$IndicatorPoint;-><init>(Lcom/tablayout/CommonTabLayout;)V
.line 944
.local v2, "point":Lcom/tablayout/CommonTabLayout$IndicatorPoint;
iput v0, v2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->left:F
.line 945
iput v1, v2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;->right:F
.line 946
return-object v2
.end method
.method public bridge synthetic evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 4
.line 938
check-cast p2, Lcom/tablayout/CommonTabLayout$IndicatorPoint;
check-cast p3, Lcom/tablayout/CommonTabLayout$IndicatorPoint;
invoke-virtual {p0, p1, p2, p3}, Lcom/tablayout/CommonTabLayout$PointEvaluator;->evaluate(FLcom/tablayout/CommonTabLayout$IndicatorPoint;Lcom/tablayout/CommonTabLayout$IndicatorPoint;)Lcom/tablayout/CommonTabLayout$IndicatorPoint;
move-result-object p1
return-object p1
.end method