u$k.smali
.class Le/h/o/u$k;
.super Ljava/lang/Object;
.source ""
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Le/h/o/u;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "k"
.end annotation
# static fields
.field private static final d:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/ref/WeakReference<",
"Landroid/view/View;",
">;>;"
}
.end annotation
.end field
# instance fields
.field private a:Ljava/util/WeakHashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/WeakHashMap<",
"Landroid/view/View;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
.field private b:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Ljava/lang/ref/WeakReference<",
"Landroid/view/View;",
">;>;"
}
.end annotation
.end field
.field private c:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Landroid/view/KeyEvent;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
sput-object v0, Le/h/o/u$k;->d:Ljava/util/ArrayList;
return-void
.end method
.method constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
iput-object v0, p0, Le/h/o/u$k;->b:Landroid/util/SparseArray;
iput-object v0, p0, Le/h/o/u$k;->c:Ljava/lang/ref/WeakReference;
return-void
.end method
.method static a(Landroid/view/View;)Le/h/o/u$k;
.registers 3
sget v0, Le/h/c;->N:I
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Le/h/o/u$k;
if-nez v1, :cond_12
new-instance v1, Le/h/o/u$k;
invoke-direct {v1}, Le/h/o/u$k;-><init>()V
invoke-virtual {p0, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
:cond_12
return-object v1
.end method
.method private c(Landroid/view/View;Landroid/view/KeyEvent;)Landroid/view/View;
.registers 7
iget-object v0, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
const/4 v1, 0x0
if-eqz v0, :cond_30
invoke-virtual {v0, p1}, Ljava/util/WeakHashMap;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_c
goto :goto_30
:cond_c
instance-of v0, p1, Landroid/view/ViewGroup;
if-eqz v0, :cond_29
move-object v0, p1
check-cast v0, Landroid/view/ViewGroup;
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v2
add-int/lit8 v2, v2, -0x1
:goto_19
if-ltz v2, :cond_29
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v3
invoke-direct {p0, v3, p2}, Le/h/o/u$k;->c(Landroid/view/View;Landroid/view/KeyEvent;)Landroid/view/View;
move-result-object v3
if-eqz v3, :cond_26
return-object v3
:cond_26
add-int/lit8 v2, v2, -0x1
goto :goto_19
:cond_29
invoke-direct {p0, p1, p2}, Le/h/o/u$k;->e(Landroid/view/View;Landroid/view/KeyEvent;)Z
move-result p2
if-eqz p2, :cond_30
return-object p1
:cond_30
:goto_30
return-object v1
.end method
.method private d()Landroid/util/SparseArray;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroid/util/SparseArray<",
"Ljava/lang/ref/WeakReference<",
"Landroid/view/View;",
">;>;"
}
.end annotation
iget-object v0, p0, Le/h/o/u$k;->b:Landroid/util/SparseArray;
if-nez v0, :cond_b
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
iput-object v0, p0, Le/h/o/u$k;->b:Landroid/util/SparseArray;
:cond_b
iget-object v0, p0, Le/h/o/u$k;->b:Landroid/util/SparseArray;
return-object v0
.end method
.method private e(Landroid/view/View;Landroid/view/KeyEvent;)Z
.registers 7
sget v0, Le/h/c;->O:I
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/ArrayList;
if-eqz v0, :cond_22
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v1
const/4 v2, 0x1
sub-int/2addr v1, v2
:goto_10
if-ltz v1, :cond_22
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Le/h/o/u$j;
invoke-interface {v3, p1, p2}, Le/h/o/u$j;->a(Landroid/view/View;Landroid/view/KeyEvent;)Z
move-result v3
if-eqz v3, :cond_1f
return v2
:cond_1f
add-int/lit8 v1, v1, -0x1
goto :goto_10
:cond_22
const/4 p1, 0x0
return p1
.end method
.method private g()V
.registers 7
iget-object v0, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
if-eqz v0, :cond_7
invoke-virtual {v0}, Ljava/util/WeakHashMap;->clear()V
:cond_7
sget-object v0, Le/h/o/u$k;->d:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v1
if-eqz v1, :cond_10
return-void
:cond_10
monitor-enter v0
:try_start_11
iget-object v1, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
if-nez v1, :cond_1c
new-instance v1, Ljava/util/WeakHashMap;
invoke-direct {v1}, Ljava/util/WeakHashMap;-><init>()V
iput-object v1, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
:cond_1c
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v1
add-int/lit8 v1, v1, -0x1
:goto_22
if-ltz v1, :cond_59
sget-object v2, Le/h/o/u$k;->d:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/ref/WeakReference;
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/View;
if-nez v3, :cond_38
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
goto :goto_56
:cond_38
iget-object v2, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
sget-object v4, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
invoke-virtual {v2, v3, v4}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v2
:goto_43
instance-of v3, v2, Landroid/view/View;
if-eqz v3, :cond_56
iget-object v3, p0, Le/h/o/u$k;->a:Ljava/util/WeakHashMap;
move-object v4, v2
check-cast v4, Landroid/view/View;
sget-object v5, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
invoke-virtual {v3, v4, v5}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-interface {v2}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;
move-result-object v2
goto :goto_43
:cond_56
:goto_56
add-int/lit8 v1, v1, -0x1
goto :goto_22
:cond_59
monitor-exit v0
return-void
:catchall_5b
move-exception v1
monitor-exit v0
:try_end_5d
.catchall {:try_start_11 .. :try_end_5d} :catchall_5b
goto :goto_5f
:goto_5e
throw v1
:goto_5f
goto :goto_5e
.end method
# virtual methods
.method b(Landroid/view/View;Landroid/view/KeyEvent;)Z
.registers 5
invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I
move-result v0
if-nez v0, :cond_9
invoke-direct {p0}, Le/h/o/u$k;->g()V
:cond_9
invoke-direct {p0, p1, p2}, Le/h/o/u$k;->c(Landroid/view/View;Landroid/view/KeyEvent;)Landroid/view/View;
move-result-object p1
invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I
move-result v0
if-nez v0, :cond_2b
invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I
move-result p2
if-eqz p1, :cond_2b
invoke-static {p2}, Landroid/view/KeyEvent;->isModifierKey(I)Z
move-result v0
if-nez v0, :cond_2b
invoke-direct {p0}, Le/h/o/u$k;->d()Landroid/util/SparseArray;
move-result-object v0
new-instance v1, Ljava/lang/ref/WeakReference;
invoke-direct {v1, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {v0, p2, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
:cond_2b
if-eqz p1, :cond_2f
const/4 p1, 0x1
goto :goto_30
:cond_2f
const/4 p1, 0x0
:goto_30
return p1
.end method
.method f(Landroid/view/KeyEvent;)Z
.registers 7
iget-object v0, p0, Le/h/o/u$k;->c:Ljava/lang/ref/WeakReference;
const/4 v1, 0x0
if-eqz v0, :cond_c
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
if-ne v0, p1, :cond_c
return v1
:cond_c
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Le/h/o/u$k;->c:Ljava/lang/ref/WeakReference;
const/4 v0, 0x0
invoke-direct {p0}, Le/h/o/u$k;->d()Landroid/util/SparseArray;
move-result-object v2
invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I
move-result v3
const/4 v4, 0x1
if-ne v3, v4, :cond_32
invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I
move-result v3
invoke-virtual {v2, v3}, Landroid/util/SparseArray;->indexOfKey(I)I
move-result v3
if-ltz v3, :cond_32
invoke-virtual {v2, v3}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/ref/WeakReference;
invoke-virtual {v2, v3}, Landroid/util/SparseArray;->removeAt(I)V
:cond_32
if-nez v0, :cond_3e
invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I
move-result v0
invoke-virtual {v2, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/ref/WeakReference;
:cond_3e
if-eqz v0, :cond_52
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
if-eqz v0, :cond_51
invoke-static {v0}, Le/h/o/u;->Q(Landroid/view/View;)Z
move-result v1
if-eqz v1, :cond_51
invoke-direct {p0, v0, p1}, Le/h/o/u$k;->e(Landroid/view/View;Landroid/view/KeyEvent;)Z
:cond_51
return v4
:cond_52
return v1
.end method