125 lines
2.9 KiB
Smali
125 lines
2.9 KiB
Smali
.class public Lcom/tencent/smtt/sdk/TbsVideoUtils;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# static fields
|
|
.field private static a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Landroid/content/Context;)V
|
|
.locals 4
|
|
|
|
const-class v0, Lcom/tencent/smtt/sdk/TbsVideoUtils;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v1}, Lcom/tencent/smtt/sdk/o;->a(Z)Lcom/tencent/smtt/sdk/o;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v2, p0, v3, v3}, Lcom/tencent/smtt/sdk/o;->a(Landroid/content/Context;ZZ)V
|
|
|
|
invoke-static {v1}, Lcom/tencent/smtt/sdk/o;->a(Z)Lcom/tencent/smtt/sdk/o;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/tencent/smtt/sdk/o;->a()Lcom/tencent/smtt/sdk/bg;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/tencent/smtt/sdk/bg;->b()Lcom/tencent/smtt/export/external/DexLoader;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_0
|
|
if-eqz v1, :cond_1
|
|
|
|
new-instance p0, Lcom/tencent/smtt/sdk/be;
|
|
|
|
invoke-direct {p0, v1}, Lcom/tencent/smtt/sdk/be;-><init>(Lcom/tencent/smtt/export/external/DexLoader;)V
|
|
|
|
sput-object p0, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static deleteVideoCache(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v0, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/tencent/smtt/sdk/be;->a(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getCurWDPDecodeType(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v0, Lcom/tencent/smtt/sdk/TbsVideoUtils;->a:Lcom/tencent/smtt/sdk/be;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/tencent/smtt/sdk/be;->a(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, ""
|
|
|
|
return-object p0
|
|
.end method
|