335 lines
7.5 KiB
Smali
335 lines
7.5 KiB
Smali
.class public final Lf/k/a/b/k1/e0/u;
|
|
.super Lf/k/a/b/k1/e0/j;
|
|
.source "SimpleCacheSpan.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final j:Ljava/util/regex/Pattern;
|
|
|
|
.field public static final k:Ljava/util/regex/Pattern;
|
|
|
|
.field public static final l:Ljava/util/regex/Pattern;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const/16 v0, 0x20
|
|
|
|
const-string v1, "^(.+)\\.(\\d+)\\.(\\d+)\\.v1\\.exo$"
|
|
|
|
invoke-static {v1, v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lf/k/a/b/k1/e0/u;->j:Ljava/util/regex/Pattern;
|
|
|
|
const-string v1, "^(.+)\\.(\\d+)\\.(\\d+)\\.v2\\.exo$"
|
|
|
|
invoke-static {v1, v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lf/k/a/b/k1/e0/u;->k:Ljava/util/regex/Pattern;
|
|
|
|
const-string v1, "^(\\d+)\\.(\\d+)\\.(\\d+)\\.v3\\.exo$"
|
|
|
|
invoke-static {v1, v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lf/k/a/b/k1/e0/u;->l:Ljava/util/regex/Pattern;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;JJJLjava/io/File;)V
|
|
.locals 0
|
|
.param p8 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct/range {p0 .. p8}, Lf/k/a/b/k1/e0/j;-><init>(Ljava/lang/String;JJJLjava/io/File;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/File;JJLf/k/a/b/k1/e0/m;)Lf/k/a/b/k1/e0/u;
|
|
.locals 16
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, ".v3.exo"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lf/k/a/b/k1/e0/u;->k:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
invoke-virtual {v2, v5}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lf/k/a/b/l1/f0;->h(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v2, Lf/k/a/b/k1/e0/u;->j:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
:goto_0
|
|
move-object v1, v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v2, v5}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_2
|
|
invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getParentFile()Ljava/io/File;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Lf/k/a/b/l1/e;->d(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v0, v1}, Lf/k/a/b/k1/e0/m;->b(Ljava/lang/String;)Lf/k/a/b/k1/e0/l;
|
|
|
|
move-result-object v1
|
|
|
|
iget v8, v1, Lf/k/a/b/k1/e0/l;->a:I
|
|
|
|
invoke-virtual {v2, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v11
|
|
|
|
invoke-static/range {v7 .. v12}, Lf/k/a/b/k1/e0/u;->a(Ljava/io/File;IJJ)Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
invoke-virtual {v2, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
if-nez v1, :cond_4
|
|
|
|
return-object v6
|
|
|
|
:cond_4
|
|
invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v15, v1
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
move-object/from16 v2, p0
|
|
|
|
move-object v15, v2
|
|
|
|
:goto_2
|
|
sget-object v2, Lf/k/a/b/k1/e0/u;->l:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_6
|
|
|
|
return-object v6
|
|
|
|
:cond_6
|
|
invoke-virtual {v1, v5}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v0, v0, Lf/k/a/b/k1/e0/m;->b:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v0, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v8, v0
|
|
|
|
check-cast v8, Ljava/lang/String;
|
|
|
|
if-nez v8, :cond_7
|
|
|
|
return-object v6
|
|
|
|
:cond_7
|
|
const-wide/16 v9, -0x1
|
|
|
|
cmp-long v0, p1, v9
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
invoke-virtual {v15}, Ljava/io/File;->length()J
|
|
|
|
move-result-wide v9
|
|
|
|
move-wide v11, v9
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
move-wide/from16 v11, p1
|
|
|
|
:goto_3
|
|
const-wide/16 v9, 0x0
|
|
|
|
cmp-long v0, v11, v9
|
|
|
|
if-nez v0, :cond_9
|
|
|
|
return-object v6
|
|
|
|
:cond_9
|
|
invoke-virtual {v1, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v9
|
|
|
|
const-wide v4, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
cmp-long v0, p3, v4
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
invoke-virtual {v1, v3}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v0
|
|
|
|
move-wide v13, v0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
move-wide/from16 v13, p3
|
|
|
|
:goto_4
|
|
new-instance v0, Lf/k/a/b/k1/e0/u;
|
|
|
|
move-object v7, v0
|
|
|
|
invoke-direct/range {v7 .. v15}, Lf/k/a/b/k1/e0/u;-><init>(Ljava/lang/String;JJJLjava/io/File;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/File;IJJ)Ljava/io/File;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "."
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ".v3.exo"
|
|
|
|
invoke-static {v1, p4, p5, p1}, Lf/e/b/a/a;->a(Ljava/lang/StringBuilder;JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|