| | | |
Offset 20, 50 lines modified | Offset 20, 50 lines modified |
20 | .field·final·synthetic·this$0:Lcom/android/providers/media/MediaProvider; | 20 | .field·final·synthetic·this$0:Lcom/android/providers/media/MediaProvider; |
| |
| |
21 | #·direct·methods | 21 | #·direct·methods |
22 | .method·public·constructor·<init>(Lcom/android/providers/media/MediaProvider;Ljava/lang/String;)V | 22 | .method·public·constructor·<init>(Lcom/android/providers/media/MediaProvider;Ljava/lang/String;)V |
23 | ····.locals·0 | 23 | ····.locals·0 |
| |
24 | ····.line·5987 | 24 | ····.line·5968 |
25 | ····iput-object·p1,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; | 25 | ····iput-object·p1,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; |
| |
26 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 26 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
27 | ····.line·5988 | 27 | ····.line·5969 |
28 | ····iput-object·p2,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->directoryName:Ljava/lang/String; | 28 | ····iput-object·p2,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->directoryName:Ljava/lang/String; |
| |
29 | ····return-void | 29 | ····return-void |
30 | .end·method | 30 | .end·method |
| |
31 | .method·private·getThumbnailFile(Landroid/net/Uri;)Ljava/io/File; | 31 | .method·private·getThumbnailFile(Landroid/net/Uri;)Ljava/io/File; |
32 | ····.locals·4 | 32 | ····.locals·4 |
33 | ····.annotation·system·Ldalvik/annotation/Throws; | 33 | ····.annotation·system·Ldalvik/annotation/Throws; |
34 | ········value·=·{ | 34 | ········value·=·{ |
35 | ············Ljava/io/IOException; | 35 | ············Ljava/io/IOException; |
36 | ········} | 36 | ········} |
37 | ····.end·annotation | 37 | ····.end·annotation |
| |
38 | ····.line·5992 | 38 | ····.line·5973 |
39 | ····invoke-static·{p1},·Lcom/android/providers/media/MediaProvider;->access$1100(Landroid/net/Uri;)Ljava/lang/String; | 39 | ····invoke-static·{p1},·Lcom/android/providers/media/MediaProvider;->access$1100(Landroid/net/Uri;)Ljava/lang/String; |
| |
40 | ····move-result-object·v0 | 40 | ····move-result-object·v0 |
| |
41 | ····.line·5993 | 41 | ····.line·5974 |
42 | ····iget-object·v1,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; | 42 | ····iget-object·v1,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; |
| |
43 | ····invoke-virtual·{v1,·v0},·Lcom/android/providers/media/MediaProvider;->getVolumePath(Ljava/lang/String;)Ljava/io/File; | 43 | ····invoke-virtual·{v1,·v0},·Lcom/android/providers/media/MediaProvider;->getVolumePath(Ljava/lang/String;)Ljava/io/File; |
| |
44 | ····move-result-object·v0 | 44 | ····move-result-object·v0 |
| |
45 | ····const/4·v1,·0x3 | 45 | ····const/4·v1,·0x3 |
| |
46 | ····new-array·v1,·v1,·[Ljava/lang/String; | 46 | ····new-array·v1,·v1,·[Ljava/lang/String; |
| |
47 | ····.line·5994 | 47 | ····.line·5975 |
48 | ····iget-object·p0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->directoryName:Ljava/lang/String; | 48 | ····iget-object·p0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->directoryName:Ljava/lang/String; |
| |
49 | ····const/4·v2,·0x0 | 49 | ····const/4·v2,·0x0 |
| |
50 | ····aput-object·p0,·v1,·v2 | 50 | ····aput-object·p0,·v1,·v2 |
| |
51 | ····const/4·p0,·0x1 | 51 | ····const/4·p0,·0x1 |
Offset 72, 15 lines modified | Offset 72, 15 lines modified |
| |
72 | ····aput-object·v2,·v1,·p0 | 72 | ····aput-object·v2,·v1,·p0 |
| |
73 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 73 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| |
74 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 74 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| |
75 | ····.line·5995 | 75 | ····.line·5976 |
76 | ····invoke-static·{p1},·Landroid/content/ContentUris;->parseId(Landroid/net/Uri;)J | 76 | ····invoke-static·{p1},·Landroid/content/ContentUris;->parseId(Landroid/net/Uri;)J |
| |
77 | ····move-result-wide·v2 | 77 | ····move-result-wide·v2 |
| |
78 | ····invoke-virtual·{p0,·v2,·v3},·Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; | 78 | ····invoke-virtual·{p0,·v2,·v3},·Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; |
| |
79 | ····const-string·p1,·".jpg" | 79 | ····const-string·p1,·".jpg" |
Offset 91, 15 lines modified | Offset 91, 15 lines modified |
| |
91 | ····move-result-object·p0 | 91 | ····move-result-object·p0 |
| |
92 | ····const/4·p1,·0x2 | 92 | ····const/4·p1,·0x2 |
| |
93 | ····aput-object·p0,·v1,·p1 | 93 | ····aput-object·p0,·v1,·p1 |
| |
94 | ····.line·5994 | 94 | ····.line·5975 |
95 | ····invoke-static·{v0,·v1},·Lcom/android/providers/media/util/FileUtils;->buildPath(Ljava/io/File;[Ljava/lang/String;)Ljava/io/File; | 95 | ····invoke-static·{v0,·v1},·Lcom/android/providers/media/util/FileUtils;->buildPath(Ljava/io/File;[Ljava/lang/String;)Ljava/io/File; |
| |
96 | ····move-result-object·p0 | 96 | ····move-result-object·p0 |
| |
97 | ····return-object·p0 | 97 | ····return-object·p0 |
98 | .end·method | 98 | .end·method |
| |
Offset 109, 90 lines modified | Offset 109, 90 lines modified |
109 | ····.locals·7 | 109 | ····.locals·7 |
110 | ····.annotation·system·Ldalvik/annotation/Throws; | 110 | ····.annotation·system·Ldalvik/annotation/Throws; |
111 | ········value·=·{ | 111 | ········value·=·{ |
112 | ············Ljava/io/IOException; | 112 | ············Ljava/io/IOException; |
113 | ········} | 113 | ········} |
114 | ····.end·annotation | 114 | ····.end·annotation |
| |
115 | ····.line·6005 | 115 | ····.line·5986 |
116 | ····invoke-direct·{p0,·p1},·Lcom/android/providers/media/MediaProvider$Thumbnailer;->getThumbnailFile(Landroid/net/Uri;)Ljava/io/File; | 116 | ····invoke-direct·{p0,·p1},·Lcom/android/providers/media/MediaProvider$Thumbnailer;->getThumbnailFile(Landroid/net/Uri;)Ljava/io/File; |
| |
117 | ····move-result-object·v0 | 117 | ····move-result-object·v0 |
| |
118 | ····const/high16·v1,·0x10000000 | 118 | ····const/high16·v1,·0x10000000 |
| |
119 | ····.line·6007 | 119 | ····.line·5988 |
120 | ····:try_start_0 | 120 | ····:try_start_0 |
121 | ····invoke-static·{v0,·v1},·Lcom/android/providers/media/util/FileUtils;->openSafely(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; | 121 | ····invoke-static·{v0,·v1},·Lcom/android/providers/media/util/FileUtils;->openSafely(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; |
| |
122 | ····move-result-object·p0 | 122 | ····move-result-object·p0 |
123 | ····:try_end_0 | 123 | ····:try_end_0 |
124 | ····.catch·Ljava/io/FileNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 | 124 | ····.catch·Ljava/io/FileNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
125 | ····return-object·p0 | 125 | ····return-object·p0 |
| |
126 | ····.line·6012 | 126 | ····.line·5993 |
127 | ····:catch_0 | 127 | ····:catch_0 |
128 | ····invoke-virtual·{v0},·Ljava/io/File;->getParentFile()Ljava/io/File; | 128 | ····invoke-virtual·{v0},·Ljava/io/File;->getParentFile()Ljava/io/File; |
| |
129 | ····move-result-object·v2 | 129 | ····move-result-object·v2 |
| |
130 | ····.line·6013 | 130 | ····.line·5994 |
131 | ····invoke-virtual·{v2},·Ljava/io/File;->mkdirs()Z | 131 | ····invoke-virtual·{v2},·Ljava/io/File;->mkdirs()Z |
| |
132 | ····const-string·v3,·"thumb" | 132 | ····const-string·v3,·"thumb" |
| |
133 | ····const/4·v4,·0x0 | 133 | ····const/4·v4,·0x0 |
| |
134 | ····.line·6021 | 134 | ····.line·6002 |
135 | ····invoke-static·{v3,·v4,·v2},·Ljava/io/File;->createTempFile(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File; | 135 | ····invoke-static·{v3,·v4,·v2},·Ljava/io/File;->createTempFile(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File; |
| |
136 | ····move-result-object·v2 | 136 | ····move-result-object·v2 |
| |
137 | ····const/high16·v3,·0x28000000 | 137 | ····const/high16·v3,·0x28000000 |
| |
138 | ····.line·6030 | 138 | ····.line·6011 |
139 | ····:try_start_1 | 139 | ····:try_start_1 |
140 | ····invoke-static·{v2,·v3},·Lcom/android/providers/media/util/FileUtils;->openSafely(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; | 140 | ····invoke-static·{v2,·v3},·Lcom/android/providers/media/util/FileUtils;->openSafely(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; |
| |
141 | ····move-result-object·v3 | 141 | ····move-result-object·v3 |
142 | ····:try_end_1 | 142 | ····:try_end_1 |
143 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_1 | 143 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_1 |
| |
144 | ····.line·6032 | 144 | ····.line·6013 |
145 | ····:try_start_2 | 145 | ····:try_start_2 |
146 | ····invoke-static·{v2,·v1},·Lcom/android/providers/media/util/FileUtils;->openSafely(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; | 146 | ····invoke-static·{v2,·v1},·Lcom/android/providers/media/util/FileUtils;->openSafely(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; |
| |
147 | ····move-result-object·v4 | 147 | ····move-result-object·v4 |
| |
148 | ····.line·6035 | 148 | ····.line·6016 |
149 | ····invoke-virtual·{p0,·p1,·p2},·Lcom/android/providers/media/MediaProvider$Thumbnailer;->getThumbnailBitmap(Landroid/net/Uri;Landroid/os/CancellationSignal;)Landroid/graphics/Bitmap; | 149 | ····invoke-virtual·{p0,·p1,·p2},·Lcom/android/providers/media/MediaProvider$Thumbnailer;->getThumbnailBitmap(Landroid/net/Uri;Landroid/os/CancellationSignal;)Landroid/graphics/Bitmap; |
| |
150 | ····move-result-object·p1 | 150 | ····move-result-object·p1 |
| |
151 | ····.line·6036 | 151 | ····.line·6017 |
152 | ····sget-object·p2,·Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat; | 152 | ····sget-object·p2,·Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat; |
| |
153 | ····const/16·v1,·0x5a | 153 | ····const/16·v1,·0x5a |
| |
154 | ····new-instance·v5,·Ljava/io/FileOutputStream; | 154 | ····new-instance·v5,·Ljava/io/FileOutputStream; |
| |
155 | ····.line·6037 | 155 | ····.line·6018 |
156 | ····invoke-virtual·{v3},·Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor; | 156 | ····invoke-virtual·{v3},·Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor; |
| |
157 | ····move-result-object·v6 | 157 | ····move-result-object·v6 |
| |
158 | ····invoke-direct·{v5,·v6},·Ljava/io/FileOutputStream;-><init>(Ljava/io/FileDescriptor;)V | 158 | ····invoke-direct·{v5,·v6},·Ljava/io/FileOutputStream;-><init>(Ljava/io/FileDescriptor;)V |
| |
159 | ····.line·6036 | 159 | ····.line·6017 |
160 | ····invoke-virtual·{p1,·p2,·v1,·v5},·Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z | 160 | ····invoke-virtual·{p1,·p2,·v1,·v5},·Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z |
161 | ····:try_end_2 | 161 | ····:try_end_2 |
162 | ····.catchall·{:try_start_2·..·:try_end_2}·:catchall_0 | 162 | ····.catchall·{:try_start_2·..·:try_end_2}·:catchall_0 |
| |
163 | ····.line·6041 | 163 | ····.line·6022 |
164 | ····:try_start_3 | 164 | ····:try_start_3 |
165 | ····invoke-virtual·{v2},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; | 165 | ····invoke-virtual·{v2},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
| |
166 | ····move-result-object·p1 | 166 | ····move-result-object·p1 |
| |
167 | ····invoke-virtual·{v0},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; | 167 | ····invoke-virtual·{v0},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
| |
Offset 204, 33 lines modified | Offset 204, 33 lines modified |
204 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_0 | 204 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_0 |
| |
205 | ····goto·:goto_0 | 205 | ····goto·:goto_0 |
| |
206 | ····:catch_1 | 206 | ····:catch_1 |
207 | ····move-exception·p1 | 207 | ····move-exception·p1 |
| |
208 | ····.line·6043 | 208 | ····.line·6024 |
209 | ····:try_start_4 | 209 | ····:try_start_4 |
210 | ····invoke-virtual·{p1},·Landroid/system/ErrnoException;->rethrowAsIOException()Ljava/io/IOException; | 210 | ····invoke-virtual·{p1},·Landroid/system/ErrnoException;->rethrowAsIOException()Ljava/io/IOException; |
| |
211 | ····.line·6048 | 211 | ····.line·6029 |
212 | ····:goto_0 | 212 | ····:goto_0 |
213 | ····invoke-virtual·{v4},·Landroid/os/ParcelFileDescriptor;->dup()Landroid/os/ParcelFileDescriptor; | 213 | ····invoke-virtual·{v4},·Landroid/os/ParcelFileDescriptor;->dup()Landroid/os/ParcelFileDescriptor; |
| |
214 | ····move-result-object·p1 | 214 | ····move-result-object·p1 |
215 | ····:try_end_4 | 215 | ····:try_end_4 |
216 | ····.catchall·{:try_start_4·..·:try_end_4}·:catchall_0 | 216 | ····.catchall·{:try_start_4·..·:try_end_4}·:catchall_0 |
| |
217 | ····.line·6053 | 217 | ····.line·6034 |
218 | ····invoke-static·{v3},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V | 218 | ····invoke-static·{v3},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V |
| |
219 | ····.line·6054 | 219 | ····.line·6035 |
220 | ····invoke-static·{v4},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V | 220 | ····invoke-static·{v4},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V |
| |
221 | ····.line·6055 | 221 | ····.line·6036 |
222 | ····iget-object·p0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; | 222 | ····iget-object·p0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; |
| |
223 | ····invoke-static·{p0,·v2},·Lcom/android/providers/media/MediaProvider;->access$1200(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V | 223 | ····invoke-static·{p0,·v2},·Lcom/android/providers/media/MediaProvider;->access$1200(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V |
| |
224 | ····return-object·p1 | 224 | ····return-object·p1 |
| |
225 | ····:catchall_0 | 225 | ····:catchall_0 |
Offset 243, 27 lines modified | Offset 243, 27 lines modified |
243 | ····goto·:goto_1 | 243 | ····goto·:goto_1 |
| |
244 | ····:catchall_1 | 244 | ····:catchall_1 |
245 | ····move-exception·p1 | 245 | ····move-exception·p1 |
| |
246 | ····move-object·p2,·v4 | 246 | ····move-object·p2,·v4 |
| |
247 | ····.line·6053 | 247 | ····.line·6034 |
248 | ····:goto_1 | 248 | ····:goto_1 |
249 | ····invoke-static·{v4},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V | 249 | ····invoke-static·{v4},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V |
| |
250 | ····.line·6054 | 250 | ····.line·6035 |
251 | ····invoke-static·{p2},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V | 251 | ····invoke-static·{p2},·Lcom/android/providers/media/util/FileUtils;->closeQuietly(Ljava/lang/AutoCloseable;)V |
| |
252 | ····.line·6055 | 252 | ····.line·6036 |
253 | ····iget-object·p0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; | 253 | ····iget-object·p0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; |
| |
254 | ····invoke-static·{p0,·v2},·Lcom/android/providers/media/MediaProvider;->access$1200(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V | 254 | ····invoke-static·{p0,·v2},·Lcom/android/providers/media/MediaProvider;->access$1200(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V |
| |
255 | ····.line·6056 | 255 | ····.line·6037 |
256 | ····throw·p1 | 256 | ····throw·p1 |
257 | .end·method | 257 | .end·method |
| |
258 | .method·public·abstract·getThumbnailBitmap(Landroid/net/Uri;Landroid/os/CancellationSignal;)Landroid/graphics/Bitmap; | 258 | .method·public·abstract·getThumbnailBitmap(Landroid/net/Uri;Landroid/os/CancellationSignal;)Landroid/graphics/Bitmap; |
259 | ····.annotation·system·Ldalvik/annotation/Throws; | 259 | ····.annotation·system·Ldalvik/annotation/Throws; |
260 | ········value·=·{ | 260 | ········value·=·{ |
261 | ············Ljava/io/IOException; | 261 | ············Ljava/io/IOException; |
Offset 275, 15 lines modified | Offset 275, 15 lines modified |
275 | ····.locals·1 | 275 | ····.locals·1 |
276 | ····.annotation·system·Ldalvik/annotation/Throws; | 276 | ····.annotation·system·Ldalvik/annotation/Throws; |
277 | ········value·=·{ | 277 | ········value·=·{ |
278 | ············Ljava/io/IOException; | 278 | ············Ljava/io/IOException; |
279 | ········} | 279 | ········} |
280 | ····.end·annotation | 280 | ····.end·annotation |
| |
281 | ····.line·6060 | 281 | ····.line·6041 |
282 | ····iget-object·v0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; | 282 | ····iget-object·v0,·p0,·Lcom/android/providers/media/MediaProvider$Thumbnailer;->this$0:Lcom/android/providers/media/MediaProvider; |
| |
283 | ····invoke-direct·{p0,·p1},·Lcom/android/providers/media/MediaProvider$Thumbnailer;->getThumbnailFile(Landroid/net/Uri;)Ljava/io/File; | 283 | ····invoke-direct·{p0,·p1},·Lcom/android/providers/media/MediaProvider$Thumbnailer;->getThumbnailFile(Landroid/net/Uri;)Ljava/io/File; |
| |
284 | ····move-result-object·p0 | 284 | ····move-result-object·p0 |
| |
285 | ····invoke-static·{v0,·p0},·Lcom/android/providers/media/MediaProvider;->access$1200(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V | 285 | ····invoke-static·{v0,·p0},·Lcom/android/providers/media/MediaProvider;->access$1200(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V |