CursorLoader.java
8.17 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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
package android.support.v4.content;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.support.v4.os.CancellationSignal;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.Arrays;
public class CursorLoader
extends AsyncTaskLoader<Cursor>
{
final Loader<Cursor>.ForceLoadContentObserver f = new Loader.ForceLoadContentObserver(this);
Uri g;
String[] h;
String i;
String[] j;
String k;
Cursor l;
CancellationSignal m;
public CursorLoader(Context paramContext)
{
super(paramContext);
}
public CursorLoader(Context paramContext, Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2)
{
super(paramContext);
this.g = paramUri;
this.h = paramArrayOfString1;
this.i = paramString1;
this.j = paramArrayOfString2;
this.k = paramString2;
}
public void cancelLoadInBackground()
{
super.cancelLoadInBackground();
try
{
if (this.m != null) {
this.m.cancel();
}
return;
}
finally {}
}
public void deliverResult(Cursor paramCursor)
{
if (isReset()) {
if (paramCursor != null) {
paramCursor.close();
}
}
Cursor localCursor;
do
{
return;
localCursor = this.l;
this.l = paramCursor;
if (isStarted()) {
super.deliverResult(paramCursor);
}
} while ((localCursor == null) || (localCursor == paramCursor) || (localCursor.isClosed()));
localCursor.close();
}
public void dump(String paramString, FileDescriptor paramFileDescriptor, PrintWriter paramPrintWriter, String[] paramArrayOfString)
{
super.dump(paramString, paramFileDescriptor, paramPrintWriter, paramArrayOfString);
paramPrintWriter.print(paramString);
paramPrintWriter.print("mUri=");
paramPrintWriter.println(this.g);
paramPrintWriter.print(paramString);
paramPrintWriter.print("mProjection=");
paramPrintWriter.println(Arrays.toString(this.h));
paramPrintWriter.print(paramString);
paramPrintWriter.print("mSelection=");
paramPrintWriter.println(this.i);
paramPrintWriter.print(paramString);
paramPrintWriter.print("mSelectionArgs=");
paramPrintWriter.println(Arrays.toString(this.j));
paramPrintWriter.print(paramString);
paramPrintWriter.print("mSortOrder=");
paramPrintWriter.println(this.k);
paramPrintWriter.print(paramString);
paramPrintWriter.print("mCursor=");
paramPrintWriter.println(this.l);
paramPrintWriter.print(paramString);
paramPrintWriter.print("mContentChanged=");
paramPrintWriter.println(this.u);
}
public String[] getProjection()
{
return this.h;
}
public String getSelection()
{
return this.i;
}
public String[] getSelectionArgs()
{
return this.j;
}
public String getSortOrder()
{
return this.k;
}
public Uri getUri()
{
return this.g;
}
/* Error */
public Cursor loadInBackground()
{
// Byte code:
// 0: aload_0
// 1: monitorenter
// 2: aload_0
// 3: invokevirtual 135 android/support/v4/content/CursorLoader:isLoadInBackgroundCanceled ()Z
// 6: ifeq +16 -> 22
// 9: new 137 android/support/v4/os/OperationCanceledException
// 12: dup
// 13: invokespecial 139 android/support/v4/os/OperationCanceledException:<init> ()V
// 16: athrow
// 17: astore_1
// 18: aload_0
// 19: monitorexit
// 20: aload_1
// 21: athrow
// 22: aload_0
// 23: new 51 android/support/v4/os/CancellationSignal
// 26: dup
// 27: invokespecial 140 android/support/v4/os/CancellationSignal:<init> ()V
// 30: putfield 49 android/support/v4/content/CursorLoader:m Landroid/support/v4/os/CancellationSignal;
// 33: aload_0
// 34: monitorexit
// 35: aload_0
// 36: invokevirtual 144 android/support/v4/content/CursorLoader:getContext ()Landroid/content/Context;
// 39: invokevirtual 150 android/content/Context:getContentResolver ()Landroid/content/ContentResolver;
// 42: aload_0
// 43: getfield 35 android/support/v4/content/CursorLoader:g Landroid/net/Uri;
// 46: aload_0
// 47: getfield 37 android/support/v4/content/CursorLoader:h [Ljava/lang/String;
// 50: aload_0
// 51: getfield 39 android/support/v4/content/CursorLoader:i Ljava/lang/String;
// 54: aload_0
// 55: getfield 41 android/support/v4/content/CursorLoader:j [Ljava/lang/String;
// 58: aload_0
// 59: getfield 43 android/support/v4/content/CursorLoader:k Ljava/lang/String;
// 62: aload_0
// 63: getfield 49 android/support/v4/content/CursorLoader:m Landroid/support/v4/os/CancellationSignal;
// 66: invokestatic 156 android/support/v4/content/ContentResolverCompat:query (Landroid/content/ContentResolver;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Landroid/support/v4/os/CancellationSignal;)Landroid/database/Cursor;
// 69: astore_1
// 70: aload_1
// 71: ifnull +20 -> 91
// 74: aload_1
// 75: invokeinterface 160 1 0
// 80: pop
// 81: aload_1
// 82: aload_0
// 83: getfield 31 android/support/v4/content/CursorLoader:f Landroid/support/v4/content/Loader$ForceLoadContentObserver;
// 86: invokeinterface 164 2 0
// 91: aload_0
// 92: monitorenter
// 93: aload_0
// 94: aconst_null
// 95: putfield 49 android/support/v4/content/CursorLoader:m Landroid/support/v4/os/CancellationSignal;
// 98: aload_0
// 99: monitorexit
// 100: aload_1
// 101: areturn
// 102: astore_2
// 103: aload_1
// 104: invokeinterface 65 1 0
// 109: aload_2
// 110: athrow
// 111: astore_1
// 112: aload_0
// 113: monitorenter
// 114: aload_0
// 115: aconst_null
// 116: putfield 49 android/support/v4/content/CursorLoader:m Landroid/support/v4/os/CancellationSignal;
// 119: aload_0
// 120: monitorexit
// 121: aload_1
// 122: athrow
// 123: astore_1
// 124: aload_0
// 125: monitorexit
// 126: aload_1
// 127: athrow
// 128: astore_1
// 129: aload_0
// 130: monitorexit
// 131: aload_1
// 132: athrow
// Local variable table:
// start length slot name signature
// 0 133 0 this CursorLoader
// 17 4 1 localObject1 Object
// 69 35 1 localCursor Cursor
// 111 11 1 localObject2 Object
// 123 4 1 localObject3 Object
// 128 4 1 localObject4 Object
// 102 8 2 localRuntimeException RuntimeException
// Exception table:
// from to target type
// 2 17 17 finally
// 18 20 17 finally
// 22 35 17 finally
// 74 91 102 java/lang/RuntimeException
// 35 70 111 finally
// 74 91 111 finally
// 103 111 111 finally
// 93 100 123 finally
// 124 126 123 finally
// 114 121 128 finally
// 129 131 128 finally
}
public void onCanceled(Cursor paramCursor)
{
if ((paramCursor != null) && (!paramCursor.isClosed())) {
paramCursor.close();
}
}
protected void onReset()
{
super.onReset();
onStopLoading();
if ((this.l != null) && (!this.l.isClosed())) {
this.l.close();
}
this.l = null;
}
protected void onStartLoading()
{
if (this.l != null) {
deliverResult(this.l);
}
if ((takeContentChanged()) || (this.l == null)) {
forceLoad();
}
}
protected void onStopLoading()
{
cancelLoad();
}
public void setProjection(String[] paramArrayOfString)
{
this.h = paramArrayOfString;
}
public void setSelection(String paramString)
{
this.i = paramString;
}
public void setSelectionArgs(String[] paramArrayOfString)
{
this.j = paramArrayOfString;
}
public void setSortOrder(String paramString)
{
this.k = paramString;
}
public void setUri(Uri paramUri)
{
this.g = paramUri;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/content/CursorLoader.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/