348 lines
6.6 KiB
Smali
348 lines
6.6 KiB
Smali
.class public final Lf/k/a/b/h1/t/i;
|
|
.super Ljava/lang/Object;
|
|
.source "WebvttSubtitle.java"
|
|
|
|
# interfaces
|
|
.implements Lf/k/a/b/h1/e;
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lf/k/a/b/h1/t/e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:I
|
|
|
|
.field public final f:[J
|
|
|
|
.field public final g:[J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/List;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lf/k/a/b/h1/t/e;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lf/k/a/b/h1/t/i;->d:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lf/k/a/b/h1/t/i;->e:I
|
|
|
|
iget v0, p0, Lf/k/a/b/h1/t/i;->e:I
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
new-array v0, v0, [J
|
|
|
|
iput-object v0, p0, Lf/k/a/b/h1/t/i;->f:[J
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget v1, p0, Lf/k/a/b/h1/t/i;->e:I
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lf/k/a/b/h1/t/e;
|
|
|
|
mul-int/lit8 v2, v0, 0x2
|
|
|
|
iget-object v3, p0, Lf/k/a/b/h1/t/i;->f:[J
|
|
|
|
iget-wide v4, v1, Lf/k/a/b/h1/t/e;->s:J
|
|
|
|
aput-wide v4, v3, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
iget-wide v4, v1, Lf/k/a/b/h1/t/e;->t:J
|
|
|
|
aput-wide v4, v3, v2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lf/k/a/b/h1/t/i;->f:[J
|
|
|
|
array-length v0, p1
|
|
|
|
invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([JI)[J
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
iget-object p1, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
invoke-static {p1}, Ljava/util/Arrays;->sort([J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
array-length v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(J)I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, p1, p2, v1, v1}, Lf/k/a/b/l1/f0;->a([JJZZ)I
|
|
|
|
move-result p1
|
|
|
|
iget-object p2, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
array-length p2, p2
|
|
|
|
if-ge p1, p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, -0x1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(I)J
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v2}, Lf/k/a/b/l1/e;->a(Z)V
|
|
|
|
iget-object v2, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
array-length v2, v2
|
|
|
|
if-ge p1, v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
invoke-static {v0}, Lf/k/a/b/l1/e;->a(Z)V
|
|
|
|
iget-object v0, p0, Lf/k/a/b/h1/t/i;->g:[J
|
|
|
|
aget-wide v1, v0, p1
|
|
|
|
return-wide v1
|
|
.end method
|
|
|
|
.method public b(J)Ljava/util/List;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J)",
|
|
"Ljava/util/List<",
|
|
"Lf/k/a/b/h1/b;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v3, v2
|
|
|
|
move-object v4, v3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
iget v5, p0, Lf/k/a/b/h1/t/i;->e:I
|
|
|
|
if-ge v2, v5, :cond_5
|
|
|
|
iget-object v5, p0, Lf/k/a/b/h1/t/i;->f:[J
|
|
|
|
mul-int/lit8 v6, v2, 0x2
|
|
|
|
aget-wide v7, v5, v6
|
|
|
|
cmp-long v9, v7, p1
|
|
|
|
if-gtz v9, :cond_4
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
aget-wide v6, v5, v6
|
|
|
|
cmp-long v5, p1, v6
|
|
|
|
if-gez v5, :cond_4
|
|
|
|
iget-object v5, p0, Lf/k/a/b/h1/t/i;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lf/k/a/b/h1/t/e;
|
|
|
|
iget v6, v5, Lf/k/a/b/h1/b;->g:F
|
|
|
|
const v7, -0x800001
|
|
|
|
cmpl-float v6, v6, v7
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
iget v6, v5, Lf/k/a/b/h1/b;->j:F
|
|
|
|
const/high16 v7, 0x3f000000 # 0.5f
|
|
|
|
cmpl-float v6, v6, v7
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v6, :cond_3
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
move-object v4, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const-string v6, "\n"
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
new-instance v3, Landroid/text/SpannableStringBuilder;
|
|
|
|
invoke-direct {v3}, Landroid/text/SpannableStringBuilder;-><init>()V
|
|
|
|
iget-object v7, v4, Lf/k/a/b/h1/b;->d:Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v7}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v3, v7}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7, v6}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v5, v5, Lf/k/a/b/h1/b;->d:Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v5}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v6, v5}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-virtual {v3, v6}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
move-result-object v6
|
|
|
|
iget-object v5, v5, Lf/k/a/b/h1/b;->d:Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v5}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v6, v5}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_4
|
|
:goto_2
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
if-eqz v3, :cond_6
|
|
|
|
new-instance p1, Lf/k/a/b/h1/t/e$b;
|
|
|
|
invoke-direct {p1}, Lf/k/a/b/h1/t/e$b;-><init>()V
|
|
|
|
iput-object v3, p1, Lf/k/a/b/h1/t/e$b;->c:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {p1}, Lf/k/a/b/h1/t/e$b;->a()Lf/k/a/b/h1/t/e;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
if-eqz v4, :cond_7
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_7
|
|
:goto_3
|
|
return-object v0
|
|
.end method
|