Offset 1, 156 lines modifiedOffset 1, 333 lines modified
1 .class·public·Lcom/android/car/ui/FocusParkingView;1 .class·public·Lcom/android/car/ui/FocusParkingView;
2 .super·Landroid/view/View;2 .super·Landroid/view/View;
3 .source·"FocusParkingView.java"3 .source·"FocusParkingView.java"
  
  
 4 #·static·fields
 5 .field·private·static·final·TAG:Ljava/lang/String;·=·"FocusParkingView"
  
  
4 #·direct·methods6 #·direct·methods
5 .method·public·constructor·<init>(Landroid/content/Context;)V7 .method·public·constructor·<init>(Landroid/content/Context;)V
6 ····.locals·08 ····.locals·0
  
7 ····.line·549 ····.line·62
8 ····invoke-direct·{p0,·p1},·Landroid/view/View;-><init>(Landroid/content/Context;)V10 ····invoke-direct·{p0,·p1},·Landroid/view/View;-><init>(Landroid/content/Context;)V
  
9 ····.line·5511 ····.line·63
10 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V12 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V
  
11 ····return-void13 ····return-void
12 .end·method14 .end·method
  
13 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V15 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
14 ····.locals·016 ····.locals·0
  
15 ····.line·5917 ····.line·67
16 ····invoke-direct·{p0,·p1,·p2},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V18 ····invoke-direct·{p0,·p1,·p2},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
  
17 ····.line·6019 ····.line·68
18 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V20 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V
  
19 ····return-void21 ····return-void
20 .end·method22 .end·method
  
21 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V23 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
22 ····.locals·024 ····.locals·0
  
23 ····.line·6425 ····.line·72
24 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V26 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
  
25 ····.line·6527 ····.line·73
26 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V28 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V
  
27 ····return-void29 ····return-void
28 .end·method30 .end·method
  
29 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V31 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
30 ····.locals·032 ····.locals·0
  
31 ····.line·7033 ····.line·78
32 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V34 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
  
33 ····.line·7135 ····.line·79
34 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V36 ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V
  
35 ····return-void37 ····return-void
36 .end·method38 .end·method
  
37 .method·private·init()V39 .method·private·init()V
38 ····.locals·240 ····.locals·2
  
39 ····const/4·v0,·0x141 ····const/4·v0,·0x1
  
40 ····.line·7642 ····.line·84
41 ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setFocusable(I)V43 ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setFocusable(I)V
  
42 ····const/4·v1,·0x044 ····const/4·v1,·0x0
  
43 ····.line·7745 ····.line·85
44 ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setVisibility(I)V46 ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setVisibility(I)V
  
45 ····.line·7847 ····.line·86
46 ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setEnabled(Z)V48 ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setEnabled(Z)V
  
47 ····.line·8249 ····.line·90
48 ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setClickable(Z)V50 ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setClickable(Z)V
  
49 ····const/4·v0,·0x051 ····const/4·v0,·0x0
  
50 ····.line·8552 ····.line·93
51 ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setAlpha(F)V53 ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setAlpha(F)V
  
52 ····.line·8854 ····.line·96
53 ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setDefaultFocusHighlightEnabled(Z)V55 ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setDefaultFocusHighlightEnabled(Z)V
  
54 ····return-void56 ····return-void
55 .end·method57 .end·method
  
 58 .method·private·synthetic·lambda$onAttachedToWindow$0([ZLandroid/view/View;)Z
 59 ····.locals·2
  
 60 ····const/4·v0,·0x1
  
 61 ····const/4·v1,·0x0
  
 62 ····if-ne·p0,·p2,·:cond_0
  
 63 ····.line·168
 64 ····aput-boolean·v0,·p1,·v1
  
 65 ····:cond_0
 66 ····if-eq·p2,·p0,·:cond_1
  
 67 ····.line·170
 68 ····instance-of·p1,·p2,·Lcom/android/car/ui/FocusParkingView;
  
 69 ····if-eqz·p1,·:cond_1
  
 70 ····invoke-virtual·{p2},·Landroid/view/View;->isFocusable()Z
  
 71 ····move-result·p1
  
 72 ····if-eqz·p1,·:cond_1
  
 73 ····goto·:goto_0
  
 74 ····:cond_1
 75 ····move·v0,·v1
  
 76 ····:goto_0
 77 ····return·v0
 78 .end·method
  
  
56 #·virtual·methods79 #·virtual·methods
57 .method·public·getAccessibilityClassName()Ljava/lang/CharSequence;80 .method·public·getAccessibilityClassName()Ljava/lang/CharSequence;
58 ····.locals·181 ····.locals·1
  
59 ····.line·11482 ····.line·122
60 ····const-class·v0,·Lcom/android/car/ui/FocusParkingView;83 ····const-class·v0,·Lcom/android/car/ui/FocusParkingView;
  
61 ····invoke-virtual·{v0},·Ljava/lang/Class;->getName()Ljava/lang/String;84 ····invoke-virtual·{v0},·Ljava/lang/Class;->getName()Ljava/lang/String;
  
62 ····move-result-object·v085 ····move-result-object·v0
  
63 ····return-object·v086 ····return-object·v0
64 .end·method87 .end·method
  
 88 .method·public·synthetic·lambda$onAttachedToWindow$0$FocusParkingView([ZLandroid/view/View;)Z
 89 ····.locals·0
  
 90 ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/FocusParkingView;->lambda$onAttachedToWindow$0([ZLandroid/view/View;)Z
  
 91 ····move-result·p1
  
 92 ····return·p1
 93 .end·method
  
 94 .method·protected·onAttachedToWindow()V
 95 ····.locals·4
  
 96 ····.line·161
 97 ····invoke-super·{p0},·Landroid/view/View;->onAttachedToWindow()V
  
 98 ····const/4·v0,·0x1
  
 99 ····new-array·v0,·v0,·[Z
  
 100 ····.line·166
 101 ····invoke-virtual·{p0},·Landroid/view/View;->getRootView()Landroid/view/View;
  
 102 ····move-result-object·v1
  
 103 ····new-instance·v2,·Lcom/android/car/ui/-$$Lambda$FocusParkingView$J-1mTA7oM6hAz2Y8jYsUkkZR3sk;
  
 104 ····invoke-direct·{v2,·p0,·v0},·Lcom/android/car/ui/-$$Lambda$FocusParkingView$J-1mTA7oM6hAz2Y8jYsUkkZR3sk;-><init>(Lcom/android/car/ui/FocusParkingView;[Z)V
  
 105 ····invoke-static·{v1,·v2},·Lcom/android/car/ui/utils/ViewUtils;->depthFirstSearch(Landroid/view/View;Lcom/android/car/ui/utils/ViewUtils$Predicate;)Landroid/view/View;
  
 106 ····move-result-object·v1
  
 107 ····if-eqz·v1,·:cond_1
  
 108 ····const-string·v2,·"FocusParkingView"
  
 109 ····const-string·v3,·"There·should·be·only·one·FocusParkingView·in·the·window"
  
 110 ····.line·173
 111 ····invoke-static·{v2,·v3},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
  
 112 ····const/4·v2,·0x0
  
 113 ····.line·174
 114 ····aget-boolean·v0,·v0,·v2
  
 115 ····if-eqz·v0,·:cond_0
  
 116 ····.line·175
 117 ····invoke-virtual·{v1,·v2},·Landroid/view/View;->setFocusable(Z)V
  
 118 ····goto·:goto_0
  
 119 ····.line·177
 120 ····:cond_0
 121 ····invoke-virtual·{p0,·v2},·Landroid/view/View;->setFocusable(Z)V
  
 122 ····:cond_1
 123 ····:goto_0
 124 ····return-void
 125 .end·method
  
65 .method·protected·onMeasure(II)V126 .method·protected·onMeasure(II)V
66 ····.locals·0127 ····.locals·0
  
67 ····const/4·p1,·0x1128 ····const/4·p1,·0x1
  
68 ····.line·96129 ····.line·104
69 ····invoke-virtual·{p0,·p1,·p1},·Landroid/view/View;->setMeasuredDimension(II)V130 ····invoke-virtual·{p0,·p1,·p1},·Landroid/view/View;->setMeasuredDimension(II)V
  
70 ····return-void131 ····return-void
71 .end·method132 .end·method
  
72 .method·public·onWindowFocusChanged(Z)V133 .method·public·onWindowFocusChanged(Z)V
73 ····.locals·0134 ····.locals·0
  
74 ····if-nez·p1,·:cond_0135 ····if-nez·p1,·:cond_0
  
75 ····.line·107136 ····.line·115
76 ····invoke-virtual·{p0},·Landroid/view/View;->requestFocus()Z137 ····invoke-virtual·{p0},·Landroid/view/View;->requestFocus()Z
  
77 ····.line·109138 ····.line·117
78 ····:cond_0139 ····:cond_0
79 ····invoke-super·{p0,·p1},·Landroid/view/View;->onWindowFocusChanged(Z)V140 ····invoke-super·{p0,·p1},·Landroid/view/View;->onWindowFocusChanged(Z)V
  
80 ····return-void141 ····return-void
81 .end·method142 .end·method
  
82 .method·public·performAccessibilityAction(ILandroid/os/Bundle;)Z143 .method·public·performAccessibilityAction(ILandroid/os/Bundle;)Z
83 ····.locals·1144 ····.locals·2
  
 145 ····const/4·v0,·0x1
  
 146 ····if-eq·p1,·v0,·:cond_4
  
 147 ····const/high16·v0,·0x4000000
  
 148 ····const/4·v1,·0x0
  
 149 ····if-eq·p1,·v0,·:cond_1
  
 150 ····const/high16·v0,·0x8000000
  
 151 ····if-eq·p1,·v0,·:cond_0
  
 152 ····goto·:goto_0
  
 153 ····.line·146
 154 ····:cond_0
 155 ····invoke-virtual·{p0},·Landroid/view/View;->getContext()Landroid/content/Context;
  
 156 ····move-result-object·p1
  
 157 ····const-class·p2,·Landroid/view/inputmethod/InputMethodManager;
  
 158 ····invoke-virtual·{p1,·p2},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
  
 159 ····move-result-object·p1
  
84 ····const/high16·v0,·0x100000160 ····check-cast·p1,·Landroid/view/inputmethod/InputMethodManager;
  
85 ····if-ne·p1,·v0,·:cond_0161 ····.line·147
 162 ····invoke-virtual·{p0},·Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
  
86 ····.line·121163 ····move-result-object·p2
  
 164 ····invoke-virtual·{p1,·p2,·v1},·Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
  
 165 ····move-result·p1
  
 166 ····return·p1
  
 167 ····.line·129
 168 ····:cond_1
87 ····invoke-virtual·{p0},·Landroid/view/View;->getRootView()Landroid/view/View;169 ····invoke-virtual·{p0},·Landroid/view/View;->getRootView()Landroid/view/View;
  
88 ····move-result-object·p1170 ····move-result-object·p1
  
89 ····invoke-virtual·{p1},·Landroid/view/View;->restoreDefaultFocus()Z171 ····.line·132
 172 ····invoke-static·{p1},·Lcom/android/car/ui/utils/ViewUtils;->findFocusedByDefaultView(Landroid/view/View;)Landroid/view/View;
  
 173 ····move-result-object·p2
  
90 ····.line·123174 ····if-eqz·p2,·:cond_2
91 ····invoke-virtual·{p0},·Landroid/view/View;->isFocused()Z 
 175 ····.line·134
 176 ····invoke-virtual·{p2},·Landroid/view/View;->requestFocus()Z
  
92 ····move-result·p1177 ····move-result·p1
  
93 ····xor-int/lit8·p1,·p1,·0x1178 ····return·p1
  
 179 ····.line·138
 180 ····:cond_2
 181 ····invoke-static·{p1},·Lcom/android/car/ui/utils/ViewUtils;->findPrimaryFocusView(Landroid/view/View;)Landroid/view/View;
  
 182 ····move-result-object·p1
  
 183 ····if-eqz·p1,·:cond_3
  
 184 ····.line·140
 185 ····invoke-virtual·{p1},·Landroid/view/View;->requestFocus()Z
  
 186 ····move-result·p1
  
94 ····return·p1187 ····return·p1
  
95 ····.line·125188 ····:cond_3
96 ····:cond_0189 ····return·v1
  
 190 ····.line·151
 191 ····:cond_4
 192 ····invoke-virtual·{p0},·Landroid/view/View;->hasFocus()Z
  
 193 ····move-result·v0
  
 194 ····if-nez·v0,·:cond_5
  
 195 ····.line·152
 196 ····invoke-virtual·{p0},·Landroid/view/View;->requestFocus()Z
  
 197 ····move-result·p1
  
 198 ····return·p1
  
 199 ····.line·156
 200 ····:cond_5
 201 ····:goto_0
97 ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->performAccessibilityAction(ILandroid/os/Bundle;)Z202 ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->performAccessibilityAction(ILandroid/os/Bundle;)Z
  
98 ····move-result·p1203 ····move-result·p1
  
99 ····return·p1204 ····return·p1
100 .end·method205 .end·method