201 lines
3.9 KiB
Smali
201 lines
3.9 KiB
Smali
.class public final Ll0/l/c/h$a;
|
|
.super Ljava/lang/Object;
|
|
.source "SchedulePeriodicHelper.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Action0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Ll0/l/c/h;->a(Lrx/Scheduler$Worker;Lrx/functions/Action0;JJLjava/util/concurrent/TimeUnit;Ll0/l/c/h$b;)Lrx/Subscription;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public d:J
|
|
|
|
.field public e:J
|
|
|
|
.field public f:J
|
|
|
|
.field public final synthetic g:J
|
|
|
|
.field public final synthetic h:J
|
|
|
|
.field public final synthetic i:Lrx/functions/Action0;
|
|
|
|
.field public final synthetic j:Ll0/l/d/a;
|
|
|
|
.field public final synthetic k:Ll0/l/c/h$b;
|
|
|
|
.field public final synthetic l:Lrx/Scheduler$Worker;
|
|
|
|
.field public final synthetic m:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(JJLrx/functions/Action0;Ll0/l/d/a;Ll0/l/c/h$b;Lrx/Scheduler$Worker;J)V
|
|
.locals 0
|
|
|
|
iput-wide p1, p0, Ll0/l/c/h$a;->g:J
|
|
|
|
iput-wide p3, p0, Ll0/l/c/h$a;->h:J
|
|
|
|
iput-object p5, p0, Ll0/l/c/h$a;->i:Lrx/functions/Action0;
|
|
|
|
iput-object p6, p0, Ll0/l/c/h$a;->j:Ll0/l/d/a;
|
|
|
|
iput-object p7, p0, Ll0/l/c/h$a;->k:Ll0/l/c/h$b;
|
|
|
|
iput-object p8, p0, Ll0/l/c/h$a;->l:Lrx/Scheduler$Worker;
|
|
|
|
iput-wide p9, p0, Ll0/l/c/h$a;->m:J
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iget-wide p1, p0, Ll0/l/c/h$a;->g:J
|
|
|
|
iput-wide p1, p0, Ll0/l/c/h$a;->e:J
|
|
|
|
iget-wide p1, p0, Ll0/l/c/h$a;->h:J
|
|
|
|
iput-wide p1, p0, Ll0/l/c/h$a;->f:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public call()V
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Ll0/l/c/h$a;->i:Lrx/functions/Action0;
|
|
|
|
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
|
|
|
iget-object v0, p0, Ll0/l/c/h$a;->j:Ll0/l/d/a;
|
|
|
|
invoke-virtual {v0}, Ll0/l/d/a;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Ll0/l/c/h$a;->k:Ll0/l/c/h$b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Ll0/l/c/h$b;->a()J
|
|
|
|
move-result-wide v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
iget-object v1, p0, Ll0/l/c/h$a;->l:Lrx/Scheduler$Worker;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
:goto_0
|
|
sget-wide v2, Ll0/l/c/h;->a:J
|
|
|
|
add-long v4, v0, v2
|
|
|
|
iget-wide v6, p0, Ll0/l/c/h$a;->e:J
|
|
|
|
const-wide/16 v8, 0x1
|
|
|
|
cmp-long v10, v4, v6
|
|
|
|
if-ltz v10, :cond_2
|
|
|
|
iget-wide v4, p0, Ll0/l/c/h$a;->m:J
|
|
|
|
add-long/2addr v6, v4
|
|
|
|
add-long/2addr v6, v2
|
|
|
|
cmp-long v2, v0, v6
|
|
|
|
if-ltz v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget-wide v2, p0, Ll0/l/c/h$a;->f:J
|
|
|
|
iget-wide v6, p0, Ll0/l/c/h$a;->d:J
|
|
|
|
add-long/2addr v6, v8
|
|
|
|
iput-wide v6, p0, Ll0/l/c/h$a;->d:J
|
|
|
|
mul-long v6, v6, v4
|
|
|
|
add-long/2addr v6, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
iget-wide v2, p0, Ll0/l/c/h$a;->m:J
|
|
|
|
add-long v6, v0, v2
|
|
|
|
iget-wide v4, p0, Ll0/l/c/h$a;->d:J
|
|
|
|
add-long/2addr v4, v8
|
|
|
|
iput-wide v4, p0, Ll0/l/c/h$a;->d:J
|
|
|
|
mul-long v2, v2, v4
|
|
|
|
sub-long v2, v6, v2
|
|
|
|
iput-wide v2, p0, Ll0/l/c/h$a;->f:J
|
|
|
|
:goto_2
|
|
iput-wide v0, p0, Ll0/l/c/h$a;->e:J
|
|
|
|
sub-long/2addr v6, v0
|
|
|
|
iget-object v0, p0, Ll0/l/c/h$a;->j:Ll0/l/d/a;
|
|
|
|
iget-object v1, p0, Ll0/l/c/h$a;->l:Lrx/Scheduler$Worker;
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v1, p0, v6, v7, v2}, Lrx/Scheduler$Worker;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ll0/l/d/a;->b(Lrx/Subscription;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return-void
|
|
.end method
|