AccessibilityServiceInfoCompat.java
7.57 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
package android.support.v4.accessibilityservice;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Build.VERSION;
public final class AccessibilityServiceInfoCompat
{
public static final int CAPABILITY_CAN_FILTER_KEY_EVENTS = 8;
public static final int CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY = 4;
public static final int CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION = 2;
public static final int CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT = 1;
public static final int DEFAULT = 1;
public static final int FEEDBACK_ALL_MASK = -1;
public static final int FEEDBACK_BRAILLE = 32;
public static final int FLAG_INCLUDE_NOT_IMPORTANT_VIEWS = 2;
public static final int FLAG_REPORT_VIEW_IDS = 16;
public static final int FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY = 8;
public static final int FLAG_REQUEST_FILTER_KEY_EVENTS = 32;
public static final int FLAG_REQUEST_TOUCH_EXPLORATION_MODE = 4;
private static final e a = new d();
static
{
if (Build.VERSION.SDK_INT >= 18)
{
a = new c();
return;
}
if (Build.VERSION.SDK_INT >= 16)
{
a = new b();
return;
}
if (Build.VERSION.SDK_INT >= 14)
{
a = new a();
return;
}
}
public static String capabilityToString(int paramInt)
{
switch (paramInt)
{
case 3:
case 5:
case 6:
case 7:
default:
return "UNKNOWN";
case 1:
return "CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT";
case 2:
return "CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION";
case 4:
return "CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY";
}
return "CAPABILITY_CAN_FILTER_KEY_EVENTS";
}
public static String feedbackTypeToString(int paramInt)
{
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append("[");
while (paramInt > 0)
{
int i = 1 << Integer.numberOfTrailingZeros(paramInt);
paramInt &= (i ^ 0xFFFFFFFF);
if (localStringBuilder.length() > 1) {
localStringBuilder.append(", ");
}
switch (i)
{
default:
break;
case 1:
localStringBuilder.append("FEEDBACK_SPOKEN");
break;
case 4:
localStringBuilder.append("FEEDBACK_AUDIBLE");
break;
case 2:
localStringBuilder.append("FEEDBACK_HAPTIC");
break;
case 16:
localStringBuilder.append("FEEDBACK_GENERIC");
break;
case 8:
localStringBuilder.append("FEEDBACK_VISUAL");
}
}
localStringBuilder.append("]");
return localStringBuilder.toString();
}
public static String flagToString(int paramInt)
{
switch (paramInt)
{
default:
return null;
case 1:
return "DEFAULT";
case 2:
return "FLAG_INCLUDE_NOT_IMPORTANT_VIEWS";
case 4:
return "FLAG_REQUEST_TOUCH_EXPLORATION_MODE";
case 8:
return "FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY";
case 16:
return "FLAG_REPORT_VIEW_IDS";
}
return "FLAG_REQUEST_FILTER_KEY_EVENTS";
}
public static boolean getCanRetrieveWindowContent(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return a.a(paramAccessibilityServiceInfo);
}
public static int getCapabilities(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return a.f(paramAccessibilityServiceInfo);
}
public static String getDescription(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return a.b(paramAccessibilityServiceInfo);
}
public static String getId(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return a.c(paramAccessibilityServiceInfo);
}
public static ResolveInfo getResolveInfo(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return a.d(paramAccessibilityServiceInfo);
}
public static String getSettingsActivityName(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return a.e(paramAccessibilityServiceInfo);
}
public static String loadDescription(AccessibilityServiceInfo paramAccessibilityServiceInfo, PackageManager paramPackageManager)
{
return a.a(paramAccessibilityServiceInfo, paramPackageManager);
}
static class a
extends AccessibilityServiceInfoCompat.d
{
public final boolean a(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return paramAccessibilityServiceInfo.getCanRetrieveWindowContent();
}
public final String b(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return paramAccessibilityServiceInfo.getDescription();
}
public final String c(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return paramAccessibilityServiceInfo.getId();
}
public final ResolveInfo d(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return paramAccessibilityServiceInfo.getResolveInfo();
}
public final String e(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return paramAccessibilityServiceInfo.getSettingsActivityName();
}
public int f(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
if (paramAccessibilityServiceInfo.getCanRetrieveWindowContent()) {
return 1;
}
return 0;
}
}
static class b
extends AccessibilityServiceInfoCompat.a
{
public final String a(AccessibilityServiceInfo paramAccessibilityServiceInfo, PackageManager paramPackageManager)
{
return paramAccessibilityServiceInfo.loadDescription(paramPackageManager);
}
}
static final class c
extends AccessibilityServiceInfoCompat.b
{
public final int f(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return paramAccessibilityServiceInfo.getCapabilities();
}
}
static class d
implements AccessibilityServiceInfoCompat.e
{
public String a(AccessibilityServiceInfo paramAccessibilityServiceInfo, PackageManager paramPackageManager)
{
return null;
}
public boolean a(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return false;
}
public String b(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return null;
}
public String c(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return null;
}
public ResolveInfo d(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return null;
}
public String e(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return null;
}
public int f(AccessibilityServiceInfo paramAccessibilityServiceInfo)
{
return 0;
}
}
static abstract interface e
{
public abstract String a(AccessibilityServiceInfo paramAccessibilityServiceInfo, PackageManager paramPackageManager);
public abstract boolean a(AccessibilityServiceInfo paramAccessibilityServiceInfo);
public abstract String b(AccessibilityServiceInfo paramAccessibilityServiceInfo);
public abstract String c(AccessibilityServiceInfo paramAccessibilityServiceInfo);
public abstract ResolveInfo d(AccessibilityServiceInfo paramAccessibilityServiceInfo);
public abstract String e(AccessibilityServiceInfo paramAccessibilityServiceInfo);
public abstract int f(AccessibilityServiceInfo paramAccessibilityServiceInfo);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/accessibilityservice/AccessibilityServiceInfoCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/