-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRIL.smali
29075 lines (17693 loc) · 773 KB
/
RIL.smali
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
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.class public Lcom/android/internal/telephony/RIL;
.super Lcom/android/internal/telephony/BaseCommands;
.source "RIL.java"
# interfaces
.implements Lcom/android/internal/telephony/CommandsInterface;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/internal/telephony/RIL$RILReceiver;,
Lcom/android/internal/telephony/RIL$RILSender;
}
.end annotation
# static fields
.field private static final CDMA_BROADCAST_SMS_NO_OF_SERVICE_CATEGORIES:I = 0x1f
.field private static final CDMA_BSI_NO_OF_INTS_STRUCT:I = 0x3
.field public static final CELL_BROADCAST_ENABLE:Z = true
.field private static final DEFAULT_WAKE_LOCK_TIMEOUT:I = 0xea60
.field static final ETWS_TEST:Ljava/lang/String; = "jp.co.android.softbankCBM.ETWS"
.field static final EVENT_SEND:I = 0x1
.field static final EVENT_SIMDB_UNKNOWN_READY:I = 0x3
.field static final EVENT_WAKE_LOCK_TIMEOUT:I = 0x2
.field static final NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX:I = 0x64
.field static final RESPONSE_SOLICITED:I = 0x0
.field static final RESPONSE_UNSOLICITED:I = 0x1
.field static final RILJ_LOGD:Z = true
.field static final RILJ_LOGV:Z = false
.field static final RILJ_LOG_TAG:Ljava/lang/String; = "RILJ"
.field static final RIL_MAX_COMMAND_BYTES:I = 0x2000
#the value of this static final field might be set in the static constructor
.field static final SHIP_BUILD:Z = false
.field static final SOCKET_NAME_RIL:Ljava/lang/String; = "rild"
.field static final SOCKET_OPEN_RETRY_MILLIS:I = 0xfa0
.field static final USSD_DCS_KS5601:I = 0x94
# instance fields
.field private initPhoneType:I
.field mIntentReceiver:Landroid/content/BroadcastReceiver;
.field mLastNITZTimeInfo:Ljava/lang/Object;
.field private mRadioPower:I
.field mReceiver:Lcom/android/internal/telephony/RIL$RILReceiver;
.field mReceiverThread:Ljava/lang/Thread;
.field mRequestList:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray",
"<",
"Lcom/android/internal/telephony/RILRequest;",
">;"
}
.end annotation
.end field
.field private mSafetyMode:Z
.field mSender:Lcom/android/internal/telephony/RIL$RILSender;
.field mSenderThread:Landroid/os/HandlerThread;
.field private mSetPreferredNetworkType:I
.field private mSimSlot:I
.field mSocket:Landroid/net/LocalSocket;
.field private mSocketName:Ljava/lang/String;
.field mTestingEmergencyCall:Ljava/util/concurrent/atomic/AtomicBoolean;
.field mWakeLock:Landroid/os/PowerManager$WakeLock;
.field mWakeLockCount:I
.field final mWakeLockTimeout:I
# direct methods
.method static constructor <clinit>()V
.registers 3
.prologue
.line 271
const-string v0, "true"
const-string v1, "ro.product_ship"
const-string v2, "false"
invoke-static {v1, v2}, Landroid/os/SystemProperties;->get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
sput-boolean v0, Lcom/android/internal/telephony/RIL;->SHIP_BUILD:Z
return-void
.end method
.method public constructor <init>(Landroid/content/Context;II)V
.registers 5
.parameter "context"
.parameter "preferredNetworkType"
.parameter "cdmaSubscription"
.prologue
.line 705
const/4 v0, 0x0
invoke-direct {p0, p1, p2, p3, v0}, Lcom/android/internal/telephony/RIL;-><init>(Landroid/content/Context;III)V
.line 706
return-void
.end method
.method public constructor <init>(Landroid/content/Context;III)V
.registers 12
.parameter "context"
.parameter "preferredNetworkType"
.parameter "cdmaSubscription"
.parameter "simSlot"
.prologue
const/4 v6, 0x0
.line 710
invoke-direct {p0, p1}, Lcom/android/internal/telephony/BaseCommands;-><init>(Landroid/content/Context;)V
.line 295
new-instance v4, Landroid/util/SparseArray;
invoke-direct {v4}, Landroid/util/SparseArray;-><init>()V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mRequestList:Landroid/util/SparseArray;
.line 301
const/4 v4, -0x1
iput v4, p0, Lcom/android/internal/telephony/RIL;->mRadioPower:I
.line 305
iput v6, p0, Lcom/android/internal/telephony/RIL;->initPhoneType:I
.line 309
iput-boolean v6, p0, Lcom/android/internal/telephony/RIL;->mSafetyMode:Z
.line 313
new-instance v4, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v4, v6}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mTestingEmergencyCall:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 347
new-instance v4, Lcom/android/internal/telephony/RIL$1;
invoke-direct {v4, p0}, Lcom/android/internal/telephony/RIL$1;-><init>(Lcom/android/internal/telephony/RIL;)V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mIntentReceiver:Landroid/content/BroadcastReceiver;
.line 712
iput p4, p0, Lcom/android/internal/telephony/RIL;->mSimSlot:I
.line 715
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "RIL(context, preferredNetworkType="
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, " cdmaSubscription="
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, ")"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-direct {p0, v4}, Lcom/android/internal/telephony/RIL;->riljLog(Ljava/lang/String;)V
.line 719
iput p3, p0, Lcom/android/internal/telephony/BaseCommands;->mCdmaSubscription:I
.line 720
iput p2, p0, Lcom/android/internal/telephony/BaseCommands;->mPreferredNetworkType:I
.line 721
iput v6, p0, Lcom/android/internal/telephony/BaseCommands;->mPhoneType:I
.line 723
const-string v4, "power"
invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/os/PowerManager;
.line 724
.local v3, pm:Landroid/os/PowerManager;
const/4 v4, 0x1
const-string v5, "RILJ"
invoke-virtual {v3, v4, v5}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v4
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
.line 725
iget-object v4, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
invoke-virtual {v4, v6}, Landroid/os/PowerManager$WakeLock;->setReferenceCounted(Z)V
.line 727
const-string v4, "ro.ril.wake_lock_timeout"
invoke-static {v4, p4}, Lcom/android/internal/telephony/MultiSimManager;->appendPropertySimSlot(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v4
const v5, 0xea60
invoke-static {v4, v5}, Landroid/os/SystemProperties;->getInt(Ljava/lang/String;I)I
move-result v4
iput v4, p0, Lcom/android/internal/telephony/RIL;->mWakeLockTimeout:I
.line 730
iput v6, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
.line 732
const-string v4, "rild"
invoke-static {v4, p4}, Lcom/android/internal/telephony/MultiSimManager;->appendSocketNameSimSlot(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v4
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mSocketName:Ljava/lang/String;
.line 733
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "RIL Socket Name:"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
iget-object v5, p0, Lcom/android/internal/telephony/RIL;->mSocketName:Ljava/lang/String;
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-direct {p0, v4}, Lcom/android/internal/telephony/RIL;->riljLog(Ljava/lang/String;)V
.line 736
new-instance v4, Landroid/os/HandlerThread;
const-string v5, "RILSender"
invoke-direct {v4, v5}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mSenderThread:Landroid/os/HandlerThread;
.line 737
iget-object v4, p0, Lcom/android/internal/telephony/RIL;->mSenderThread:Landroid/os/HandlerThread;
invoke-virtual {v4}, Ljava/lang/Thread;->start()V
.line 739
iget-object v4, p0, Lcom/android/internal/telephony/RIL;->mSenderThread:Landroid/os/HandlerThread;
invoke-virtual {v4}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
move-result-object v2
.line 740
.local v2, looper:Landroid/os/Looper;
new-instance v4, Lcom/android/internal/telephony/RIL$RILSender;
invoke-direct {v4, p0, v2}, Lcom/android/internal/telephony/RIL$RILSender;-><init>(Lcom/android/internal/telephony/RIL;Landroid/os/Looper;)V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mSender:Lcom/android/internal/telephony/RIL$RILSender;
.line 742
const-string v4, "connectivity"
invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
.line 744
.local v0, cm:Landroid/net/ConnectivityManager;
invoke-virtual {v0, v6}, Landroid/net/ConnectivityManager;->isNetworkSupported(I)Z
move-result v4
if-nez v4, :cond_c4
.line 745
const-string v4, "Not starting RILReceiver: wifi-only"
invoke-direct {p0, v4}, Lcom/android/internal/telephony/RIL;->riljLog(Ljava/lang/String;)V
.line 765
:goto_c3
return-void
.line 747
:cond_c4
const-string v4, "Starting RILReceiver"
invoke-direct {p0, v4}, Lcom/android/internal/telephony/RIL;->riljLog(Ljava/lang/String;)V
.line 748
new-instance v4, Lcom/android/internal/telephony/RIL$RILReceiver;
invoke-direct {v4, p0}, Lcom/android/internal/telephony/RIL$RILReceiver;-><init>(Lcom/android/internal/telephony/RIL;)V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mReceiver:Lcom/android/internal/telephony/RIL$RILReceiver;
.line 749
new-instance v4, Ljava/lang/Thread;
iget-object v5, p0, Lcom/android/internal/telephony/RIL;->mReceiver:Lcom/android/internal/telephony/RIL$RILReceiver;
const-string v6, "RILReceiver"
invoke-direct {v4, v5, v6}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
iput-object v4, p0, Lcom/android/internal/telephony/RIL;->mReceiverThread:Ljava/lang/Thread;
.line 750
iget-object v4, p0, Lcom/android/internal/telephony/RIL;->mReceiverThread:Ljava/lang/Thread;
invoke-virtual {v4}, Ljava/lang/Thread;->start()V
.line 752
new-instance v1, Landroid/content/IntentFilter;
invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V
.line 753
.local v1, filter:Landroid/content/IntentFilter;
const-string v4, "android.intent.action.SCREEN_ON"
invoke-virtual {v1, v4}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 754
const-string v4, "android.intent.action.SCREEN_OFF"
invoke-virtual {v1, v4}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 756
const-string v4, "com.samsung.intent.action.SIMDB_UNKNOWN_READY"
invoke-virtual {v1, v4}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 760
const-string v4, "jp.co.android.softbankCBM.ETWS"
invoke-virtual {v1, v4}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 763
iget-object v4, p0, Lcom/android/internal/telephony/RIL;->mIntentReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {p1, v4, v1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
goto :goto_c3
.end method
.method static synthetic access$000(Lcom/android/internal/telephony/RIL;Z)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 265
invoke-direct {p0, p1}, Lcom/android/internal/telephony/RIL;->sendScreenState(Z)V
return-void
.end method
.method static synthetic access$100(Lcom/android/internal/telephony/RIL;)V
.registers 1
.parameter "x0"
.prologue
.line 265
invoke-direct {p0}, Lcom/android/internal/telephony/RIL;->decrementWakeLock()V
return-void
.end method
.method static synthetic access$200(Lcom/android/internal/telephony/RIL;I)Lcom/android/internal/telephony/RILRequest;
.registers 3
.parameter "x0"
.parameter "x1"
.prologue
.line 265
invoke-direct {p0, p1}, Lcom/android/internal/telephony/RIL;->findAndRemoveRequestFromList(I)Lcom/android/internal/telephony/RILRequest;
move-result-object v0
return-object v0
.end method
.method static synthetic access$300(Lcom/android/internal/telephony/RIL;)Z
.registers 2
.parameter "x0"
.prologue
.line 265
invoke-direct {p0}, Lcom/android/internal/telephony/RIL;->clearWakeLock()Z
move-result v0
return v0
.end method
.method static synthetic access$400(Lcom/android/internal/telephony/RIL;)Ljava/lang/String;
.registers 2
.parameter "x0"
.prologue
.line 265
iget-object v0, p0, Lcom/android/internal/telephony/RIL;->mSocketName:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$500(Ljava/io/InputStream;[B)I
.registers 3
.parameter "x0"
.parameter "x1"
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
.line 265
invoke-static {p0, p1}, Lcom/android/internal/telephony/RIL;->readRilMessage(Ljava/io/InputStream;[B)I
move-result v0
return v0
.end method
.method static synthetic access$600(Lcom/android/internal/telephony/RIL;Landroid/os/Parcel;)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 265
invoke-direct {p0, p1}, Lcom/android/internal/telephony/RIL;->processResponse(Landroid/os/Parcel;)V
return-void
.end method
.method static synthetic access$700(Lcom/android/internal/telephony/RIL;IZ)V
.registers 3
.parameter "x0"
.parameter "x1"
.parameter "x2"
.prologue
.line 265
invoke-direct {p0, p1, p2}, Lcom/android/internal/telephony/RIL;->clearRequestList(IZ)V
return-void
.end method
.method static synthetic access$800(Lcom/android/internal/telephony/RIL;I)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 265
invoke-direct {p0, p1}, Lcom/android/internal/telephony/RIL;->notifyRegistrantsRilConnectionChanged(I)V
return-void
.end method
.method private acquireWakeLock()V
.registers 6
.prologue
.line 2473
iget-object v2, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
monitor-enter v2
.line 2474
:try_start_3
iget-object v1, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->acquire()V
.line 2475
iget v1, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
.line 2477
iget-object v1, p0, Lcom/android/internal/telephony/RIL;->mSender:Lcom/android/internal/telephony/RIL$RILSender;
const/4 v3, 0x2
invoke-virtual {v1, v3}, Landroid/os/Handler;->removeMessages(I)V
.line 2478
iget-object v1, p0, Lcom/android/internal/telephony/RIL;->mSender:Lcom/android/internal/telephony/RIL$RILSender;
const/4 v3, 0x2
invoke-virtual {v1, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
move-result-object v0
.line 2479
.local v0, msg:Landroid/os/Message;
iget-object v1, p0, Lcom/android/internal/telephony/RIL;->mSender:Lcom/android/internal/telephony/RIL$RILSender;
iget v3, p0, Lcom/android/internal/telephony/RIL;->mWakeLockTimeout:I
int-to-long v3, v3
invoke-virtual {v1, v0, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
.line 2480
monitor-exit v2
.line 2481
return-void
.line 2480
.end local v0 #msg:Landroid/os/Message;
:catchall_25
move-exception v1
monitor-exit v2
:try_end_27
.catchall {:try_start_3 .. :try_end_27} :catchall_25
throw v1
.end method
.method private clearRequestList(IZ)V
.registers 10
.parameter "error"
.parameter "loggable"
.prologue
.line 2552
iget-object v4, p0, Lcom/android/internal/telephony/RIL;->mRequestList:Landroid/util/SparseArray;
monitor-enter v4
.line 2553
:try_start_3
iget-object v3, p0, Lcom/android/internal/telephony/RIL;->mRequestList:Landroid/util/SparseArray;
invoke-virtual {v3}, Landroid/util/SparseArray;->size()I
move-result v0
.line 2554
.local v0, count:I
if-eqz p2, :cond_2f
.line 2555
const-string v3, "RILJ"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, "clearRequestList mWakeLockCount="
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
iget v6, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v5
const-string v6, " mRequestList="
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-static {v3, v5}, Landroid/telephony/Rlog;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 2560
:cond_2f
const/4 v1, 0x0
.local v1, i:I
:goto_30
if-ge v1, v0, :cond_77
.line 2561
iget-object v3, p0, Lcom/android/internal/telephony/RIL;->mRequestList:Landroid/util/SparseArray;
invoke-virtual {v3, v1}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/android/internal/telephony/RILRequest;
.line 2562
.local v2, rr:Lcom/android/internal/telephony/RILRequest;
if-eqz p2, :cond_6a
.line 2563
const-string v3, "RILJ"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v5
const-string v6, ": ["
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
iget v6, v2, Lcom/android/internal/telephony/RILRequest;->mSerial:I
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v5
const-string v6, "] "
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
iget v6, v2, Lcom/android/internal/telephony/RILRequest;->mRequest:I
invoke-static {v6}, Lcom/android/internal/telephony/RIL;->requestToString(I)Ljava/lang/String;
move-result-object v6
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-static {v3, v5}, Landroid/telephony/Rlog;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 2566
:cond_6a
const/4 v3, 0x0
invoke-virtual {v2, p1, v3}, Lcom/android/internal/telephony/RILRequest;->onError(ILjava/lang/Object;)V
.line 2567
invoke-virtual {v2}, Lcom/android/internal/telephony/RILRequest;->release()V
.line 2568
invoke-direct {p0}, Lcom/android/internal/telephony/RIL;->decrementWakeLock()V
.line 2560
add-int/lit8 v1, v1, 0x1
goto :goto_30
.line 2570
.end local v2 #rr:Lcom/android/internal/telephony/RILRequest;
:cond_77
iget-object v3, p0, Lcom/android/internal/telephony/RIL;->mRequestList:Landroid/util/SparseArray;
invoke-virtual {v3}, Landroid/util/SparseArray;->clear()V
.line 2571
monitor-exit v4
.line 2572
return-void
.line 2571
.end local v0 #count:I
.end local v1 #i:I
:catchall_7e
move-exception v3
monitor-exit v4
:try_end_80
.catchall {:try_start_3 .. :try_end_80} :catchall_7e
throw v3
.end method
.method private clearWakeLock()Z
.registers 5
.prologue
const/4 v0, 0x0
.line 2499
iget-object v1, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
monitor-enter v1
.line 2500
:try_start_4
iget v2, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
if-nez v2, :cond_12
iget-object v2, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->isHeld()Z
move-result v2
if-nez v2, :cond_12
monitor-exit v1
.line 2505
:goto_11
return v0
.line 2501
:cond_12
const-string v0, "RILJ"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "NOTE: mWakeLockCount is "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget v3, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, "at time of clearing"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v0, v2}, Landroid/telephony/Rlog;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 2502
const/4 v0, 0x0
iput v0, p0, Lcom/android/internal/telephony/RIL;->mWakeLockCount:I
.line 2503
iget-object v0, p0, Lcom/android/internal/telephony/RIL;->mWakeLock:Landroid/os/PowerManager$WakeLock;
invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V
.line 2504
iget-object v0, p0, Lcom/android/internal/telephony/RIL;->mSender:Lcom/android/internal/telephony/RIL$RILSender;
const/4 v2, 0x2
invoke-virtual {v0, v2}, Landroid/os/Handler;->removeMessages(I)V
.line 2505
const/4 v0, 0x1
monitor-exit v1
goto :goto_11
.line 2506
:catchall_43
move-exception v0
monitor-exit v1
:try_end_45
.catchall {:try_start_4 .. :try_end_45} :catchall_43
throw v0
.end method
.method private constructCdmaSendSmsRilRequest(Lcom/android/internal/telephony/RILRequest;[B)V
.registers 12
.parameter "rr"
.parameter "pdu"
.prologue
.line 1432
new-instance v1, Ljava/io/ByteArrayInputStream;
invoke-direct {v1, p2}, Ljava/io/ByteArrayInputStream;-><init>([B)V
.line 1433
.local v1, bais:Ljava/io/ByteArrayInputStream;
new-instance v3, Ljava/io/DataInputStream;
invoke-direct {v3, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
.line 1436
.local v3, dis:Ljava/io/DataInputStream;
:try_start_a
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/DataInputStream;->readInt()I
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeInt(I)V
.line 1437
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/DataInputStream;->readInt()I
move-result v8
int-to-byte v8, v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeByte(B)V
.line 1438
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/DataInputStream;->readInt()I
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeInt(I)V
.line 1439
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/FilterInputStream;->read()I
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeInt(I)V
.line 1440
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/FilterInputStream;->read()I
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeInt(I)V
.line 1441
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/FilterInputStream;->read()I
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeInt(I)V
.line 1442
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/FilterInputStream;->read()I
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeInt(I)V
.line 1443
invoke-virtual {v3}, Ljava/io/FilterInputStream;->read()I
move-result v7
int-to-byte v0, v7
.line 1444
.local v0, address_nbr_of_digits:I
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
int-to-byte v8, v0
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeByte(B)V
.line 1445
const/4 v5, 0x0
.local v5, i:I
:goto_56
if-ge v5, v0, :cond_64
.line 1446
iget-object v7, p1, Lcom/android/internal/telephony/RILRequest;->mParcel:Landroid/os/Parcel;
invoke-virtual {v3}, Ljava/io/DataInputStream;->readByte()B
move-result v8
invoke-virtual {v7, v8}, Landroid/os/Parcel;->writeByte(B)V
.line 1445
add-int/lit8 v5, v5, 0x1