zzatv.java
29.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
package com.google.android.gms.internal;
import android.annotation.TargetApi;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabaseLockedException;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteFullException;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Build.VERSION;
import android.os.Parcel;
import android.os.SystemClock;
import android.support.annotation.WorkerThread;
import hz;
import java.io.File;
public class zzatv
extends hz
{
private final a a = new a(getContext(), a());
private boolean b;
zzatv(zzaue paramzzaue)
{
super(paramzzaue);
}
@TargetApi(11)
@WorkerThread
private boolean a(int paramInt, byte[] paramArrayOfByte)
{
zzJW();
zzmR();
if (this.b) {
return false;
}
ContentValues localContentValues = new ContentValues();
localContentValues.put("type", Integer.valueOf(paramInt));
localContentValues.put("entry", paramArrayOfByte);
zzKn().zzLp();
int i = 0;
paramInt = 5;
while (i < 5)
{
Object localObject3 = null;
paramArrayOfByte = null;
Object localObject1 = null;
try
{
SQLiteDatabase localSQLiteDatabase = b();
if (localSQLiteDatabase == null)
{
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
this.b = true;
return false;
}
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
localSQLiteDatabase.beginTransaction();
long l2 = 0L;
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
Cursor localCursor = localSQLiteDatabase.rawQuery("select count(1) from messages", null);
long l1 = l2;
if (localCursor != null)
{
l1 = l2;
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
if (localCursor.moveToFirst())
{
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
l1 = localCursor.getLong(0);
}
}
if (l1 >= 100000L)
{
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
zzKl().zzLY().log("Data loss, local db full");
l1 = 100000L - l1 + 1L;
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
l2 = localSQLiteDatabase.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", new String[] { Long.toString(l1) });
if (l2 != l1)
{
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
zzKl().zzLY().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(l1), Long.valueOf(l2), Long.valueOf(l1 - l2));
}
}
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
localSQLiteDatabase.insertOrThrow("messages", null, localContentValues);
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
localSQLiteDatabase.setTransactionSuccessful();
localObject1 = localSQLiteDatabase;
localObject3 = localSQLiteDatabase;
paramArrayOfByte = localSQLiteDatabase;
localSQLiteDatabase.endTransaction();
return true;
}
catch (SQLiteFullException localSQLiteFullException)
{
paramArrayOfByte = (byte[])localObject1;
zzKl().zzLY().zzj("Error writing entry to local database", localSQLiteFullException);
paramArrayOfByte = (byte[])localObject1;
this.b = true;
j = paramInt;
if (localObject1 != null)
{
((SQLiteDatabase)localObject1).close();
j = paramInt;
}
i += 1;
paramInt = j;
}
catch (SQLiteException localSQLiteException)
{
int j;
paramArrayOfByte = localSQLiteFullException;
if (Build.VERSION.SDK_INT >= 11)
{
paramArrayOfByte = localSQLiteFullException;
if ((localSQLiteException instanceof SQLiteDatabaseLockedException))
{
paramArrayOfByte = localSQLiteFullException;
SystemClock.sleep(paramInt);
paramInt += 20;
}
}
for (;;)
{
j = paramInt;
if (localSQLiteFullException == null) {
break;
}
localSQLiteFullException.close();
j = paramInt;
break;
if (localSQLiteFullException != null)
{
paramArrayOfByte = localSQLiteFullException;
if (localSQLiteFullException.inTransaction())
{
paramArrayOfByte = localSQLiteFullException;
localSQLiteFullException.endTransaction();
}
}
paramArrayOfByte = localSQLiteFullException;
zzKl().zzLY().zzj("Error writing entry to local database", localSQLiteException);
paramArrayOfByte = localSQLiteFullException;
this.b = true;
}
}
finally
{
if (paramArrayOfByte != null) {
paramArrayOfByte.close();
}
}
}
zzKl().zzMa().log("Failed to write entry to local database");
return false;
}
@WorkerThread
private SQLiteDatabase b()
{
int i = Build.VERSION.SDK_INT;
if (this.b) {
return null;
}
SQLiteDatabase localSQLiteDatabase = this.a.getWritableDatabase();
if (localSQLiteDatabase == null)
{
this.b = true;
return null;
}
return localSQLiteDatabase;
}
final String a()
{
zzKn();
return zzati.p();
}
public boolean zza(zzatq paramzzatq)
{
int i = Build.VERSION.SDK_INT;
Parcel localParcel = Parcel.obtain();
paramzzatq.writeToParcel(localParcel, 0);
paramzzatq = localParcel.marshall();
localParcel.recycle();
if (paramzzatq.length > 131072)
{
zzKl().zzMa().log("Event is too long for local database. Sending event directly to service");
return false;
}
return a(0, paramzzatq);
}
public boolean zza(zzauq paramzzauq)
{
int i = Build.VERSION.SDK_INT;
Parcel localParcel = Parcel.obtain();
paramzzauq.writeToParcel(localParcel, 0);
paramzzauq = localParcel.marshall();
localParcel.recycle();
if (paramzzauq.length > 131072)
{
zzKl().zzMa().log("User property too long for local database. Sending directly to service");
return false;
}
return a(1, paramzzauq);
}
public boolean zzc(zzatg paramzzatg)
{
int i = Build.VERSION.SDK_INT;
zzKh();
paramzzatg = zzaut.a(paramzzatg);
if (paramzzatg.length > 131072)
{
zzKl().zzMa().log("Conditional user property too long for local database. Sending directly to service");
return false;
}
return a(2, paramzzatg);
}
/* Error */
@TargetApi(11)
public java.util.List<com.google.android.gms.common.internal.safeparcel.zza> zzlD(int paramInt)
{
// Byte code:
// 0: aload_0
// 1: invokevirtual 43 com/google/android/gms/internal/zzatv:zzmR ()V
// 4: aload_0
// 5: invokevirtual 40 com/google/android/gms/internal/zzatv:zzJW ()V
// 8: getstatic 170 android/os/Build$VERSION:SDK_INT I
// 11: istore_2
// 12: aload_0
// 13: getfield 45 com/google/android/gms/internal/zzatv:b Z
// 16: ifeq +5 -> 21
// 19: aconst_null
// 20: areturn
// 21: new 307 java/util/ArrayList
// 24: dup
// 25: invokespecial 308 java/util/ArrayList:<init> ()V
// 28: astore 12
// 30: aload_0
// 31: invokevirtual 18 com/google/android/gms/internal/zzatv:getContext ()Landroid/content/Context;
// 34: aload_0
// 35: invokevirtual 21 com/google/android/gms/internal/zzatv:a ()Ljava/lang/String;
// 38: invokevirtual 314 android/content/Context:getDatabasePath (Ljava/lang/String;)Ljava/io/File;
// 41: invokevirtual 319 java/io/File:exists ()Z
// 44: ifne +6 -> 50
// 47: aload 12
// 49: areturn
// 50: iconst_5
// 51: istore_2
// 52: iconst_0
// 53: istore 4
// 55: iload 4
// 57: iconst_5
// 58: if_icmpge +711 -> 769
// 61: aconst_null
// 62: astore 11
// 64: aconst_null
// 65: astore 7
// 67: aconst_null
// 68: astore 10
// 70: aload_0
// 71: invokespecial 79 com/google/android/gms/internal/zzatv:b ()Landroid/database/sqlite/SQLiteDatabase;
// 74: astore 8
// 76: aload 8
// 78: ifnonnull +20 -> 98
// 81: aload_0
// 82: iconst_1
// 83: putfield 45 com/google/android/gms/internal/zzatv:b Z
// 86: aload 8
// 88: ifnull +8 -> 96
// 91: aload 8
// 93: invokevirtual 84 android/database/sqlite/SQLiteDatabase:close ()V
// 96: aconst_null
// 97: areturn
// 98: aload 8
// 100: invokevirtual 87 android/database/sqlite/SQLiteDatabase:beginTransaction ()V
// 103: iload_1
// 104: invokestatic 322 java/lang/Integer:toString (I)Ljava/lang/String;
// 107: astore 7
// 109: aload 8
// 111: ldc 125
// 113: iconst_3
// 114: anewarray 129 java/lang/String
// 117: dup
// 118: iconst_0
// 119: ldc_w 324
// 122: aastore
// 123: dup
// 124: iconst_1
// 125: ldc 51
// 127: aastore
// 128: dup
// 129: iconst_2
// 130: ldc 63
// 132: aastore
// 133: aconst_null
// 134: aconst_null
// 135: aconst_null
// 136: aconst_null
// 137: ldc_w 326
// 140: aload 7
// 142: invokevirtual 330 android/database/sqlite/SQLiteDatabase:query (Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
// 145: astore 9
// 147: ldc2_w 331
// 150: lstore 5
// 152: aload 9
// 154: invokeinterface 335 1 0
// 159: ifeq +476 -> 635
// 162: aload 9
// 164: iconst_0
// 165: invokeinterface 103 2 0
// 170: lstore 5
// 172: aload 9
// 174: iconst_1
// 175: invokeinterface 339 2 0
// 180: istore_3
// 181: aload 9
// 183: iconst_2
// 184: invokeinterface 343 2 0
// 189: astore 11
// 191: iload_3
// 192: ifne +145 -> 337
// 195: invokestatic 267 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 198: astore 7
// 200: aload 7
// 202: aload 11
// 204: iconst_0
// 205: aload 11
// 207: arraylength
// 208: invokevirtual 347 android/os/Parcel:unmarshall ([BII)V
// 211: aload 7
// 213: iconst_0
// 214: invokevirtual 351 android/os/Parcel:setDataPosition (I)V
// 217: getstatic 355 com/google/android/gms/internal/zzatq:CREATOR Landroid/os/Parcelable$Creator;
// 220: aload 7
// 222: invokeinterface 361 2 0
// 227: checkcast 269 com/google/android/gms/internal/zzatq
// 230: astore 10
// 232: aload 7
// 234: invokevirtual 280 android/os/Parcel:recycle ()V
// 237: aload 10
// 239: ifnull +13 -> 252
// 242: aload 12
// 244: aload 10
// 246: invokeinterface 367 2 0
// 251: pop
// 252: goto -100 -> 152
// 255: astore 10
// 257: aload_0
// 258: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 261: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 264: ldc_w 369
// 267: invokevirtual 123 com/google/android/gms/internal/zzatx$zza:log (Ljava/lang/String;)V
// 270: aload 7
// 272: invokevirtual 280 android/os/Parcel:recycle ()V
// 275: goto -123 -> 152
// 278: astore 9
// 280: aload 7
// 282: invokevirtual 280 android/os/Parcel:recycle ()V
// 285: aload 9
// 287: athrow
// 288: astore 9
// 290: aload 8
// 292: astore 7
// 294: aload_0
// 295: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 298: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 301: ldc_w 371
// 304: aload 9
// 306: invokevirtual 164 com/google/android/gms/internal/zzatx$zza:zzj (Ljava/lang/String;Ljava/lang/Object;)V
// 309: aload 8
// 311: astore 7
// 313: aload_0
// 314: iconst_1
// 315: putfield 45 com/google/android/gms/internal/zzatv:b Z
// 318: aload 8
// 320: ifnull +491 -> 811
// 323: aload 8
// 325: invokevirtual 84 android/database/sqlite/SQLiteDatabase:close ()V
// 328: iload 4
// 330: iconst_1
// 331: iadd
// 332: istore 4
// 334: goto -279 -> 55
// 337: iload_3
// 338: iconst_1
// 339: if_icmpne +156 -> 495
// 342: invokestatic 267 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 345: astore 10
// 347: aload 10
// 349: aload 11
// 351: iconst_0
// 352: aload 11
// 354: arraylength
// 355: invokevirtual 347 android/os/Parcel:unmarshall ([BII)V
// 358: aload 10
// 360: iconst_0
// 361: invokevirtual 351 android/os/Parcel:setDataPosition (I)V
// 364: getstatic 372 com/google/android/gms/internal/zzauq:CREATOR Landroid/os/Parcelable$Creator;
// 367: aload 10
// 369: invokeinterface 361 2 0
// 374: checkcast 288 com/google/android/gms/internal/zzauq
// 377: astore 7
// 379: aload 10
// 381: invokevirtual 280 android/os/Parcel:recycle ()V
// 384: aload 7
// 386: ifnull +13 -> 399
// 389: aload 12
// 391: aload 7
// 393: invokeinterface 367 2 0
// 398: pop
// 399: goto -247 -> 152
// 402: astore 7
// 404: aload_0
// 405: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 408: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 411: ldc_w 374
// 414: invokevirtual 123 com/google/android/gms/internal/zzatx$zza:log (Ljava/lang/String;)V
// 417: aload 10
// 419: invokevirtual 280 android/os/Parcel:recycle ()V
// 422: aconst_null
// 423: astore 7
// 425: goto -41 -> 384
// 428: astore 7
// 430: aload 10
// 432: invokevirtual 280 android/os/Parcel:recycle ()V
// 435: aload 7
// 437: athrow
// 438: astore 9
// 440: aload 8
// 442: astore 7
// 444: getstatic 170 android/os/Build$VERSION:SDK_INT I
// 447: bipush 11
// 449: if_icmplt +261 -> 710
// 452: aload 8
// 454: astore 7
// 456: aload 9
// 458: instanceof 172
// 461: ifeq +249 -> 710
// 464: aload 8
// 466: astore 7
// 468: iload_2
// 469: i2l
// 470: invokestatic 178 android/os/SystemClock:sleep (J)V
// 473: iload_2
// 474: bipush 20
// 476: iadd
// 477: istore_3
// 478: iload_3
// 479: istore_2
// 480: aload 8
// 482: ifnull -154 -> 328
// 485: aload 8
// 487: invokevirtual 84 android/database/sqlite/SQLiteDatabase:close ()V
// 490: iload_3
// 491: istore_2
// 492: goto -164 -> 328
// 495: iload_3
// 496: iconst_2
// 497: if_icmpne +122 -> 619
// 500: invokestatic 267 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 503: astore 10
// 505: aload 10
// 507: aload 11
// 509: iconst_0
// 510: aload 11
// 512: arraylength
// 513: invokevirtual 347 android/os/Parcel:unmarshall ([BII)V
// 516: aload 10
// 518: iconst_0
// 519: invokevirtual 351 android/os/Parcel:setDataPosition (I)V
// 522: getstatic 377 com/google/android/gms/internal/zzatg:CREATOR Landroid/os/Parcelable$Creator;
// 525: aload 10
// 527: invokeinterface 361 2 0
// 532: checkcast 376 com/google/android/gms/internal/zzatg
// 535: astore 7
// 537: aload 10
// 539: invokevirtual 280 android/os/Parcel:recycle ()V
// 542: aload 7
// 544: ifnull +13 -> 557
// 547: aload 12
// 549: aload 7
// 551: invokeinterface 367 2 0
// 556: pop
// 557: goto -405 -> 152
// 560: astore 7
// 562: aload_0
// 563: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 566: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 569: ldc_w 374
// 572: invokevirtual 123 com/google/android/gms/internal/zzatx$zza:log (Ljava/lang/String;)V
// 575: aload 10
// 577: invokevirtual 280 android/os/Parcel:recycle ()V
// 580: aconst_null
// 581: astore 7
// 583: goto -41 -> 542
// 586: astore 7
// 588: aload 10
// 590: invokevirtual 280 android/os/Parcel:recycle ()V
// 593: aload 7
// 595: athrow
// 596: astore 7
// 598: aload 8
// 600: astore 9
// 602: aload 7
// 604: astore 8
// 606: aload 9
// 608: ifnull +8 -> 616
// 611: aload 9
// 613: invokevirtual 84 android/database/sqlite/SQLiteDatabase:close ()V
// 616: aload 8
// 618: athrow
// 619: aload_0
// 620: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 623: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 626: ldc_w 379
// 629: invokevirtual 123 com/google/android/gms/internal/zzatx$zza:log (Ljava/lang/String;)V
// 632: goto -480 -> 152
// 635: aload 9
// 637: invokeinterface 380 1 0
// 642: aload 8
// 644: ldc 125
// 646: ldc_w 382
// 649: iconst_1
// 650: anewarray 129 java/lang/String
// 653: dup
// 654: iconst_0
// 655: lload 5
// 657: invokestatic 135 java/lang/Long:toString (J)Ljava/lang/String;
// 660: aastore
// 661: invokevirtual 139 android/database/sqlite/SQLiteDatabase:delete (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I
// 664: aload 12
// 666: invokeinterface 385 1 0
// 671: if_icmpge +16 -> 687
// 674: aload_0
// 675: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 678: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 681: ldc_w 387
// 684: invokevirtual 123 com/google/android/gms/internal/zzatx$zza:log (Ljava/lang/String;)V
// 687: aload 8
// 689: invokevirtual 155 android/database/sqlite/SQLiteDatabase:setTransactionSuccessful ()V
// 692: aload 8
// 694: invokevirtual 158 android/database/sqlite/SQLiteDatabase:endTransaction ()V
// 697: aload 8
// 699: ifnull +8 -> 707
// 702: aload 8
// 704: invokevirtual 84 android/database/sqlite/SQLiteDatabase:close ()V
// 707: aload 12
// 709: areturn
// 710: aload 8
// 712: ifnull +24 -> 736
// 715: aload 8
// 717: astore 7
// 719: aload 8
// 721: invokevirtual 181 android/database/sqlite/SQLiteDatabase:inTransaction ()Z
// 724: ifeq +12 -> 736
// 727: aload 8
// 729: astore 7
// 731: aload 8
// 733: invokevirtual 158 android/database/sqlite/SQLiteDatabase:endTransaction ()V
// 736: aload 8
// 738: astore 7
// 740: aload_0
// 741: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 744: invokevirtual 115 com/google/android/gms/internal/zzatx:zzLY ()Lcom/google/android/gms/internal/zzatx$zza;
// 747: ldc_w 371
// 750: aload 9
// 752: invokevirtual 164 com/google/android/gms/internal/zzatx$zza:zzj (Ljava/lang/String;Ljava/lang/Object;)V
// 755: aload 8
// 757: astore 7
// 759: aload_0
// 760: iconst_1
// 761: putfield 45 com/google/android/gms/internal/zzatv:b Z
// 764: iload_2
// 765: istore_3
// 766: goto -288 -> 478
// 769: aload_0
// 770: invokevirtual 109 com/google/android/gms/internal/zzatv:zzKl ()Lcom/google/android/gms/internal/zzatx;
// 773: invokevirtual 184 com/google/android/gms/internal/zzatx:zzMa ()Lcom/google/android/gms/internal/zzatx$zza;
// 776: ldc_w 389
// 779: invokevirtual 123 com/google/android/gms/internal/zzatx$zza:log (Ljava/lang/String;)V
// 782: aconst_null
// 783: areturn
// 784: astore 8
// 786: aload 7
// 788: astore 9
// 790: goto -184 -> 606
// 793: astore 9
// 795: aload 11
// 797: astore 8
// 799: goto -359 -> 440
// 802: astore 9
// 804: aload 10
// 806: astore 8
// 808: goto -518 -> 290
// 811: goto -483 -> 328
// Local variable table:
// start length slot name signature
// 0 814 0 this zzatv
// 0 814 1 paramInt int
// 11 754 2 i int
// 180 586 3 j int
// 53 280 4 k int
// 150 506 5 l long
// 65 327 7 localObject1 Object
// 402 1 7 localzza1 com.google.android.gms.common.internal.safeparcel.zzb.zza
// 423 1 7 localObject2 Object
// 428 8 7 localObject3 Object
// 442 108 7 localObject4 Object
// 560 1 7 localzza2 com.google.android.gms.common.internal.safeparcel.zzb.zza
// 581 1 7 localObject5 Object
// 586 8 7 localObject6 Object
// 596 7 7 localObject7 Object
// 717 70 7 localObject8 Object
// 74 682 8 localObject9 Object
// 784 1 8 localObject10 Object
// 797 10 8 localObject11 Object
// 145 37 9 localCursor Cursor
// 278 8 9 localObject12 Object
// 288 17 9 localSQLiteFullException1 SQLiteFullException
// 438 19 9 localSQLiteException1 SQLiteException
// 600 189 9 localObject13 Object
// 793 1 9 localSQLiteException2 SQLiteException
// 802 1 9 localSQLiteFullException2 SQLiteFullException
// 68 177 10 localzzatq zzatq
// 255 1 10 localzza3 com.google.android.gms.common.internal.safeparcel.zzb.zza
// 345 460 10 localParcel Parcel
// 62 734 11 arrayOfByte byte[]
// 28 680 12 localArrayList java.util.ArrayList
// Exception table:
// from to target type
// 200 232 255 com/google/android/gms/common/internal/safeparcel/zzb$zza
// 200 232 278 finally
// 257 270 278 finally
// 81 86 288 android/database/sqlite/SQLiteFullException
// 98 147 288 android/database/sqlite/SQLiteFullException
// 152 191 288 android/database/sqlite/SQLiteFullException
// 195 200 288 android/database/sqlite/SQLiteFullException
// 232 237 288 android/database/sqlite/SQLiteFullException
// 242 252 288 android/database/sqlite/SQLiteFullException
// 270 275 288 android/database/sqlite/SQLiteFullException
// 280 288 288 android/database/sqlite/SQLiteFullException
// 342 347 288 android/database/sqlite/SQLiteFullException
// 379 384 288 android/database/sqlite/SQLiteFullException
// 389 399 288 android/database/sqlite/SQLiteFullException
// 417 422 288 android/database/sqlite/SQLiteFullException
// 430 438 288 android/database/sqlite/SQLiteFullException
// 500 505 288 android/database/sqlite/SQLiteFullException
// 537 542 288 android/database/sqlite/SQLiteFullException
// 547 557 288 android/database/sqlite/SQLiteFullException
// 575 580 288 android/database/sqlite/SQLiteFullException
// 588 596 288 android/database/sqlite/SQLiteFullException
// 619 632 288 android/database/sqlite/SQLiteFullException
// 635 687 288 android/database/sqlite/SQLiteFullException
// 687 697 288 android/database/sqlite/SQLiteFullException
// 347 379 402 com/google/android/gms/common/internal/safeparcel/zzb$zza
// 347 379 428 finally
// 404 417 428 finally
// 81 86 438 android/database/sqlite/SQLiteException
// 98 147 438 android/database/sqlite/SQLiteException
// 152 191 438 android/database/sqlite/SQLiteException
// 195 200 438 android/database/sqlite/SQLiteException
// 232 237 438 android/database/sqlite/SQLiteException
// 242 252 438 android/database/sqlite/SQLiteException
// 270 275 438 android/database/sqlite/SQLiteException
// 280 288 438 android/database/sqlite/SQLiteException
// 342 347 438 android/database/sqlite/SQLiteException
// 379 384 438 android/database/sqlite/SQLiteException
// 389 399 438 android/database/sqlite/SQLiteException
// 417 422 438 android/database/sqlite/SQLiteException
// 430 438 438 android/database/sqlite/SQLiteException
// 500 505 438 android/database/sqlite/SQLiteException
// 537 542 438 android/database/sqlite/SQLiteException
// 547 557 438 android/database/sqlite/SQLiteException
// 575 580 438 android/database/sqlite/SQLiteException
// 588 596 438 android/database/sqlite/SQLiteException
// 619 632 438 android/database/sqlite/SQLiteException
// 635 687 438 android/database/sqlite/SQLiteException
// 687 697 438 android/database/sqlite/SQLiteException
// 505 537 560 com/google/android/gms/common/internal/safeparcel/zzb$zza
// 505 537 586 finally
// 562 575 586 finally
// 81 86 596 finally
// 98 147 596 finally
// 152 191 596 finally
// 195 200 596 finally
// 232 237 596 finally
// 242 252 596 finally
// 270 275 596 finally
// 280 288 596 finally
// 342 347 596 finally
// 379 384 596 finally
// 389 399 596 finally
// 417 422 596 finally
// 430 438 596 finally
// 500 505 596 finally
// 537 542 596 finally
// 547 557 596 finally
// 575 580 596 finally
// 588 596 596 finally
// 619 632 596 finally
// 635 687 596 finally
// 687 697 596 finally
// 70 76 784 finally
// 294 309 784 finally
// 313 318 784 finally
// 444 452 784 finally
// 456 464 784 finally
// 468 473 784 finally
// 719 727 784 finally
// 731 736 784 finally
// 740 755 784 finally
// 759 764 784 finally
// 70 76 793 android/database/sqlite/SQLiteException
// 70 76 802 android/database/sqlite/SQLiteFullException
}
protected void zzmS() {}
@TargetApi(11)
final class a
extends SQLiteOpenHelper
{
a(Context paramContext, String paramString)
{
super(paramString, null, 1);
}
@WorkerThread
public final SQLiteDatabase getWritableDatabase()
{
try
{
SQLiteDatabase localSQLiteDatabase = super.getWritableDatabase();
return localSQLiteDatabase;
}
catch (SQLiteException localSQLiteException1)
{
if ((Build.VERSION.SDK_INT >= 11) && ((localSQLiteException1 instanceof SQLiteDatabaseLockedException))) {
throw localSQLiteException1;
}
zzatv.this.zzKl().zzLY().log("Opening the local database failed, dropping and recreating it");
Object localObject = zzatv.this.a();
if (!zzatv.this.getContext().getDatabasePath((String)localObject).delete()) {
zzatv.this.zzKl().zzLY().zzj("Failed to delete corrupted local db file", localObject);
}
try
{
localObject = super.getWritableDatabase();
return (SQLiteDatabase)localObject;
}
catch (SQLiteException localSQLiteException2)
{
zzatv.this.zzKl().zzLY().zzj("Failed to open local database. Events will bypass local storage", localSQLiteException2);
}
}
return null;
}
@WorkerThread
public final void onCreate(SQLiteDatabase paramSQLiteDatabase)
{
zzatj.a(zzatv.this.zzKl(), paramSQLiteDatabase);
}
@WorkerThread
public final void onOpen(SQLiteDatabase paramSQLiteDatabase)
{
Cursor localCursor;
if (Build.VERSION.SDK_INT < 15) {
localCursor = paramSQLiteDatabase.rawQuery("PRAGMA journal_mode=memory", null);
}
try
{
localCursor.moveToFirst();
localCursor.close();
zzatj.a(zzatv.this.zzKl(), paramSQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null);
return;
}
finally
{
localCursor.close();
}
}
@WorkerThread
public final void onUpgrade(SQLiteDatabase paramSQLiteDatabase, int paramInt1, int paramInt2) {}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzatv.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/