| | | |
Offset 3, 15 lines modified | Offset 3, 15 lines modified |
3 | .source·"CarUiUtils.java" | 3 | .source·"CarUiUtils.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·41 | 7 | ····.line·42 |
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·public·static·findViewByRefId(Landroid/view/View;I)Landroid/view/View; | 11 | .method·public·static·findViewByRefId(Landroid/view/View;I)Landroid/view/View; |
12 | ····.locals·3 | 12 | ····.locals·3 |
Offset 21, 67 lines modified | Offset 21, 82 lines modified |
21 | ············"Landroid/view/View;", | 21 | ············"Landroid/view/View;", |
22 | ············">(", | 22 | ············">(", |
23 | ············"Landroid/view/View;", | 23 | ············"Landroid/view/View;", |
24 | ············"I)TT;" | 24 | ············"I)TT;" |
25 | ········} | 25 | ········} |
26 | ····.end·annotation | 26 | ····.end·annotation |
| |
| 27 | ····.line·168 |
| 28 | ····sget·v0,·Landroid/os/Build$VERSION;->SDK_INT:I |
| |
| 29 | ····const/16·v1,·0x1e |
| |
| 30 | ····if-lt·v0,·v1,·:cond_0 |
| |
| 31 | ····.line·169 |
| 32 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->findViewById(I)Landroid/view/View; |
| |
| 33 | ····move-result-object·p0 |
| |
| 34 | ····return-object·p0 |
| |
| 35 | ····:cond_0 |
27 | ····const/4·v0,·-0x1 | 36 | ····const/4·v0,·-0x1 |
| |
28 | ····if-ne·p1,·v0,·:cond_0 | 37 | ····if-ne·p1,·v0,·:cond_1 |
| |
29 | ····const/4·p0,·0x0 | 38 | ····const/4·p0,·0x0 |
| |
30 | ····return-object·p0 | 39 | ····return-object·p0 |
| |
31 | ····.line·168 | 40 | ····.line·176 |
32 | ····:cond_0 | 41 | ····:cond_1 |
33 | ····new-instance·v0,·Landroid/util/TypedValue; | 42 | ····new-instance·v0,·Landroid/util/TypedValue; |
| |
34 | ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V | 43 | ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V |
| |
35 | ····.line·169 | 44 | ····.line·177 |
36 | ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources; | 45 | ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources; |
| |
37 | ····move-result-object·v1 | 46 | ····move-result-object·v1 |
| |
38 | ····const/4·v2,·0x1 | 47 | ····const/4·v2,·0x1 |
| |
39 | ····invoke-virtual·{v1,·p1,·v0,·v2},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V | 48 | ····invoke-virtual·{v1,·p1,·v0,·v2},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V |
| |
40 | ····.line·170 | 49 | ····.line·178 |
41 | ····iget·p1,·v0,·Landroid/util/TypedValue;->resourceId:I | 50 | ····iget·p1,·v0,·Landroid/util/TypedValue;->resourceId:I |
| |
42 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->findViewById(I)Landroid/view/View; | 51 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->findViewById(I)Landroid/view/View; |
| |
43 | ····move-result-object·p0 | 52 | ····move-result-object·p0 |
| |
44 | ····return-object·p0 | 53 | ····return-object·p0 |
45 | .end·method | 54 | .end·method |
| |
46 | .method·public·static·getActivity(Landroid/content/Context;)Landroid/app/Activity; | 55 | .method·public·static·getActivity(Landroid/content/Context;)Landroid/app/Activity; |
47 | ····.locals·1 | 56 | ····.locals·1 |
| |
48 | ····.line·81 | 57 | ····.line·82 |
49 | ····:goto_0 | 58 | ····:goto_0 |
50 | ····instance-of·v0,·p0,·Landroid/content/ContextWrapper; | 59 | ····instance-of·v0,·p0,·Landroid/content/ContextWrapper; |
| |
51 | ····if-eqz·v0,·:cond_1 | 60 | ····if-eqz·v0,·:cond_1 |
| |
52 | ····.line·82 | 61 | ····.line·83 |
53 | ····instance-of·v0,·p0,·Landroid/app/Activity; | 62 | ····instance-of·v0,·p0,·Landroid/app/Activity; |
| |
54 | ····if-eqz·v0,·:cond_0 | 63 | ····if-eqz·v0,·:cond_0 |
| |
55 | ····.line·83 | 64 | ····.line·84 |
56 | ····check-cast·p0,·Landroid/app/Activity; | 65 | ····check-cast·p0,·Landroid/app/Activity; |
| |
57 | ····return-object·p0 | 66 | ····return-object·p0 |
| |
58 | ····.line·85 | 67 | ····.line·86 |
59 | ····:cond_0 | 68 | ····:cond_0 |
60 | ····check-cast·p0,·Landroid/content/ContextWrapper; | 69 | ····check-cast·p0,·Landroid/content/ContextWrapper; |
| |
61 | ····invoke-virtual·{p0},·Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context; | 70 | ····invoke-virtual·{p0},·Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context; |
| |
62 | ····move-result-object·p0 | 71 | ····move-result-object·p0 |
| |
Offset 94, 15 lines modified | Offset 109, 15 lines modified |
94 | .end·method | 109 | .end·method |
| |
95 | .method·public·static·getAttrResourceId(Landroid/content/Context;I)I | 110 | .method·public·static·getAttrResourceId(Landroid/content/Context;I)I |
96 | ····.locals·1 | 111 | ····.locals·1 |
| |
97 | ····const/4·v0,·0x0 | 112 | ····const/4·v0,·0x0 |
| |
98 | ····.line·59 | 113 | ····.line·60 |
99 | ····invoke-static·{p0,·v0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getAttrResourceId(Landroid/content/Context;II)I | 114 | ····invoke-static·{p0,·v0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getAttrResourceId(Landroid/content/Context;II)I |
| |
100 | ····move-result·p0 | 115 | ····move-result·p0 |
| |
101 | ····return·p0 | 116 | ····return·p0 |
102 | .end·method | 117 | .end·method |
| |
Offset 113, 44 lines modified | Offset 128, 44 lines modified |
| |
113 | ····new-array·v0,·v0,·[I | 128 | ····new-array·v0,·v0,·[I |
| |
114 | ····const/4·v1,·0x0 | 129 | ····const/4·v1,·0x0 |
| |
115 | ····aput·p2,·v0,·v1 | 130 | ····aput·p2,·v0,·v1 |
| |
116 | ····.line·67 | 131 | ····.line·68 |
117 | ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray; | 132 | ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray; |
| |
118 | ····move-result-object·p0 | 133 | ····move-result-object·p0 |
| |
119 | ····.line·68 | 134 | ····.line·69 |
120 | ····invoke-virtual·{p0,·v1,·v1},·Landroid/content/res/TypedArray;->getResourceId(II)I | 135 | ····invoke-virtual·{p0,·v1,·v1},·Landroid/content/res/TypedArray;->getResourceId(II)I |
| |
121 | ····move-result·p1 | 136 | ····move-result·p1 |
| |
122 | ····.line·69 | 137 | ····.line·70 |
123 | ····invoke-virtual·{p0},·Landroid/content/res/TypedArray;->recycle()V | 138 | ····invoke-virtual·{p0},·Landroid/content/res/TypedArray;->recycle()V |
| |
124 | ····return·p1 | 139 | ····return·p1 |
125 | .end·method | 140 | .end·method |
| |
126 | .method·public·static·getFloat(Landroid/content/res/Resources;I)F | 141 | .method·public·static·getFloat(Landroid/content/res/Resources;I)F |
127 | ····.locals·2 | 142 | ····.locals·2 |
| |
128 | ····.line·52 | 143 | ····.line·53 |
129 | ····new-instance·v0,·Landroid/util/TypedValue; | 144 | ····new-instance·v0,·Landroid/util/TypedValue; |
| |
130 | ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V | 145 | ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V |
| |
131 | ····const/4·v1,·0x1 | 146 | ····const/4·v1,·0x1 |
| |
132 | ····.line·53 | 147 | ····.line·54 |
133 | ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V | 148 | ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V |
| |
134 | ····.line·54 | 149 | ····.line·55 |
135 | ····invoke-virtual·{v0},·Landroid/util/TypedValue;->getFloat()F | 150 | ····invoke-virtual·{v0},·Landroid/util/TypedValue;->getFloat()F |
| |
136 | ····move-result·p0 | 151 | ····move-result·p0 |
| |
137 | ····return·p0 | 152 | ····return·p0 |
138 | .end·method | 153 | .end·method |
| |
Offset 162, 36 lines modified | Offset 177, 36 lines modified |
162 | ············"Landroid/view/View;", | 177 | ············"Landroid/view/View;", |
163 | ············">(", | 178 | ············">(", |
164 | ············"Landroid/view/View;", | 179 | ············"Landroid/view/View;", |
165 | ············"I)TT;" | 180 | ············"I)TT;" |
166 | ········} | 181 | ········} |
167 | ····.end·annotation | 182 | ····.end·annotation |
| |
168 | ····.line·183 | 183 | ····.line·194 |
169 | ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; | 184 | ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
170 | ····move-result-object·v0 | 185 | ····move-result-object·v0 |
| |
171 | ····if-eqz·v0,·:cond_0 | 186 | ····if-eqz·v0,·:cond_0 |
| |
172 | ····return-object·v0 | 187 | ····return-object·v0 |
| |
173 | ····.line·185 | 188 | ····.line·196 |
174 | ····:cond_0 | 189 | ····:cond_0 |
175 | ····new-instance·v0,·Ljava/lang/IllegalArgumentException; | 190 | ····new-instance·v0,·Ljava/lang/IllegalArgumentException; |
| |
176 | ····new-instance·v1,·Ljava/lang/StringBuilder; | 191 | ····new-instance·v1,·Ljava/lang/StringBuilder; |
| |
177 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | 192 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V |
| |
178 | ····const-string·v2,·"ID·" | 193 | ····const-string·v2,·"ID·" |
| |
179 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 194 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
180 | ····.line·186 | 195 | ····.line·197 |
181 | ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources; | 196 | ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources; |
| |
182 | ····move-result-object·p0 | 197 | ····move-result-object·p0 |
| |
183 | ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String; | 198 | ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String; |
| |
184 | ····move-result-object·p0 | 199 | ····move-result-object·p0 |
Offset 212, 39 lines modified | Offset 227, 39 lines modified |
212 | .end·method | 227 | .end·method |
| |
213 | .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V | 228 | .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V |
214 | ····.locals·2 | 229 | ····.locals·2 |
| |
215 | ····if-nez·p2,·:cond_0 | 230 | ····if-nez·p2,·:cond_0 |
| |
216 | ····.line·123 | 231 | ····.line·124 |
217 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V | 232 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V |
| |
218 | ····.line·125 | 233 | ····.line·126 |
219 | ····:cond_0 | 234 | ····:cond_0 |
220 | ····instance-of·p2,·p0,·Landroid/view/ViewGroup; | 235 | ····instance-of·p2,·p0,·Landroid/view/ViewGroup; |
| |
221 | ····if-eqz·p2,·:cond_1 | 236 | ····if-eqz·p2,·:cond_1 |
| |
222 | ····.line·126 | 237 | ····.line·127 |
223 | ····check-cast·p0,·Landroid/view/ViewGroup; | 238 | ····check-cast·p0,·Landroid/view/ViewGroup; |
| |
224 | ····const/4·p2,·0x0 | 239 | ····const/4·p2,·0x0 |
| |
225 | ····move·v0,·p2 | 240 | ····move·v0,·p2 |
| |
226 | ····.line·127 | 241 | ····.line·128 |
227 | ····:goto_0 | 242 | ····:goto_0 |
228 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I | 243 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I |
| |
229 | ····move-result·v1 | 244 | ····move-result·v1 |
| |
230 | ····if-ge·v0,·v1,·:cond_1 | 245 | ····if-ge·v0,·v1,·:cond_1 |
| |
231 | ····.line·128 | 246 | ····.line·129 |
232 | ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; | 247 | ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; |
| |
233 | ····move-result-object·v1 | 248 | ····move-result-object·v1 |
| |
234 | ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V | 249 | ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V |
| |
235 | ····add-int/lit8·v0,·v0,·0x1 | 250 | ····add-int/lit8·v0,·v0,·0x1 |
Offset 262, 39 lines modified | Offset 277, 39 lines modified |
| |
262 | ····const/4·v1,·0x1 | 277 | ····const/4·v1,·0x1 |
| |
263 | ····if-eqz·p0,·:cond_1 | 278 | ····if-eqz·p0,·:cond_1 |
| |
264 | ····if-eqz·p2,·:cond_0 | 279 | ····if-eqz·p2,·:cond_0 |
| |
265 | ····.line·101 | 280 | ····.line·102 |
266 | ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V | 281 | ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V |
| |
267 | ····.line·103 | 282 | ····.line·104 |
268 | ····:cond_0 | 283 | ····:cond_0 |
269 | ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V | 284 | ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V |
| |
270 | ····goto·:goto_0 | 285 | ····goto·:goto_0 |
| |
271 | ····.line·105 | 286 | ····.line·106 |
272 | ····:cond_1 | 287 | ····:cond_1 |
273 | ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V | 288 | ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V |
| |
274 | ····if-nez·p2,·:cond_2 | 289 | ····if-nez·p2,·:cond_2 |
| |
275 | ····.line·108 | 290 | ····.line·109 |
276 | ····invoke-virtual·{p1},·Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable; | 291 | ····invoke-virtual·{p1},·Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable; |
| |
277 | ····move-result-object·p2 | 292 | ····move-result-object·p2 |
| |
278 | ····.line·110 | 293 | ····.line·111 |
279 | ····:cond_2 | 294 | ····:cond_2 |
280 | ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V | 295 | ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V |
| |
281 | ····.line·112 | 296 | ····.line·113 |
282 | ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V | 297 | ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V |
| |
283 | ····:goto_0 | 298 | ····:goto_0 |
284 | ····return-object·p2 | 299 | ····return-object·p2 |
285 | .end·method | 300 | .end·method |
| |
286 | .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V | 301 | .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V |
Offset 307, 22 lines modified | Offset 322, 22 lines modified |
307 | ····goto·:goto_0 | 322 | ····goto·:goto_0 |
| |
308 | ····:cond_0 | 323 | ····:cond_0 |
309 | ····if-eqz·p1,·:cond_1 | 324 | ····if-eqz·p1,·:cond_1 |
| |
310 | ····if-eqz·p2,·:cond_1 | 325 | ····if-eqz·p2,·:cond_1 |
| |
311 | ····.line·148 | 326 | ····.line·149 |
312 | ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V | 327 | ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V |
| |
313 | ····goto·:goto_0 | 328 | ····goto·:goto_0 |
| |
314 | ····:cond_1 | 329 | ····:cond_1 |
315 | ····const/4·p0,·0x0 | 330 | ····const/4·p0,·0x0 |
| |
316 | ····.line·150 | 331 | ····.line·151 |
317 | ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V | 332 | ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V |
| |
318 | ····:cond_2 | 333 | ····:cond_2 |
319 | ····:goto_0 | 334 | ····:goto_0 |
320 | ····return-void | 335 | ····return-void |
321 | .end·method | 336 | .end·method |