mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
182 lines
5.5 KiB
Smali
182 lines
5.5 KiB
Smali
.class final Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;
|
|
.super Ljava/lang/Object;
|
|
.source "SingleSampleMediaPeriod.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/media3/exoplayer/upstream/Loader$Loadable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "SourceLoadable"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
.field public final dataSpec:Landroidx/media3/datasource/DataSpec;
|
|
|
|
.field public final loadTaskId:J
|
|
|
|
.field private sampleData:[B
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/media3/datasource/DataSpec;Landroidx/media3/datasource/DataSource;)V
|
|
.locals 2
|
|
|
|
.line 420
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 421
|
|
invoke-static {}, Landroidx/media3/exoplayer/source/LoadEventInfo;->getNewId()J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->loadTaskId:J
|
|
|
|
iput-object p1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSpec:Landroidx/media3/datasource/DataSpec;
|
|
|
|
.line 423
|
|
new-instance p1, Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
invoke-direct {p1, p2}, Landroidx/media3/datasource/StatsDataSource;-><init>(Landroidx/media3/datasource/DataSource;)V
|
|
|
|
iput-object p1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$100(Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;)Landroidx/media3/datasource/StatsDataSource;
|
|
.locals 0
|
|
|
|
.line 411
|
|
iget-object p0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic access$200(Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;)[B
|
|
.locals 0
|
|
|
|
.line 411
|
|
iget-object p0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->sampleData:[B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cancelLoad()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public load()V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
.line 434
|
|
invoke-virtual {v0}, Landroidx/media3/datasource/StatsDataSource;->resetBytesRead()V
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
iget-object v1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSpec:Landroidx/media3/datasource/DataSpec;
|
|
|
|
.line 437
|
|
invoke-virtual {v0, v1}, Landroidx/media3/datasource/StatsDataSource;->open(Landroidx/media3/datasource/DataSpec;)J
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
.line 441
|
|
invoke-virtual {v0}, Landroidx/media3/datasource/StatsDataSource;->getBytesRead()J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int v0, v0
|
|
|
|
iget-object v1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->sampleData:[B
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/16 v1, 0x400
|
|
|
|
new-array v1, v1, [B
|
|
|
|
iput-object v1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->sampleData:[B
|
|
|
|
goto :goto_1
|
|
|
|
.line 444
|
|
:cond_0
|
|
array-length v2, v1
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
.line 445
|
|
array-length v2, v1
|
|
|
|
mul-int/lit8 v2, v2, 0x2
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([BI)[B
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->sampleData:[B
|
|
|
|
:cond_1
|
|
:goto_1
|
|
iget-object v1, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
iget-object v2, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->sampleData:[B
|
|
|
|
.line 447
|
|
array-length v3, v2
|
|
|
|
sub-int/2addr v3, v0
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Landroidx/media3/datasource/StatsDataSource;->read([BII)I
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object p0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
.line 450
|
|
invoke-static {p0}, Landroidx/media3/datasource/DataSourceUtil;->closeQuietly(Landroidx/media3/datasource/DataSource;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object p0, p0, Landroidx/media3/exoplayer/source/SingleSampleMediaPeriod$SourceLoadable;->dataSource:Landroidx/media3/datasource/StatsDataSource;
|
|
|
|
invoke-static {p0}, Landroidx/media3/datasource/DataSourceUtil;->closeQuietly(Landroidx/media3/datasource/DataSource;)V
|
|
|
|
.line 451
|
|
throw v0
|
|
.end method
|