| | | |
Offset 41, 24 lines modified | Offset 41, 14 lines modified |
41 | ····.end·annotation | 41 | ····.end·annotation |
42 | .end·field | 42 | .end·field |
| |
43 | .field·private·final·mClient:Landroid/content/ContentProviderClient; | 43 | .field·private·final·mClient:Landroid/content/ContentProviderClient; |
| |
44 | .field·private·mDeleteCount:I | 44 | .field·private·mDeleteCount:I |
| |
45 | .field·private·final·mExcludeDirs:Ljava/util/List; | |
46 | ····.annotation·system·Ldalvik/annotation/Signature; | |
47 | ········value·=·{ | |
48 | ············"Ljava/util/List<", | |
49 | ············"Ljava/lang/String;", | |
50 | ············">;" | |
51 | ········} | |
52 | ····.end·annotation | |
53 | .end·field | |
| |
54 | .field·private·mFileCount:I | 45 | .field·private·mFileCount:I |
| |
55 | .field·private·final·mFilesUri:Landroid/net/Uri; | 46 | .field·private·final·mFilesUri:Landroid/net/Uri; |
| |
56 | .field·private·mFirstId:J | 47 | .field·private·mFirstId:J |
| |
57 | .field·private·mHiddenDirCount:I | 48 | .field·private·mHiddenDirCount:I |
Offset 99, 351 lines modified | Offset 89, 274 lines modified |
| |
99 | .field·final·synthetic·this$0:Lcom/android/providers/media/scan/ModernMediaScanner; | 89 | .field·final·synthetic·this$0:Lcom/android/providers/media/scan/ModernMediaScanner; |
| |
| |
100 | #·direct·methods | 90 | #·direct·methods |
101 | .method·public·constructor·<init>(Lcom/android/providers/media/scan/ModernMediaScanner;Ljava/io/File;ILjava/lang/String;)V | 91 | .method·public·constructor·<init>(Lcom/android/providers/media/scan/ModernMediaScanner;Ljava/io/File;ILjava/lang/String;)V |
102 | ····.locals·2 | 92 | ····.locals·2 |
103 | ····.annotation·system·Ldalvik/annotation/Throws; | |
104 | ········value·=·{ | |
105 | ············Ljava/io/FileNotFoundException; | |
106 | ········} | |
107 | ····.end·annotation | |
| |
108 | ····.line·341 | 93 | ····.line·303 |
109 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; | 94 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; |
| |
110 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 95 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
111 | ····.line·322 | 96 | ····.line·285 |
112 | ····new-instance·v0,·Landroid/util/ArraySet; | 97 | ····new-instance·v0,·Landroid/util/ArraySet; |
| |
113 | ····invoke-direct·{v0},·Landroid/util/ArraySet;-><init>()V | 98 | ····invoke-direct·{v0},·Landroid/util/ArraySet;-><init>()V |
| |
114 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mAcquiredDirectoryLocks:Ljava/util/Set; | 99 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mAcquiredDirectoryLocks:Ljava/util/Set; |
| |
115 | ····.line·323 | 100 | ····.line·286 |
116 | ····new-instance·v0,·Ljava/util/ArrayList; | 101 | ····new-instance·v0,·Ljava/util/ArrayList; |
| |
117 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | 102 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V |
| |
118 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 103 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
119 | ····.line·324 | 104 | ····.line·287 |
120 | ····new-instance·v0,·Lcom/android/providers/media/util/LongArray; | 105 | ····new-instance·v0,·Lcom/android/providers/media/util/LongArray; |
| |
121 | ····invoke-direct·{v0},·Lcom/android/providers/media/util/LongArray;-><init>()V | 106 | ····invoke-direct·{v0},·Lcom/android/providers/media/util/LongArray;-><init>()V |
| |
122 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mScannedIds:Lcom/android/providers/media/util/LongArray; | 107 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mScannedIds:Lcom/android/providers/media/util/LongArray; |
| |
123 | ····.line·325 | 108 | ····.line·288 |
124 | ····new-instance·v0,·Lcom/android/providers/media/util/LongArray; | 109 | ····new-instance·v0,·Lcom/android/providers/media/util/LongArray; |
| |
125 | ····invoke-direct·{v0},·Lcom/android/providers/media/util/LongArray;-><init>()V | 110 | ····invoke-direct·{v0},·Lcom/android/providers/media/util/LongArray;-><init>()V |
| |
126 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; | 111 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; |
| |
127 | ····const-wide/16·v0,·-0x1 | 112 | ····const-wide/16·v0,·-0x1 |
| |
128 | ····.line·327 | 113 | ····.line·290 |
129 | ····iput-wide·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFirstId:J | 114 | ····iput-wide·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFirstId:J |
| |
130 | ····const-string·v0,·"ctor" | 115 | ····const-string·v0,·"ctor" |
| |
131 | ····.line·342 | 116 | ····.line·304 |
132 | ····invoke-static·{v0},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V | 117 | ····invoke-static·{v0},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V |
| |
133 | ····.line·344 | 118 | ····.line·306 |
134 | ····invoke-static·{p1},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$300(Lcom/android/providers/media/scan/ModernMediaScanner;)Landroid/content/Context; | 119 | ····invoke-static·{p1},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$000(Lcom/android/providers/media/scan/ModernMediaScanner;)Landroid/content/Context; |
| |
135 | ····move-result-object·v0 | 120 | ····move-result-object·v0 |
| |
136 | ····invoke-virtual·{v0},·Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | 121 | ····invoke-virtual·{v0},·Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; |
| |
137 | ····move-result-object·v0 | 122 | ····move-result-object·v0 |
| |
138 | ····const-string·v1,·"media" | 123 | ····const-string·v1,·"media" |
| |
139 | ····.line·345 | 124 | ····.line·307 |
140 | ····invoke-virtual·{v0,·v1},·Landroid/content/ContentResolver;->acquireContentProviderClient(Ljava/lang/String;)Landroid/content/ContentProviderClient; | 125 | ····invoke-virtual·{v0,·v1},·Landroid/content/ContentResolver;->acquireContentProviderClient(Ljava/lang/String;)Landroid/content/ContentProviderClient; |
| |
141 | ····move-result-object·v0 | 126 | ····move-result-object·v0 |
| |
142 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mClient:Landroid/content/ContentProviderClient; | 127 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mClient:Landroid/content/ContentProviderClient; |
| |
143 | ····.line·346 | 128 | ····.line·308 |
144 | ····invoke-virtual·{v0},·Landroid/content/ContentProviderClient;->getLocalContentProvider()Landroid/content/ContentProvider; | 129 | ····invoke-virtual·{v0},·Landroid/content/ContentProviderClient;->getLocalContentProvider()Landroid/content/ContentProvider; |
| |
145 | ····move-result-object·v0 | 130 | ····move-result-object·v0 |
| |
146 | ····invoke-static·{v0},·Landroid/content/ContentResolver;->wrap(Landroid/content/ContentProvider;)Landroid/content/ContentResolver; | 131 | ····invoke-static·{v0},·Landroid/content/ContentResolver;->wrap(Landroid/content/ContentProvider;)Landroid/content/ContentResolver; |
| |
147 | ····move-result-object·v0 | 132 | ····move-result-object·v0 |
| |
148 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; | 133 | ····iput-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; |
| |
149 | ····.line·348 | 134 | ····.line·310 |
150 | ····iput-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mRoot:Ljava/io/File; | 135 | ····iput-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mRoot:Ljava/io/File; |
| |
151 | ····.line·349 | 136 | ····.line·311 |
152 | ····iput·p3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mReason:I | 137 | ····iput·p3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mReason:I |
| |
153 | ····.line·350 | 138 | ····.line·312 |
154 | ····invoke-static·{p1},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$300(Lcom/android/providers/media/scan/ModernMediaScanner;)Landroid/content/Context; | 139 | ····invoke-static·{p1},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$000(Lcom/android/providers/media/scan/ModernMediaScanner;)Landroid/content/Context; |
| |
155 | ····move-result-object·p1 | 140 | ····move-result-object·p3 |
| |
156 | ····invoke-static·{p1,·p2},·Lcom/android/providers/media/util/FileUtils;->getVolumeName(Landroid/content/Context;Ljava/io/File;)Ljava/lang/String; | 141 | ····invoke-static·{p3,·p2},·Lcom/android/providers/media/util/FileUtils;->getVolumeName(Landroid/content/Context;Ljava/io/File;)Ljava/lang/String; |
| |
157 | ····move-result-object·p1 | 142 | ····move-result-object·p2 |
| |
158 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; | 143 | ····iput-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; |
| |
159 | ····.line·351 | 144 | ····.line·313 |
160 | ····invoke-static·{p1},·Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri; | 145 | ····invoke-static·{p2},·Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri; |
| |
161 | ····move-result-object·p1 | 146 | ····move-result-object·p2 |
| |
162 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFilesUri:Landroid/net/Uri; | 147 | ····iput-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFilesUri:Landroid/net/Uri; |
| |
163 | ····.line·352 | 148 | ····.line·314 |
164 | ····new-instance·p1,·Landroid/os/CancellationSignal; | 149 | ····iget-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; |
| |
| 150 | ····invoke-static·{p1,·p2},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$100(Lcom/android/providers/media/scan/ModernMediaScanner;Ljava/lang/String;)Landroid/os/CancellationSignal; |
| |
165 | ····invoke-direct·{p1},·Landroid/os/CancellationSignal;-><init>()V | 151 | ····move-result-object·p1 |
| |
166 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; | 152 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; |
| |
167 | ····.line·354 | 153 | ····.line·316 |
168 | ····iget-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; | 154 | ····iget-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; |
| |
169 | ····iget-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; | 155 | ····iget-object·p2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; |
| |
170 | ····invoke-static·{p1,·p2},·Landroid/provider/MediaStore;->getGeneration(Landroid/content/ContentResolver;Ljava/lang/String;)J | 156 | ····invoke-static·{p1,·p2},·Landroid/provider/MediaStore;->getGeneration(Landroid/content/ContentResolver;Ljava/lang/String;)J |
| |
171 | ····move-result-wide·p1 | 157 | ····move-result-wide·p1 |
| |
172 | ····iput-wide·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mStartGeneration:J | 158 | ····iput-wide·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mStartGeneration:J |
| |
173 | ····.line·355 | 159 | ····.line·317 |
174 | ····iget-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mRoot:Ljava/io/File; | 160 | ····iget-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mRoot:Ljava/io/File; |
| |
175 | ····invoke-virtual·{p1},·Ljava/io/File;->isFile()Z | 161 | ····invoke-virtual·{p1},·Ljava/io/File;->isFile()Z |
| |
176 | ····move-result·p1 | 162 | ····move-result·p1 |
| |
177 | ····iput-boolean·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSingleFile:Z | 163 | ····iput-boolean·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSingleFile:Z |
| |
178 | ····.line·356 | 164 | ····.line·318 |
179 | ····iput-object·p4,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mOwnerPackage:Ljava/lang/String; | 165 | ····iput-object·p4,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mOwnerPackage:Ljava/lang/String; |
| |
180 | ····.line·357 | 166 | ····.line·320 |
181 | ····new-instance·p1,·Ljava/util/ArrayList; | |
| |
182 | ····invoke-direct·{p1},·Ljava/util/ArrayList;-><init>()V | |
| |
183 | ····iput-object·p1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mExcludeDirs:Ljava/util/List; | |
| |
184 | ····.line·359 | |
185 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 167 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
186 | ····return-void | 168 | ····return-void |
187 | .end·method | 169 | .end·method |
| |
188 | .method·static·synthetic·access$000(Lcom/android/providers/media/scan/ModernMediaScanner$Scan;)Ljava/lang/String; | |
189 | ····.locals·0 | |
| |
190 | ····.line·308 | |
191 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; | |
| |
192 | ····return-object·p0 | |
193 | .end·method | |
| |
194 | .method·static·synthetic·access$100(Lcom/android/providers/media/scan/ModernMediaScanner$Scan;)Landroid/os/CancellationSignal; | |
195 | ····.locals·0 | |
| |
196 | ····.line·308 | |
197 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; | |
| |
198 | ····return-object·p0 | |
199 | .end·method | |
| |
200 | .method·static·synthetic·access$200(Lcom/android/providers/media/scan/ModernMediaScanner$Scan;)I | |
201 | ····.locals·0 | |
| |
202 | ····.line·308 | |
203 | ····iget·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mReason:I | |
| |
204 | ····return·p0 | |
205 | .end·method | |
| |
206 | .method·private·acquireDirectoryLock(Ljava/nio/file/Path;)V | 170 | .method·private·acquireDirectoryLock(Ljava/nio/file/Path;)V |
207 | ····.locals·3 | 171 | ····.locals·3 |
| |
208 | ····const-string·v0,·"acquireDirectoryLock" | 172 | ····const-string·v0,·"acquireDirectoryLock" |
| |
209 | ····.line·561 | 173 | ····.line·468 |
210 | ····invoke-static·{v0},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V | 174 | ····invoke-static·{v0},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V |
| |
211 | ····.line·563 | 175 | ····.line·470 |
212 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; | 176 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; |
| |
213 | ····invoke-static·{v0},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$700(Lcom/android/providers/media/scan/ModernMediaScanner;)Ljava/util/Map; | 177 | ····invoke-static·{v0},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$300(Lcom/android/providers/media/scan/ModernMediaScanner;)Ljava/util/Map; |
| |
214 | ····move-result-object·v0 | 178 | ····move-result-object·v0 |
| |
215 | ····monitor-enter·v0 | 179 | ····monitor-enter·v0 |
| |
216 | ····.line·564 | 180 | ····.line·471 |
217 | ····:try_start_0 | 181 | ····:try_start_0 |
218 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; | 182 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; |
| |
219 | ····invoke-static·{v1},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$700(Lcom/android/providers/media/scan/ModernMediaScanner;)Ljava/util/Map; | 183 | ····invoke-static·{v1},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$300(Lcom/android/providers/media/scan/ModernMediaScanner;)Ljava/util/Map; |
| |
220 | ····move-result-object·v1 | 184 | ····move-result-object·v1 |
| |
221 | ····invoke-interface·{v1,·p1},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; | 185 | ····invoke-interface·{v1,·p1},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; |
| |
222 | ····move-result-object·v1 | 186 | ····move-result-object·v1 |
| |
223 | ····check-cast·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock; | 187 | ····check-cast·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock; |
| |
224 | ····if-nez·v1,·:cond_0 | 188 | ····if-nez·v1,·:cond_0 |
| |
225 | ····.line·566 | 189 | ····.line·473 |
226 | ····new-instance·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock; | 190 | ····new-instance·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock; |
| |
227 | ····const/4·v2,·0x0 | 191 | ····const/4·v2,·0x0 |
| |
228 | ····invoke-direct·{v1,·v2},·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;-><init>(Lcom/android/providers/media/scan/ModernMediaScanner$1;)V | 192 | ····invoke-direct·{v1,·v2},·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;-><init>(Lcom/android/providers/media/scan/ModernMediaScanner$1;)V |
| |
229 | ····.line·567 | 193 | ····.line·474 |
230 | ····iget-object·v2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; | 194 | ····iget-object·v2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->this$0:Lcom/android/providers/media/scan/ModernMediaScanner; |
| |
231 | ····invoke-static·{v2},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$700(Lcom/android/providers/media/scan/ModernMediaScanner;)Ljava/util/Map; | 195 | ····invoke-static·{v2},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$300(Lcom/android/providers/media/scan/ModernMediaScanner;)Ljava/util/Map; |
| |
232 | ····move-result-object·v2 | 196 | ····move-result-object·v2 |
| |
233 | ····invoke-interface·{v2,·p1,·v1},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; | 197 | ····invoke-interface·{v2,·p1,·v1},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
| |
234 | ····.line·569 | 198 | ····.line·476 |
235 | ····:cond_0 | 199 | ····:cond_0 |
236 | ····iget·v2,·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;->count:I | 200 | ····iget·v2,·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;->count:I |
| |
237 | ····add-int/lit8·v2,·v2,·0x1 | 201 | ····add-int/lit8·v2,·v2,·0x1 |
| |
238 | ····iput·v2,·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;->count:I | 202 | ····iput·v2,·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;->count:I |
| |
239 | ····.line·570 | 203 | ····.line·477 |
240 | ····monitor-exit·v0 | 204 | ····monitor-exit·v0 |
241 | ····:try_end_0 | 205 | ····:try_end_0 |
242 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 206 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
243 | ····.line·571 | 207 | ····.line·478 |
244 | ····iget-object·v0,·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;->lock:Ljava/util/concurrent/locks/Lock; | 208 | ····iget-object·v0,·v1,·Lcom/android/providers/media/scan/ModernMediaScanner$DirectoryLock;->lock:Ljava/util/concurrent/locks/Lock; |
| |
245 | ····invoke-interface·{v0},·Ljava/util/concurrent/locks/Lock;->lock()V | 209 | ····invoke-interface·{v0},·Ljava/util/concurrent/locks/Lock;->lock()V |
| |
246 | ····.line·572 | 210 | ····.line·479 |
247 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mAcquiredDirectoryLocks:Ljava/util/Set; | 211 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mAcquiredDirectoryLocks:Ljava/util/Set; |
| |
248 | ····invoke-interface·{p0,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 212 | ····invoke-interface·{p0,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
249 | ····.line·573 | 213 | ····.line·480 |
250 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 214 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
251 | ····return-void | 215 | ····return-void |
| |
252 | ····:catchall_0 | 216 | ····:catchall_0 |
253 | ····move-exception·p0 | 217 | ····move-exception·p0 |
| |
254 | ····.line·570 | 218 | ····.line·477 |
255 | ····:try_start_1 | 219 | ····:try_start_1 |
256 | ····monitor-exit·v0 | 220 | ····monitor-exit·v0 |
257 | ····:try_end_1 | 221 | ····:try_end_1 |
258 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 | 222 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 |
| |
259 | ····throw·p0 | 223 | ····throw·p0 |
260 | .end·method | 224 | .end·method |
| |
261 | .method·private·addEscapedAndExpandedPath(Ljava/lang/String;Ljava/util/List;)V | |
262 | ····.locals·1 | |
263 | ····.annotation·system·Ldalvik/annotation/Signature; | |
264 | ········value·=·{ | |
265 | ············"(", | |
266 | ············"Ljava/lang/String;", | |
267 | ············"Ljava/util/List<", | |
268 | ············"Ljava/lang/String;", | |
269 | ············">;)V" | |
270 | ········} | |
271 | ····.end·annotation | |
| |
272 | ····.line·455 | |
273 | ····invoke-static·{p1},·Lcom/android/providers/media/util/DatabaseUtils;->escapeForLike(Ljava/lang/String;)Ljava/lang/String; | |
| |
274 | ····move-result-object·p0 | |
| |
275 | ····.line·456 | |
276 | ····new-instance·p1,·Ljava/lang/StringBuilder; | |
| |
277 | ····invoke-direct·{p1},·Ljava/lang/StringBuilder;-><init>()V | |
| |
278 | ····invoke-virtual·{p1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
279 | ····const-string·v0,·"/%" | |
| |
280 | ····invoke-virtual·{p1,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
281 | ····invoke-virtual·{p1},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | |
| |
282 | ····move-result-object·p1 | |
| |
283 | ····invoke-interface·{p2,·p1},·Ljava/util/List;->add(Ljava/lang/Object;)Z | |
| |
284 | ····.line·457 | |
285 | ····invoke-interface·{p2,·p0},·Ljava/util/List;->add(Ljava/lang/Object;)Z | |
| |
286 | ····return-void | |
287 | .end·method | |
| |
288 | .method·private·addPending(Landroid/content/ContentProviderOperation;)V | 225 | .method·private·addPending(Landroid/content/ContentProviderOperation;)V |
289 | ····.locals·1 | 226 | ····.locals·1 |
| |
290 | ····.line·788 | 227 | ····.line·680 |
291 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 228 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
292 | ····invoke-virtual·{v0,·p1},·Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z | 229 | ····invoke-virtual·{v0,·p1},·Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z |
| |
293 | ····.line·790 | 230 | ····.line·682 |
294 | ····invoke-virtual·{p1},·Landroid/content/ContentProviderOperation;->isInsert()Z | 231 | ····invoke-virtual·{p1},·Landroid/content/ContentProviderOperation;->isInsert()Z |
| |
295 | ····move-result·v0 | 232 | ····move-result·v0 |
| |
296 | ····if-eqz·v0,·:cond_0 | 233 | ····if-eqz·v0,·:cond_0 |
| |
297 | ····iget·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mInsertCount:I | 234 | ····iget·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mInsertCount:I |
| |
298 | ····add-int/lit8·v0,·v0,·0x1 | 235 | ····add-int/lit8·v0,·v0,·0x1 |
| |
299 | ····iput·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mInsertCount:I | 236 | ····iput·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mInsertCount:I |
| |
300 | ····.line·791 | 237 | ····.line·683 |
301 | ····:cond_0 | 238 | ····:cond_0 |
302 | ····invoke-virtual·{p1},·Landroid/content/ContentProviderOperation;->isUpdate()Z | 239 | ····invoke-virtual·{p1},·Landroid/content/ContentProviderOperation;->isUpdate()Z |
| |
303 | ····move-result·v0 | 240 | ····move-result·v0 |
| |
304 | ····if-eqz·v0,·:cond_1 | 241 | ····if-eqz·v0,·:cond_1 |
| |
305 | ····iget·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUpdateCount:I | 242 | ····iget·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUpdateCount:I |
| |
306 | ····add-int/lit8·v0,·v0,·0x1 | 243 | ····add-int/lit8·v0,·v0,·0x1 |
| |
307 | ····iput·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUpdateCount:I | 244 | ····iput·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUpdateCount:I |
| |
308 | ····.line·792 | 245 | ····.line·684 |
309 | ····:cond_1 | 246 | ····:cond_1 |
310 | ····invoke-virtual·{p1},·Landroid/content/ContentProviderOperation;->isDelete()Z | 247 | ····invoke-virtual·{p1},·Landroid/content/ContentProviderOperation;->isDelete()Z |
| |
311 | ····move-result·p1 | 248 | ····move-result·p1 |
| |
312 | ····if-eqz·p1,·:cond_2 | 249 | ····if-eqz·p1,·:cond_2 |
| |
Offset 458, 69 lines modified | Offset 371, 69 lines modified |
458 | .end·method | 371 | .end·method |
| |
459 | .method·private·applyPending()V | 372 | .method·private·applyPending()V |
460 | ····.locals·9 | 373 | ····.locals·9 |
| |
461 | ····const-string·v0,·"ModernMediaScanner" | 374 | ····const-string·v0,·"ModernMediaScanner" |
| |
462 | ····.line·803 | 375 | ····.line·695 |
463 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 376 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
464 | ····invoke-virtual·{v1},·Ljava/util/ArrayList;->isEmpty()Z | 377 | ····invoke-virtual·{v1},·Ljava/util/ArrayList;->isEmpty()Z |
| |
465 | ····move-result·v1 | 378 | ····move-result·v1 |
| |
466 | ····if-eqz·v1,·:cond_0 | 379 | ····if-eqz·v1,·:cond_0 |
| |
467 | ····return-void | 380 | ····return-void |
| |
468 | ····:cond_0 | 381 | ····:cond_0 |
469 | ····const-string·v1,·"applyPending" | 382 | ····const-string·v1,·"applyPending" |
| |
470 | ····.line·805 | 383 | ····.line·697 |
471 | ····invoke-static·{v1},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V | 384 | ····invoke-static·{v1},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V |
| |
472 | ····.line·807 | 385 | ····.line·699 |
473 | ····:try_start_0 | 386 | ····:try_start_0 |
474 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; | 387 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; |
| |
475 | ····const-string·v2,·"media" | 388 | ····const-string·v2,·"media" |
| |
476 | ····iget-object·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 389 | ····iget-object·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
477 | ····invoke-virtual·{v1,·v2,·v3},·Landroid/content/ContentResolver;->applyBatch(Ljava/lang/String;Ljava/util/ArrayList;)[Landroid/content/ContentProviderResult; | 390 | ····invoke-virtual·{v1,·v2,·v3},·Landroid/content/ContentResolver;->applyBatch(Ljava/lang/String;Ljava/util/ArrayList;)[Landroid/content/ContentProviderResult; |
| |
478 | ····move-result-object·v1 | 391 | ····move-result-object·v1 |
| |
479 | ····const/4·v2,·0x0 | 392 | ····const/4·v2,·0x0 |
| |
480 | ····.line·808 | 393 | ····.line·700 |
481 | ····:goto_0 | 394 | ····:goto_0 |
482 | ····array-length·v3,·v1 | 395 | ····array-length·v3,·v1 |
| |
483 | ····if-ge·v2,·v3,·:cond_4 | 396 | ····if-ge·v2,·v3,·:cond_4 |
| |
484 | ····.line·809 | 397 | ····.line·701 |
485 | ····aget-object·v3,·v1,·v2 | 398 | ····aget-object·v3,·v1,·v2 |
| |
486 | ····.line·810 | 399 | ····.line·702 |
487 | ····iget-object·v4,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 400 | ····iget-object·v4,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
488 | ····invoke-virtual·{v4,·v2},·Ljava/util/ArrayList;->get(I)Ljava/lang/Object; | 401 | ····invoke-virtual·{v4,·v2},·Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
| |
489 | ····move-result-object·v4 | 402 | ····move-result-object·v4 |
| |
490 | ····check-cast·v4,·Landroid/content/ContentProviderOperation; | 403 | ····check-cast·v4,·Landroid/content/ContentProviderOperation; |
| |
491 | ····.line·812 | 404 | ····.line·704 |
492 | ····iget-object·v5,·v3,·Landroid/content/ContentProviderResult;->exception:Ljava/lang/Throwable; | 405 | ····iget-object·v5,·v3,·Landroid/content/ContentProviderResult;->exception:Ljava/lang/Throwable; |
| |
493 | ····if-eqz·v5,·:cond_1 | 406 | ····if-eqz·v5,·:cond_1 |
| |
494 | ····.line·813 | 407 | ····.line·705 |
495 | ····new-instance·v5,·Ljava/lang/StringBuilder; | 408 | ····new-instance·v5,·Ljava/lang/StringBuilder; |
| |
496 | ····invoke-direct·{v5},·Ljava/lang/StringBuilder;-><init>()V | 409 | ····invoke-direct·{v5},·Ljava/lang/StringBuilder;-><init>()V |
| |
497 | ····const-string·v6,·"Failed·to·apply·" | 410 | ····const-string·v6,·"Failed·to·apply·" |
| |
498 | ····invoke-virtual·{v5,·v6},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 411 | ····invoke-virtual·{v5,·v6},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 531, 38 lines modified | Offset 444, 38 lines modified |
| |
531 | ····move-result-object·v4 | 444 | ····move-result-object·v4 |
| |
532 | ····iget-object·v5,·v3,·Landroid/content/ContentProviderResult;->exception:Ljava/lang/Throwable; | 445 | ····iget-object·v5,·v3,·Landroid/content/ContentProviderResult;->exception:Ljava/lang/Throwable; |
| |
533 | ····invoke-static·{v0,·v4,·v5},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 446 | ····invoke-static·{v0,·v4,·v5},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
534 | ····.line·816 | 447 | ····.line·708 |
535 | ····:cond_1 | 448 | ····:cond_1 |
536 | ····iget-object·v3,·v3,·Landroid/content/ContentProviderResult;->uri:Landroid/net/Uri; | 449 | ····iget-object·v3,·v3,·Landroid/content/ContentProviderResult;->uri:Landroid/net/Uri; |
| |
537 | ····if-eqz·v3,·:cond_3 | 450 | ····if-eqz·v3,·:cond_3 |
| |
538 | ····.line·818 | 451 | ····.line·710 |
539 | ····invoke-static·{v3},·Landroid/content/ContentUris;->parseId(Landroid/net/Uri;)J | 452 | ····invoke-static·{v3},·Landroid/content/ContentUris;->parseId(Landroid/net/Uri;)J |
| |
540 | ····move-result-wide·v3 | 453 | ····move-result-wide·v3 |
| |
541 | ····.line·819 | 454 | ····.line·711 |
542 | ····iget-wide·v5,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFirstId:J | 455 | ····iget-wide·v5,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFirstId:J |
| |
543 | ····const-wide/16·v7,·-0x1 | 456 | ····const-wide/16·v7,·-0x1 |
| |
544 | ····cmp-long·v5,·v5,·v7 | 457 | ····cmp-long·v5,·v5,·v7 |
| |
545 | ····if-nez·v5,·:cond_2 | 458 | ····if-nez·v5,·:cond_2 |
| |
546 | ····.line·820 | 459 | ····.line·712 |
547 | ····iput-wide·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFirstId:J | 460 | ····iput-wide·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFirstId:J |
| |
548 | ····.line·822 | 461 | ····.line·714 |
549 | ····:cond_2 | 462 | ····:cond_2 |
550 | ····iget-object·v5,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mScannedIds:Lcom/android/providers/media/util/LongArray; | 463 | ····iget-object·v5,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mScannedIds:Lcom/android/providers/media/util/LongArray; |
| |
551 | ····invoke-virtual·{v5,·v3,·v4},·Lcom/android/providers/media/util/LongArray;->add(J)V | 464 | ····invoke-virtual·{v5,·v3,·v4},·Lcom/android/providers/media/util/LongArray;->add(J)V |
552 | ····:try_end_0 | 465 | ····:try_end_0 |
553 | ····.catch·Landroid/os/RemoteException;·{:try_start_0·..·:try_end_0}·:catch_0 | 466 | ····.catch·Landroid/os/RemoteException;·{:try_start_0·..·:try_end_0}·:catch_0 |
554 | ····.catch·Landroid/content/OperationApplicationException;·{:try_start_0·..·:try_end_0}·:catch_0 | 467 | ····.catch·Landroid/content/OperationApplicationException;·{:try_start_0·..·:try_end_0}·:catch_0 |
Offset 580, 327 lines modified | Offset 493, 193 lines modified |
| |
580 | ····:catch_0 | 493 | ····:catch_0 |
581 | ····move-exception·v1 | 494 | ····move-exception·v1 |
| |
582 | ····:try_start_1 | 495 | ····:try_start_1 |
583 | ····const-string·v2,·"Failed·to·apply" | 496 | ····const-string·v2,·"Failed·to·apply" |
| |
584 | ····.line·826 | 497 | ····.line·718 |
585 | ····invoke-static·{v0,·v2,·v1},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 498 | ····invoke-static·{v0,·v2,·v1},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
586 | ····:try_end_1 | 499 | ····:try_end_1 |
587 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 | 500 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 |
| |
588 | ····.line·828 | 501 | ····.line·720 |
589 | ····:cond_4 | 502 | ····:cond_4 |
590 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 503 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
591 | ····invoke-virtual·{p0},·Ljava/util/ArrayList;->clear()V | 504 | ····invoke-virtual·{p0},·Ljava/util/ArrayList;->clear()V |
| |
592 | ····.line·829 | 505 | ····.line·721 |
593 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 506 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
594 | ····return-void | 507 | ····return-void |
| |
595 | ····.line·828 | 508 | ····.line·720 |
596 | ····:goto_1 | 509 | ····:goto_1 |
597 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 510 | ····iget-object·p0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
598 | ····invoke-virtual·{p0},·Ljava/util/ArrayList;->clear()V | 511 | ····invoke-virtual·{p0},·Ljava/util/ArrayList;->clear()V |
| |
599 | ····.line·829 | 512 | ····.line·721 |
600 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 513 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
601 | ····.line·830 | 514 | ····.line·722 |
602 | ····throw·v0 | 515 | ····throw·v0 |
603 | .end·method | 516 | .end·method |
| |
604 | .method·private·buildExcludeDirClause(I)Ljava/lang/String; | |
605 | ····.locals·4 | |
| |
606 | ····if-nez·p1,·:cond_0 | |
| |
607 | ····const-string·p0,·"" | |
| |
608 | ····return-object·p0 | |
| |
609 | ····:cond_0 | |
610 | ····const-string·p0,·"_data·NOT·LIKE·?·ESCAPE·\'\\\'" | |
| |
611 | ····const-string·v0,·"·AND·" | |
| |
612 | ····.line·434 | |
613 | ····new-instance·v1,·Ljava/lang/StringBuilder; | |
| |
614 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | |
| |
615 | ····const-string·v2,·"(" | |
| |
616 | ····.line·435 | |
617 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
618 | ····const/4·v2,·0x0 | |
| |
619 | ····:goto_0 | |
620 | ····if-ge·v2,·p1,·:cond_2 | |
| |
621 | ····.line·443 | |
622 | ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
623 | ····.line·444 | |
624 | ····invoke-virtual·{v1,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
625 | ····.line·445 | |
626 | ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
627 | ····add-int/lit8·v3,·p1,·-0x1 | |
| |
628 | ····if-eq·v2,·v3,·:cond_1 | |
| |
629 | ····.line·447 | |
630 | ····invoke-virtual·{v1,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
631 | ····:cond_1 | |
632 | ····add-int/lit8·v2,·v2,·0x1 | |
| |
633 | ····goto·:goto_0 | |
| |
634 | ····:cond_2 | |
635 | ····const-string·p0,·")" | |
| |
636 | ····.line·450 | |
637 | ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
638 | ····.line·451 | |
639 | ····invoke-virtual·{v1},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | |
| |
640 | ····move-result-object·p0 | |
| |
641 | ····return-object·p0 | |
642 | .end·method | |
| |
643 | .method·private·buildSqlSelectionArgs()[Ljava/lang/String; | |
644 | ····.locals·3 | |
| |
645 | ····.line·461 | |
646 | ····new-instance·v0,·Ljava/util/ArrayList; | |
| |
647 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | |
| |
648 | ····.line·463 | |
649 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mRoot:Ljava/io/File; | |
| |
650 | ····invoke-virtual·{v1},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; | |
| |
651 | ····move-result-object·v1 | |
| |
652 | ····invoke-direct·{p0,·v1,·v0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->addEscapedAndExpandedPath(Ljava/lang/String;Ljava/util/List;)V | |
| |
653 | ····.line·464 | |
654 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mExcludeDirs:Ljava/util/List; | |
| |
655 | ····invoke-interface·{v1},·Ljava/util/List;->iterator()Ljava/util/Iterator; | |
| |
656 | ····move-result-object·v1 | |
| |
657 | ····:goto_0 | |
658 | ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z | |
| |
659 | ····move-result·v2 | |
| |
660 | ····if-eqz·v2,·:cond_0 | |
| |
661 | ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object; | |
| |
662 | ····move-result-object·v2 | |
| |
663 | ····check-cast·v2,·Ljava/lang/String; | |
| |
664 | ····.line·465 | |
665 | ····invoke-direct·{p0,·v2,·v0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->addEscapedAndExpandedPath(Ljava/lang/String;Ljava/util/List;)V | |
| |
666 | ····goto·:goto_0 | |
| |
667 | ····:cond_0 | |
668 | ····const/4·p0,·0x0 | |
| |
669 | ····new-array·p0,·p0,·[Ljava/lang/String; | |
| |
670 | ····.line·468 | |
671 | ····invoke-interface·{v0,·p0},·Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; | |
| |
672 | ····move-result-object·p0 | |
| |
673 | ····check-cast·p0,·[Ljava/lang/String; | |
| |
674 | ····return-object·p0 | |
675 | .end·method | |
| |
676 | .method·private·maybeApplyPending()V | 517 | .method·private·maybeApplyPending()V |
677 | ····.locals·2 | 518 | ····.locals·2 |
| |
678 | ····.line·796 | 519 | ····.line·688 |
679 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; | 520 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mPending:Ljava/util/ArrayList; |
| |
680 | ····invoke-virtual·{v0},·Ljava/util/ArrayList;->size()I | 521 | ····invoke-virtual·{v0},·Ljava/util/ArrayList;->size()I |
| |
681 | ····move-result·v0 | 522 | ····move-result·v0 |
| |
682 | ····const/16·v1,·0x20 | 523 | ····const/16·v1,·0x20 |
| |
683 | ····if-le·v0,·v1,·:cond_0 | 524 | ····if-le·v0,·v1,·:cond_0 |
| |
684 | ····.line·797 | 525 | ····.line·689 |
685 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->applyPending()V | 526 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->applyPending()V |
| |
686 | ····:cond_0 | 527 | ····:cond_0 |
687 | ····return-void | 528 | ····return-void |
688 | .end·method | 529 | .end·method |
| |
689 | .method·private·reconcileAndClean()V | 530 | .method·private·reconcileAndClean()V |
690 | ····.locals·6 | 531 | ····.locals·7 |
| |
691 | ····.line·472 | 532 | ····.line·381 |
692 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mScannedIds:Lcom/android/providers/media/util/LongArray; | 533 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mScannedIds:Lcom/android/providers/media/util/LongArray; |
| |
693 | ····invoke-virtual·{v0},·Lcom/android/providers/media/util/LongArray;->toArray()[J | 534 | ····invoke-virtual·{v0},·Lcom/android/providers/media/util/LongArray;->toArray()[J |
| |
694 | ····move-result-object·v0 | 535 | ····move-result-object·v0 |
| |
695 | ····.line·473 | 536 | ····.line·382 |
696 | ····invoke-static·{v0},·Ljava/util/Arrays;->sort([J)V | 537 | ····invoke-static·{v0},·Ljava/util/Arrays;->sort([J)V |
| |
697 | ····.line·477 | 538 | ····.line·386 |
698 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; | 539 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; |
| |
699 | ····invoke-virtual·{v1},·Landroid/os/CancellationSignal;->throwIfCanceled()V | 540 | ····invoke-virtual·{v1},·Landroid/os/CancellationSignal;->throwIfCanceled()V |
| |
700 | ····const-string·v1,·"reconcile" | 541 | ····const-string·v1,·"reconcile" |
| |
701 | ····.line·478 | 542 | ····.line·387 |
702 | ····invoke-static·{v1},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V | 543 | ····invoke-static·{v1},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V |
| |
703 | ····.line·486 | 544 | ····.line·395 |
| 545 | ····new-instance·v1,·Ljava/lang/StringBuilder; |
704 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mExcludeDirs:Ljava/util/List; | |
| |
705 | ····invoke-interface·{v1},·Ljava/util/List;->size()I | |
| |
706 | ····move-result·v1 | |
| |
707 | ····invoke-direct·{p0,·v1},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->buildExcludeDirClause(I)Ljava/lang/String; | |
| |
708 | ····move-result-object·v1 | 546 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V |
| |
| 547 | ····const-string·v2,·"generation_added·<=·" |
709 | ····.line·487 | |
710 | ····new-instance·v2,·Ljava/lang/StringBuilder; | |
| |
711 | ····invoke-direct·{v2},·Ljava/lang/StringBuilder;-><init>()V | 548 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
712 | ····const-string·v3,·"generation_added·<=·" | 549 | ····iget-wide·v2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mStartGeneration:J |
| |
713 | ····invoke-virtual·{v2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 550 | ····invoke-virtual·{v1,·v2,·v3},·Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; |
| |
714 | ····iget-wide·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mStartGeneration:J | 551 | ····invoke-virtual·{v1},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
715 | ····invoke-virtual·{v2,·v3,·v4},·Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; | 552 | ····move-result-object·v1 |
| |
716 | ····invoke-virtual·{v2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 553 | ····.line·397 |
| 554 | ····new-instance·v2,·Landroid/os/Bundle; |
| |
717 | ····move-result-object·v2 | 555 | ····invoke-direct·{v2},·Landroid/os/Bundle;-><init>()V |
| |
718 | ····.line·489 | 556 | ····.line·398 |
719 | ····new-instance·v3,·Ljava/lang/StringBuilder; | 557 | ····new-instance·v3,·Ljava/lang/StringBuilder; |
| |
720 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V | 558 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V |
| |
721 | ····const-string·v4,·"ifnull(format,12288)·!=·47621·AND·(_data·LIKE·?·ESCAPE·\'\\\'·OR·_data·LIKE·?·ESCAPE·\'\\\')·AND·" | 559 | ····const-string·v4,·"ifnull(format,12288)·!=·47621·AND·(_data·LIKE·?·ESCAPE·\'\\\'·OR·_data·LIKE·?·ESCAPE·\'\\\')·AND·" |
| |
722 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 560 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
723 | ····invoke-virtual·{v3,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 561 | ····invoke-virtual·{v3,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
| 562 | ····invoke-virtual·{v3},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
724 | ····.line·491 | |
725 | ····invoke-virtual·{v1},·Ljava/lang/String;->isEmpty()Z | |
| |
726 | ····move-result·v2 | 563 | ····move-result-object·v1 |
| |
727 | ····if-eqz·v2,·:cond_0 | 564 | ····const-string·v3,·"android:query-arg-sql-selection" |
| |
728 | ····const-string·v1,·"" | 565 | ····invoke-virtual·{v2,·v3,·v1},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
| |
729 | ····goto·:goto_0 | 566 | ····.line·400 |
| 567 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mRoot:Ljava/io/File; |
| |
| 568 | ····invoke-virtual·{v1},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
730 | ····:cond_0 | |
731 | ····new-instance·v2,·Ljava/lang/StringBuilder; | |
| |
732 | ····invoke-direct·{v2},·Ljava/lang/StringBuilder;-><init>()V | 569 | ····move-result-object·v1 |
| |
733 | ····const-string·v4,·"·AND·" | 570 | ····invoke-static·{v1},·Lcom/android/providers/media/util/DatabaseUtils;->escapeForLike(Ljava/lang/String;)Ljava/lang/String; |
| |
734 | ····invoke-virtual·{v2,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 571 | ····move-result-object·v1 |
| |
735 | ····invoke-virtual·{v2,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 572 | ····const/4·v3,·0x2 |
| |
736 | ····invoke-virtual·{v2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 573 | ····new-array·v4,·v3,·[Ljava/lang/String; |
| |
737 | ····move-result-object·v1 | 574 | ····.line·401 |
| 575 | ····new-instance·v5,·Ljava/lang/StringBuilder; |
| |
| 576 | ····invoke-direct·{v5},·Ljava/lang/StringBuilder;-><init>()V |
738 | ····:goto_0 | |
739 | ····invoke-virtual·{v3,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
740 | ····invoke-virtual·{v3},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 577 | ····invoke-virtual·{v5,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
741 | ····move-result-object·v1 | 578 | ····const-string·v6,·"/%" |
| |
| 579 | ····invoke-virtual·{v5,·v6},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
742 | ····.line·492 | |
743 | ····new-instance·v2,·Landroid/os/Bundle; | |
| |
744 | ····invoke-direct·{v2},·Landroid/os/Bundle;-><init>()V | 580 | ····invoke-virtual·{v5},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
745 | ····const-string·v3,·"android:query-arg-sql-selection" | 581 | ····move-result-object·v5 |
| |
| 582 | ····const/4·v6,·0x0 |
746 | ····.line·493 | |
747 | ····invoke-virtual·{v2,·v3,·v1},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V | |
| |
| 583 | ····aput-object·v5,·v4,·v6 |
748 | ····.line·495 | |
749 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->buildSqlSelectionArgs()[Ljava/lang/String; | |
| |
750 | ····move-result-object·v1 | 584 | ····const/4·v5,·0x1 |
| |
751 | ····const-string·v3,·"android:query-arg-sql-selection-args" | 585 | ····aput-object·v1,·v4,·v5 |
| |
| 586 | ····const-string·v1,·"android:query-arg-sql-selection-args" |
752 | ····.line·494 | |
753 | ····invoke-virtual·{v2,·v3,·v1},·Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V | |
| |
754 | ····const-string·v1,·"android:query-arg-sql-sort-order" | 587 | ····invoke-virtual·{v2,·v1,·v4},·Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V |
| |
755 | ····const-string·v3,·"_id·DESC" | 588 | ····const-string·v1,·"android:query-arg-sql-sort-order" |
| |
| 589 | ····const-string·v4,·"_id·DESC" |
756 | ····.line·496 | |
757 | ····invoke-virtual·{v2,·v1,·v3},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V | |
| |
758 | ····const/4·v1,·0x2 | 590 | ····.line·403 |
| 591 | ····invoke-virtual·{v2,·v1,·v4},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
| |
759 | ····const-string·v3,·"android:query-arg-match-pending" | 592 | ····const-string·v1,·"android:query-arg-match-pending" |
| |
760 | ····.line·498 | 593 | ····.line·405 |
761 | ····invoke-virtual·{v2,·v3,·v1},·Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V | 594 | ····invoke-virtual·{v2,·v1,·v3},·Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V |
| |
762 | ····const-string·v1,·"android:query-arg-match-trashed" | 595 | ····const-string·v1,·"android:query-arg-match-trashed" |
| |
763 | ····const/4·v3,·0x1 | |
| |
764 | ····.line·499 | 596 | ····.line·406 |
765 | ····invoke-virtual·{v2,·v1,·v3},·Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V | 597 | ····invoke-virtual·{v2,·v1,·v5},·Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V |
| |
766 | ····const-string·v1,·"android:query-arg-match-favorite" | 598 | ····const-string·v1,·"android:query-arg-match-favorite" |
| |
767 | ····.line·500 | 599 | ····.line·407 |
768 | ····invoke-virtual·{v2,·v1,·v3},·Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V | 600 | ····invoke-virtual·{v2,·v1,·v5},·Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V |
| |
769 | ····.line·502 | 601 | ····.line·409 |
770 | ····:try_start_0 | 602 | ····:try_start_0 |
771 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; | 603 | ····iget-object·v1,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mResolver:Landroid/content/ContentResolver; |
| |
772 | ····iget-object·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFilesUri:Landroid/net/Uri; | 604 | ····iget-object·v3,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mFilesUri:Landroid/net/Uri; |
| |
773 | ····const-string·v4,·"_id" | 605 | ····const-string·v4,·"_id" |
| |
Offset 912, 338 lines modified | Offset 691, 336 lines modified |
| |
912 | ····invoke-virtual·{v1,·v3,·v4,·v2,·v5},·Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/database/Cursor; | 691 | ····invoke-virtual·{v1,·v3,·v4,·v2,·v5},·Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/database/Cursor; |
| |
913 | ····move-result-object·v1 | 692 | ····move-result-object·v1 |
914 | ····:try_end_0 | 693 | ····:try_end_0 |
915 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_3 | 694 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_3 |
| |
916 | ····.line·504 | 695 | ····.line·411 |
917 | ····:cond_1 | 696 | ····:cond_0 |
918 | ····:goto_1 | 697 | ····:goto_0 |
919 | ····:try_start_1 | 698 | ····:try_start_1 |
920 | ····invoke-interface·{v1},·Landroid/database/Cursor;->moveToNext()Z | 699 | ····invoke-interface·{v1},·Landroid/database/Cursor;->moveToNext()Z |
| |
921 | ····move-result·v2 | 700 | ····move-result·v2 |
| |
922 | ····const/4·v3,·0x0 | |
| |
923 | ····if-eqz·v2,·:cond_2 | 701 | ····if-eqz·v2,·:cond_1 |
| |
924 | ····.line·505 | 702 | ····.line·412 |
925 | ····invoke-interface·{v1,·v3},·Landroid/database/Cursor;->getLong(I)J | 703 | ····invoke-interface·{v1,·v6},·Landroid/database/Cursor;->getLong(I)J |
| |
926 | ····move-result-wide·v2 | 704 | ····move-result-wide·v2 |
| |
927 | ····.line·506 | 705 | ····.line·413 |
928 | ····invoke-static·{v0,·v2,·v3},·Ljava/util/Arrays;->binarySearch([JJ)I | 706 | ····invoke-static·{v0,·v2,·v3},·Ljava/util/Arrays;->binarySearch([JJ)I |
| |
929 | ····move-result·v4 | 707 | ····move-result·v4 |
| |
930 | ····if-gez·v4,·:cond_1 | 708 | ····if-gez·v4,·:cond_0 |
| |
931 | ····.line·507 | 709 | ····.line·414 |
932 | ····iget-object·v4,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; | 710 | ····iget-object·v4,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; |
| |
933 | ····invoke-virtual·{v4,·v2,·v3},·Lcom/android/providers/media/util/LongArray;->add(J)V | 711 | ····invoke-virtual·{v4,·v2,·v3},·Lcom/android/providers/media/util/LongArray;->add(J)V |
934 | ····:try_end_1 | 712 | ····:try_end_1 |
935 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_1 | 713 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_1 |
| |
936 | ····goto·:goto_1 | 714 | ····goto·:goto_0 |
| |
937 | ····:cond_2 | 715 | ····:cond_1 |
938 | ····if-eqz·v1,·:cond_3 | 716 | ····if-eqz·v1,·:cond_2 |
| |
939 | ····.line·510 | 717 | ····.line·417 |
940 | ····:try_start_2 | 718 | ····:try_start_2 |
941 | ····invoke-interface·{v1},·Landroid/database/Cursor;->close()V | 719 | ····invoke-interface·{v1},·Landroid/database/Cursor;->close()V |
942 | ····:try_end_2 | 720 | ····:try_end_2 |
943 | ····.catchall·{:try_start_2·..·:try_end_2}·:catchall_3 | 721 | ····.catchall·{:try_start_2·..·:try_end_2}·:catchall_3 |
| |
944 | ····.line·511 | 722 | ····.line·418 |
945 | ····:cond_3 | 723 | ····:cond_2 |
946 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 724 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
947 | ····.line·515 | 725 | ····.line·422 |
948 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; | 726 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mSignal:Landroid/os/CancellationSignal; |
| |
949 | ····invoke-virtual·{v0},·Landroid/os/CancellationSignal;->throwIfCanceled()V | 727 | ····invoke-virtual·{v0},·Landroid/os/CancellationSignal;->throwIfCanceled()V |
| |
950 | ····const-string·v0,·"clean" | 728 | ····const-string·v0,·"clean" |
| |
951 | ····.line·516 | 729 | ····.line·423 |
952 | ····invoke-static·{v0},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V | 730 | ····invoke-static·{v0},·Landroid/os/Trace;->beginSection(Ljava/lang/String;)V |
| |
953 | ····.line·518 | 731 | ····.line·425 |
954 | ····:goto_2 | 732 | ····:goto_1 |
955 | ····:try_start_3 | 733 | ····:try_start_3 |
956 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; | 734 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; |
| |
957 | ····invoke-virtual·{v0},·Lcom/android/providers/media/util/LongArray;->size()I | 735 | ····invoke-virtual·{v0},·Lcom/android/providers/media/util/LongArray;->size()I |
| |
958 | ····move-result·v0 | 736 | ····move-result·v0 |
| |
959 | ····if-ge·v3,·v0,·:cond_5 | 737 | ····if-ge·v6,·v0,·:cond_4 |
| |
960 | ····.line·519 | 738 | ····.line·426 |
961 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; | 739 | ····iget-object·v0,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mUnknownIds:Lcom/android/providers/media/util/LongArray; |
| |
962 | ····invoke-virtual·{v0,·v3},·Lcom/android/providers/media/util/LongArray;->get(I)J | 740 | ····invoke-virtual·{v0,·v6},·Lcom/android/providers/media/util/LongArray;->get(I)J |
| |
963 | ····move-result-wide·v0 | 741 | ····move-result-wide·v0 |
| |
964 | ····.line·520 | 742 | ····.line·427 |
965 | ····invoke-static·{},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$600()Z | 743 | ····invoke-static·{},·Lcom/android/providers/media/scan/ModernMediaScanner;->access$200()Z |
| |
966 | ····move-result·v2 | 744 | ····move-result·v2 |
| |
967 | ····if-eqz·v2,·:cond_4 | 745 | ····if-eqz·v2,·:cond_3 |
| |
968 | ····const-string·v2,·"ModernMediaScanner" | 746 | ····const-string·v2,·"ModernMediaScanner" |
| |
969 | ····new-instance·v4,·Ljava/lang/StringBuilder; | 747 | ····new-instance·v3,·Ljava/lang/StringBuilder; |
| |
970 | ····invoke-direct·{v4},·Ljava/lang/StringBuilder;-><init>()V | 748 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V |
| |
971 | ····const-string·v5,·"Cleaning·" | 749 | ····const-string·v4,·"Cleaning·" |
| |
972 | ····invoke-virtual·{v4,·v5},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 750 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
973 | ····invoke-virtual·{v4,·v0,·v1},·Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; | 751 | ····invoke-virtual·{v3,·v0,·v1},·Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; |
| |
974 | ····invoke-virtual·{v4},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 752 | ····invoke-virtual·{v3},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
975 | ····move-result-object·v4 | 753 | ····move-result-object·v3 |
| |
976 | ····invoke-static·{v2,·v4},·Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I | 754 | ····invoke-static·{v2,·v3},·Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I |
| |
977 | ····.line·521 | 755 | ····.line·428 |
978 | ····:cond_4 | 756 | ····:cond_3 |
979 | ····iget-object·v2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; | 757 | ····iget-object·v2,·p0,·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->mVolumeName:Ljava/lang/String; |
| |
980 | ····invoke-static·{v2,·v0,·v1},·Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;J)Landroid/net/Uri; | 758 | ····invoke-static·{v2,·v0,·v1},·Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;J)Landroid/net/Uri; |
| |
981 | ····move-result-object·v0 | 759 | ····move-result-object·v0 |
| |
982 | ····invoke-virtual·{v0},·Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder; | 760 | ····invoke-virtual·{v0},·Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder; |
| |
983 | ····move-result-object·v0 | 761 | ····move-result-object·v0 |
| |
984 | ····const-string·v1,·"deletedata" | 762 | ····const-string·v1,·"deletedata" |
| |
985 | ····const-string·v2,·"false" | 763 | ····const-string·v2,·"false" |
| |
986 | ····.line·522 | 764 | ····.line·429 |
987 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder; | 765 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder; |
| |
988 | ····move-result-object·v0 | 766 | ····move-result-object·v0 |
| |
989 | ····.line·523 | 767 | ····.line·430 |
990 | ····invoke-virtual·{v0},·Landroid/net/Uri$Builder;->build()Landroid/net/Uri; | 768 | ····invoke-virtual·{v0},·Landroid/net/Uri$Builder;->build()Landroid/net/Uri; |
| |
991 | ····move-result-object·v0 | 769 | ····move-result-object·v0 |
| |
992 | ····.line·524 | 770 | ····.line·431 |
993 | ····invoke-static·{v0},·Landroid/content/ContentProviderOperation;->newDelete(Landroid/net/Uri;)Landroid/content/ContentProviderOperation$Builder; | 771 | ····invoke-static·{v0},·Landroid/content/ContentProviderOperation;->newDelete(Landroid/net/Uri;)Landroid/content/ContentProviderOperation$Builder; |
| |
994 | ····move-result-object·v0 | 772 | ····move-result-object·v0 |
| |
995 | ····invoke-virtual·{v0},·Landroid/content/ContentProviderOperation$Builder;->build()Landroid/content/ContentProviderOperation; | 773 | ····invoke-virtual·{v0},·Landroid/content/ContentProviderOperation$Builder;->build()Landroid/content/ContentProviderOperation; |
| |
996 | ····move-result-object·v0 | 774 | ····move-result-object·v0 |
| |
997 | ····invoke-direct·{p0,·v0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->addPending(Landroid/content/ContentProviderOperation;)V | 775 | ····invoke-direct·{p0,·v0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->addPending(Landroid/content/ContentProviderOperation;)V |
| |
998 | ····.line·525 | 776 | ····.line·432 |
999 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->maybeApplyPending()V | 777 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->maybeApplyPending()V |
| |
1000 | ····add-int/lit8·v3,·v3,·0x1 | 778 | ····add-int/lit8·v6,·v6,·0x1 |
| |
1001 | ····goto·:goto_2 | 779 | ····goto·:goto_1 |
| |
1002 | ····.line·527 | 780 | ····.line·434 |
1003 | ····:cond_5 | 781 | ····:cond_4 |
1004 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->applyPending()V | 782 | ····invoke-direct·{p0},·Lcom/android/providers/media/scan/ModernMediaScanner$Scan;->applyPending()V |
1005 | ····:try_end_3 | 783 | ····:try_end_3 |
1006 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_0 | 784 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_0 |
| |
1007 | ····.line·529 | 785 | ····.line·436 |
1008 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 786 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
1009 | ····return-void | 787 | ····return-void |
| |
1010 | ····:catchall_0 | 788 | ····:catchall_0 |
1011 | ····move-exception·p0 | 789 | ····move-exception·p0 |
| |
1012 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V | 790 | ····invoke-static·{},·Landroid/os/Trace;->endSection()V |
| |
1013 | ····.line·530 | 791 | ····.line·437 |
1014 | ····throw·p0 | 792 | ····throw·p0 |
| |
1015 | ····:catchall_1 | 793 | ····:catchall_1 |
1016 | ····move-exception·p0 | 794 | ····move-exception·p0 |
| |
1017 | ····if-eqz·v1,·:cond_6 | 795 | ····if-eqz·v1,·:cond_5 |
| |
1018 | ····.line·502 | 796 | ····.line·409 |
1019 | ····:try_start_4 | 797 | ····:try_start_4 |
1020 | ····invoke-interface·{v1},·Landroid/database/Cursor;->close()V | 798 | ····invoke-interface·{v1},·Landroid/database/Cursor;->close()V |
1021 | ····:try_end_4 | 799 | ····:try_end_4 |
1022 | ····.catchall·{:try_start_4·..·:try_end_4}·:catchall_2 | 800 | ····.catchall·{:try_start_4·..·:try_end_4}·:catchall_2 |
| |
1023 | ····goto·:goto_3 | 801 | ····goto·:goto_2 |
| |
1024 | ····:catchall_2 | 802 | ····:catchall_2 |
1025 | ····move-exception·v0 | 803 | ····move-exception·v0 |
| |
1026 | ····:try_start_5 | 804 | ····:try_start_5 |
1027 | ····invoke-virtual·{p0,·v0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V | 805 | ····invoke-virtual·{p0,·v0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V |
| |
1028 | ····:cond_6 | 806 | ····:cond_5 |
1029 | ····:goto_3 | 807 | ····:goto_2 |
1030 | ····throw·p0 | 808 | ····throw·p0 |
1031 | ····:try_end_5 | 809 | ····:try_end_5 |
1032 | ····.catchall·{:try_start_5·..·:try_end_5}·:catchall_3 | 810 | ····.catchall·{:try_start_5·..·:try_end_5}·:catchall_3 |
Max diff block lines reached; 53078/90950 bytes (58.36%) of diff not shown.
|