| | | |
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·4765 | 24 | ····.line·4752 |
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·4766 | 27 | ····.line·4753 |
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·4770 | 38 | ····.line·4757 |
39 | ····invoke-static·{p1},·Lcom/android/providers/media/MediaProvider;->access$900(Landroid/net/Uri;)Ljava/lang/String; | 39 | ····invoke-static·{p1},·Lcom/android/providers/media/MediaProvider;->access$900(Landroid/net/Uri;)Ljava/lang/String; |
| |
40 | ····move-result-object·v0 | 40 | ····move-result-object·v0 |
| |
41 | ····.line·4771 | 41 | ····.line·4758 |
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·4772 | 47 | ····.line·4759 |
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·4773 | 75 | ····.line·4760 |
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·4772 | 94 | ····.line·4759 |
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·4783 | 115 | ····.line·4770 |
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·4785 | 119 | ····.line·4772 |
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·4790 | 126 | ····.line·4777 |
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·4791 | 130 | ····.line·4778 |
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·4799 | 134 | ····.line·4786 |
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·4808 | 138 | ····.line·4795 |
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·4810 | 144 | ····.line·4797 |
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·4813 | 148 | ····.line·4800 |
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·4814 | 151 | ····.line·4801 |
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·4815 | 155 | ····.line·4802 |
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·4814 | 159 | ····.line·4801 |
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·4819 | 163 | ····.line·4806 |
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·4821 | 208 | ····.line·4808 |
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·4826 | 211 | ····.line·4813 |
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·4831 | 217 | ····.line·4818 |
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·4832 | 219 | ····.line·4819 |
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·4833 | 221 | ····.line·4820 |
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$1000(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V | 223 | ····invoke-static·{p0,·v2},·Lcom/android/providers/media/MediaProvider;->access$1000(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·4831 | 247 | ····.line·4818 |
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·4832 | 250 | ····.line·4819 |
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·4833 | 252 | ····.line·4820 |
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$1000(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V | 254 | ····invoke-static·{p0,·v2},·Lcom/android/providers/media/MediaProvider;->access$1000(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V |
| |
255 | ····.line·4834 | 255 | ····.line·4821 |
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·4838 | 281 | ····.line·4825 |
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$1000(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V | 285 | ····invoke-static·{v0,·p0},·Lcom/android/providers/media/MediaProvider;->access$1000(Lcom/android/providers/media/MediaProvider;Ljava/io/File;)V |