| | | |
Offset 1, 22 lines modified | Offset 1, 19 lines modified |
1 | .class·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater; | 1 | .class·final·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater; |
2 | .super·Ljava/lang/Object; | 2 | .super·Ljava/lang/Object; |
3 | .source·"BaseLayoutController.java" | 3 | .source·"BaseLayoutController.java" |
| |
4 | #·interfaces | |
5 | .implements·Landroid/view/ViewTreeObserver$OnGlobalLayoutListener; | |
| |
| |
6 | #·annotations | 4 | #·annotations |
7 | .annotation·system·Ldalvik/annotation/EnclosingClass; | 5 | .annotation·system·Ldalvik/annotation/EnclosingClass; |
8 | ····value·=·Lcom/android/car/ui/core/BaseLayoutController; | 6 | ····value·=·Lcom/android/car/ui/core/BaseLayoutController; |
9 | .end·annotation | 7 | .end·annotation |
| |
10 | .annotation·system·Ldalvik/annotation/InnerClass; | 8 | .annotation·system·Ldalvik/annotation/InnerClass; |
11 | ····accessFlags·=·0xa | 9 | ····accessFlags·=·0x18 |
12 | ····name·=·"InsetsUpdater" | 10 | ····name·=·"InsetsUpdater" |
13 | .end·annotation | 11 | .end·annotation |
| |
| |
14 | #·static·fields | 12 | #·static·fields |
15 | .field·private·static·final·BOTTOM_INSET_TAG:Ljava/lang/String;·=·"car_ui_bottom_inset" | 13 | .field·private·static·final·BOTTOM_INSET_TAG:Ljava/lang/String;·=·"car_ui_bottom_inset" |
| |
Offset 28, 145 lines modified | Offset 25, 159 lines modified |
| |
| |
28 | #·instance·fields | 25 | #·instance·fields |
29 | .field·private·final·mActivity:Landroid/app/Activity; | 26 | .field·private·final·mActivity:Landroid/app/Activity; |
| |
30 | .field·private·final·mBottomInsetView:Landroid/view/View; | 27 | .field·private·final·mBottomInsetView:Landroid/view/View; |
| |
| 28 | .field·private·final·mContentView:Landroid/view/View; |
| |
| 29 | .field·private·final·mContentViewContainer:Landroid/view/View; |
| |
31 | .field·private·mInsets:Lcom/android/car/ui/baselayout/Insets; | 30 | .field·private·mInsets:Lcom/android/car/ui/baselayout/Insets; |
| |
32 | .field·private·mInsetsChangedListenerDelegate:Lcom/android/car/ui/baselayout/InsetsChangedListener; | 31 | .field·private·mInsetsChangedListenerDelegate:Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
33 | .field·private·mInsetsDirty:Z | |
| |
34 | .field·private·final·mLeftInsetView:Landroid/view/View; | 32 | .field·private·final·mLeftInsetView:Landroid/view/View; |
| |
35 | .field·private·final·mRightInsetView:Landroid/view/View; | 33 | .field·private·final·mRightInsetView:Landroid/view/View; |
| |
36 | .field·private·final·mTopInsetView:Landroid/view/View; | 34 | .field·private·final·mTopInsetView:Landroid/view/View; |
| |
| |
37 | #·direct·methods | 35 | #·direct·methods |
38 | .method·constructor·<init>(Landroid/app/Activity;Landroid/view/View;Landroid/view/View;)V | 36 | .method·constructor·<init>(Landroid/app/Activity;Landroid/view/View;Landroid/view/View;)V |
39 | ····.locals·1 | 37 | ····.locals·1 |
| |
40 | ····.line·211 | 38 | ····.line·243 |
41 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 39 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
42 | ····const/4·v0,·0x1 | |
| |
43 | ····.line·200 | 40 | ····.line·229 |
44 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsDirty:Z | |
| |
45 | ····.line·201 | |
46 | ····new-instance·v0,·Lcom/android/car/ui/baselayout/Insets; | 41 | ····new-instance·v0,·Lcom/android/car/ui/baselayout/Insets; |
| |
47 | ····invoke-direct·{v0},·Lcom/android/car/ui/baselayout/Insets;-><init>()V | 42 | ····invoke-direct·{v0},·Lcom/android/car/ui/baselayout/Insets;-><init>()V |
| |
48 | ····iput-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; | 43 | ····iput-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; |
| |
49 | ····.line·212 | 44 | ····.line·244 |
50 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; | 45 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; |
| |
| 46 | ····.line·245 |
| 47 | ····iput-object·p3,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentView:Landroid/view/View; |
| |
| 48 | ····.line·246 |
| 49 | ····sget·p1,·Lcom/android/car/ui/R$id;->car_ui_base_layout_content_container:I |
| |
| 50 | ····invoke-static·{p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
| 51 | ····move-result-object·p1 |
| |
| 52 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
51 | ····const-string·p1,·"car_ui_left_inset" | 53 | ····const-string·p1,·"car_ui_left_inset" |
| |
52 | ····.line·214 | 54 | ····.line·249 |
53 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; | 55 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; |
| |
54 | ····move-result-object·p1 | 56 | ····move-result-object·p1 |
| |
55 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mLeftInsetView:Landroid/view/View; | 57 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mLeftInsetView:Landroid/view/View; |
| |
56 | ····const-string·p1,·"car_ui_right_inset" | 58 | ····const-string·p1,·"car_ui_right_inset" |
| |
57 | ····.line·215 | 59 | ····.line·250 |
58 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; | 60 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; |
| |
59 | ····move-result-object·p1 | 61 | ····move-result-object·p1 |
| |
60 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; | 62 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; |
| |
61 | ····const-string·p1,·"car_ui_top_inset" | 63 | ····const-string·p1,·"car_ui_top_inset" |
| |
62 | ····.line·216 | 64 | ····.line·251 |
63 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; | 65 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; |
| |
64 | ····move-result-object·p1 | 66 | ····move-result-object·p1 |
| |
65 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mTopInsetView:Landroid/view/View; | 67 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mTopInsetView:Landroid/view/View; |
| |
66 | ····const-string·p1,·"car_ui_bottom_inset" | 68 | ····const-string·p1,·"car_ui_bottom_inset" |
| |
67 | ····.line·217 | 69 | ····.line·252 |
68 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; | 70 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View; |
| |
69 | ····move-result-object·p1 | 71 | ····move-result-object·p1 |
| |
70 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; | 72 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; |
| |
71 | ····.line·219 | 73 | ····.line·254 |
72 | ····new-instance·p1,·Lcom/android/car/ui/core/-$$Lambda$BaseLayoutController$InsetsUpdater$zzCIB0038f8j1iFmYePHWvmc4w4; | 74 | ····new-instance·p1,·Lcom/android/car/ui/core/-$$Lambda$BaseLayoutController$InsetsUpdater$zzCIB0038f8j1iFmYePHWvmc4w4; |
| |
73 | ····invoke-direct·{p1,·p0},·Lcom/android/car/ui/core/-$$Lambda$BaseLayoutController$InsetsUpdater$zzCIB0038f8j1iFmYePHWvmc4w4;-><init>(Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;)V | 75 | ····invoke-direct·{p1,·p0},·Lcom/android/car/ui/core/-$$Lambda$BaseLayoutController$InsetsUpdater$zzCIB0038f8j1iFmYePHWvmc4w4;-><init>(Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;)V |
| |
74 | ····.line·228 | 76 | ····.line·263 |
75 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mLeftInsetView:Landroid/view/View; | 77 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mLeftInsetView:Landroid/view/View; |
| |
76 | ····if-eqz·p2,·:cond_0 | 78 | ····if-eqz·p2,·:cond_0 |
| |
77 | ····.line·229 | 79 | ····.line·264 |
78 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V | 80 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V |
| |
79 | ····.line·231 | 81 | ····.line·266 |
80 | ····:cond_0 | 82 | ····:cond_0 |
81 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; | 83 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; |
| |
82 | ····if-eqz·p2,·:cond_1 | 84 | ····if-eqz·p2,·:cond_1 |
| |
83 | ····.line·232 | 85 | ····.line·267 |
84 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V | 86 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V |
| |
85 | ····.line·234 | 87 | ····.line·269 |
86 | ····:cond_1 | 88 | ····:cond_1 |
87 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mTopInsetView:Landroid/view/View; | 89 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mTopInsetView:Landroid/view/View; |
| |
88 | ····if-eqz·p2,·:cond_2 | 90 | ····if-eqz·p2,·:cond_2 |
| |
89 | ····.line·235 | 91 | ····.line·270 |
90 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V | 92 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V |
| |
91 | ····.line·237 | 93 | ····.line·272 |
92 | ····:cond_2 | 94 | ····:cond_2 |
93 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; | 95 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; |
| |
94 | ····if-eqz·p2,·:cond_3 | 96 | ····if-eqz·p2,·:cond_3 |
| |
95 | ····.line·238 | 97 | ····.line·273 |
96 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V | 98 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V |
| |
97 | ····.line·240 | 99 | ····.line·275 |
98 | ····:cond_3 | 100 | ····:cond_3 |
99 | ····invoke-virtual·{p3,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V | 101 | ····invoke-virtual·{p3,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V |
| |
| 102 | ····.line·276 |
| 103 | ····iget-object·p2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
| 104 | ····invoke-virtual·{p2,·p1},·Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V |
| |
100 | ····return-void | 105 | ····return-void |
101 | .end·method | 106 | .end·method |
| |
102 | .method·private·static·getBottomOfView(Landroid/view/View;)I | 107 | .method·private·static·getBottomOfView(Landroid/view/View;)I |
103 | ····.locals·2 | 108 | ····.locals·2 |
| |
104 | ····const/4·v0,·0x2 | 109 | ····const/4·v0,·0x2 |
| |
105 | ····new-array·v0,·v0,·[I | 110 | ····new-array·v0,·v0,·[I |
| |
106 | ····.line·362 | 111 | ····.line·391 |
107 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V | 112 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V |
| |
108 | ····const/4·v1,·0x1 | 113 | ····const/4·v1,·0x1 |
| |
109 | ····.line·363 | 114 | ····.line·392 |
110 | ····aget·v0,·v0,·v1 | 115 | ····aget·v0,·v0,·v1 |
| |
111 | ····invoke-virtual·{p0},·Landroid/view/View;->getHeight()I | 116 | ····invoke-virtual·{p0},·Landroid/view/View;->getHeight()I |
| |
112 | ····move-result·p0 | 117 | ····move-result·p0 |
| |
113 | ····add-int/2addr·v0,·p0 | 118 | ····add-int/2addr·v0,·p0 |
Offset 177, 38 lines modified | Offset 188, 38 lines modified |
177 | .method·private·static·getLeftOfView(Landroid/view/View;)I | 188 | .method·private·static·getLeftOfView(Landroid/view/View;)I |
178 | ····.locals·1 | 189 | ····.locals·1 |
| |
179 | ····const/4·v0,·0x2 | 190 | ····const/4·v0,·0x2 |
| |
180 | ····new-array·v0,·v0,·[I | 191 | ····new-array·v0,·v0,·[I |
| |
181 | ····.line·344 | 192 | ····.line·373 |
182 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V | 193 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V |
| |
183 | ····const/4·p0,·0x0 | 194 | ····const/4·p0,·0x0 |
| |
184 | ····.line·345 | 195 | ····.line·374 |
185 | ····aget·p0,·v0,·p0 | 196 | ····aget·p0,·v0,·p0 |
| |
186 | ····return·p0 | 197 | ····return·p0 |
187 | .end·method | 198 | .end·method |
| |
188 | .method·private·static·getRightOfView(Landroid/view/View;)I | 199 | .method·private·static·getRightOfView(Landroid/view/View;)I |
189 | ····.locals·2 | 200 | ····.locals·2 |
| |
190 | ····const/4·v0,·0x2 | 201 | ····const/4·v0,·0x2 |
| |
191 | ····new-array·v0,·v0,·[I | 202 | ····new-array·v0,·v0,·[I |
| |
192 | ····.line·350 | 203 | ····.line·379 |
193 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V | 204 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V |
| |
194 | ····const/4·v1,·0x0 | 205 | ····const/4·v1,·0x0 |
| |
195 | ····.line·351 | 206 | ····.line·380 |
196 | ····aget·v0,·v0,·v1 | 207 | ····aget·v0,·v0,·v1 |
| |
197 | ····invoke-virtual·{p0},·Landroid/view/View;->getWidth()I | 208 | ····invoke-virtual·{p0},·Landroid/view/View;->getWidth()I |
| |
198 | ····move-result·p0 | 209 | ····move-result·p0 |
| |
199 | ····add-int/2addr·v0,·p0 | 210 | ····add-int/2addr·v0,·p0 |
Offset 219, 20 lines modified | Offset 230, 20 lines modified |
219 | .method·private·static·getTopOfView(Landroid/view/View;)I | 230 | .method·private·static·getTopOfView(Landroid/view/View;)I |
220 | ····.locals·1 | 231 | ····.locals·1 |
| |
221 | ····const/4·v0,·0x2 | 232 | ····const/4·v0,·0x2 |
| |
222 | ····new-array·v0,·v0,·[I | 233 | ····new-array·v0,·v0,·[I |
| |
223 | ····.line·356 | 234 | ····.line·385 |
224 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V | 235 | ····invoke-virtual·{p0,·v0},·Landroid/view/View;->getLocationOnScreen([I)V |
| |
225 | ····const/4·p0,·0x1 | 236 | ····const/4·p0,·0x1 |
| |
226 | ····.line·357 | 237 | ····.line·386 |
227 | ····aget·p0,·v0,·p0 | 238 | ····aget·p0,·v0,·p0 |
| |
228 | ····return·p0 | 239 | ····return·p0 |
229 | .end·method | 240 | .end·method |
| |
230 | .method·private·synthetic·lambda$new$0(Landroid/view/View;IIIIIIII)V | 241 | .method·private·synthetic·lambda$new$0(Landroid/view/View;IIIIIIII)V |
231 | ····.locals·0 | 242 | ····.locals·0 |
Offset 241, 85 lines modified | Offset 252, 83 lines modified |
| |
241 | ····if-ne·p3,·p7,·:cond_0 | 252 | ····if-ne·p3,·p7,·:cond_0 |
| |
242 | ····if-ne·p4,·p8,·:cond_0 | 253 | ····if-ne·p4,·p8,·:cond_0 |
| |
243 | ····if-eq·p5,·p9,·:cond_1 | 254 | ····if-eq·p5,·p9,·:cond_1 |
| |
| 255 | ····.line·259 |
244 | ····:cond_0 | 256 | ····:cond_0 |
245 | ····const/4·p1,·0x1 | |
| |
246 | ····.line·224 | |
247 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsDirty:Z | 257 | ····invoke-virtual·{p0},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->recalcInsets()V |
| |
248 | ····:cond_1 | 258 | ····:cond_1 |
249 | ····return-void | 259 | ····return-void |
250 | .end·method | 260 | .end·method |
| |
| |
251 | #·virtual·methods | 261 | #·virtual·methods |
252 | .method·dispatchNewInsets(Lcom/android/car/ui/baselayout/Insets;)V | 262 | .method·dispatchNewInsets(Lcom/android/car/ui/baselayout/Insets;)V |
253 | ····.locals·5 | 263 | ····.locals·5 |
| |
254 | ····.line·309 | 264 | ····.line·339 |
255 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; | 265 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; |
| |
256 | ····.line·313 | 266 | ····.line·343 |
257 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsChangedListenerDelegate:Lcom/android/car/ui/baselayout/InsetsChangedListener; | 267 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsChangedListenerDelegate:Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
258 | ····const/4·v1,·0x1 | 268 | ····const/4·v1,·0x1 |
| |
259 | ····if-eqz·v0,·:cond_0 | 269 | ····if-eqz·v0,·:cond_0 |
| |
260 | ····.line·314 | 270 | ····.line·344 |
261 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/baselayout/InsetsChangedListener;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 271 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/baselayout/InsetsChangedListener;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
| |
262 | ····goto·:goto_2 | 272 | ····goto·:goto_2 |
| |
263 | ····.line·319 | 273 | ····.line·349 |
264 | ····:cond_0 | 274 | ····:cond_0 |
265 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; | 275 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; |
| |
266 | ····instance-of·v2,·v0,·Lcom/android/car/ui/baselayout/InsetsChangedListener; | 276 | ····instance-of·v2,·v0,·Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
267 | ····if-eqz·v2,·:cond_1 | 277 | ····if-eqz·v2,·:cond_1 |
| |
268 | ····.line·320 | 278 | ····.line·350 |
269 | ····check-cast·v0,·Lcom/android/car/ui/baselayout/InsetsChangedListener; | 279 | ····check-cast·v0,·Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
270 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/baselayout/InsetsChangedListener;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 280 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/baselayout/InsetsChangedListener;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
| |
271 | ····move·v0,·v1 | 281 | ····move·v0,·v1 |
| |
272 | ····goto·:goto_0 | 282 | ····goto·:goto_0 |
| |
273 | ····:cond_1 | 283 | ····:cond_1 |
274 | ····const/4·v0,·0x0 | 284 | ····const/4·v0,·0x0 |
| |
275 | ····.line·324 | 285 | ····.line·354 |
276 | ····:goto_0 | 286 | ····:goto_0 |
277 | ····iget-object·v2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; | 287 | ····iget-object·v2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; |
| |
278 | ····instance-of·v3,·v2,·Landroidx/fragment/app/FragmentActivity; | 288 | ····instance-of·v3,·v2,·Landroidx/fragment/app/FragmentActivity; |
| |
279 | ····if-eqz·v3,·:cond_3 | 289 | ····if-eqz·v3,·:cond_3 |
| |
280 | ····.line·325 | 290 | ····.line·355 |
281 | ····check-cast·v2,·Landroidx/fragment/app/FragmentActivity; | 291 | ····check-cast·v2,·Landroidx/fragment/app/FragmentActivity; |
| |
282 | ····.line·326 | 292 | ····.line·356 |
283 | ····invoke-virtual·{v2},·Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; | 293 | ····invoke-virtual·{v2},·Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; |
| |
284 | ····move-result-object·v2 | 294 | ····move-result-object·v2 |
| |
285 | ····invoke-virtual·{v2},·Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List; | 295 | ····invoke-virtual·{v2},·Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List; |
| |
286 | ····move-result-object·v2 | 296 | ····move-result-object·v2 |
| |
287 | ····.line·325 | 297 | ····.line·355 |
288 | ····invoke-interface·{v2},·Ljava/util/List;->iterator()Ljava/util/Iterator; | 298 | ····invoke-interface·{v2},·Ljava/util/List;->iterator()Ljava/util/Iterator; |
| |
289 | ····move-result-object·v2 | 299 | ····move-result-object·v2 |
| |
290 | ····:cond_2 | 300 | ····:cond_2 |
291 | ····:goto_1 | 301 | ····:goto_1 |
292 | ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z | 302 | ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z |
Offset 330, 283 lines modified | Offset 339, 302 lines modified |
| |
330 | ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 339 | ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
331 | ····move-result-object·v3 | 340 | ····move-result-object·v3 |
| |
332 | ····check-cast·v3,·Landroidx/fragment/app/Fragment; | 341 | ····check-cast·v3,·Landroidx/fragment/app/Fragment; |
| |
333 | ····.line·327 | 342 | ····.line·357 |
334 | ····instance-of·v4,·v3,·Lcom/android/car/ui/baselayout/InsetsChangedListener; | 343 | ····instance-of·v4,·v3,·Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
335 | ····if-eqz·v4,·:cond_2 | 344 | ····if-eqz·v4,·:cond_2 |
| |
336 | ····.line·328 | 345 | ····.line·358 |
337 | ····check-cast·v3,·Lcom/android/car/ui/baselayout/InsetsChangedListener; | 346 | ····check-cast·v3,·Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
338 | ····invoke-interface·{v3,·p1},·Lcom/android/car/ui/baselayout/InsetsChangedListener;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 347 | ····invoke-interface·{v3,·p1},·Lcom/android/car/ui/baselayout/InsetsChangedListener;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
| |
339 | ····move·v0,·v1 | 348 | ····move·v0,·v1 |
| |
340 | ····goto·:goto_1 | 349 | ····goto·:goto_1 |
| |
341 | ····:cond_3 | 350 | ····:cond_3 |
342 | ····move·v1,·v0 | 351 | ····move·v1,·v0 |
| |
343 | ····:goto_2 | 352 | ····:goto_2 |
344 | ····if-nez·v1,·:cond_4 | 353 | ····if-nez·v1,·:cond_4 |
| |
345 | ····.line·336 | 354 | ····.line·366 |
346 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; | 355 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentView:Landroid/view/View; |
| |
347 | ····invoke-virtual·{v0},·Landroid/app/Activity;->getWindow()Landroid/view/Window; | |
| |
348 | ····move-result-object·v0 | |
| |
349 | ····invoke-virtual·{v0},·Landroid/view/Window;->getDecorView()Landroid/view/View; | |
| |
350 | ····move-result-object·v0 | |
| |
351 | ····const·v1,·0x1020002 | |
| |
352 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | |
| |
353 | ····move-result-object·v0 | |
| |
354 | ····.line·337 | |
355 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getLeft()I | 356 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getLeft()I |
| |
356 | ····move-result·v1 | 357 | ····move-result·v1 |
| |
357 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I | 358 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I |
| |
358 | ····move-result·v2 | 359 | ····move-result·v2 |
| |
359 | ····.line·338 | 360 | ····.line·367 |
360 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getRight()I | 361 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getRight()I |
| |
361 | ····move-result·v3 | 362 | ····move-result·v3 |
| |
362 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I | 363 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I |
| |
363 | ····move-result·p1 | 364 | ····move-result·p1 |
| |
364 | ····.line·337 | 365 | ····.line·366 |
365 | ····invoke-virtual·{v0,·v1,·v2,·v3,·p1},·Landroid/view/View;->setPadding(IIII)V | 366 | ····invoke-virtual·{v0,·v1,·v2,·v3,·p1},·Landroid/view/View;->setPadding(IIII)V |
| |
366 | ····:cond_4 | 367 | ····:cond_4 |
367 | ····return-void | 368 | ····return-void |
368 | .end·method | 369 | .end·method |
| |
369 | .method·getInsets()Lcom/android/car/ui/baselayout/Insets; | 370 | .method·getInsets()Lcom/android/car/ui/baselayout/Insets; |
370 | ····.locals·1 | 371 | ····.locals·1 |
| |
371 | ····.line·256 | 372 | ····.line·281 |
372 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; | 373 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; |
| |
373 | ····return-object·v0 | 374 | ····return-object·v0 |
374 | .end·method | 375 | .end·method |
| |
375 | .method·installListeners()V | 376 | .method·public·synthetic·lambda$new$0$BaseLayoutController$InsetsUpdater(Landroid/view/View;IIIIIIII)V |
376 | ····.locals·1 | 377 | ····.locals·0 |
| |
| 378 | ····invoke-direct/range·{p0·..·p9},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->lambda$new$0(Landroid/view/View;IIIIIIII)V |
377 | ····.line·250 | |
378 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; | |
| |
379 | ····invoke-virtual·{v0},·Landroid/app/Activity;->getWindow()Landroid/view/Window; | 379 | ····return-void |
| 380 | .end·method |
| |
380 | ····move-result-object·v0 | 381 | .method·public·recalcInsets()V |
| 382 | ····.locals·7 |
| |
381 | ····invoke-virtual·{v0},·Landroid/view/Window;->getDecorView()Landroid/view/View; | 383 | ····.line·298 |
| 384 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
382 | ····move-result-object·v0 | 385 | ····.line·299 |
| 386 | ····invoke-static·{v0},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getTopOfView(Landroid/view/View;)I |
| |
383 | ····invoke-virtual·{v0},·Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver; | 387 | ····move-result·v0 |
| |
384 | ····move-result-object·v0 | 388 | ····iget-object·v1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentView:Landroid/view/View; |
| |
| 389 | ····invoke-static·{v1},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getTopOfView(Landroid/view/View;)I |
385 | ····.line·251 | |
386 | ····invoke-virtual·{v0,·p0},·Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V | |
| |
| 390 | ····move-result·v1 |
387 | ····return-void | |
388 | .end·method | |
| |
| 391 | ····sub-int/2addr·v0,·v1 |
389 | .method·public·synthetic·lambda$new$0$BaseLayoutController$InsetsUpdater(Landroid/view/View;IIIIIIII)V | |
390 | ····.locals·0 | |
| |
391 | ····invoke-direct/range·{p0·..·p9},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->lambda$new$0(Landroid/view/View;IIIIIIII)V | 392 | ····const/4·v1,·0x0 |
| |
392 | ····return-void | |
393 | .end·method | 393 | ····.line·298 |
| 394 | ····invoke-static·{v1,·v0},·Ljava/lang/Math;->max(II)I |
| |
| 395 | ····move-result·v0 |
394 | .method·public·onGlobalLayout()V | |
395 | ····.locals·6 | |
| |
396 | ····.line·268 | 396 | ····.line·300 |
397 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsDirty:Z | 397 | ····iget-object·v2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
398 | ····if-nez·v0,·:cond_0 | 398 | ····.line·301 |
| 399 | ····invoke-static·{v2},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getLeftOfView(Landroid/view/View;)I |
| |
399 | ····return-void | 400 | ····move-result·v2 |
| |
400 | ····.line·272 | |
401 | ····:cond_0 | |
402 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mActivity:Landroid/app/Activity; | 401 | ····iget-object·v3,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentView:Landroid/view/View; |
| |
403 | ····invoke-virtual·{v0},·Landroid/app/Activity;->getWindow()Landroid/view/Window; | 402 | ····invoke-static·{v3},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getLeftOfView(Landroid/view/View;)I |
| |
404 | ····move-result-object·v0 | 403 | ····move-result·v3 |
| |
405 | ····invoke-virtual·{v0},·Landroid/view/Window;->getDecorView()Landroid/view/View; | 404 | ····sub-int/2addr·v2,·v3 |
| |
406 | ····move-result-object·v0 | 405 | ····.line·300 |
| 406 | ····invoke-static·{v1,·v2},·Ljava/lang/Math;->max(II)I |
| |
407 | ····const·v1,·0x1020002 | 407 | ····move-result·v2 |
| |
408 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 408 | ····.line·302 |
| 409 | ····iget-object·v3,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentView:Landroid/view/View; |
| |
409 | ····move-result-object·v0 | 410 | ····.line·303 |
| 411 | ····invoke-static·{v3},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getRightOfView(Landroid/view/View;)I |
| |
| 412 | ····move-result·v3 |
410 | ····.line·280 | |
411 | ····iget-object·v1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mTopInsetView:Landroid/view/View; | |
| |
412 | ····const/4·v2,·0x0 | 413 | ····iget-object·v4,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
413 | ····if-eqz·v1,·:cond_1 | 414 | ····invoke-static·{v4},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getRightOfView(Landroid/view/View;)I |
| |
| 415 | ····move-result·v4 |
414 | ····.line·281 | |
415 | ····invoke-static·{v1},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getBottomOfView(Landroid/view/View;)I | |
| |
416 | ····move-result·v1 | 416 | ····sub-int/2addr·v3,·v4 |
| |
417 | ····invoke-static·{v0},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getTopOfView(Landroid/view/View;)I | 417 | ····.line·302 |
| 418 | ····invoke-static·{v1,·v3},·Ljava/lang/Math;->max(II)I |
| |
418 | ····move-result·v3 | 419 | ····move-result·v3 |
| |
419 | ····sub-int/2addr·v1,·v3 | 420 | ····.line·304 |
| 421 | ····iget-object·v4,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentView:Landroid/view/View; |
| |
420 | ····invoke-static·{v2,·v1},·Ljava/lang/Math;->max(II)I | 422 | ····.line·305 |
| 423 | ····invoke-static·{v4},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getBottomOfView(Landroid/view/View;)I |
| |
421 | ····move-result·v1 | 424 | ····move-result·v4 |
| |
422 | ····goto·:goto_0 | 425 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
| 426 | ····invoke-static·{v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getBottomOfView(Landroid/view/View;)I |
423 | ····:cond_1 | |
424 | ····move·v1,·v2 | |
| |
| 427 | ····move-result·v5 |
425 | ····.line·283 | |
426 | ····:goto_0 | |
427 | ····iget-object·v3,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; | |
| |
428 | ····if-eqz·v3,·:cond_2 | 428 | ····sub-int/2addr·v4,·v5 |
| |
429 | ····.line·284 | 429 | ····.line·304 |
430 | ····invoke-static·{v0},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getBottomOfView(Landroid/view/View;)I | 430 | ····invoke-static·{v1,·v4},·Ljava/lang/Math;->max(II)I |
| |
431 | ····move-result·v3 | 431 | ····move-result·v4 |
| |
| 432 | ····.line·306 |
432 | ····iget-object·v4,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; | 433 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mTopInsetView:Landroid/view/View; |
| |
433 | ····invoke-static·{v4},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getTopOfView(Landroid/view/View;)I | 434 | ····if-eqz·v5,·:cond_0 |
| |
434 | ····move-result·v4 | 435 | ····.line·308 |
| 436 | ····invoke-static·{v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getBottomOfView(Landroid/view/View;)I |
| |
435 | ····sub-int/2addr·v3,·v4 | 437 | ····move-result·v5 |
| |
436 | ····invoke-static·{v2,·v3},·Ljava/lang/Math;->max(II)I | 438 | ····iget-object·v6,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
437 | ····move-result·v3 | 439 | ····invoke-static·{v6},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getTopOfView(Landroid/view/View;)I |
| |
438 | ····goto·:goto_1 | 440 | ····move-result·v6 |
| |
| 441 | ····sub-int/2addr·v5,·v6 |
439 | ····:cond_2 | |
440 | ····move·v3,·v2 | |
| |
441 | ····.line·286 | 442 | ····.line·307 |
| 443 | ····invoke-static·{v1,·v5},·Ljava/lang/Math;->max(II)I |
442 | ····:goto_1 | |
443 | ····iget-object·v4,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mLeftInsetView:Landroid/view/View; | |
| |
444 | ····if-eqz·v4,·:cond_3 | 444 | ····move-result·v5 |
| |
| 445 | ····add-int/2addr·v0,·v5 |
445 | ····.line·287 | |
446 | ····invoke-static·{v4},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getRightOfView(Landroid/view/View;)I | |
| |
447 | ····move-result·v4 | 446 | ····.line·310 |
| 447 | ····:cond_0 |
| 448 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; |
| |
| 449 | ····if-eqz·v5,·:cond_1 |
| |
| 450 | ····.line·311 |
| 451 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
| 452 | ····.line·312 |
448 | ····invoke-static·{v0},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getLeftOfView(Landroid/view/View;)I | 453 | ····invoke-static·{v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getBottomOfView(Landroid/view/View;)I |
| |
449 | ····move-result·v5 | 454 | ····move-result·v5 |
| |
450 | ····sub-int/2addr·v4,·v5 | 455 | ····iget-object·v6,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mBottomInsetView:Landroid/view/View; |
| |
451 | ····invoke-static·{v2,·v4},·Ljava/lang/Math;->max(II)I | 456 | ····invoke-static·{v6},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getTopOfView(Landroid/view/View;)I |
| |
452 | ····move-result·v4 | 457 | ····move-result·v6 |
| |
453 | ····goto·:goto_2 | 458 | ····sub-int/2addr·v5,·v6 |
| |
454 | ····:cond_3 | |
455 | ····move·v4,·v2 | 459 | ····.line·311 |
| 460 | ····invoke-static·{v1,·v5},·Ljava/lang/Math;->max(II)I |
| |
| 461 | ····move-result·v5 |
456 | ····.line·289 | |
457 | ····:goto_2 | |
458 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; | |
| |
459 | ····if-eqz·v5,·:cond_4 | 462 | ····add-int/2addr·v4,·v5 |
| |
460 | ····.line·290 | 463 | ····.line·314 |
| 464 | ····:cond_1 |
461 | ····invoke-static·{v0},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getRightOfView(Landroid/view/View;)I | 465 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mLeftInsetView:Landroid/view/View; |
| |
| 466 | ····if-eqz·v5,·:cond_2 |
| |
| 467 | ····.line·316 |
| 468 | ····invoke-static·{v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getRightOfView(Landroid/view/View;)I |
| |
462 | ····move-result·v0 | 469 | ····move-result·v5 |
| |
| 470 | ····iget-object·v6,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
| 471 | ····invoke-static·{v6},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getLeftOfView(Landroid/view/View;)I |
| |
| 472 | ····move-result·v6 |
| |
| 473 | ····sub-int/2addr·v5,·v6 |
| |
| 474 | ····.line·315 |
| 475 | ····invoke-static·{v1,·v5},·Ljava/lang/Math;->max(II)I |
| |
| 476 | ····move-result·v5 |
| |
| 477 | ····add-int/2addr·v2,·v5 |
| |
| 478 | ····.line·318 |
| 479 | ····:cond_2 |
463 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; | 480 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; |
| |
| 481 | ····if-eqz·v5,·:cond_3 |
| |
| 482 | ····.line·319 |
| 483 | ····iget-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mContentViewContainer:Landroid/view/View; |
| |
| 484 | ····.line·320 |
464 | ····invoke-static·{v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getLeftOfView(Landroid/view/View;)I | 485 | ····invoke-static·{v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getRightOfView(Landroid/view/View;)I |
| |
465 | ····move-result·v5 | 486 | ····move-result·v5 |
| |
466 | ····sub-int/2addr·v0,·v5 | 487 | ····iget-object·v6,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mRightInsetView:Landroid/view/View; |
| |
467 | ····invoke-static·{v2,·v0},·Ljava/lang/Math;->max(II)I | 488 | ····invoke-static·{v6},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->getLeftOfView(Landroid/view/View;)I |
| |
468 | ····move-result·v0 | 489 | ····move-result·v6 |
| |
469 | ····goto·:goto_3 | 490 | ····sub-int/2addr·v5,·v6 |
| |
470 | ····:cond_4 | |
471 | ····move·v0,·v2 | 491 | ····.line·319 |
| 492 | ····invoke-static·{v1,·v5},·Ljava/lang/Math;->max(II)I |
| |
| 493 | ····move-result·v1 |
| |
| 494 | ····add-int/2addr·v3,·v1 |
472 | ····.line·292 | |
473 | ····:goto_3 | |
474 | ····new-instance·v5,·Lcom/android/car/ui/baselayout/Insets; | |
| |
475 | ····invoke-direct·{v5,·v4,·v1,·v0,·v3},·Lcom/android/car/ui/baselayout/Insets;-><init>(IIII)V | 495 | ····.line·322 |
| 496 | ····:cond_3 |
| 497 | ····new-instance·v1,·Lcom/android/car/ui/baselayout/Insets; |
| |
| 498 | ····invoke-direct·{v1,·v2,·v0,·v3,·v4},·Lcom/android/car/ui/baselayout/Insets;-><init>(IIII)V |
476 | ····.line·294 | |
477 | ····iput-boolean·v2,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsDirty:Z | |
| |
478 | ····.line·295 | 499 | ····.line·324 |
479 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; | 500 | ····iget-object·v0,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; |
| |
480 | ····invoke-virtual·{v5,·v0},·Lcom/android/car/ui/baselayout/Insets;->equals(Ljava/lang/Object;)Z | 501 | ····invoke-virtual·{v1,·v0},·Lcom/android/car/ui/baselayout/Insets;->equals(Ljava/lang/Object;)Z |
| |
481 | ····move-result·v0 | 502 | ····move-result·v0 |
| |
482 | ····if-nez·v0,·:cond_5 | 503 | ····if-nez·v0,·:cond_4 |
| |
483 | ····.line·296 | 504 | ····.line·325 |
484 | ····iput-object·v5,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; | 505 | ····iput-object·v1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsets:Lcom/android/car/ui/baselayout/Insets; |
| |
485 | ····.line·297 | 506 | ····.line·326 |
486 | ····invoke-virtual·{p0,·v5},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->dispatchNewInsets(Lcom/android/car/ui/baselayout/Insets;)V | 507 | ····invoke-virtual·{p0,·v1},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->dispatchNewInsets(Lcom/android/car/ui/baselayout/Insets;)V |
| |
487 | ····:cond_5 | 508 | ····:cond_4 |
488 | ····return-void | 509 | ····return-void |
489 | .end·method | 510 | .end·method |
| |
490 | .method·public·replaceInsetsChangedListenerWith(Lcom/android/car/ui/baselayout/InsetsChangedListener;)V | 511 | .method·public·replaceInsetsChangedListenerWith(Lcom/android/car/ui/baselayout/InsetsChangedListener;)V |
491 | ····.locals·0 | 512 | ····.locals·0 |
| |
492 | ····.line·260 | 513 | ····.line·285 |
493 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsChangedListenerDelegate:Lcom/android/car/ui/baselayout/InsetsChangedListener; | 514 | ····iput-object·p1,·p0,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->mInsetsChangedListenerDelegate:Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
494 | ····return-void | 515 | ····return-void |
495 | .end·method | 516 | .end·method |