420 lines
7.9 KiB
Smali
420 lines
7.9 KiB
Smali
.class public final Lf/k/a/b/k1/b0;
|
|
.super Ljava/lang/Object;
|
|
.source "TeeDataSource.java"
|
|
|
|
# interfaces
|
|
.implements Lf/k/a/b/k1/l;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lf/k/a/b/k1/l;
|
|
|
|
.field public final b:Lf/k/a/b/k1/j;
|
|
|
|
.field public c:Z
|
|
|
|
.field public d:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf/k/a/b/k1/l;Lf/k/a/b/k1/j;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iput-object p1, p0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iput-object p2, p0, Lf/k/a/b/k1/b0;->b:Lf/k/a/b/k1/j;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lf/k/a/b/k1/n;)J
|
|
.locals 18
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
iget-object v2, v0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
invoke-interface {v2, v1}, Lf/k/a/b/k1/l;->a(Lf/k/a/b/k1/n;)J
|
|
|
|
move-result-wide v2
|
|
|
|
iput-wide v2, v0, Lf/k/a/b/k1/b0;->d:J
|
|
|
|
iget-wide v12, v0, Lf/k/a/b/k1/b0;->d:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v12, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
return-wide v2
|
|
|
|
:cond_0
|
|
iget-wide v4, v1, Lf/k/a/b/k1/n;->g:J
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
cmp-long v8, v4, v6
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
cmp-long v8, v12, v6
|
|
|
|
if-eqz v8, :cond_2
|
|
|
|
cmp-long v6, v4, v12
|
|
|
|
if-nez v6, :cond_1
|
|
|
|
move-object/from16 v17, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v17, Lf/k/a/b/k1/n;
|
|
|
|
iget-object v5, v1, Lf/k/a/b/k1/n;->a:Landroid/net/Uri;
|
|
|
|
iget v6, v1, Lf/k/a/b/k1/n;->b:I
|
|
|
|
iget-object v7, v1, Lf/k/a/b/k1/n;->c:[B
|
|
|
|
iget-wide v8, v1, Lf/k/a/b/k1/n;->e:J
|
|
|
|
add-long/2addr v8, v2
|
|
|
|
iget-wide v10, v1, Lf/k/a/b/k1/n;->f:J
|
|
|
|
add-long/2addr v10, v2
|
|
|
|
iget-object v14, v1, Lf/k/a/b/k1/n;->h:Ljava/lang/String;
|
|
|
|
iget v15, v1, Lf/k/a/b/k1/n;->i:I
|
|
|
|
iget-object v1, v1, Lf/k/a/b/k1/n;->d:Ljava/util/Map;
|
|
|
|
move-object/from16 v4, v17
|
|
|
|
move-object/from16 v16, v1
|
|
|
|
invoke-direct/range {v4 .. v16}, Lf/k/a/b/k1/n;-><init>(Landroid/net/Uri;I[BJJJLjava/lang/String;ILjava/util/Map;)V
|
|
|
|
:goto_0
|
|
move-object/from16 v1, v17
|
|
|
|
:cond_2
|
|
const/4 v2, 0x1
|
|
|
|
iput-boolean v2, v0, Lf/k/a/b/k1/b0;->c:Z
|
|
|
|
iget-object v2, v0, Lf/k/a/b/k1/b0;->b:Lf/k/a/b/k1/j;
|
|
|
|
check-cast v2, Lf/k/a/b/k1/e0/d;
|
|
|
|
invoke-virtual {v2, v1}, Lf/k/a/b/k1/e0/d;->a(Lf/k/a/b/k1/n;)V
|
|
|
|
iget-wide v1, v0, Lf/k/a/b/k1/b0;->d:J
|
|
|
|
return-wide v1
|
|
.end method
|
|
|
|
.method public a()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
invoke-interface {v0}, Lf/k/a/b/k1/l;->a()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/k1/c0;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
invoke-interface {v0, p1}, Lf/k/a/b/k1/l;->a(Lf/k/a/b/k1/c0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Landroid/net/Uri;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
invoke-interface {v0}, Lf/k/a/b/k1/l;->b()Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
invoke-interface {v1}, Lf/k/a/b/k1/l;->close()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
iget-boolean v1, p0, Lf/k/a/b/k1/b0;->c:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iput-boolean v0, p0, Lf/k/a/b/k1/b0;->c:Z
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->b:Lf/k/a/b/k1/j;
|
|
|
|
check-cast v0, Lf/k/a/b/k1/e0/d;
|
|
|
|
iget-object v1, v0, Lf/k/a/b/k1/e0/d;->d:Lf/k/a/b/k1/n;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:try_start_1
|
|
invoke-virtual {v0}, Lf/k/a/b/k1/e0/d;->a()V
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
new-instance v1, Lf/k/a/b/k1/e0/d$a;
|
|
|
|
invoke-direct {v1, v0}, Lf/k/a/b/k1/e0/d$a;-><init>(Ljava/io/IOException;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
iget-boolean v2, p0, Lf/k/a/b/k1/b0;->c:Z
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
iput-boolean v0, p0, Lf/k/a/b/k1/b0;->c:Z
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->b:Lf/k/a/b/k1/j;
|
|
|
|
check-cast v0, Lf/k/a/b/k1/e0/d;
|
|
|
|
iget-object v2, v0, Lf/k/a/b/k1/e0/d;->d:Lf/k/a/b/k1/n;
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:try_start_2
|
|
invoke-virtual {v0}, Lf/k/a/b/k1/e0/d;->a()V
|
|
:try_end_2
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
new-instance v1, Lf/k/a/b/k1/e0/d$a;
|
|
|
|
invoke-direct {v1, v0}, Lf/k/a/b/k1/e0/d$a;-><init>(Ljava/io/IOException;)V
|
|
|
|
throw v1
|
|
|
|
:cond_3
|
|
:goto_1
|
|
throw v1
|
|
.end method
|
|
|
|
.method public read([BII)I
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide v0, p0, Lf/k/a/b/k1/b0;->d:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->a:Lf/k/a/b/k1/l;
|
|
|
|
invoke-interface {v0, p1, p2, p3}, Lf/k/a/b/k1/l;->read([BII)I
|
|
|
|
move-result p3
|
|
|
|
if-lez p3, :cond_4
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/b0;->b:Lf/k/a/b/k1/j;
|
|
|
|
check-cast v0, Lf/k/a/b/k1/e0/d;
|
|
|
|
iget-object v1, v0, Lf/k/a/b/k1/e0/d;->d:Lf/k/a/b/k1/n;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, p3, :cond_3
|
|
|
|
:try_start_0
|
|
iget-wide v2, v0, Lf/k/a/b/k1/e0/d;->h:J
|
|
|
|
iget-wide v4, v0, Lf/k/a/b/k1/e0/d;->e:J
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/k1/e0/d;->a()V
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/k1/e0/d;->b()V
|
|
|
|
:cond_2
|
|
sub-int v2, p3, v1
|
|
|
|
int-to-long v2, v2
|
|
|
|
iget-wide v4, v0, Lf/k/a/b/k1/e0/d;->e:J
|
|
|
|
iget-wide v6, v0, Lf/k/a/b/k1/e0/d;->h:J
|
|
|
|
sub-long/2addr v4, v6
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
long-to-int v3, v2
|
|
|
|
iget-object v2, v0, Lf/k/a/b/k1/e0/d;->g:Ljava/io/OutputStream;
|
|
|
|
add-int v4, p2, v1
|
|
|
|
invoke-virtual {v2, p1, v4, v3}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iget-wide v4, v0, Lf/k/a/b/k1/e0/d;->h:J
|
|
|
|
int-to-long v2, v3
|
|
|
|
add-long/2addr v4, v2
|
|
|
|
iput-wide v4, v0, Lf/k/a/b/k1/e0/d;->h:J
|
|
|
|
iget-wide v4, v0, Lf/k/a/b/k1/e0/d;->i:J
|
|
|
|
add-long/2addr v4, v2
|
|
|
|
iput-wide v4, v0, Lf/k/a/b/k1/e0/d;->i:J
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance p2, Lf/k/a/b/k1/e0/d$a;
|
|
|
|
invoke-direct {p2, p1}, Lf/k/a/b/k1/e0/d$a;-><init>(Ljava/io/IOException;)V
|
|
|
|
throw p2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
iget-wide p1, p0, Lf/k/a/b/k1/b0;->d:J
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
int-to-long v0, p3
|
|
|
|
sub-long/2addr p1, v0
|
|
|
|
iput-wide p1, p0, Lf/k/a/b/k1/b0;->d:J
|
|
|
|
:cond_4
|
|
return p3
|
|
.end method
|