a.smali
.class public Lf/b/b/c/v/a;
.super Ljava/lang/Object;
.source ""
# instance fields
.field private final a:Z
.field private final b:I
.field private final c:I
.field private final d:F
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
sget v0, Lf/b/b/c/b;->o:I
const/4 v1, 0x0
invoke-static {p1, v0, v1}, Lf/b/b/c/z/b;->b(Landroid/content/Context;IZ)Z
move-result v0
iput-boolean v0, p0, Lf/b/b/c/v/a;->a:Z
sget v0, Lf/b/b/c/b;->n:I
invoke-static {p1, v0, v1}, Lf/b/b/c/s/a;->a(Landroid/content/Context;II)I
move-result v0
iput v0, p0, Lf/b/b/c/v/a;->b:I
sget v0, Lf/b/b/c/b;->l:I
invoke-static {p1, v0, v1}, Lf/b/b/c/s/a;->a(Landroid/content/Context;II)I
move-result v0
iput v0, p0, Lf/b/b/c/v/a;->c:I
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object p1
iget p1, p1, Landroid/util/DisplayMetrics;->density:F
iput p1, p0, Lf/b/b/c/v/a;->d:F
return-void
.end method
.method private e(I)Z
.registers 3
const/16 v0, 0xff
invoke-static {p1, v0}, Le/h/f/a;->m(II)I
move-result p1
iget v0, p0, Lf/b/b/c/v/a;->c:I
if-ne p1, v0, :cond_c
const/4 p1, 0x1
goto :goto_d
:cond_c
const/4 p1, 0x0
:goto_d
return p1
.end method
# virtual methods
.method public a(F)F
.registers 5
iget v0, p0, Lf/b/b/c/v/a;->d:F
const/4 v1, 0x0
cmpg-float v2, v0, v1
if-lez v2, :cond_24
cmpg-float v2, p1, v1
if-gtz v2, :cond_c
goto :goto_24
:cond_c
div-float/2addr p1, v0
const/high16 v0, 0x40900000 # 4.5f
float-to-double v1, p1
invoke-static {v1, v2}, Ljava/lang/Math;->log1p(D)D
move-result-wide v1
double-to-float p1, v1
mul-float p1, p1, v0
const/high16 v0, 0x40000000 # 2.0f
add-float/2addr p1, v0
const/high16 v0, 0x42c80000 # 100.0f
div-float/2addr p1, v0
const/high16 v0, 0x3f800000 # 1.0f
invoke-static {p1, v0}, Ljava/lang/Math;->min(FF)F
move-result p1
return p1
:cond_24
:goto_24
return v1
.end method
.method public b(IF)I
.registers 5
invoke-virtual {p0, p2}, Lf/b/b/c/v/a;->a(F)F
move-result p2
invoke-static {p1}, Landroid/graphics/Color;->alpha(I)I
move-result v0
const/16 v1, 0xff
invoke-static {p1, v1}, Le/h/f/a;->m(II)I
move-result p1
iget v1, p0, Lf/b/b/c/v/a;->b:I
invoke-static {p1, v1, p2}, Lf/b/b/c/s/a;->f(IIF)I
move-result p1
invoke-static {p1, v0}, Le/h/f/a;->m(II)I
move-result p1
return p1
.end method
.method public c(IF)I
.registers 4
iget-boolean v0, p0, Lf/b/b/c/v/a;->a:Z
if-eqz v0, :cond_e
invoke-direct {p0, p1}, Lf/b/b/c/v/a;->e(I)Z
move-result v0
if-eqz v0, :cond_e
invoke-virtual {p0, p1, p2}, Lf/b/b/c/v/a;->b(IF)I
move-result p1
:cond_e
return p1
.end method
.method public d()Z
.registers 2
iget-boolean v0, p0, Lf/b/b/c/v/a;->a:Z
return v0
.end method