mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
171 lines
5.1 KiB
Smali
171 lines
5.1 KiB
Smali
.class public final Landroidx/media3/datasource/PriorityDataSource;
|
|
.super Ljava/lang/Object;
|
|
.source "PriorityDataSource.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/media3/datasource/DataSource;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/media3/datasource/PriorityDataSource$Factory;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final priority:I
|
|
|
|
.field private final priorityTaskManager:Landroidx/media3/common/PriorityTaskManager;
|
|
|
|
.field private final upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/media3/datasource/DataSource;Landroidx/media3/common/PriorityTaskManager;I)V
|
|
.locals 0
|
|
|
|
.line 84
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 85
|
|
invoke-static {p1}, Landroidx/media3/common/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/media3/datasource/DataSource;
|
|
|
|
iput-object p1, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 86
|
|
invoke-static {p2}, Landroidx/media3/common/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/media3/common/PriorityTaskManager;
|
|
|
|
iput-object p1, p0, Landroidx/media3/datasource/PriorityDataSource;->priorityTaskManager:Landroidx/media3/common/PriorityTaskManager;
|
|
|
|
iput p3, p0, Landroidx/media3/datasource/PriorityDataSource;->priority:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addTransferListener(Landroidx/media3/datasource/TransferListener;)V
|
|
.locals 0
|
|
|
|
.line 92
|
|
invoke-static {p1}, Landroidx/media3/common/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object p0, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 93
|
|
invoke-interface {p0, p1}, Landroidx/media3/datasource/DataSource;->addTransferListener(Landroidx/media3/datasource/TransferListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 121
|
|
invoke-interface {p0}, Landroidx/media3/datasource/DataSource;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getResponseHeaders()Ljava/util/Map;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 116
|
|
invoke-interface {p0}, Landroidx/media3/datasource/DataSource;->getResponseHeaders()Ljava/util/Map;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getUri()Landroid/net/Uri;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 111
|
|
invoke-interface {p0}, Landroidx/media3/datasource/DataSource;->getUri()Landroid/net/Uri;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public open(Landroidx/media3/datasource/DataSpec;)J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/media3/datasource/PriorityDataSource;->priorityTaskManager:Landroidx/media3/common/PriorityTaskManager;
|
|
|
|
iget v1, p0, Landroidx/media3/datasource/PriorityDataSource;->priority:I
|
|
|
|
.line 98
|
|
invoke-virtual {v0, v1}, Landroidx/media3/common/PriorityTaskManager;->proceedOrThrow(I)V
|
|
|
|
iget-object p0, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 99
|
|
invoke-interface {p0, p1}, Landroidx/media3/datasource/DataSource;->open(Landroidx/media3/datasource/DataSpec;)J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public read([BII)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/media3/datasource/PriorityDataSource;->priorityTaskManager:Landroidx/media3/common/PriorityTaskManager;
|
|
|
|
iget v1, p0, Landroidx/media3/datasource/PriorityDataSource;->priority:I
|
|
|
|
.line 104
|
|
invoke-virtual {v0, v1}, Landroidx/media3/common/PriorityTaskManager;->proceedOrThrow(I)V
|
|
|
|
iget-object p0, p0, Landroidx/media3/datasource/PriorityDataSource;->upstream:Landroidx/media3/datasource/DataSource;
|
|
|
|
.line 105
|
|
invoke-interface {p0, p1, p2, p3}, Landroidx/media3/datasource/DataSource;->read([BII)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|