| | | |
Offset 98, 74 lines modified | Offset 98, 74 lines modified |
| |
98 | ····return-void | 98 | ····return-void |
99 | .end·method | 99 | .end·method |
| |
100 | .method·public·static·scheduleIdlePass(Landroid/content/Context;)V | 100 | .method·public·static·scheduleIdlePass(Landroid/content/Context;)V |
101 | ····.locals·5 | 101 | ····.locals·5 |
| |
102 | ····.line·63 | 102 | ····.line·58 |
103 | ····const-class·v0,·Landroid/app/job/JobScheduler; | 103 | ····const-class·v0,·Landroid/app/job/JobScheduler; |
| |
104 | ····invoke-virtual·{p0,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; | 104 | ····invoke-virtual·{p0,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; |
| |
105 | ····move-result-object·v0 | 105 | ····move-result-object·v0 |
| |
106 | ····check-cast·v0,·Landroid/app/job/JobScheduler; | 106 | ····check-cast·v0,·Landroid/app/job/JobScheduler; |
| |
107 | ····const/16·v1,·-0xc8 | 107 | ····const/16·v1,·-0xc8 |
| |
108 | ····.line·64 | 108 | ····.line·59 |
109 | ····invoke-virtual·{v0,·v1},·Landroid/app/job/JobScheduler;->getPendingJob(I)Landroid/app/job/JobInfo; | 109 | ····invoke-virtual·{v0,·v1},·Landroid/app/job/JobScheduler;->getPendingJob(I)Landroid/app/job/JobInfo; |
| |
110 | ····move-result-object·v2 | 110 | ····move-result-object·v2 |
| |
111 | ····if-nez·v2,·:cond_0 | 111 | ····if-nez·v2,·:cond_0 |
| |
112 | ····.line·65 | 112 | ····.line·60 |
113 | ····new-instance·v2,·Landroid/app/job/JobInfo$Builder; | 113 | ····new-instance·v2,·Landroid/app/job/JobInfo$Builder; |
| |
114 | ····new-instance·v3,·Landroid/content/ComponentName; | 114 | ····new-instance·v3,·Landroid/content/ComponentName; |
| |
115 | ····const-class·v4,·Lcom/android/providers/media/IdleService; | 115 | ····const-class·v4,·Lcom/android/providers/media/IdleService; |
| |
116 | ····invoke-direct·{v3,·p0,·v4},·Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V | 116 | ····invoke-direct·{v3,·p0,·v4},·Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V |
| |
117 | ····invoke-direct·{v2,·v1,·v3},·Landroid/app/job/JobInfo$Builder;-><init>(ILandroid/content/ComponentName;)V | 117 | ····invoke-direct·{v2,·v1,·v3},·Landroid/app/job/JobInfo$Builder;-><init>(ILandroid/content/ComponentName;)V |
| |
118 | ····sget-object·p0,·Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit; | 118 | ····sget-object·p0,·Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit; |
| |
119 | ····const-wide/16·v3,·0x18 | 119 | ····const-wide/16·v3,·0x18 |
| |
120 | ····.line·67 | 120 | ····.line·62 |
121 | ····invoke-virtual·{p0,·v3,·v4},·Ljava/util/concurrent/TimeUnit;->toMillis(J)J | 121 | ····invoke-virtual·{p0,·v3,·v4},·Ljava/util/concurrent/TimeUnit;->toMillis(J)J |
| |
122 | ····move-result-wide·v3 | 122 | ····move-result-wide·v3 |
| |
123 | ····invoke-virtual·{v2,·v3,·v4},·Landroid/app/job/JobInfo$Builder;->setPeriodic(J)Landroid/app/job/JobInfo$Builder; | 123 | ····invoke-virtual·{v2,·v3,·v4},·Landroid/app/job/JobInfo$Builder;->setPeriodic(J)Landroid/app/job/JobInfo$Builder; |
| |
124 | ····move-result-object·p0 | 124 | ····move-result-object·p0 |
| |
125 | ····const/4·v1,·0x1 | 125 | ····const/4·v1,·0x1 |
| |
126 | ····.line·68 | 126 | ····.line·63 |
127 | ····invoke-virtual·{p0,·v1},·Landroid/app/job/JobInfo$Builder;->setRequiresCharging(Z)Landroid/app/job/JobInfo$Builder; | 127 | ····invoke-virtual·{p0,·v1},·Landroid/app/job/JobInfo$Builder;->setRequiresCharging(Z)Landroid/app/job/JobInfo$Builder; |
| |
128 | ····move-result-object·p0 | 128 | ····move-result-object·p0 |
| |
129 | ····.line·69 | 129 | ····.line·64 |
130 | ····invoke-virtual·{p0,·v1},·Landroid/app/job/JobInfo$Builder;->setRequiresDeviceIdle(Z)Landroid/app/job/JobInfo$Builder; | 130 | ····invoke-virtual·{p0,·v1},·Landroid/app/job/JobInfo$Builder;->setRequiresDeviceIdle(Z)Landroid/app/job/JobInfo$Builder; |
| |
131 | ····move-result-object·p0 | 131 | ····move-result-object·p0 |
| |
132 | ····.line·70 | 132 | ····.line·65 |
133 | ····invoke-virtual·{p0},·Landroid/app/job/JobInfo$Builder;->build()Landroid/app/job/JobInfo; | 133 | ····invoke-virtual·{p0},·Landroid/app/job/JobInfo$Builder;->build()Landroid/app/job/JobInfo; |
| |
134 | ····move-result-object·p0 | 134 | ····move-result-object·p0 |
| |
135 | ····.line·71 | 135 | ····.line·66 |
136 | ····invoke-virtual·{v0,·p0},·Landroid/app/job/JobScheduler;->schedule(Landroid/app/job/JobInfo;)I | 136 | ····invoke-virtual·{v0,·p0},·Landroid/app/job/JobScheduler;->schedule(Landroid/app/job/JobInfo;)I |
| |
137 | ····:cond_0 | 137 | ····:cond_0 |
138 | ····return-void | 138 | ····return-void |
139 | .end·method | 139 | .end·method |
| |
| |
Offset 205, 80 lines modified | Offset 205, 15 lines modified |
205 | ····return·p0 | 205 | ····return·p0 |
206 | .end·method | 206 | .end·method |
| |
207 | .method·public·onStopJob(Landroid/app/job/JobParameters;)Z | 207 | .method·public·onStopJob(Landroid/app/job/JobParameters;)Z |
208 | ····.locals·0 | 208 | ····.locals·0 |
| |
209 | ····.line·53 | 209 | ····.line·53 |
210 | ····iget-object·p1,·p0,·Lcom/android/providers/media/IdleService;->mSignal:Landroid/os/CancellationSignal; | 210 | ····iget-object·p0,·p0,·Lcom/android/providers/media/IdleService;->mSignal:Landroid/os/CancellationSignal; |
| |
211 | ····invoke-virtual·{p1},·Landroid/os/CancellationSignal;->cancel()V | |
| |
212 | ····.line·54 | |
213 | ····:try_start_0 | |
214 | ····invoke-virtual·{p0},·Landroid/app/job/JobService;->getContentResolver()Landroid/content/ContentResolver; | |
| |
215 | ····move-result-object·p0 | |
| |
216 | ····const-string·p1,·"media" | |
| |
217 | ····.line·55 | |
218 | ····invoke-virtual·{p0,·p1},·Landroid/content/ContentResolver;->acquireContentProviderClient(Ljava/lang/String;)Landroid/content/ContentProviderClient; | |
| |
219 | ····move-result-object·p0 | |
220 | ····:try_end_0 | |
221 | ····.catch·Landroid/os/OperationCanceledException;·{:try_start_0·..·:try_end_0}·:catch_0 | |
| |
222 | ····.line·56 | 211 | ····invoke-virtual·{p0},·Landroid/os/CancellationSignal;->cancel()V |
223 | ····:try_start_1 | |
224 | ····invoke-virtual·{p0},·Landroid/content/ContentProviderClient;->getLocalContentProvider()Landroid/content/ContentProvider; | |
| |
225 | ····move-result-object·p1 | |
| |
226 | ····check-cast·p1,·Lcom/android/providers/media/MediaProvider; | |
| |
227 | ····invoke-virtual·{p1},·Lcom/android/providers/media/MediaProvider;->onIdleMaintenanceStopped()V | |
228 | ····:try_end_1 | |
229 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 | |
| |
230 | ····if-eqz·p0,·:cond_1 | |
| |
231 | ····.line·57 | |
232 | ····:try_start_2 | |
233 | ····invoke-virtual·{p0},·Landroid/content/ContentProviderClient;->close()V | |
234 | ····:try_end_2 | |
235 | ····.catch·Landroid/os/OperationCanceledException;·{:try_start_2·..·:try_end_2}·:catch_0 | |
| |
236 | ····goto·:goto_1 | |
| |
237 | ····:catchall_0 | |
238 | ····move-exception·p1 | |
| |
239 | ····if-eqz·p0,·:cond_0 | |
| |
240 | ····.line·54 | |
241 | ····:try_start_3 | |
242 | ····invoke-virtual·{p0},·Landroid/content/ContentProviderClient;->close()V | |
243 | ····:try_end_3 | |
244 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_1 | |
| |
245 | ····goto·:goto_0 | |
| |
246 | ····:catchall_1 | |
247 | ····move-exception·p0 | |
| |
248 | ····:try_start_4 | |
249 | ····invoke-virtual·{p1,·p0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V | |
| |
250 | ····:cond_0 | |
251 | ····:goto_0 | |
252 | ····throw·p1 | |
253 | ····:try_end_4 | |
254 | ····.catch·Landroid/os/OperationCanceledException;·{:try_start_4·..·:try_end_4}·:catch_0 | |
| |
255 | ····:catch_0 | |
256 | ····:cond_1 | |
257 | ····:goto_1 | |
258 | ····const/4·p0,·0x0 | 212 | ····const/4·p0,·0x0 |
| |
259 | ····return·p0 | 213 | ····return·p0 |
260 | .end·method | 214 | .end·method |