package com.tencent.mm.plugin.mmsight.ui;

import android.os.Looper;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ap;
import com.tencent.mm.sdk.platformtools.bo;

public final class c {
    boolean cFy;
    private int duration;
    float end;
    long eyR;
    ap fJs = null;
    private float oCe = 0.0f;
    float oCf;
    a oCg;
    private Runnable oCh = new 2(this);
    private float start;

    public c(float f, float f2, int i) {
        AppMethodBeat.i(55178);
        this.start = f;
        this.end = f2;
        this.duration = i;
        if (f2 > f) {
            this.oCe = ((f2 - f) / ((float) this.duration)) * 20.0f;
        }
        ab.i("MicroMsg.ProgressHandlerAnimator", "create ProgressHandlerAnimator, start: %s, end: %s, duration: %s, updateStep: %s", new Object[]{Float.valueOf(f), Float.valueOf(f2), Integer.valueOf(i), Float.valueOf(this.oCe)});
        this.cFy = false;
        this.eyR = 0;
        this.fJs = new ap(Looper.getMainLooper(), new 1(this), true);
        AppMethodBeat.o(55178);
    }

    static /* synthetic */ void a(c cVar) {
        AppMethodBeat.i(55179);
        cVar.oCf = (((float) bo.az(cVar.eyR)) / ((float) cVar.duration)) * (cVar.end - cVar.start);
        if (cVar.oCg != null) {
            cVar.oCg.aO(cVar.oCf);
        }
        AppMethodBeat.o(55179);
    }
}
