BitmapCompat.java
2 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
package android.support.v4.graphics;
import android.graphics.Bitmap;
import android.os.Build.VERSION;
public final class BitmapCompat
{
static final b a = new a();
static
{
int i = Build.VERSION.SDK_INT;
if (i >= 19)
{
a = new e();
return;
}
if (i >= 18)
{
a = new d();
return;
}
if (i >= 12)
{
a = new c();
return;
}
}
public static int getAllocationByteCount(Bitmap paramBitmap)
{
return a.b(paramBitmap);
}
public static boolean hasMipMap(Bitmap paramBitmap)
{
return a.a(paramBitmap);
}
public static void setHasMipMap(Bitmap paramBitmap, boolean paramBoolean)
{
a.a(paramBitmap, paramBoolean);
}
static class a
implements BitmapCompat.b
{
public void a(Bitmap paramBitmap, boolean paramBoolean) {}
public boolean a(Bitmap paramBitmap)
{
return false;
}
public int b(Bitmap paramBitmap)
{
return paramBitmap.getRowBytes() * paramBitmap.getHeight();
}
}
static abstract interface b
{
public abstract void a(Bitmap paramBitmap, boolean paramBoolean);
public abstract boolean a(Bitmap paramBitmap);
public abstract int b(Bitmap paramBitmap);
}
static class c
extends BitmapCompat.a
{
public int b(Bitmap paramBitmap)
{
return paramBitmap.getByteCount();
}
}
static class d
extends BitmapCompat.c
{
public final void a(Bitmap paramBitmap, boolean paramBoolean)
{
paramBitmap.setHasMipMap(paramBoolean);
}
public final boolean a(Bitmap paramBitmap)
{
return paramBitmap.hasMipMap();
}
}
static final class e
extends BitmapCompat.d
{
public final int b(Bitmap paramBitmap)
{
return paramBitmap.getAllocationByteCount();
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/graphics/BitmapCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/