KeyEventCompat.java
4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
package android.support.v4.view;
import android.os.Build.VERSION;
import android.view.KeyEvent;
import android.view.KeyEvent.Callback;
import android.view.KeyEvent.DispatcherState;
import android.view.View;
public final class KeyEventCompat
{
static final c a = new a();
static
{
if (Build.VERSION.SDK_INT >= 11)
{
a = new b();
return;
}
}
@Deprecated
public static boolean dispatch(KeyEvent paramKeyEvent, KeyEvent.Callback paramCallback, Object paramObject1, Object paramObject2)
{
return paramKeyEvent.dispatch(paramCallback, (KeyEvent.DispatcherState)paramObject1, paramObject2);
}
@Deprecated
public static Object getKeyDispatcherState(View paramView)
{
return paramView.getKeyDispatcherState();
}
public static boolean hasModifiers(KeyEvent paramKeyEvent, int paramInt)
{
return a.a(paramKeyEvent.getMetaState(), paramInt);
}
public static boolean hasNoModifiers(KeyEvent paramKeyEvent)
{
return a.b(paramKeyEvent.getMetaState());
}
public static boolean isCtrlPressed(KeyEvent paramKeyEvent)
{
return a.a(paramKeyEvent);
}
@Deprecated
public static boolean isTracking(KeyEvent paramKeyEvent)
{
return paramKeyEvent.isTracking();
}
public static boolean metaStateHasModifiers(int paramInt1, int paramInt2)
{
return a.a(paramInt1, paramInt2);
}
public static boolean metaStateHasNoModifiers(int paramInt)
{
return a.b(paramInt);
}
public static int normalizeMetaState(int paramInt)
{
return a.a(paramInt);
}
@Deprecated
public static void startTracking(KeyEvent paramKeyEvent)
{
paramKeyEvent.startTracking();
}
static class a
implements KeyEventCompat.c
{
private static int a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5)
{
int j = 1;
int i;
if ((paramInt2 & paramInt3) != 0)
{
i = 1;
paramInt4 |= paramInt5;
if ((paramInt2 & paramInt4) == 0) {
break label51;
}
paramInt2 = j;
}
for (;;)
{
if (i != 0)
{
if (paramInt2 != 0)
{
throw new IllegalArgumentException("bad arguments");
i = 0;
break;
label51:
paramInt2 = 0;
continue;
}
paramInt4 = paramInt1 & (paramInt4 ^ 0xFFFFFFFF);
}
}
do
{
return paramInt4;
paramInt4 = paramInt1;
} while (paramInt2 == 0);
return paramInt1 & (paramInt3 ^ 0xFFFFFFFF);
}
public int a(int paramInt)
{
if ((paramInt & 0xC0) != 0) {
paramInt |= 0x1;
}
for (;;)
{
int i = paramInt;
if ((paramInt & 0x30) != 0) {
i = paramInt | 0x2;
}
return i & 0xF7;
}
}
public boolean a(int paramInt1, int paramInt2)
{
return a(a(a(paramInt1) & 0xF7, paramInt2, 1, 64, 128), paramInt2, 2, 16, 32) == paramInt2;
}
public boolean a(KeyEvent paramKeyEvent)
{
return false;
}
public boolean b(int paramInt)
{
return (a(paramInt) & 0xF7) == 0;
}
}
static final class b
extends KeyEventCompat.a
{
public final int a(int paramInt)
{
return KeyEvent.normalizeMetaState(paramInt);
}
public final boolean a(int paramInt1, int paramInt2)
{
return KeyEvent.metaStateHasModifiers(paramInt1, paramInt2);
}
public final boolean a(KeyEvent paramKeyEvent)
{
return paramKeyEvent.isCtrlPressed();
}
public final boolean b(int paramInt)
{
return KeyEvent.metaStateHasNoModifiers(paramInt);
}
}
static abstract interface c
{
public abstract int a(int paramInt);
public abstract boolean a(int paramInt1, int paramInt2);
public abstract boolean a(KeyEvent paramKeyEvent);
public abstract boolean b(int paramInt);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/KeyEventCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/