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