ContentResolverCompat.java
2.82 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
package android.support.v4.content;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build.VERSION;
public final class ContentResolverCompat
{
private static final a a = new b();
static
{
if (Build.VERSION.SDK_INT >= 16)
{
a = new c();
return;
}
}
public static Cursor query(ContentResolver paramContentResolver, Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2, android.support.v4.os.CancellationSignal paramCancellationSignal)
{
return a.a(paramContentResolver, paramUri, paramArrayOfString1, paramString1, paramArrayOfString2, paramString2, paramCancellationSignal);
}
static abstract interface a
{
public abstract Cursor a(ContentResolver paramContentResolver, Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2, android.support.v4.os.CancellationSignal paramCancellationSignal);
}
static class b
implements ContentResolverCompat.a
{
public Cursor a(ContentResolver paramContentResolver, Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2, android.support.v4.os.CancellationSignal paramCancellationSignal)
{
if (paramCancellationSignal != null) {
paramCancellationSignal.throwIfCanceled();
}
return paramContentResolver.query(paramUri, paramArrayOfString1, paramString1, paramArrayOfString2, paramString2);
}
}
static final class c
extends ContentResolverCompat.b
{
public final Cursor a(ContentResolver paramContentResolver, Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2, android.support.v4.os.CancellationSignal paramCancellationSignal)
{
if (paramCancellationSignal != null) {}
for (;;)
{
try
{
paramCancellationSignal = paramCancellationSignal.getCancellationSignalObject();
paramContentResolver = paramContentResolver.query(paramUri, paramArrayOfString1, paramString1, paramArrayOfString2, paramString2, (android.os.CancellationSignal)paramCancellationSignal);
return paramContentResolver;
}
catch (Exception paramContentResolver)
{
if (!(paramContentResolver instanceof android.os.OperationCanceledException)) {
continue;
}
throw new android.support.v4.os.OperationCanceledException();
throw paramContentResolver;
}
paramCancellationSignal = null;
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/content/ContentResolverCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/