2020-07-16 19:51:49 +00:00
|
|
|
.class public final Lq0/s/a/i;
|
|
|
|
.super Lq0/c$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "RxJavaCallAdapterFactory.java"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final a:Lrx/Scheduler;
|
|
|
|
|
|
|
|
.field public final b:Z
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lrx/Scheduler;Z)V
|
|
|
|
.locals 0
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-direct {p0}, Lq0/c$a;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iput-object p1, p0, Lq0/s/a/i;->a:Lrx/Scheduler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iput-boolean p2, p0, Lq0/s/a/i;->b:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-16 19:51:49 +00:00
|
|
|
.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lq0/p;)Lq0/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 10
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/reflect/Type;",
|
|
|
|
"[",
|
|
|
|
"Ljava/lang/annotation/Annotation;",
|
2020-07-16 19:51:49 +00:00
|
|
|
"Lq0/p;",
|
2020-05-17 12:40:10 +00:00
|
|
|
")",
|
2020-07-16 19:51:49 +00:00
|
|
|
"Lq0/c<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"**>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {p1}, Lq0/r;->h(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
const-class p3, Lr0/h;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-ne p2, p3, :cond_0
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2020-07-16 19:51:49 +00:00
|
|
|
const-class p3, Lr0/d;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-ne p2, p3, :cond_1
|
|
|
|
|
|
|
|
const/4 p3, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const-class v2, Lrx/Observable;
|
|
|
|
|
|
|
|
if-eq p2, v2, :cond_2
|
|
|
|
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
new-instance p1, Lq0/s/a/h;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-class v1, Ljava/lang/Void;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-object v2, p0, Lq0/s/a/i;->a:Lrx/Scheduler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-boolean v3, p0, Lq0/s/a/i;->b:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-direct/range {v0 .. v7}, Lq0/s/a/h;-><init>(Ljava/lang/reflect/Type;Lrx/Scheduler;ZZZZZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
instance-of p2, p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
|
|
|
|
if-nez p2, :cond_5
|
|
|
|
|
|
|
|
if-eqz v8, :cond_4
|
|
|
|
|
|
|
|
const-string p1, "Single"
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "Observable"
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, " return type must be parameterized as "
|
|
|
|
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, "<Foo> or "
|
|
|
|
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, "<? extends Foo>"
|
|
|
|
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
check-cast p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {v1, p1}, Lq0/r;->g(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {p1}, Lq0/r;->h(Ljava/lang/reflect/Type;)Ljava/lang/Class;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
const-class p3, Lq0/n;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-ne p2, p3, :cond_7
|
|
|
|
|
|
|
|
instance-of p2, p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {v1, p1}, Lq0/r;->g(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "Response must be parameterized as Response<Foo> or Response<? extends Foo>"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_7
|
2020-07-16 19:51:49 +00:00
|
|
|
const-class p3, Lq0/s/a/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-ne p2, p3, :cond_9
|
|
|
|
|
|
|
|
instance-of p2, p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_8
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/reflect/ParameterizedType;
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {v1, p1}, Lq0/r;->g(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
move v6, v0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "Result must be parameterized as Result<Foo> or Result<? extends Foo>"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
|
|
|
:goto_4
|
2020-07-16 19:51:49 +00:00
|
|
|
new-instance p1, Lq0/s/a/h;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-object v4, p0, Lq0/s/a/i;->a:Lrx/Scheduler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
iget-boolean v5, p0, Lq0/s/a/i;->b:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-direct/range {v2 .. v9}, Lq0/s/a/h;-><init>(Ljava/lang/reflect/Type;Lrx/Scheduler;ZZZZZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|