| | | |
Offset 3, 24 lines modified | Offset 3, 24 lines modified |
3 | .source·"CarUi.java" | 3 | .source·"CarUi.java" |
| |
| |
4 | #·direct·methods | 4 | #·direct·methods |
5 | .method·private·constructor·<init>()V | 5 | .method·private·constructor·<init>()V |
6 | ····.locals·0 | 6 | ····.locals·0 |
| |
7 | ····.line·35 | 7 | ····.line·39 |
8 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 8 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
9 | ····return-void | 9 | ····return-void |
10 | .end·method | 10 | .end·method |
| |
11 | .method·static·getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; | 11 | .method·static·getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; |
12 | ····.locals·6 | 12 | ····.locals·6 |
| |
13 | ····.line·123 | 13 | ····.line·155 |
14 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getClassLoader()Ljava/lang/ClassLoader; | 14 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getClassLoader()Ljava/lang/ClassLoader; |
| |
15 | ····move-result-object·v0 | 15 | ····move-result-object·v0 |
| |
16 | ····const-class·v1,·Lcom/android/car/ui/core/CarUi; | 16 | ····const-class·v1,·Lcom/android/car/ui/core/CarUi; |
| |
17 | ····invoke-virtual·{v1},·Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; | 17 | ····invoke-virtual·{v1},·Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; |
Offset 29, 96 lines modified | Offset 29, 96 lines modified |
| |
29 | ····invoke-virtual·{v0,·v1},·Ljava/lang/Object;->equals(Ljava/lang/Object;)Z | 29 | ····invoke-virtual·{v0,·v1},·Ljava/lang/Object;->equals(Ljava/lang/Object;)Z |
| |
30 | ····move-result·v0 | 30 | ····move-result·v0 |
| |
31 | ····if-eqz·v0,·:cond_0 | 31 | ····if-eqz·v0,·:cond_0 |
| |
32 | ····.line·124 | 32 | ····.line·156 |
33 | ····invoke-static·{p0},·Lcom/android/car/ui/core/BaseLayoutController;->getBaseLayout(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; | 33 | ····invoke-static·{p0},·Lcom/android/car/ui/core/BaseLayoutController;->getBaseLayout(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; |
| |
34 | ····move-result-object·p0 | 34 | ····move-result-object·p0 |
| |
35 | ····return-object·p0 | 35 | ····return-object·p0 |
| |
36 | ····.line·130 | 36 | ····.line·162 |
37 | ····:cond_0 | 37 | ····:cond_0 |
38 | ····:try_start_0 | 38 | ····:try_start_0 |
39 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getClassLoader()Ljava/lang/ClassLoader; | 39 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getClassLoader()Ljava/lang/ClassLoader; |
| |
40 | ····move-result-object·v0 | 40 | ····move-result-object·v0 |
| |
41 | ····const-class·v1,·Lcom/android/car/ui/core/BaseLayoutController; | 41 | ····const-class·v1,·Lcom/android/car/ui/core/BaseLayoutController; |
| |
42 | ····.line·131 | 42 | ····.line·163 |
43 | ····invoke-virtual·{v1},·Ljava/lang/Class;->getName()Ljava/lang/String; | 43 | ····invoke-virtual·{v1},·Ljava/lang/Class;->getName()Ljava/lang/String; |
| |
44 | ····move-result-object·v1 | 44 | ····move-result-object·v1 |
| |
45 | ····invoke-virtual·{v0,·v1},·Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class; | 45 | ····invoke-virtual·{v0,·v1},·Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class; |
| |
46 | ····move-result-object·v0 | 46 | ····move-result-object·v0 |
| |
47 | ····const-string·v1,·"getBaseLayout" | 47 | ····const-string·v1,·"getBaseLayout" |
| |
48 | ····const/4·v2,·0x1 | 48 | ····const/4·v2,·0x1 |
| |
49 | ····new-array·v3,·v2,·[Ljava/lang/Class; | 49 | ····new-array·v3,·v2,·[Ljava/lang/Class; |
| |
50 | ····.line·132 | 50 | ····.line·164 |
51 | ····const-class·v4,·Landroid/app/Activity; | 51 | ····const-class·v4,·Landroid/app/Activity; |
| |
52 | ····const/4·v5,·0x0 | 52 | ····const/4·v5,·0x0 |
| |
53 | ····aput-object·v4,·v3,·v5 | 53 | ····aput-object·v4,·v3,·v5 |
| |
54 | ····.line·133 | 54 | ····.line·165 |
55 | ····invoke-virtual·{v0,·v1,·v3},·Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; | 55 | ····invoke-virtual·{v0,·v1,·v3},·Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; |
| |
56 | ····move-result-object·v0 | 56 | ····move-result-object·v0 |
| |
57 | ····const/4·v1,·0x0 | 57 | ····const/4·v1,·0x0 |
| |
58 | ····new-array·v2,·v2,·[Ljava/lang/Object; | 58 | ····new-array·v2,·v2,·[Ljava/lang/Object; |
| |
59 | ····aput-object·p0,·v2,·v5 | 59 | ····aput-object·p0,·v2,·v5 |
| |
60 | ····.line·134 | 60 | ····.line·166 |
61 | ····invoke-virtual·{v0,·v1,·v2},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; | 61 | ····invoke-virtual·{v0,·v1,·v2},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; |
| |
62 | ····move-result-object·p0 | 62 | ····move-result-object·p0 |
| |
63 | ····check-cast·p0,·Lcom/android/car/ui/core/BaseLayoutController; | 63 | ····check-cast·p0,·Lcom/android/car/ui/core/BaseLayoutController; |
64 | ····:try_end_0 | 64 | ····:try_end_0 |
65 | ····.catch·Ljava/lang/ReflectiveOperationException;·{:try_start_0·..·:try_end_0}·:catch_0 | 65 | ····.catch·Ljava/lang/ReflectiveOperationException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
66 | ····return-object·p0 | 66 | ····return-object·p0 |
| |
67 | ····:catch_0 | 67 | ····:catch_0 |
68 | ····move-exception·p0 | 68 | ····move-exception·p0 |
| |
69 | ····.line·136 | 69 | ····.line·168 |
70 | ····new-instance·v0,·Ljava/lang/RuntimeException; | 70 | ····new-instance·v0,·Ljava/lang/RuntimeException; |
| |
71 | ····invoke-direct·{v0,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V | 71 | ····invoke-direct·{v0,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V |
| |
72 | ····throw·v0 | 72 | ····throw·v0 |
73 | .end·method | 73 | .end·method |
| |
74 | .method·public·static·getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; | 74 | .method·public·static·getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; |
75 | ····.locals·0 | 75 | ····.locals·0 |
| |
76 | ····.line·93 | 76 | ····.line·97 |
77 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; | 77 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; |
| |
78 | ····move-result-object·p0 | 78 | ····move-result-object·p0 |
| |
79 | ····if-eqz·p0,·:cond_0 | 79 | ····if-eqz·p0,·:cond_0 |
| |
80 | ····.line·95 | 80 | ····.line·99 |
81 | ····invoke-virtual·{p0},·Lcom/android/car/ui/core/BaseLayoutController;->getInsets()Lcom/android/car/ui/baselayout/Insets; | 81 | ····invoke-virtual·{p0},·Lcom/android/car/ui/core/BaseLayoutController;->getInsets()Lcom/android/car/ui/baselayout/Insets; |
| |
82 | ····move-result-object·p0 | 82 | ····move-result-object·p0 |
| |
83 | ····return-object·p0 | 83 | ····return-object·p0 |
| |
84 | ····:cond_0 | 84 | ····:cond_0 |
Offset 126, 64 lines modified | Offset 126, 94 lines modified |
| |
126 | ····return-object·p0 | 126 | ····return-object·p0 |
127 | .end·method | 127 | .end·method |
| |
128 | .method·public·static·getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 128 | .method·public·static·getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
129 | ····.locals·0 | 129 | ····.locals·0 |
| |
130 | ····.line·45 | 130 | ····.line·49 |
131 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; | 131 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; |
| |
132 | ····move-result-object·p0 | 132 | ····move-result-object·p0 |
| |
133 | ····if-eqz·p0,·:cond_0 | 133 | ····if-eqz·p0,·:cond_0 |
| |
134 | ····.line·47 | 134 | ····.line·51 |
135 | ····invoke-virtual·{p0},·Lcom/android/car/ui/core/BaseLayoutController;->getToolbarController()Lcom/android/car/ui/toolbar/ToolbarController; | 135 | ····invoke-virtual·{p0},·Lcom/android/car/ui/core/BaseLayoutController;->getToolbarController()Lcom/android/car/ui/toolbar/ToolbarController; |
| |
136 | ····move-result-object·p0 | 136 | ····move-result-object·p0 |
| |
137 | ····return-object·p0 | 137 | ····return-object·p0 |
| |
138 | ····:cond_0 | 138 | ····:cond_0 |
139 | ····const/4·p0,·0x0 | 139 | ····const/4·p0,·0x0 |
| |
140 | ····return-object·p0 | 140 | ····return-object·p0 |
141 | .end·method | 141 | .end·method |
| |
| 142 | .method·public·static·installBaseLayoutAround(Landroid/view/View;Lcom/android/car/ui/baselayout/InsetsChangedListener;Z)Lcom/android/car/ui/toolbar/ToolbarController; |
| 143 | ····.locals·1 |
| |
| 144 | ····const/4·v0,·0x0 |
| |
| 145 | ····.line·146 |
| 146 | ····invoke-static·{v0,·p0,·p2},·Lcom/android/car/ui/core/BaseLayoutController;->installBaseLayoutAround(Landroid/app/Activity;Landroid/view/View;Z)Landroidx/core/util/Pair; |
| |
| 147 | ····move-result-object·p0 |
| |
| 148 | ····.line·148 |
| 149 | ····iget-object·p2,·p0,·Landroidx/core/util/Pair;->second:Ljava/lang/Object; |
| |
| 150 | ····check-cast·p2,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater; |
| |
| 151 | ····invoke-static·{p2},·Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; |
| |
| 152 | ····check-cast·p2,·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater; |
| |
| 153 | ····.line·149 |
| 154 | ····invoke-virtual·{p2,·p1},·Lcom/android/car/ui/core/BaseLayoutController$InsetsUpdater;->replaceInsetsChangedListenerWith(Lcom/android/car/ui/baselayout/InsetsChangedListener;)V |
| |
| 155 | ····.line·151 |
| 156 | ····iget-object·p0,·p0,·Landroidx/core/util/Pair;->first:Ljava/lang/Object; |
| |
| 157 | ····check-cast·p0,·Lcom/android/car/ui/toolbar/ToolbarController; |
| |
| 158 | ····return-object·p0 |
| 159 | .end·method |
| |
142 | .method·public·static·replaceInsetsChangedListenerWith(Landroid/app/Activity;Lcom/android/car/ui/baselayout/InsetsChangedListener;)V | 160 | .method·public·static·replaceInsetsChangedListenerWith(Landroid/app/Activity;Lcom/android/car/ui/baselayout/InsetsChangedListener;)V |
143 | ····.locals·0 | 161 | ····.locals·0 |
| |
144 | ····.line·77 | 162 | ····.line·81 |
145 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; | 163 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getBaseLayoutController(Landroid/app/Activity;)Lcom/android/car/ui/core/BaseLayoutController; |
| |
146 | ····move-result-object·p0 | 164 | ····move-result-object·p0 |
| |
147 | ····if-eqz·p0,·:cond_0 | 165 | ····if-eqz·p0,·:cond_0 |
| |
148 | ····.line·79 | 166 | ····.line·83 |
149 | ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/core/BaseLayoutController;->replaceInsetsChangedListenerWith(Lcom/android/car/ui/baselayout/InsetsChangedListener;)V | 167 | ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/core/BaseLayoutController;->replaceInsetsChangedListenerWith(Lcom/android/car/ui/baselayout/InsetsChangedListener;)V |
| |
150 | ····:cond_0 | 168 | ····:cond_0 |
151 | ····return-void | 169 | ····return-void |
152 | .end·method | 170 | .end·method |
| |
153 | .method·public·static·requireInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; | 171 | .method·public·static·requireInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; |
154 | ····.locals·3 | 172 | ····.locals·3 |
| |
155 | ····.line·112 | 173 | ····.line·116 |
156 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; | 174 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; |
| |
157 | ····move-result-object·v0 | 175 | ····move-result-object·v0 |
| |
158 | ····if-eqz·v0,·:cond_0 | 176 | ····if-eqz·v0,·:cond_0 |
| |
159 | ····return-object·v0 | 177 | ····return-object·v0 |
| |
160 | ····.line·114 | 178 | ····.line·118 |
161 | ····:cond_0 | 179 | ····:cond_0 |
162 | ····new-instance·v0,·Ljava/lang/IllegalArgumentException; | 180 | ····new-instance·v0,·Ljava/lang/IllegalArgumentException; |
| |
163 | ····new-instance·v1,·Ljava/lang/StringBuilder; | 181 | ····new-instance·v1,·Ljava/lang/StringBuilder; |
| |
164 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | 182 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V |
| |
Offset 205, 24 lines modified | Offset 235, 24 lines modified |
| |
205 | ····throw·v0 | 235 | ····throw·v0 |
206 | .end·method | 236 | .end·method |
| |
207 | .method·public·static·requireToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 237 | .method·public·static·requireToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
208 | ····.locals·3 | 238 | ····.locals·3 |
| |
209 | ····.line·62 | 239 | ····.line·66 |
210 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 240 | ····invoke-static·{p0},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
| |
211 | ····move-result-object·v0 | 241 | ····move-result-object·v0 |
| |
212 | ····if-eqz·v0,·:cond_0 | 242 | ····if-eqz·v0,·:cond_0 |
| |
213 | ····return-object·v0 | 243 | ····return-object·v0 |
| |
214 | ····.line·64 | 244 | ····.line·68 |
215 | ····:cond_0 | 245 | ····:cond_0 |
216 | ····new-instance·v0,·Ljava/lang/IllegalArgumentException; | 246 | ····new-instance·v0,·Ljava/lang/IllegalArgumentException; |
| |
217 | ····new-instance·v1,·Ljava/lang/StringBuilder; | 247 | ····new-instance·v1,·Ljava/lang/StringBuilder; |
| |
218 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | 248 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V |
| |