Offset 3, 15 lines modifiedOffset 3, 15 lines modified
3 .source·"CarUiUtils.java"3 .source·"CarUiUtils.java"
  
  
4 #·direct·methods4 #·direct·methods
5 .method·private·constructor·<init>()V5 .method·private·constructor·<init>()V
6 ····.locals·06 ····.locals·0
  
7 ····.line·417 ····.line·42
8 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V8 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
9 ····return-void9 ····return-void
10 .end·method10 .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·312 ····.locals·3
Offset 21, 67 lines modifiedOffset 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·annotation26 ····.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,·-0x136 ····const/4·v0,·-0x1
  
28 ····if-ne·p1,·v0,·:cond_037 ····if-ne·p1,·v0,·:cond_1
  
29 ····const/4·p0,·0x038 ····const/4·p0,·0x0
  
30 ····return-object·p039 ····return-object·p0
  
31 ····.line·16840 ····.line·176
32 ····:cond_041 ····:cond_1
33 ····new-instance·v0,·Landroid/util/TypedValue;42 ····new-instance·v0,·Landroid/util/TypedValue;
  
34 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V43 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V
  
35 ····.line·16944 ····.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·v146 ····move-result-object·v1
  
38 ····const/4·v2,·0x147 ····const/4·v2,·0x1
  
39 ····invoke-virtual·{v1,·p1,·v0,·v2},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V48 ····invoke-virtual·{v1,·p1,·v0,·v2},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V
  
40 ····.line·17049 ····.line·178
41 ····iget·p1,·v0,·Landroid/util/TypedValue;->resourceId:I50 ····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·p052 ····move-result-object·p0
  
44 ····return-object·p053 ····return-object·p0
45 .end·method54 .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·156 ····.locals·1
  
48 ····.line·8157 ····.line·82
49 ····:goto_058 ····:goto_0
50 ····instance-of·v0,·p0,·Landroid/content/ContextWrapper;59 ····instance-of·v0,·p0,·Landroid/content/ContextWrapper;
  
51 ····if-eqz·v0,·:cond_160 ····if-eqz·v0,·:cond_1
  
52 ····.line·8261 ····.line·83
53 ····instance-of·v0,·p0,·Landroid/app/Activity;62 ····instance-of·v0,·p0,·Landroid/app/Activity;
  
54 ····if-eqz·v0,·:cond_063 ····if-eqz·v0,·:cond_0
  
55 ····.line·8364 ····.line·84
56 ····check-cast·p0,·Landroid/app/Activity;65 ····check-cast·p0,·Landroid/app/Activity;
  
57 ····return-object·p066 ····return-object·p0
  
58 ····.line·8567 ····.line·86
59 ····:cond_068 ····: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·p071 ····move-result-object·p0
  
Offset 94, 15 lines modifiedOffset 109, 15 lines modified
94 .end·method109 .end·method
  
95 .method·public·static·getAttrResourceId(Landroid/content/Context;I)I110 .method·public·static·getAttrResourceId(Landroid/content/Context;I)I
96 ····.locals·1111 ····.locals·1
  
97 ····const/4·v0,·0x0112 ····const/4·v0,·0x0
  
98 ····.line·59113 ····.line·60
99 ····invoke-static·{p0,·v0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getAttrResourceId(Landroid/content/Context;II)I114 ····invoke-static·{p0,·v0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getAttrResourceId(Landroid/content/Context;II)I
  
100 ····move-result·p0115 ····move-result·p0
  
101 ····return·p0116 ····return·p0
102 .end·method117 .end·method
  
Offset 113, 44 lines modifiedOffset 128, 44 lines modified
  
113 ····new-array·v0,·v0,·[I128 ····new-array·v0,·v0,·[I
  
114 ····const/4·v1,·0x0129 ····const/4·v1,·0x0
  
115 ····aput·p2,·v0,·v1130 ····aput·p2,·v0,·v1
  
116 ····.line·67131 ····.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·p0133 ····move-result-object·p0
  
119 ····.line·68134 ····.line·69
120 ····invoke-virtual·{p0,·v1,·v1},·Landroid/content/res/TypedArray;->getResourceId(II)I135 ····invoke-virtual·{p0,·v1,·v1},·Landroid/content/res/TypedArray;->getResourceId(II)I
  
121 ····move-result·p1136 ····move-result·p1
  
122 ····.line·69137 ····.line·70
123 ····invoke-virtual·{p0},·Landroid/content/res/TypedArray;->recycle()V138 ····invoke-virtual·{p0},·Landroid/content/res/TypedArray;->recycle()V
  
124 ····return·p1139 ····return·p1
125 .end·method140 .end·method
  
126 .method·public·static·getFloat(Landroid/content/res/Resources;I)F141 .method·public·static·getFloat(Landroid/content/res/Resources;I)F
127 ····.locals·2142 ····.locals·2
  
128 ····.line·52143 ····.line·53
129 ····new-instance·v0,·Landroid/util/TypedValue;144 ····new-instance·v0,·Landroid/util/TypedValue;
  
130 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V145 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V
  
131 ····const/4·v1,·0x1146 ····const/4·v1,·0x1
  
132 ····.line·53147 ····.line·54
133 ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V148 ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V
  
134 ····.line·54149 ····.line·55
135 ····invoke-virtual·{v0},·Landroid/util/TypedValue;->getFloat()F150 ····invoke-virtual·{v0},·Landroid/util/TypedValue;->getFloat()F
  
136 ····move-result·p0151 ····move-result·p0
  
137 ····return·p0152 ····return·p0
138 .end·method153 .end·method
  
Offset 162, 36 lines modifiedOffset 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·annotation182 ····.end·annotation
  
168 ····.line·183183 ····.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·v0185 ····move-result-object·v0
  
171 ····if-eqz·v0,·:cond_0186 ····if-eqz·v0,·:cond_0
  
172 ····return-object·v0187 ····return-object·v0
  
173 ····.line·185188 ····.line·196
174 ····:cond_0189 ····: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>()V192 ····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·186195 ····.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·p0197 ····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·p0199 ····move-result-object·p0
Offset 212, 39 lines modifiedOffset 227, 39 lines modified
212 .end·method227 .end·method
  
213 .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V228 .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V
214 ····.locals·2229 ····.locals·2
  
215 ····if-nez·p2,·:cond_0230 ····if-nez·p2,·:cond_0
  
216 ····.line·123231 ····.line·124
217 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V232 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V
  
218 ····.line·125233 ····.line·126
219 ····:cond_0234 ····:cond_0
220 ····instance-of·p2,·p0,·Landroid/view/ViewGroup;235 ····instance-of·p2,·p0,·Landroid/view/ViewGroup;
  
221 ····if-eqz·p2,·:cond_1236 ····if-eqz·p2,·:cond_1
  
222 ····.line·126237 ····.line·127
223 ····check-cast·p0,·Landroid/view/ViewGroup;238 ····check-cast·p0,·Landroid/view/ViewGroup;
  
224 ····const/4·p2,·0x0239 ····const/4·p2,·0x0
  
225 ····move·v0,·p2240 ····move·v0,·p2
  
226 ····.line·127241 ····.line·128
227 ····:goto_0242 ····:goto_0
228 ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I243 ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I
  
229 ····move-result·v1244 ····move-result·v1
  
230 ····if-ge·v0,·v1,·:cond_1245 ····if-ge·v0,·v1,·:cond_1
  
231 ····.line·128246 ····.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·v1248 ····move-result-object·v1
  
234 ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V249 ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V
  
235 ····add-int/lit8·v0,·v0,·0x1250 ····add-int/lit8·v0,·v0,·0x1
Offset 262, 39 lines modifiedOffset 277, 39 lines modified
  
262 ····const/4·v1,·0x1277 ····const/4·v1,·0x1
  
263 ····if-eqz·p0,·:cond_1278 ····if-eqz·p0,·:cond_1
  
264 ····if-eqz·p2,·:cond_0279 ····if-eqz·p2,·:cond_0
  
265 ····.line·101280 ····.line·102
266 ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V281 ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
  
267 ····.line·103282 ····.line·104
268 ····:cond_0283 ····:cond_0
269 ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V284 ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V
  
270 ····goto·:goto_0285 ····goto·:goto_0
  
271 ····.line·105286 ····.line·106
272 ····:cond_1287 ····:cond_1
273 ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V288 ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V
  
274 ····if-nez·p2,·:cond_2289 ····if-nez·p2,·:cond_2
  
275 ····.line·108290 ····.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·p2292 ····move-result-object·p2
  
278 ····.line·110293 ····.line·111
279 ····:cond_2294 ····:cond_2
280 ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V295 ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V
  
281 ····.line·112296 ····.line·113
282 ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V297 ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V
  
283 ····:goto_0298 ····:goto_0
284 ····return-object·p2299 ····return-object·p2
285 .end·method300 .end·method
  
286 .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V301 .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V
Offset 307, 22 lines modifiedOffset 322, 22 lines modified
307 ····goto·:goto_0322 ····goto·:goto_0
  
308 ····:cond_0323 ····:cond_0
309 ····if-eqz·p1,·:cond_1324 ····if-eqz·p1,·:cond_1
  
310 ····if-eqz·p2,·:cond_1325 ····if-eqz·p2,·:cond_1
  
311 ····.line·148326 ····.line·149
312 ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V327 ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
  
313 ····goto·:goto_0328 ····goto·:goto_0
  
314 ····:cond_1329 ····:cond_1
315 ····const/4·p0,·0x0330 ····const/4·p0,·0x0
  
316 ····.line·150331 ····.line·151
317 ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V332 ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
  
318 ····:cond_2333 ····:cond_2
319 ····:goto_0334 ····:goto_0
320 ····return-void335 ····return-void
321 .end·method336 .end·method