208 lines
5.3 KiB
Smali
208 lines
5.3 KiB
Smali
.class public final Lkotlin/collections/SlidingWindowKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SlidingWindow.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000*\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0010(\n\u0002\u0008\u0003\u001a\u0018\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0002\u001a\u00020\u0000H\u0000\u001aD\u0010\u000b\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00000\n0\u0006\"\u0004\u0008\u0000\u0010\u0005*\u0008\u0012\u0004\u0012\u00028\u00000\u00062\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0002\u001a\u00020\u00002\u0006\u0010\u0008\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u0007H\u0000\u001aH\u0010\u000e\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00000\n0\u000c\"\u0004\u0008\u0000\u0010\u00052\u000c\u0010\r\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u000c2\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0002\u001a\u00020\u00002\u0006\u0010\u0008\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u0007H\u0000\u00a8\u0006\u000f"
|
|
}
|
|
d2 = {
|
|
"",
|
|
"size",
|
|
"step",
|
|
"Lkotlin/d1;",
|
|
"a",
|
|
"T",
|
|
"Lkotlin/sequences/m;",
|
|
"",
|
|
"partialWindows",
|
|
"reuseBuffer",
|
|
"",
|
|
"c",
|
|
"",
|
|
"iterator",
|
|
"b",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x5,
|
|
0x1
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(II)V
|
|
.locals 3
|
|
|
|
if-lez p0, :cond_0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_2
|
|
|
|
const-string v0, " must be greater than zero."
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
const-string v1, "Both size "
|
|
|
|
const-string v2, " and step "
|
|
|
|
.line 1
|
|
invoke-static {v1, p0, v2, p1, v0}, Landroidx/room/k;->a(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string p1, "size "
|
|
|
|
.line 2
|
|
invoke-static {p1, p0, v0}, Landroidx/camera/core/impl/utils/f;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 3
|
|
:goto_1
|
|
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_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Ljava/util/Iterator;IIZZ)Ljava/util/Iterator;
|
|
.locals 8
|
|
.param p0 # Ljava/util/Iterator;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/Iterator<",
|
|
"+TT;>;IIZZ)",
|
|
"Ljava/util/Iterator<",
|
|
"Ljava/util/List<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "iterator"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object p0, Lkotlin/collections/f0;->a:Lkotlin/collections/f0;
|
|
|
|
return-object p0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v7, Lkotlin/collections/SlidingWindowKt$windowedIterator$1;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v0, v7
|
|
|
|
move v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move-object v3, p0
|
|
|
|
move v4, p4
|
|
|
|
move v5, p3
|
|
|
|
invoke-direct/range {v0 .. v6}, Lkotlin/collections/SlidingWindowKt$windowedIterator$1;-><init>(IILjava/util/Iterator;ZZLkotlin/coroutines/c;)V
|
|
|
|
invoke-static {v7}, Lkotlin/sequences/q;->d(Lej/p;)Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final c(Lkotlin/sequences/m;IIZZ)Lkotlin/sequences/m;
|
|
.locals 7
|
|
.param p0 # Lkotlin/sequences/m;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlin/sequences/m<",
|
|
"+TT;>;IIZZ)",
|
|
"Lkotlin/sequences/m<",
|
|
"Ljava/util/List<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "$this$windowedSequence"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p1, p2}, Lkotlin/collections/SlidingWindowKt;->a(II)V
|
|
|
|
.line 2
|
|
new-instance v0, Lkotlin/collections/SlidingWindowKt$a;
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, p0
|
|
|
|
move v3, p1
|
|
|
|
move v4, p2
|
|
|
|
move v5, p3
|
|
|
|
move v6, p4
|
|
|
|
invoke-direct/range {v1 .. v6}, Lkotlin/collections/SlidingWindowKt$a;-><init>(Lkotlin/sequences/m;IIZZ)V
|
|
|
|
return-object v0
|
|
.end method
|