377 lines
10 KiB
Smali
377 lines
10 KiB
Smali
.class public final Lkotlinx/coroutines/flow/t;
|
|
.super Ljava/lang/Object;
|
|
.source "SharedFlow.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nSharedFlow.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SharedFlow.kt\nkotlinx/coroutines/flow/SharedFlowKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,674:1\n1#2:675\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000H\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\u0010\t\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u001a0\u0010\u0007\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0006\"\u0004\u0008\u0000\u0010\u00002\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u0003\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u0005\u001a\u00020\u0004\u001a%\u0010\u000c\u001a\u0004\u0018\u00010\t*\n\u0012\u0006\u0012\u0004\u0018\u00010\t0\u00082\u0006\u0010\u000b\u001a\u00020\nH\u0002\u00a2\u0006\u0004\u0008\u000c\u0010\r\u001a-\u0010\u0010\u001a\u00020\u000f*\n\u0012\u0006\u0012\u0004\u0018\u00010\t0\u00082\u0006\u0010\u000b\u001a\u00020\n2\u0008\u0010\u000e\u001a\u0004\u0018\u00010\tH\u0002\u00a2\u0006\u0004\u0008\u0010\u0010\u0011\u001a6\u0010\u0017\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0016\"\u0004\u0008\u0000\u0010\u0000*\u0008\u0012\u0004\u0012\u00028\u00000\u00122\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0015\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0004H\u0000\"\u001a\u0010\u001c\u001a\u00020\u00188\u0000X\u0081\u0004\u00a2\u0006\u000c\n\u0004\u0008\u0007\u0010\u0019\u0012\u0004\u0008\u001a\u0010\u001b\u00a8\u0006\u001d"
|
|
}
|
|
d2 = {
|
|
"T",
|
|
"",
|
|
"replay",
|
|
"extraBufferCapacity",
|
|
"Lkotlinx/coroutines/channels/BufferOverflow;",
|
|
"onBufferOverflow",
|
|
"Lkotlinx/coroutines/flow/m;",
|
|
"a",
|
|
"",
|
|
"",
|
|
"",
|
|
"index",
|
|
"f",
|
|
"([Ljava/lang/Object;J)Ljava/lang/Object;",
|
|
"item",
|
|
"Lkotlin/d1;",
|
|
"h",
|
|
"([Ljava/lang/Object;JLjava/lang/Object;)V",
|
|
"Lkotlinx/coroutines/flow/r;",
|
|
"Lkotlin/coroutines/CoroutineContext;",
|
|
"context",
|
|
"capacity",
|
|
"Lkotlinx/coroutines/flow/f;",
|
|
"e",
|
|
"Lkotlinx/coroutines/internal/i0;",
|
|
"Lkotlinx/coroutines/internal/i0;",
|
|
"getNO_VALUE$annotations",
|
|
"()V",
|
|
"NO_VALUE",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lkotlinx/coroutines/internal/i0;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlinx/coroutines/internal/i0;
|
|
|
|
const-string v1, "NO_VALUE"
|
|
|
|
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/i0;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lkotlinx/coroutines/flow/t;->a:Lkotlinx/coroutines/internal/i0;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(IILkotlinx/coroutines/channels/BufferOverflow;)Lkotlinx/coroutines/flow/m;
|
|
.locals 3
|
|
.param p2 # Lkotlinx/coroutines/channels/BufferOverflow;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(II",
|
|
"Lkotlinx/coroutines/channels/BufferOverflow;",
|
|
")",
|
|
"Lkotlinx/coroutines/flow/m<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_7
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v1
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_6
|
|
|
|
if-gtz p0, :cond_3
|
|
|
|
if-gtz p1, :cond_3
|
|
|
|
.line 1
|
|
sget-object v2, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
|
|
|
|
if-ne p2, v2, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v0, v1
|
|
|
|
:cond_3
|
|
:goto_2
|
|
if-eqz v0, :cond_5
|
|
|
|
add-int/2addr p1, p0
|
|
|
|
if-gez p1, :cond_4
|
|
|
|
const p1, 0x7fffffff
|
|
|
|
.line 2
|
|
:cond_4
|
|
new-instance v0, Lkotlinx/coroutines/flow/SharedFlowImpl;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Lkotlinx/coroutines/flow/SharedFlowImpl;-><init>(IILkotlinx/coroutines/channels/BufferOverflow;)V
|
|
|
|
return-object v0
|
|
|
|
.line 3
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string p1, "replay or extraBufferCapacity must be positive with non-default onBufferOverflow strategy "
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_6
|
|
const-string p0, "extraBufferCapacity cannot be negative, but was "
|
|
|
|
.line 5
|
|
invoke-static {p0, p1}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_7
|
|
const-string p1, "replay cannot be negative, but was "
|
|
|
|
.line 6
|
|
invoke-static {p1, p0}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static synthetic b(IILkotlinx/coroutines/channels/BufferOverflow;ILjava/lang/Object;)Lkotlinx/coroutines/flow/m;
|
|
.locals 1
|
|
|
|
and-int/lit8 p4, p3, 0x1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
move p0, v0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p3, 0x2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
:cond_1
|
|
and-int/lit8 p3, p3, 0x4
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
.line 1
|
|
sget-object p2, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
|
|
|
|
:cond_2
|
|
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/flow/t;->a(IILkotlinx/coroutines/channels/BufferOverflow;)Lkotlinx/coroutines/flow/m;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic c([Ljava/lang/Object;J)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/flow/t;->f([Ljava/lang/Object;J)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic d([Ljava/lang/Object;JLjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2, p3}, Lkotlinx/coroutines/flow/t;->h([Ljava/lang/Object;JLjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final e(Lkotlinx/coroutines/flow/r;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;)Lkotlinx/coroutines/flow/f;
|
|
.locals 1
|
|
.param p0 # Lkotlinx/coroutines/flow/r;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lkotlin/coroutines/CoroutineContext;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Lkotlinx/coroutines/channels/BufferOverflow;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlinx/coroutines/flow/r<",
|
|
"+TT;>;",
|
|
"Lkotlin/coroutines/CoroutineContext;",
|
|
"I",
|
|
"Lkotlinx/coroutines/channels/BufferOverflow;",
|
|
")",
|
|
"Lkotlinx/coroutines/flow/f<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 v0, -0x3
|
|
|
|
if-ne p2, v0, :cond_1
|
|
|
|
.line 1
|
|
:cond_0
|
|
sget-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
|
|
|
|
if-ne p3, v0, :cond_1
|
|
|
|
return-object p0
|
|
|
|
.line 2
|
|
:cond_1
|
|
new-instance v0, Lkotlinx/coroutines/flow/internal/f;
|
|
|
|
invoke-direct {v0, p0, p1, p2, p3}, Lkotlinx/coroutines/flow/internal/f;-><init>(Lkotlinx/coroutines/flow/f;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final f([Ljava/lang/Object;J)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
long-to-int p1, p1
|
|
|
|
.line 1
|
|
array-length p2, p0
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
and-int/2addr p1, p2
|
|
|
|
aget-object p0, p0, p1
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic g()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final h([Ljava/lang/Object;JLjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
long-to-int p1, p1
|
|
|
|
.line 1
|
|
array-length p2, p0
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
and-int/2addr p1, p2
|
|
|
|
aput-object p3, p0, p1
|
|
|
|
return-void
|
|
.end method
|