| | | | |
| Offset 1, 156 lines modified | Offset 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·methods | 6 | #·direct·methods |
| 5 | .method·public·constructor·<init>(Landroid/content/Context;)V | 7 | .method·public·constructor·<init>(Landroid/content/Context;)V |
| 6 | ····.locals·0 | 8 | ····.locals·0 |
| | |
| 7 | ····.line·54 | 9 | ····.line·62 |
| 8 | ····invoke-direct·{p0,·p1},·Landroid/view/View;-><init>(Landroid/content/Context;)V | 10 | ····invoke-direct·{p0,·p1},·Landroid/view/View;-><init>(Landroid/content/Context;)V |
| | |
| 9 | ····.line·55 | 11 | ····.line·63 |
| 10 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 12 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V |
| | |
| 11 | ····return-void | 13 | ····return-void |
| 12 | .end·method | 14 | .end·method |
| | |
| 13 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 15 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| 14 | ····.locals·0 | 16 | ····.locals·0 |
| | |
| 15 | ····.line·59 | 17 | ····.line·67 |
| 16 | ····invoke-direct·{p0,·p1,·p2},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 18 | ····invoke-direct·{p0,·p1,·p2},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| | |
| 17 | ····.line·60 | 19 | ····.line·68 |
| 18 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 20 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V |
| | |
| 19 | ····return-void | 21 | ····return-void |
| 20 | .end·method | 22 | .end·method |
| | |
| 21 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 23 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| 22 | ····.locals·0 | 24 | ····.locals·0 |
| | |
| 23 | ····.line·64 | 25 | ····.line·72 |
| 24 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 26 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| | |
| 25 | ····.line·65 | 27 | ····.line·73 |
| 26 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 28 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V |
| | |
| 27 | ····return-void | 29 | ····return-void |
| 28 | .end·method | 30 | .end·method |
| | |
| 29 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 31 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| 30 | ····.locals·0 | 32 | ····.locals·0 |
| | |
| 31 | ····.line·70 | 33 | ····.line·78 |
| 32 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 34 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| | |
| 33 | ····.line·71 | 35 | ····.line·79 |
| 34 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 36 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V |
| | |
| 35 | ····return-void | 37 | ····return-void |
| 36 | .end·method | 38 | .end·method |
| | |
| 37 | .method·private·init()V | 39 | .method·private·init()V |
| 38 | ····.locals·2 | 40 | ····.locals·2 |
| | |
| 39 | ····const/4·v0,·0x1 | 41 | ····const/4·v0,·0x1 |
| | |
| 40 | ····.line·76 | 42 | ····.line·84 |
| 41 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setFocusable(I)V | 43 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setFocusable(I)V |
| | |
| 42 | ····const/4·v1,·0x0 | 44 | ····const/4·v1,·0x0 |
| | |
| 43 | ····.line·77 | 45 | ····.line·85 |
| 44 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setVisibility(I)V | 46 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setVisibility(I)V |
| | |
| 45 | ····.line·78 | 47 | ····.line·86 |
| 46 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setEnabled(Z)V | 48 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setEnabled(Z)V |
| | |
| 47 | ····.line·82 | 49 | ····.line·90 |
| 48 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setClickable(Z)V | 50 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setClickable(Z)V |
| | |
| 49 | ····const/4·v0,·0x0 | 51 | ····const/4·v0,·0x0 |
| | |
| 50 | ····.line·85 | 52 | ····.line·93 |
| 51 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setAlpha(F)V | 53 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setAlpha(F)V |
| | |
| 52 | ····.line·88 | 54 | ····.line·96 |
| 53 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setDefaultFocusHighlightEnabled(Z)V | 55 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setDefaultFocusHighlightEnabled(Z)V |
| | |
| 54 | ····return-void | 56 | ····return-void |
| 55 | .end·method | 57 | .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·methods | 79 | #·virtual·methods |
| 57 | .method·public·getAccessibilityClassName()Ljava/lang/CharSequence; | 80 | .method·public·getAccessibilityClassName()Ljava/lang/CharSequence; |
| 58 | ····.locals·1 | 81 | ····.locals·1 |
| | |
| 59 | ····.line·114 | 82 | ····.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·v0 | 85 | ····move-result-object·v0 |
| | |
| 63 | ····return-object·v0 | 86 | ····return-object·v0 |
| 64 | .end·method | 87 | .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)V | 126 | .method·protected·onMeasure(II)V |
| 66 | ····.locals·0 | 127 | ····.locals·0 |
| | |
| 67 | ····const/4·p1,·0x1 | 128 | ····const/4·p1,·0x1 |
| | |
| 68 | ····.line·96 | 129 | ····.line·104 |
| 69 | ····invoke-virtual·{p0,·p1,·p1},·Landroid/view/View;->setMeasuredDimension(II)V | 130 | ····invoke-virtual·{p0,·p1,·p1},·Landroid/view/View;->setMeasuredDimension(II)V |
| | |
| 70 | ····return-void | 131 | ····return-void |
| 71 | .end·method | 132 | .end·method |
| | |
| 72 | .method·public·onWindowFocusChanged(Z)V | 133 | .method·public·onWindowFocusChanged(Z)V |
| 73 | ····.locals·0 | 134 | ····.locals·0 |
| | |
| 74 | ····if-nez·p1,·:cond_0 | 135 | ····if-nez·p1,·:cond_0 |
| | |
| 75 | ····.line·107 | 136 | ····.line·115 |
| 76 | ····invoke-virtual·{p0},·Landroid/view/View;->requestFocus()Z | 137 | ····invoke-virtual·{p0},·Landroid/view/View;->requestFocus()Z |
| | |
| 77 | ····.line·109 | 138 | ····.line·117 |
| 78 | ····:cond_0 | 139 | ····:cond_0 |
| 79 | ····invoke-super·{p0,·p1},·Landroid/view/View;->onWindowFocusChanged(Z)V | 140 | ····invoke-super·{p0,·p1},·Landroid/view/View;->onWindowFocusChanged(Z)V |
| | |
| 80 | ····return-void | 141 | ····return-void |
| 81 | .end·method | 142 | .end·method |
| | |
| 82 | .method·public·performAccessibilityAction(ILandroid/os/Bundle;)Z | 143 | .method·public·performAccessibilityAction(ILandroid/os/Bundle;)Z |
| 83 | ····.locals·1 | 144 | ····.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,·0x100000 | 160 | ····check-cast·p1,·Landroid/view/inputmethod/InputMethodManager; |
| | |
| 85 | ····if-ne·p1,·v0,·:cond_0 | 161 | ····.line·147 |
| | 162 | ····invoke-virtual·{p0},·Landroid/view/View;->getWindowToken()Landroid/os/IBinder; |
| | |
| 86 | ····.line·121 | 163 | ····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·p1 | 170 | ····move-result-object·p1 |
| | |
| 89 | ····invoke-virtual·{p1},·Landroid/view/View;->restoreDefaultFocus()Z | 171 | ····.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·123 | 174 | ····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·p1 | 177 | ····move-result·p1 |
| | |
| 93 | ····xor-int/lit8·p1,·p1,·0x1 | 178 | ····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·p1 | 187 | ····return·p1 |
| | |
| 95 | ····.line·125 | 188 | ····:cond_3 |
| 96 | ····:cond_0 | 189 | ····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;)Z | 202 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->performAccessibilityAction(ILandroid/os/Bundle;)Z |
| | |
| 98 | ····move-result·p1 | 203 | ····move-result·p1 |
| | |
| 99 | ····return·p1 | 204 | ····return·p1 |
| 100 | .end·method | 205 | .end·method |