AspectAwesomeCache.smali
.class public Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;
.super Ljava/lang/Object;
# annotations
.annotation build Landroid/support/annotation/Keep;
.end annotation
# instance fields
.field private mAwesomeCacheCallback:Lcom/kwai/video/cache/AwesomeCacheCallback;
.field private mCacheSessionListener:Lcom/kwai/video/cache/CacheSessionListener;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end field
.field private mCacheSessionListenerInnerBridge:Lcom/kwai/video/cache/CacheSessionListener;
.field private final mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;Z)V
.registers 3
.param p1 # Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
invoke-direct {p0, p2}, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->setEnableHodor(Z)V
return-void
.end method
.method static synthetic access$000(Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;)Lcom/kwai/video/cache/CacheSessionListener;
.registers 2
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mCacheSessionListener:Lcom/kwai/video/cache/CacheSessionListener;
return-object v0
.end method
.method private setEnableHodor(Z)V
.registers 7
iget-object v2, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v3, 0x4
const-string v4, "cache-enabled"
if-eqz p1, :cond_d
const-wide/16 v0, 0x1
:goto_9
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
:cond_d
const-wide/16 v0, 0x0
goto :goto_9
.end method
# virtual methods
.method public release()V
.registers 2
const/4 v0, 0x0
iput-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mAwesomeCacheCallback:Lcom/kwai/video/cache/AwesomeCacheCallback;
return-void
.end method
.method public setAegonMTRequestDelayTime(I)V
.registers 7
iget-object v2, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v3, 0x1
const-string v4, "mt_request_delay_ms"
if-gez p1, :cond_d
const-wide/16 v0, -0x1
:goto_9
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
:cond_d
int-to-long v0, p1
goto :goto_9
.end method
.method public setAwesomeCacheCallback(Lcom/kwai/video/cache/AwesomeCacheCallback;)V
.registers 3
.param p1 # Lcom/kwai/video/cache/AwesomeCacheCallback;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
iput-object p1, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mAwesomeCacheCallback:Lcom/kwai/video/cache/AwesomeCacheCallback;
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
invoke-virtual {v0, p1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->_setAwesomeCacheCallback(Ljava/lang/Object;)V
return-void
.end method
.method public setBufferedDataSourceSizeKB(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "buffered-datasource-size-kb"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setCacheDownloadConnectTimeoutMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "cache-connect-timeout-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setCacheDownloadReadTimeoutMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "cache-read-timeout-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method setCacheKey(Ljava/lang/String;)V
.registers 5
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x4
const-string v2, "cache-key"
invoke-virtual {v0, v1, v2, p1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public setCacheProgressCallbackIntervalMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "progress_cb_interval_ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setCacheSessionListener(Lcom/kwai/video/cache/CacheSessionListener;)V
.registers 4
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mCacheSessionListener:Lcom/kwai/video/cache/CacheSessionListener;
if-eqz v0, :cond_c
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "should not setCacheSessionListener twice"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_c
iput-object p1, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mCacheSessionListener:Lcom/kwai/video/cache/CacheSessionListener;
invoke-virtual {p0}, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->setupListener()V
return-void
.end method
.method public setCacheSocketBufferSizeKb(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "cache-socket-buf-size-kb"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setDataSourceSeekReopenThresholdKB(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "datasource-seek-reopen-threshold-kb"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setDataSourceType(I)V
.registers 8
.param p1 # I
.annotation build Lcom/kwai/video/cache/AwesomeCache$DataSourceType;
.end annotation
.end param
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "data-source-type"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setEnableHttpdns(Z)V
.registers 7
iget-object v2, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v3, 0x1
const-string v4, "enable_httpdns_in_hodor"
if-eqz p1, :cond_d
const-wide/16 v0, 0x1
:goto_9
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
:cond_d
const-wide/16 v0, 0x0
goto :goto_9
.end method
.method public setLiveP2spSwitchCooldownMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "live-p2sp-switch-cooldown-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setLiveP2spSwitchLagThresholdMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "live-p2sp-switch-lag-threshold-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setLiveP2spSwitchMaxCount(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "live-p2sp-switch-max-count"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setLiveP2spSwitchOffBufferThresholdMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "live-p2sp-switch-off-buffer-threshold-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setLiveP2spSwitchOnBufferHoldThresholdMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "live-p2sp-switch-on-buffer-hold-threshold-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setLiveP2spSwitchOnBufferThresholdMs(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "live-p2sp-switch-on-buffer-threshold-ms"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setMaxSpeedKbps(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "max-speed-kbps"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setTcpConnectionReuse(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "tcp-connection-reuse"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setTcpConnectionReuseMaxage(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "tcp-connection-reuse-maxage"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setTcpKeepaliveIdle(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "tcp-keepalive-idle"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setTcpKeepaliveInterval(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "tcp-keepalive-interval"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setUpstreamType(I)V
.registers 8
.param p1 # I
.annotation build Lcom/kwai/video/cache/AwesomeCache$UpstreamType;
.end annotation
.end param
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "upstream-type"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setVodP2spCdnRequestInitialSize(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-cdn-request-initial-size"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setVodP2spCdnRequestMaxSize(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-cdn-request-max-size"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setVodP2spDisable()V
.registers 5
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-disable"
const-string v3, "1"
invoke-virtual {v0, v1, v2, v3}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public setVodP2spHoleIgnoreSpeedcal(Z)V
.registers 7
iget-object v2, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v3, 0x1
const-string v4, "vod-p2sp-hole-ignore-speedcal"
if-eqz p1, :cond_d
const-wide/16 v0, 0x1
:goto_9
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
:cond_d
const-wide/16 v0, 0x0
goto :goto_9
.end method
.method public setVodP2spOffThreshold(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-off-threshold"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setVodP2spOnThreshold(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-on-threshold"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setVodP2spPolicy(Ljava/lang/String;)V
.registers 5
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-policy"
invoke-virtual {v0, v1, v2, p1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public setVodP2spTaskMaxSize(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-task-max-size"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setVodP2spTaskTimeout(I)V
.registers 8
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
const/4 v1, 0x1
const-string v2, "vod-p2sp-task-timeout"
int-to-long v4, p1
invoke-virtual {v0, v1, v2, v4, v5}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->setOption(ILjava/lang/String;J)V
return-void
.end method
.method public setupListener()V
.registers 4
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mCacheSessionListener:Lcom/kwai/video/cache/CacheSessionListener;
if-eqz v0, :cond_17
new-instance v0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache$1;
invoke-direct {v0, p0}, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache$1;-><init>(Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;)V
iput-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mCacheSessionListenerInnerBridge:Lcom/kwai/video/cache/CacheSessionListener;
iget-object v0, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mPlayer:Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;
new-instance v1, Ljava/lang/ref/WeakReference;
iget-object v2, p0, Lcom/kwai/video/player/kwai_player/AspectAwesomeCache;->mCacheSessionListenerInnerBridge:Lcom/kwai/video/cache/CacheSessionListener;
invoke-direct {v1, v2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {v0, v1}, Lcom/kwai/video/player/kwai_player/KwaiMediaPlayer;->_setupCacheSessionListener(Ljava/lang/Object;)V
:cond_17
return-void
.end method