| | | |
Offset 1, 156 lines modified | Offset 1, 648 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 | #·instance·fields |
| 5 | .field·private·mDefaultFocusOverridesHistory:Z |
| |
| 6 | .field·private·mFocusCache:Lcom/android/car/ui/RotaryCache$FocusCache; |
| |
| 7 | .field·private·final·mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 8 | .field·private·mFocusedView:Landroid/view/View; |
| |
| 9 | .field·mScrollableContainer:Landroid/view/ViewGroup; |
| |
| 10 | .field·private·mShouldRestoreFocus:Z |
| |
| |
4 | #·direct·methods | 11 | #·direct·methods |
5 | .method·public·constructor·<init>(Landroid/content/Context;)V | 12 | .method·public·constructor·<init>(Landroid/content/Context;)V |
6 | ····.locals·0 | 13 | ····.locals·1 |
| |
7 | ····.line·54 | 14 | ····.line·108 |
8 | ····invoke-direct·{p0,·p1},·Landroid/view/View;-><init>(Landroid/content/Context;)V | 15 | ····invoke-direct·{p0,·p1},·Landroid/view/View;-><init>(Landroid/content/Context;)V |
| |
9 | ····.line·55 | 16 | ····.line·100 |
10 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 17 | ····new-instance·v0,·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU; |
| |
| 18 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU;-><init>(Lcom/android/car/ui/FocusParkingView;)V |
| |
| 19 | ····iput-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 20 | ····const/4·v0,·0x0 |
| |
| 21 | ····.line·109 |
| 22 | ····invoke-direct·{p0,·p1,·v0},·Lcom/android/car/ui/FocusParkingView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
11 | ····return-void | 23 | ····return-void |
12 | .end·method | 24 | .end·method |
| |
13 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 25 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
14 | ····.locals·0 | 26 | ····.locals·1 |
| |
15 | ····.line·59 | 27 | ····.line·113 |
16 | ····invoke-direct·{p0,·p1,·p2},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 28 | ····invoke-direct·{p0,·p1,·p2},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
17 | ····.line·60 | 29 | ····.line·100 |
18 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 30 | ····new-instance·v0,·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU; |
| |
| 31 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU;-><init>(Lcom/android/car/ui/FocusParkingView;)V |
| |
| 32 | ····iput-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 33 | ····.line·114 |
| 34 | ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/FocusParkingView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
19 | ····return-void | 35 | ····return-void |
20 | .end·method | 36 | .end·method |
| |
21 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 37 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
22 | ····.locals·0 | 38 | ····.locals·0 |
| |
23 | ····.line·64 | 39 | ····.line·118 |
24 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 40 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| |
25 | ····.line·65 | 41 | ····.line·100 |
26 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 42 | ····new-instance·p3,·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU; |
| |
| 43 | ····invoke-direct·{p3,·p0},·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU;-><init>(Lcom/android/car/ui/FocusParkingView;)V |
| |
| 44 | ····iput-object·p3,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 45 | ····.line·119 |
| 46 | ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/FocusParkingView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
27 | ····return-void | 47 | ····return-void |
28 | .end·method | 48 | .end·method |
| |
29 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 49 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
30 | ····.locals·0 | 50 | ····.locals·0 |
| |
31 | ····.line·70 | 51 | ····.line·124 |
32 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 52 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| |
33 | ····.line·71 | 53 | ····.line·100 |
34 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->init()V | 54 | ····new-instance·p3,·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU; |
| |
| 55 | ····invoke-direct·{p3,·p0},·Lcom/android/car/ui/-$$Lambda$FocusParkingView$VLQ3JJxPvI70IB0YIP3vrT2NmAU;-><init>(Lcom/android/car/ui/FocusParkingView;)V |
| |
| 56 | ····iput-object·p3,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 57 | ····.line·125 |
| 58 | ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/FocusParkingView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
35 | ····return-void | 59 | ····return-void |
36 | .end·method | 60 | .end·method |
| |
37 | .method·private·init()V | 61 | .method·private·init(Landroid/content/Context;Landroid/util/AttributeSet;)V |
38 | ····.locals·2 | 62 | ····.locals·4 |
| |
39 | ····const/4·v0,·0x1 | 63 | ····const/4·v0,·0x1 |
| |
| 64 | ····if-eqz·p2,·:cond_0 |
| |
| 65 | ····.line·130 |
| 66 | ····sget-object·v1,·Lcom/android/car/ui/R$styleable;->FocusParkingView:[I |
| |
| 67 | ····invoke-virtual·{p1,·p2,·v1},·Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray; |
| |
| 68 | ····move-result-object·p1 |
| |
| 69 | ····.line·131 |
| 70 | ····sget·p2,·Lcom/android/car/ui/R$styleable;->FocusParkingView_shouldRestoreFocus:I |
| |
| 71 | ····invoke-virtual·{p1,·p2,·v0},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
| 72 | ····move-result·p1 |
| |
| 73 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/FocusParkingView;->mShouldRestoreFocus:Z |
| |
40 | ····.line·76 | 74 | ····.line·136 |
| 75 | ····:cond_0 |
41 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setFocusable(I)V | 76 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setFocusable(I)V |
| |
42 | ····const/4·v1,·0x0 | 77 | ····const/4·p1,·0x0 |
| |
43 | ····.line·77 | 78 | ····.line·137 |
44 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setVisibility(I)V | 79 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setVisibility(I)V |
| |
45 | ····.line·78 | 80 | ····.line·138 |
46 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setEnabled(Z)V | 81 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setEnabled(Z)V |
| |
47 | ····.line·82 | 82 | ····.line·142 |
48 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setClickable(Z)V | 83 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setClickable(Z)V |
| |
| 84 | ····const/4·p2,·0x0 |
| |
| 85 | ····.line·145 |
| 86 | ····invoke-virtual·{p0,·p2},·Landroid/view/View;->setAlpha(F)V |
| |
| 87 | ····.line·148 |
| 88 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setDefaultFocusHighlightEnabled(Z)V |
| |
| 89 | ····.line·150 |
| 90 | ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources; |
| |
| 91 | ····move-result-object·p1 |
| |
| 92 | ····.line·152 |
| 93 | ····sget·p2,·Lcom/android/car/ui/R$integer;->car_ui_focus_history_cache_type:I |
| |
| 94 | ····invoke-virtual·{p1,·p2},·Landroid/content/res/Resources;->getInteger(I)I |
| |
| 95 | ····move-result·p2 |
| |
| 96 | ····.line·153 |
| 97 | ····sget·v0,·Lcom/android/car/ui/R$integer;->car_ui_focus_history_expiration_period_ms:I |
| |
| 98 | ····.line·154 |
| 99 | ····invoke-virtual·{p1,·v0},·Landroid/content/res/Resources;->getInteger(I)I |
| |
| 100 | ····move-result·v0 |
| |
| 101 | ····.line·155 |
| 102 | ····new-instance·v1,·Lcom/android/car/ui/RotaryCache$FocusCache; |
| |
| 103 | ····int-to-long·v2,·v0 |
| |
| 104 | ····invoke-direct·{v1,·p2,·v2,·v3},·Lcom/android/car/ui/RotaryCache$FocusCache;-><init>(IJ)V |
| |
| 105 | ····iput-object·v1,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusCache:Lcom/android/car/ui/RotaryCache$FocusCache; |
| |
| 106 | ····.line·158 |
| 107 | ····sget·p2,·Lcom/android/car/ui/R$bool;->car_ui_focus_area_default_focus_overrides_history:I |
| |
| 108 | ····invoke-virtual·{p1,·p2},·Landroid/content/res/Resources;->getBoolean(I)Z |
| |
| 109 | ····move-result·p1 |
| |
| 110 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/FocusParkingView;->mDefaultFocusOverridesHistory:Z |
| |
| 111 | ····return-void |
| 112 | .end·method |
| |
| 113 | .method·private·synthetic·lambda$new$0(Landroid/view/View;Landroid/view/View;)V |
| 114 | ····.locals·0 |
| |
| 115 | ····.line·103 |
| 116 | ····instance-of·p1,·p2,·Lcom/android/car/ui/FocusParkingView; |
| |
| 117 | ····if-eqz·p1,·:cond_0 |
| |
| 118 | ····const/4·p2,·0x0 |
| |
| 119 | ····.line·104 |
| 120 | ····:cond_0 |
| 121 | ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/FocusParkingView;->updateFocusedView(Landroid/view/View;)V |
| |
| 122 | ····return-void |
| 123 | .end·method |
| |
| 124 | .method·private·maybeFocusOnScrollableContainer()Z |
| 125 | ····.locals·3 |
| |
| 126 | ····.line·295 |
| 127 | ····iget-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusedView:Landroid/view/View; |
| |
| 128 | ····if-eqz·v0,·:cond_2 |
| |
| 129 | ····invoke-virtual·{v0},·Landroid/view/View;->isAttachedToWindow()Z |
| |
| 130 | ····move-result·v0 |
| |
| 131 | ····if-nez·v0,·:cond_2 |
| |
| 132 | ····iget-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusedView:Landroid/view/View; |
| |
| 133 | ····.line·296 |
| 134 | ····invoke-virtual·{v0},·Landroid/view/View;->getParent()Landroid/view/ViewParent; |
| |
| 135 | ····move-result-object·v0 |
| |
| 136 | ····if-eqz·v0,·:cond_2 |
| |
| 137 | ····iget-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mScrollableContainer:Landroid/view/ViewGroup; |
| |
| 138 | ····if-eqz·v0,·:cond_2 |
| |
| 139 | ····.line·297 |
| 140 | ····invoke-virtual·{v0},·Landroid/view/ViewGroup;->isAttachedToWindow()Z |
| |
| 141 | ····move-result·v0 |
| |
| 142 | ····if-eqz·v0,·:cond_2 |
| |
| 143 | ····iget-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mScrollableContainer:Landroid/view/ViewGroup; |
| |
| 144 | ····invoke-virtual·{v0},·Landroid/view/ViewGroup;->isShown()Z |
| |
| 145 | ····move-result·v0 |
| |
| 146 | ····if-eqz·v0,·:cond_2 |
| |
| 147 | ····.line·298 |
| 148 | ····iget-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mScrollableContainer:Landroid/view/ViewGroup; |
| |
| 149 | ····instance-of·v1,·v0,·Landroidx/recyclerview/widget/RecyclerView; |
| |
| 150 | ····if-eqz·v1,·:cond_0 |
| |
| 151 | ····.line·299 |
| 152 | ····check-cast·v0,·Landroidx/recyclerview/widget/RecyclerView; |
| |
| 153 | ····goto·:goto_0 |
| |
| 154 | ····:cond_0 |
49 | ····const/4·v0,·0x0 | 155 | ····const/4·v0,·0x0 |
| |
| 156 | ····.line·301 |
| 157 | ····:goto_0 |
| 158 | ····iget-object·v1,·p0,·Lcom/android/car/ui/FocusParkingView;->mScrollableContainer:Landroid/view/ViewGroup; |
| |
| 159 | ····invoke-virtual·{v1},·Landroid/view/ViewGroup;->requestFocus()Z |
| |
| 160 | ····move-result·v1 |
| |
| 161 | ····if-eqz·v1,·:cond_2 |
| |
| 162 | ····if-eqz·v0,·:cond_1 |
| |
| 163 | ····.line·302 |
| 164 | ····invoke-virtual·{v0},·Landroidx/recyclerview/widget/RecyclerView;->isComputingLayout()Z |
| |
| 165 | ····move-result·v1 |
| |
| 166 | ····if-eqz·v1,·:cond_1 |
| |
| 167 | ····.line·306 |
| 168 | ····invoke-virtual·{p0},·Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver; |
| |
| 169 | ····move-result-object·v1 |
| |
| 170 | ····new-instance·v2,·Lcom/android/car/ui/FocusParkingView$1; |
| |
| 171 | ····invoke-direct·{v2,·p0,·v0},·Lcom/android/car/ui/FocusParkingView$1;-><init>(Lcom/android/car/ui/FocusParkingView;Landroidx/recyclerview/widget/RecyclerView;)V |
| |
| 172 | ····invoke-virtual·{v1,·v2},·Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V |
| |
| 173 | ····:cond_1 |
| 174 | ····const/4·v0,·0x1 |
| |
| 175 | ····return·v0 |
| |
| 176 | ····:cond_2 |
| 177 | ····const/4·v0,·0x0 |
| |
| 178 | ····return·v0 |
| 179 | .end·method |
| |
| 180 | .method·private·restoreFocusInRoot(Z)Z |
| 181 | ····.locals·3 |
| |
| 182 | ····if-eqz·p1,·:cond_0 |
| |
| 183 | ····.line·267 |
| 184 | ····invoke-virtual·{p0},·Landroid/view/View;->isInTouchMode()Z |
| |
| 185 | ····move-result·p1 |
| |
| 186 | ····if-eqz·p1,·:cond_0 |
| |
| 187 | ····const/4·p1,·0x0 |
| |
| 188 | ····return·p1 |
| |
| 189 | ····.line·273 |
| 190 | ····:cond_0 |
| 191 | ····invoke-direct·{p0},·Lcom/android/car/ui/FocusParkingView;->maybeFocusOnScrollableContainer()Z |
| |
| 192 | ····move-result·p1 |
| |
| 193 | ····const/4·v0,·0x1 |
| |
| 194 | ····if-eqz·p1,·:cond_1 |
| |
| 195 | ····return·v0 |
| |
50 | ····.line·85 | 196 | ····.line·278 |
51 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->setAlpha(F)V | 197 | ····:cond_1 |
| 198 | ····iget-object·p1,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusCache:Lcom/android/car/ui/RotaryCache$FocusCache; |
| |
| 199 | ····invoke-static·{},·Landroid/os/SystemClock;->uptimeMillis()J |
| |
| 200 | ····move-result-wide·v1 |
| |
| 201 | ····invoke-virtual·{p1,·v1,·v2},·Lcom/android/car/ui/RotaryCache$FocusCache;->getFocusedView(J)Landroid/view/View; |
| |
| 202 | ····move-result-object·p1 |
| |
| 203 | ····.line·280 |
| 204 | ····invoke-virtual·{p0},·Landroid/view/View;->getRootView()Landroid/view/View; |
| |
| 205 | ····move-result-object·v1 |
| |
| 206 | ····iget-boolean·v2,·p0,·Lcom/android/car/ui/FocusParkingView;->mDefaultFocusOverridesHistory:Z |
| |
| 207 | ····.line·279 |
| 208 | ····invoke-static·{v1,·p1,·v2},·Lcom/android/car/ui/utils/ViewUtils;->adjustFocus(Landroid/view/View;Landroid/view/View;Z)Z |
| |
| 209 | ····move-result·p1 |
| |
| 210 | ····if-eqz·p1,·:cond_2 |
| |
| 211 | ····return·v0 |
| |
| 212 | ····:cond_2 |
| 213 | ····const/16·p1,·0x82 |
| |
| 214 | ····const/4·v0,·0x0 |
| |
52 | ····.line·88 | 215 | ····.line·286 |
53 | ····invoke-virtual·{p0,·v1},·Landroid/view/View;->setDefaultFocusHighlightEnabled(Z)V | 216 | ····invoke-super·{p0,·p1,·v0},·Landroid/view/View;->requestFocus(ILandroid/graphics/Rect;)Z |
| |
| 217 | ····move-result·p1 |
| |
| 218 | ····return·p1 |
| 219 | .end·method |
| |
| 220 | .method·private·updateFocusedView(Landroid/view/View;)V |
| 221 | ····.locals·4 |
| |
| 222 | ····.line·163 |
| 223 | ····iget-object·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusedView:Landroid/view/View; |
| |
| 224 | ····if-eqz·v0,·:cond_0 |
| |
| 225 | ····.line·164 |
| 226 | ····iget-object·v1,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusCache:Lcom/android/car/ui/RotaryCache$FocusCache; |
| |
| 227 | ····invoke-static·{},·Landroid/os/SystemClock;->uptimeMillis()J |
| |
| 228 | ····move-result-wide·v2 |
| |
| 229 | ····invoke-virtual·{v1,·v0,·v2,·v3},·Lcom/android/car/ui/RotaryCache$FocusCache;->setFocusedView(Landroid/view/View;J)V |
| |
| 230 | ····.line·166 |
| 231 | ····:cond_0 |
| 232 | ····iput-object·p1,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusedView:Landroid/view/View; |
| |
| 233 | ····.line·167 |
| 234 | ····invoke-static·{p1},·Lcom/android/car/ui/utils/ViewUtils;->getAncestorScrollableContainer(Landroid/view/View;)Landroid/view/ViewGroup; |
| |
| 235 | ····move-result-object·p1 |
| |
| 236 | ····iput-object·p1,·p0,·Lcom/android/car/ui/FocusParkingView;->mScrollableContainer:Landroid/view/ViewGroup; |
| |
54 | ····return-void | 237 | ····return-void |
55 | .end·method | 238 | .end·method |
| |
| |
56 | #·virtual·methods | 239 | #·virtual·methods |
57 | .method·public·getAccessibilityClassName()Ljava/lang/CharSequence; | 240 | .method·public·getAccessibilityClassName()Ljava/lang/CharSequence; |
58 | ····.locals·1 | 241 | ····.locals·1 |
| |
59 | ····.line·114 | 242 | ····.line·213 |
60 | ····const-class·v0,·Lcom/android/car/ui/FocusParkingView; | 243 | ····const-class·v0,·Lcom/android/car/ui/FocusParkingView; |
| |
61 | ····invoke-virtual·{v0},·Ljava/lang/Class;->getName()Ljava/lang/String; | 244 | ····invoke-virtual·{v0},·Ljava/lang/Class;->getName()Ljava/lang/String; |
| |
62 | ····move-result-object·v0 | 245 | ····move-result-object·v0 |
| |
63 | ····return-object·v0 | 246 | ····return-object·v0 |
64 | .end·method | 247 | .end·method |
| |
| 248 | .method·public·synthetic·lambda$new$0$FocusParkingView(Landroid/view/View;Landroid/view/View;)V |
| 249 | ····.locals·0 |
| |
| 250 | ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/FocusParkingView;->lambda$new$0(Landroid/view/View;Landroid/view/View;)V |
| |
| 251 | ····return-void |
| 252 | .end·method |
| |
| 253 | .method·protected·onAttachedToWindow()V |
| 254 | ····.locals·2 |
| |
| 255 | ····.line·180 |
| 256 | ····invoke-super·{p0},·Landroid/view/View;->onAttachedToWindow()V |
| |
| 257 | ····.line·181 |
| 258 | ····invoke-virtual·{p0},·Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver; |
| |
| 259 | ····move-result-object·v0 |
| |
| 260 | ····iget-object·v1,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 261 | ····invoke-virtual·{v0,·v1},·Landroid/view/ViewTreeObserver;->addOnGlobalFocusChangeListener(Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener;)V |
| |
| 262 | ····return-void |
| 263 | .end·method |
| |
| 264 | .method·protected·onDetachedFromWindow()V |
| 265 | ····.locals·2 |
| |
| 266 | ····.line·186 |
| 267 | ····invoke-virtual·{p0},·Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver; |
| |
| 268 | ····move-result-object·v0 |
| |
| 269 | ····iget-object·v1,·p0,·Lcom/android/car/ui/FocusParkingView;->mFocusChangeListener:Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener; |
| |
| 270 | ····invoke-virtual·{v0,·v1},·Landroid/view/ViewTreeObserver;->removeOnGlobalFocusChangeListener(Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener;)V |
| |
| 271 | ····.line·187 |
| 272 | ····invoke-super·{p0},·Landroid/view/View;->onDetachedFromWindow()V |
| |
| 273 | ····return-void |
| 274 | .end·method |
| |
65 | .method·protected·onMeasure(II)V | 275 | .method·protected·onMeasure(II)V |
66 | ····.locals·0 | 276 | ····.locals·0 |
| |
67 | ····const/4·p1,·0x1 | 277 | ····const/4·p1,·0x1 |
| |
68 | ····.line·96 | 278 | ····.line·175 |
69 | ····invoke-virtual·{p0,·p1,·p1},·Landroid/view/View;->setMeasuredDimension(II)V | 279 | ····invoke-virtual·{p0,·p1,·p1},·Landroid/view/View;->setMeasuredDimension(II)V |
| |
70 | ····return-void | 280 | ····return-void |
71 | .end·method | 281 | .end·method |
| |
72 | .method·public·onWindowFocusChanged(Z)V | 282 | .method·public·onWindowFocusChanged(Z)V |
73 | ····.locals·0 | 283 | ····.locals·2 |
| |
74 | ····if-nez·p1,·:cond_0 | 284 | ····if-nez·p1,·:cond_0 |
| |
| 285 | ····const/16·v0,·0x82 |
75 | ····.line·107 | |
76 | ····invoke-virtual·{p0},·Landroid/view/View;->requestFocus()Z | |
| |
| 286 | ····const/4·v1,·0x0 |
| |
77 | ····.line·109 | 287 | ····.line·198 |
| 288 | ····invoke-super·{p0,·v0,·v1},·Landroid/view/View;->requestFocus(ILandroid/graphics/Rect;)Z |
| |
| 289 | ····.line·202 |
| 290 | ····invoke-direct·{p0,·v1},·Lcom/android/car/ui/FocusParkingView;->updateFocusedView(Landroid/view/View;)V |
| |
| 291 | ····goto·:goto_0 |
| |
| 292 | ····.line·203 |
78 | ····:cond_0 | 293 | ····:cond_0 |
| 294 | ····invoke-virtual·{p0},·Landroid/view/View;->isFocused()Z |
| |
| 295 | ····move-result·v0 |
| |
| 296 | ····if-eqz·v0,·:cond_1 |
| |
| 297 | ····const/4·v0,·0x1 |
| |
| 298 | ····.line·206 |
| 299 | ····invoke-direct·{p0,·v0},·Lcom/android/car/ui/FocusParkingView;->restoreFocusInRoot(Z)Z |
| |
| 300 | ····.line·208 |
| 301 | ····:cond_1 |
| 302 | ····:goto_0 |
79 | ····invoke-super·{p0,·p1},·Landroid/view/View;->onWindowFocusChanged(Z)V | 303 | ····invoke-super·{p0,·p1},·Landroid/view/View;->onWindowFocusChanged(Z)V |
| |
80 | ····return-void | 304 | ····return-void |
81 | .end·method | 305 | .end·method |
| |
82 | .method·public·performAccessibilityAction(ILandroid/os/Bundle;)Z | 306 | .method·public·performAccessibilityAction(ILandroid/os/Bundle;)Z |
83 | ····.locals·1 | 307 | ····.locals·2 |
| |
84 | ····const/high16·v0,·0x100000 | 308 | ····const/4·v0,·0x1 |
| |
85 | ····if-ne·p1,·v0,·:cond_0 | 309 | ····const/4·v1,·0x0 |
| |
| 310 | ····if-eq·p1,·v0,·:cond_2 |
| |
| 311 | ····const/high16·v0,·0x4000000 |
| |
| 312 | ····if-eq·p1,·v0,·:cond_1 |
| |
| 313 | ····const/high16·v0,·0x8000000 |
| |
| 314 | ····if-eq·p1,·v0,·:cond_0 |
| |
86 | ····.line·121 | 315 | ····.line·233 |
| 316 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->performAccessibilityAction(ILandroid/os/Bundle;)Z |
| |
| 317 | ····move-result·p1 |
| |
| 318 | ····return·p1 |
| |
| 319 | ····.line·223 |
| 320 | ····:cond_0 |
87 | ····invoke-virtual·{p0},·Landroid/view/View;->getRootView()Landroid/view/View; | 321 | ····invoke-virtual·{p0},·Landroid/view/View;->getContext()Landroid/content/Context; |
| |
88 | ····move-result-object·p1 | 322 | ····move-result-object·p1 |
| |
89 | ····invoke-virtual·{p1},·Landroid/view/View;->restoreDefaultFocus()Z | 323 | ····const-class·p2,·Landroid/view/inputmethod/InputMethodManager; |
| |
| 324 | ····invoke-virtual·{p1,·p2},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; |
| |
| 325 | ····move-result-object·p1 |
| |
| 326 | ····check-cast·p1,·Landroid/view/inputmethod/InputMethodManager; |
| |
90 | ····.line·123 | 327 | ····.line·224 |
91 | ····invoke-virtual·{p0},·Landroid/view/View;->isFocused()Z | 328 | ····invoke-virtual·{p0},·Landroid/view/View;->getWindowToken()Landroid/os/IBinder; |
| |
| 329 | ····move-result-object·p2 |
| |
| 330 | ····invoke-virtual·{p1,·p2,·v1},·Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z |
| |
92 | ····move-result·p1 | 331 | ····move-result·p1 |
| |
93 | ····xor-int/lit8·p1,·p1,·0x1 | 332 | ····return·p1 |
| |
| 333 | ····.line·220 |
| 334 | ····:cond_1 |
| 335 | ····invoke-direct·{p0,·v1},·Lcom/android/car/ui/FocusParkingView;->restoreFocusInRoot(Z)Z |
| |
| 336 | ····move-result·p1 |
| |
| 337 | ····return·p1 |
| |
| 338 | ····.line·228 |
| 339 | ····:cond_2 |
| 340 | ····invoke-virtual·{p0},·Landroid/view/View;->hasFocus()Z |
| |
| 341 | ····move-result·p1 |
| |
| 342 | ····if-nez·p1,·:cond_3 |
| |
| 343 | ····const/16·p1,·0x82 |
| |
| 344 | ····const/4·p2,·0x0 |
| |
| 345 | ····.line·229 |
| 346 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->requestFocus(ILandroid/graphics/Rect;)Z |
| |
| 347 | ····move-result·p1 |
| |
| 348 | ····return·p1 |
| |
| 349 | ····:cond_3 |
| 350 | ····return·v1 |
| 351 | .end·method |
| |
| 352 | .method·public·requestFocus(ILandroid/graphics/Rect;)Z |
| 353 | ····.locals·1 |
| |
| 354 | ····.line·238 |
| 355 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mShouldRestoreFocus:Z |
| |
| 356 | ····if-nez·v0,·:cond_0 |
| |
| 357 | ····.line·239 |
| 358 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->requestFocus(ILandroid/graphics/Rect;)Z |
| |
| 359 | ····move-result·p1 |
| |
94 | ····return·p1 | 360 | ····return·p1 |
| |
95 | ····.line·125 | |
96 | ····:cond_0 | 361 | ····:cond_0 |
97 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/View;->performAccessibilityAction(ILandroid/os/Bundle;)Z | 362 | ····const/4·p1,·0x1 |
| |
| 363 | ····.line·243 |
| 364 | ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/FocusParkingView;->restoreFocusInRoot(Z)Z |
| |
98 | ····move-result·p1 | 365 | ····move-result·p1 |
| |
99 | ····return·p1 | 366 | ····return·p1 |
100 | .end·method | 367 | .end·method |
| |
| 368 | .method·public·restoreDefaultFocus()Z |
| 369 | ····.locals·1 |
| |
| 370 | ····.line·248 |
| 371 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/FocusParkingView;->mShouldRestoreFocus:Z |
| |
| 372 | ····if-nez·v0,·:cond_0 |
| |
| 373 | ····.line·249 |
| 374 | ····invoke-super·{p0},·Landroid/view/View;->restoreDefaultFocus()Z |
| |
| 375 | ····move-result·v0 |
| |
| 376 | ····return·v0 |
| |
| 377 | ····:cond_0 |
| 378 | ····const/4·v0,·0x1 |
| |
| 379 | ····.line·253 |
| 380 | ····invoke-direct·{p0,·v0},·Lcom/android/car/ui/FocusParkingView;->restoreFocusInRoot(Z)Z |
| |
| 381 | ····move-result·v0 |
| |
| 382 | ····return·v0 |
| 383 | .end·method |
| |
| 384 | .method·public·setShouldRestoreFocus(Z)V |
| 385 | ····.locals·0 |
| |
| 386 | ····.line·262 |
| 387 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/FocusParkingView;->mShouldRestoreFocus:Z |
| |
| 388 | ····return-void |
| 389 | .end·method |