RxJavaPlugins.smali
.class public final Lio/reactivex/plugins/RxJavaPlugins;
.super Ljava/lang/Object;
# static fields
.field static volatile a:Lio/reactivex/functions/Consumer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Consumer<",
"-",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field static volatile b:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Ljava/lang/Runnable;",
"+",
"Ljava/lang/Runnable;",
">;"
}
.end annotation
.end field
.field static volatile c:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;+",
"Lio/reactivex/Scheduler;",
">;"
}
.end annotation
.end field
.field static volatile d:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;+",
"Lio/reactivex/Scheduler;",
">;"
}
.end annotation
.end field
.field static volatile e:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;+",
"Lio/reactivex/Scheduler;",
">;"
}
.end annotation
.end field
.field static volatile f:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;+",
"Lio/reactivex/Scheduler;",
">;"
}
.end annotation
.end field
.field static volatile g:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Lio/reactivex/Scheduler;",
"+",
"Lio/reactivex/Scheduler;",
">;"
}
.end annotation
.end field
.field static volatile h:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Lio/reactivex/Observable;",
"+",
"Lio/reactivex/Observable;",
">;"
}
.end annotation
.end field
.field static volatile i:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Lio/reactivex/observables/ConnectableObservable;",
"+",
"Lio/reactivex/observables/ConnectableObservable;",
">;"
}
.end annotation
.end field
.field static volatile j:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-",
"Lio/reactivex/Single;",
"+",
"Lio/reactivex/Single;",
">;"
}
.end annotation
.end field
.field static volatile k:Lio/reactivex/functions/BiFunction;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/BiFunction<",
"-",
"Lio/reactivex/Observable;",
"-",
"Lio/reactivex/Observer;",
"+",
"Lio/reactivex/Observer;",
">;"
}
.end annotation
.end field
.field static volatile l:Lio/reactivex/functions/BiFunction;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/BiFunction<",
"-",
"Lio/reactivex/Single;",
"-",
"Lio/reactivex/SingleObserver;",
"+",
"Lio/reactivex/SingleObserver;",
">;"
}
.end annotation
.end field
# direct methods
.method static a(Lio/reactivex/functions/BiFunction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"U:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/functions/BiFunction<",
"TT;TU;TR;>;TT;TU;)TR;"
}
.end annotation
:try_start_0
invoke-interface {p0, p1, p2}, Lio/reactivex/functions/BiFunction;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
:try_end_4
.catchall {:try_start_0 .. :try_end_4} :catchall_5
return-object p0
:catchall_5
move-exception p0
invoke-static {p0}, Lio/reactivex/internal/util/ExceptionHelper;->a(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
.end method
.method static b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/functions/Function<",
"TT;TR;>;TT;)TR;"
}
.end annotation
:try_start_0
invoke-interface {p0, p1}, Lio/reactivex/functions/Function;->a(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
:try_end_4
.catchall {:try_start_0 .. :try_end_4} :catchall_5
return-object p0
:catchall_5
move-exception p0
invoke-static {p0}, Lio/reactivex/internal/util/ExceptionHelper;->a(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
.end method
.method static c(Lio/reactivex/functions/Function;Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/functions/Function<",
"-",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;+",
"Lio/reactivex/Scheduler;",
">;",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;)",
"Lio/reactivex/Scheduler;"
}
.end annotation
invoke-static {p0, p1}, Lio/reactivex/plugins/RxJavaPlugins;->b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
const-string p1, "Scheduler Callable result can\'t be null"
invoke-static {p0, p1}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast p0, Lio/reactivex/Scheduler;
return-object p0
.end method
.method static d(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;)",
"Lio/reactivex/Scheduler;"
}
.end annotation
:try_start_0
invoke-interface {p0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object p0
const-string v0, "Scheduler Callable result can\'t be null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast p0, Lio/reactivex/Scheduler;
:try_end_b
.catchall {:try_start_0 .. :try_end_b} :catchall_c
return-object p0
:catchall_c
move-exception p0
invoke-static {p0}, Lio/reactivex/internal/util/ExceptionHelper;->a(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
.end method
.method public static e(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;)",
"Lio/reactivex/Scheduler;"
}
.end annotation
const-string v0, "Scheduler Callable can\'t be null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->c:Lio/reactivex/functions/Function;
if-nez v0, :cond_e
invoke-static {p0}, Lio/reactivex/plugins/RxJavaPlugins;->d(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
:cond_e
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->c(Lio/reactivex/functions/Function;Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
.end method
.method public static f(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;)",
"Lio/reactivex/Scheduler;"
}
.end annotation
const-string v0, "Scheduler Callable can\'t be null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->e:Lio/reactivex/functions/Function;
if-nez v0, :cond_e
invoke-static {p0}, Lio/reactivex/plugins/RxJavaPlugins;->d(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
:cond_e
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->c(Lio/reactivex/functions/Function;Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
.end method
.method public static g(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;)",
"Lio/reactivex/Scheduler;"
}
.end annotation
const-string v0, "Scheduler Callable can\'t be null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->f:Lio/reactivex/functions/Function;
if-nez v0, :cond_e
invoke-static {p0}, Lio/reactivex/plugins/RxJavaPlugins;->d(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
:cond_e
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->c(Lio/reactivex/functions/Function;Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
.end method
.method public static h(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/Scheduler;",
">;)",
"Lio/reactivex/Scheduler;"
}
.end annotation
const-string v0, "Scheduler Callable can\'t be null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->d:Lio/reactivex/functions/Function;
if-nez v0, :cond_e
invoke-static {p0}, Lio/reactivex/plugins/RxJavaPlugins;->d(Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
:cond_e
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->c(Lio/reactivex/functions/Function;Ljava/util/concurrent/Callable;)Lio/reactivex/Scheduler;
move-result-object p0
return-object p0
.end method
.method static i(Ljava/lang/Throwable;)Z
.registers 3
instance-of v0, p0, Lio/reactivex/exceptions/OnErrorNotImplementedException;
const/4 v1, 0x1
if-eqz v0, :cond_6
return v1
:cond_6
instance-of v0, p0, Ljava/lang/IllegalStateException;
if-eqz v0, :cond_b
return v1
:cond_b
instance-of v0, p0, Ljava/lang/NullPointerException;
if-eqz v0, :cond_10
return v1
:cond_10
instance-of v0, p0, Ljava/lang/IllegalArgumentException;
if-eqz v0, :cond_15
return v1
:cond_15
instance-of p0, p0, Lio/reactivex/exceptions/CompositeException;
if-eqz p0, :cond_1a
return v1
:cond_1a
const/4 p0, 0x0
return p0
.end method
.method public static j(Lio/reactivex/Observable;)Lio/reactivex/Observable;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/Observable<",
"TT;>;)",
"Lio/reactivex/Observable<",
"TT;>;"
}
.end annotation
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->h:Lio/reactivex/functions/Function;
if-eqz v0, :cond_a
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lio/reactivex/Observable;
:cond_a
return-object p0
.end method
.method public static k(Lio/reactivex/Single;)Lio/reactivex/Single;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/Single<",
"TT;>;)",
"Lio/reactivex/Single<",
"TT;>;"
}
.end annotation
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->j:Lio/reactivex/functions/Function;
if-eqz v0, :cond_a
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lio/reactivex/Single;
:cond_a
return-object p0
.end method
.method public static l(Lio/reactivex/observables/ConnectableObservable;)Lio/reactivex/observables/ConnectableObservable;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/observables/ConnectableObservable<",
"TT;>;)",
"Lio/reactivex/observables/ConnectableObservable<",
"TT;>;"
}
.end annotation
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->i:Lio/reactivex/functions/Function;
if-eqz v0, :cond_a
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lio/reactivex/observables/ConnectableObservable;
:cond_a
return-object p0
.end method
.method public static m(Ljava/lang/Throwable;)V
.registers 3
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->a:Lio/reactivex/functions/Consumer;
if-nez p0, :cond_c
new-instance p0, Ljava/lang/NullPointerException;
const-string v1, "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {p0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
goto :goto_18
:cond_c
invoke-static {p0}, Lio/reactivex/plugins/RxJavaPlugins;->i(Ljava/lang/Throwable;)Z
move-result v1
if-nez v1, :cond_18
new-instance v1, Lio/reactivex/exceptions/UndeliverableException;
invoke-direct {v1, p0}, Lio/reactivex/exceptions/UndeliverableException;-><init>(Ljava/lang/Throwable;)V
move-object p0, v1
:cond_18
:goto_18
if-eqz v0, :cond_25
:try_start_1a
invoke-interface {v0, p0}, Lio/reactivex/functions/Consumer;->a(Ljava/lang/Object;)V
:try_end_1d
.catchall {:try_start_1a .. :try_end_1d} :catchall_1e
return-void
:catchall_1e
move-exception v0
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->r(Ljava/lang/Throwable;)V
:cond_25
invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V
invoke-static {p0}, Lio/reactivex/plugins/RxJavaPlugins;->r(Ljava/lang/Throwable;)V
return-void
.end method
.method public static n(Lio/reactivex/Scheduler;)Lio/reactivex/Scheduler;
.registers 2
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->g:Lio/reactivex/functions/Function;
if-nez v0, :cond_5
return-object p0
:cond_5
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lio/reactivex/Scheduler;
return-object p0
.end method
.method public static o(Ljava/lang/Runnable;)Ljava/lang/Runnable;
.registers 2
const-string v0, "run is null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->b:Lio/reactivex/functions/Function;
if-nez v0, :cond_a
return-object p0
:cond_a
invoke-static {v0, p0}, Lio/reactivex/plugins/RxJavaPlugins;->b(Lio/reactivex/functions/Function;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Runnable;
return-object p0
.end method
.method public static p(Lio/reactivex/Observable;Lio/reactivex/Observer;)Lio/reactivex/Observer;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/Observable<",
"TT;>;",
"Lio/reactivex/Observer<",
"-TT;>;)",
"Lio/reactivex/Observer<",
"-TT;>;"
}
.end annotation
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->k:Lio/reactivex/functions/BiFunction;
if-eqz v0, :cond_b
invoke-static {v0, p0, p1}, Lio/reactivex/plugins/RxJavaPlugins;->a(Lio/reactivex/functions/BiFunction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lio/reactivex/Observer;
return-object p0
:cond_b
return-object p1
.end method
.method public static q(Lio/reactivex/Single;Lio/reactivex/SingleObserver;)Lio/reactivex/SingleObserver;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/Single<",
"TT;>;",
"Lio/reactivex/SingleObserver<",
"-TT;>;)",
"Lio/reactivex/SingleObserver<",
"-TT;>;"
}
.end annotation
sget-object v0, Lio/reactivex/plugins/RxJavaPlugins;->l:Lio/reactivex/functions/BiFunction;
if-eqz v0, :cond_b
invoke-static {v0, p0, p1}, Lio/reactivex/plugins/RxJavaPlugins;->a(Lio/reactivex/functions/BiFunction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lio/reactivex/SingleObserver;
return-object p0
:cond_b
return-object p1
.end method
.method static r(Ljava/lang/Throwable;)V
.registers 3
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
move-result-object v1
invoke-interface {v1, v0, p0}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
return-void
.end method