ai.smali
.class public Lcom/bytedance/embedapplog/ai;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field static a:Z
.field private static b:Ljava/lang/Class;
.field private static c:Ljava/lang/reflect/Method;
.field private static d:Z
.field private static e:Z
.field private static f:Z
.field private static g:Z
.field private static h:Z
.field private static i:Z
.field private static j:Z
.field private static k:Z
.field private static l:Z
.field private static m:Z
.field private static n:Z
.field private static o:Z
.field private static p:Z
.field private static q:Z
.field private static r:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 25
const/4 v0, 0x0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->a:Z
.line 219
const-string v0, "com.tencent.smtt.sdk.WebView"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->d:Z
.line 220
const-string v0, "android.support.v7.widget.RecyclerView"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->e:Z
.line 221
const-string v0, "android.support.v4.view.ViewPager"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->f:Z
.line 222
const-string v0, "android.support.v4.widget.SwipeRefreshLayout"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->g:Z
.line 223
const-string v0, "android.support.v4.app.Fragment"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->h:Z
.line 224
const-string v0, "android.support.v4.app.FragmentActivity"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->i:Z
.line 225
const-string v0, "android.support.v7.app.AlertDialog"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->j:Z
.line 226
const-string v0, "android.support.v7.view.menu.ListMenuItemView"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->k:Z
.line 227
const-string v0, "androidx.recyclerview.widget.RecyclerView"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->l:Z
.line 228
const-string v0, "androidx.viewpager.widget.ViewPager"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->m:Z
.line 229
const-string v0, "androidx.swiperefreshlayout.widget.SwipeRefreshLayout"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->n:Z
.line 230
const-string v0, "androidx.fragment.app.Fragment"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->o:Z
.line 231
const-string v0, "androidx.fragment.app.FragmentActivity"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->p:Z
.line 232
const-string v0, "androidx.appcompat.app.AlertDialog"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->q:Z
.line 233
const-string v0, "androidx.appcompat.view.menu.ListMenuItemView"
invoke-static {v0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/String;)Z
move-result v0
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->r:Z
.line 236
return-void
.end method
.method static a(Landroid/view/View;Landroid/view/View;)I
.registers 5
.prologue
.line 72
:try_start_0
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
sget-object v1, Lcom/bytedance/embedapplog/ai;->b:Ljava/lang/Class;
if-ne v0, v1, :cond_1f
.line 73
sget-object v0, Lcom/bytedance/embedapplog/ai;->c:Ljava/lang/reflect/Method;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
:try_end_19
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_19} :catch_1b
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_19} :catch_21
move-result v0
.line 81
:goto_1a
return v0
.line 75
:catch_1b
move-exception v0
.line 76
invoke-static {v0}, Lcom/bytedance/embedapplog/aw;->a(Ljava/lang/Throwable;)V
.line 81
:cond_1f
:goto_1f
const/4 v0, -0x1
goto :goto_1a
.line 77
:catch_21
move-exception v0
.line 78
invoke-static {v0}, Lcom/bytedance/embedapplog/aw;->a(Ljava/lang/Throwable;)V
goto :goto_1f
.end method
.method private static a(Ljava/lang/Class;)Ljava/lang/Class;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class",
"<*>;)",
"Ljava/lang/Class",
"<*>;"
}
.end annotation
.prologue
.line 103
move-object v0, p0
:goto_1
if-eqz v0, :cond_39
const-class v1, Landroid/view/ViewGroup;
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_39
.line 105
:try_start_b
const-string v1, "getChildAdapterPosition"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
const-class v4, Landroid/view/View;
aput-object v4, v2, v3
.line 106
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Lcom/bytedance/embedapplog/ai;->c:Ljava/lang/reflect/Method;
:try_end_1b
.catch Ljava/lang/NoSuchMethodException; {:try_start_b .. :try_end_1b} :catch_3d
.line 110
:goto_1b
sget-object v1, Lcom/bytedance/embedapplog/ai;->c:Ljava/lang/reflect/Method;
if-nez v1, :cond_2f
.line 112
:try_start_1f
const-string v1, "getChildPosition"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
const-class v4, Landroid/view/View;
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Lcom/bytedance/embedapplog/ai;->c:Ljava/lang/reflect/Method;
:try_end_2f
.catch Ljava/lang/NoSuchMethodException; {:try_start_1f .. :try_end_2f} :catch_3b
.line 117
:cond_2f
:goto_2f
sget-object v1, Lcom/bytedance/embedapplog/ai;->c:Ljava/lang/reflect/Method;
if-eqz v1, :cond_34
.line 124
:goto_33
return-object v0
.line 121
:cond_34
invoke-virtual {v0}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
move-result-object v0
goto :goto_1
.line 124
:cond_39
const/4 v0, 0x0
goto :goto_33
.line 113
:catch_3b
move-exception v1
goto :goto_2f
.line 107
:catch_3d
move-exception v1
goto :goto_1b
.end method
.method static a(Ljava/lang/Class;Ljava/lang/String;)V
.registers 3
.annotation build Landroid/annotation/TargetApi;
value = 0x9
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class",
"<*>;",
"Ljava/lang/String;",
")V"
}
.end annotation
.prologue
.line 86
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->l:Z
if-nez v0, :cond_25
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->e:Z
if-nez v0, :cond_25
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->a:Z
if-nez v0, :cond_25
.line 87
if-eqz p1, :cond_25
const-string v0, "RecyclerView"
invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_25
.line 89
:try_start_16
invoke-static {p0}, Lcom/bytedance/embedapplog/ai;->a(Ljava/lang/Class;)Ljava/lang/Class;
move-result-object v0
.line 90
if-eqz v0, :cond_25
sget-object v0, Lcom/bytedance/embedapplog/ai;->c:Ljava/lang/reflect/Method;
if-eqz v0, :cond_25
.line 91
sput-object p0, Lcom/bytedance/embedapplog/ai;->b:Ljava/lang/Class;
.line 92
const/4 v0, 0x1
sput-boolean v0, Lcom/bytedance/embedapplog/ai;->a:Z
:try_end_25
.catch Ljava/lang/Exception; {:try_start_16 .. :try_end_25} :catch_26
.line 100
:cond_25
:goto_25
return-void
.line 94
:catch_26
move-exception v0
.line 95
invoke-static {v0}, Lcom/bytedance/embedapplog/aw;->a(Ljava/lang/Throwable;)V
goto :goto_25
.end method
.method static a(Ljava/lang/Object;)Z
.registers 3
.prologue
.line 128
invoke-static {p0}, Lcom/bytedance/embedapplog/ai;->c(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1e
invoke-static {p0}, Lcom/bytedance/embedapplog/ai;->b(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1e
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->a:Z
if-eqz v0, :cond_20
if-eqz p0, :cond_20
sget-object v0, Lcom/bytedance/embedapplog/ai;->b:Ljava/lang/Class;
.line 129
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result v0
if-eqz v0, :cond_20
:cond_1e
const/4 v0, 0x1
.line 128
:goto_1f
return v0
.line 129
:cond_20
const/4 v0, 0x0
goto :goto_1f
.end method
.method private static a(Ljava/lang/String;)Z
.registers 2
.prologue
.line 63
:try_start_0
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3} :catch_5
.line 64
const/4 v0, 0x1
.line 66
:goto_4
return v0
.line 65
:catch_5
move-exception v0
.line 66
const/4 v0, 0x0
goto :goto_4
.end method
.method static b(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 133
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->e:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroid/support/v7/widget/RecyclerView;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static c(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 137
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->l:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroidx/recyclerview/widget/RecyclerView;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static d(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 141
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->f:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroid/support/v4/view/ViewPager;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static e(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 145
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->m:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroidx/viewpager/widget/ViewPager;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static f(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 149
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->g:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static g(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 153
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->n:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static h(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 158
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->d:Z
if-eqz v0, :cond_a
instance-of v0, p0, Lcom/tencent/smtt/sdk/WebView;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method public static i(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 166
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->j:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroid/support/v7/app/AlertDialog;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method public static j(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 170
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->q:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroidx/appcompat/app/AlertDialog;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static k(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 190
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->k:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroid/support/v7/view/menu/ListMenuItemView;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method static l(Ljava/lang/Object;)Z
.registers 2
.prologue
.line 194
sget-boolean v0, Lcom/bytedance/embedapplog/ai;->r:Z
if-eqz v0, :cond_a
instance-of v0, p0, Landroidx/appcompat/view/menu/ListMenuItemView;
if-eqz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method