2020-05-11 19:22:21 +00:00
|
|
|
.class public final Lf/k/a/b/k1/i;
|
|
|
|
.super Lf/k/a/b/k1/g;
|
2020-04-17 17:35:24 +00:00
|
|
|
.source "DataSchemeDataSource.java"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-05-11 19:22:21 +00:00
|
|
|
.field public e:Lf/k/a/b/k1/n;
|
2020-04-17 17:35:24 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public f:[B
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public g:I
|
|
|
|
|
|
|
|
.field public h:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-direct {p0, v0}, Lf/k/a/b/k1/g;-><init>(Z)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-05-11 19:22:21 +00:00
|
|
|
.method public a(Lf/k/a/b/k1/n;)J
|
2020-04-17 17:35:24 +00:00
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-virtual {p0, p1}, Lf/k/a/b/k1/g;->b(Lf/k/a/b/k1/n;)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput-object p1, p0, Lf/k/a/b/k1/i;->e:Lf/k/a/b/k1/n;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-wide v0, p1, Lf/k/a/b/k1/n;->f:J
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
long-to-int v1, v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput v1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v0, p1, Lf/k/a/b/k1/n;->a:Landroid/net/Uri;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "data"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, ","
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {v1, v2}, Lf/k/a/b/l1/f0;->a(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
array-length v2, v1
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_3
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
aget-object v0, v1, v0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
const-string v3, ";base64"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-static {v0, v2}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput-object v1, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
new-instance v1, Lf/k/a/b/k0;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
const-string v2, "Error while parsing Base64 encoded string: "
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {v2, v0}, Lf/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-direct {v1, v0, p1}, Lf/k/a/b/k0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v1, "US-ASCII"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {v0}, Lf/k/a/b/l1/f0;->b(Ljava/lang/String;)[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput-object v0, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-wide v0, p1, Lf/k/a/b/k1/n;->g:J
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
const-wide/16 v3, -0x1
|
|
|
|
|
|
|
|
cmp-long v5, v0, v3
|
|
|
|
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
|
|
|
|
long-to-int v1, v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget v0, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
array-length v1, v0
|
|
|
|
|
|
|
|
:goto_1
|
2020-05-11 19:22:21 +00:00
|
|
|
iput v1, p0, Lf/k/a/b/k1/i;->g:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget v0, p0, Lf/k/a/b/k1/i;->g:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v1, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
array-length v1, v1
|
|
|
|
|
|
|
|
if-gt v0, v1, :cond_2
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget v1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
if-gt v1, v0, :cond_2
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-virtual {p0, p1}, Lf/k/a/b/k1/g;->c(Lf/k/a/b/k1/n;)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget p1, p0, Lf/k/a/b/k1/i;->g:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
int-to-long v0, p1
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget p1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
int-to-long v2, p1
|
|
|
|
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput-object p1, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
new-instance p1, Lf/k/a/b/k1/m;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-direct {p1, v2}, Lf/k/a/b/k1/m;-><init>(I)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
2020-05-11 19:22:21 +00:00
|
|
|
new-instance p1, Lf/k/a/b/k0;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v2, "Unexpected URI format: "
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-direct {p1, v0}, Lf/k/a/b/k0;-><init>(Ljava/lang/String;)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_4
|
2020-05-11 19:22:21 +00:00
|
|
|
new-instance p1, Lf/k/a/b/k0;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
const-string v0, "Unsupported scheme: "
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {v0, v1}, Lf/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-direct {p1, v0}, Lf/k/a/b/k0;-><init>(Ljava/lang/String;)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public b()Landroid/net/Uri;
|
|
|
|
.locals 1
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/i;->e:Lf/k/a/b/k1/n;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v0, v0, Lf/k/a/b/k1/n;->a:Landroid/net/Uri;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public close()V
|
|
|
|
.locals 2
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput-object v1, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-virtual {p0}, Lf/k/a/b/k1/g;->c()V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-05-11 19:22:21 +00:00
|
|
|
iput-object v1, p0, Lf/k/a/b/k1/i;->e:Lf/k/a/b/k1/n;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public read([BII)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
2020-05-11 19:22:21 +00:00
|
|
|
iget v0, p0, Lf/k/a/b/k1/i;->g:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget v1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p3, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/i;->f:[B
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {v0}, Lf/k/a/b/l1/f0;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget v1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iget p1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
iput p1, p0, Lf/k/a/b/k1/i;->h:I
|
2020-04-17 17:35:24 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-virtual {p0, p3}, Lf/k/a/b/k1/g;->a(I)V
|
2020-04-17 17:35:24 +00:00
|
|
|
|
|
|
|
return p3
|
|
|
|
.end method
|