h$a.smali
.class public final Laq/h$a;
.super Lnp/l$a;
.source "SingleScheduler.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Laq/h;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field public final a:Ljava/util/concurrent/ScheduledExecutorService;
.field public final b:Lqp/a;
.field public volatile c:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/ScheduledExecutorService;)V
.registers 2
invoke-direct {p0}, Lnp/l$a;-><init>()V
iput-object p1, p0, Laq/h$a;->a:Ljava/util/concurrent/ScheduledExecutorService;
new-instance p1, Lqp/a;
invoke-direct {p1}, Lqp/a;-><init>()V
iput-object p1, p0, Laq/h$a;->b:Lqp/a;
return-void
.end method
# virtual methods
.method public a(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lqp/b;
.registers 8
iget-boolean v0, p0, Laq/h$a;->c:Z
if-eqz v0, :cond_7
sget-object p1, Lio/reactivex/internal/disposables/EmptyDisposable;->INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
return-object p1
:cond_7
invoke-static {p1}, Lfq/a;->a(Ljava/lang/Runnable;)Ljava/lang/Runnable;
move-result-object p1
new-instance v0, Laq/f;
iget-object v1, p0, Laq/h$a;->b:Lqp/a;
invoke-direct {v0, p1, v1}, Laq/f;-><init>(Ljava/lang/Runnable;Ltp/a;)V
iget-object p1, p0, Laq/h$a;->b:Lqp/a;
invoke-virtual {p1, v0}, Lqp/a;->b(Lqp/b;)Z
const-wide/16 v1, 0x0
cmp-long p1, p2, v1
if-gtz p1, :cond_24
:try_start_1d
iget-object p1, p0, Laq/h$a;->a:Ljava/util/concurrent/ScheduledExecutorService;
invoke-interface {p1, v0}, Ljava/util/concurrent/ScheduledExecutorService;->submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
move-result-object p1
goto :goto_2a
:cond_24
iget-object p1, p0, Laq/h$a;->a:Ljava/util/concurrent/ScheduledExecutorService;
invoke-interface {p1, v0, p2, p3, p4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object p1
:goto_2a
invoke-virtual {v0, p1}, Laq/f;->a(Ljava/util/concurrent/Future;)V
:try_end_2d
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1d .. :try_end_2d} :catch_2e
return-object v0
:catch_2e
move-exception p1
invoke-virtual {p0}, Laq/h$a;->dispose()V
invoke-static {p1}, Lfq/a;->b(Ljava/lang/Throwable;)V
sget-object p1, Lio/reactivex/internal/disposables/EmptyDisposable;->INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
return-object p1
.end method
.method public dispose()V
.registers 2
iget-boolean v0, p0, Laq/h$a;->c:Z
if-nez v0, :cond_c
const/4 v0, 0x1
iput-boolean v0, p0, Laq/h$a;->c:Z
iget-object v0, p0, Laq/h$a;->b:Lqp/a;
invoke-virtual {v0}, Lqp/a;->dispose()V
:cond_c
return-void
.end method