Offset 1, 87 lines modifiedOffset 1, 230 lines modified
1 .class·public·final·Lcom/android/car/ui/utils/CarUiUtils;1 .class·public·final·Lcom/android/car/ui/utils/CarUiUtils;
2 .super·Ljava/lang/Object;2 .super·Ljava/lang/Object;
3 .source·"CarUiUtils.java"3 .source·"CarUiUtils.java"
  
  
 4 #·static·fields
 5 .field·private·static·final·READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
 6 ····.annotation·system·Ldalvik/annotation/Signature;
 7 ········value·=·{
 8 ············"Landroid/util/SparseArray<",
 9 ············"Ljava/lang/String;",
 10 ············">;"
 11 ········}
 12 ····.end·annotation
 13 .end·field
  
 14 .field·private·static·final·READ_ONLY_SYSTEM_PROPERTY_PREFIX:Ljava/lang/String;·=·"ro."
  
 15 .field·private·static·final·TAG:Ljava/lang/String;·=·"CarUiUtils"
  
  
4 #·direct·methods16 #·direct·methods
 17 .method·static·constructor·<clinit>()V
 18 ····.locals·1
  
 19 ····.line·54
 20 ····new-instance·v0,·Landroid/util/SparseArray;
  
 21 ····invoke-direct·{v0},·Landroid/util/SparseArray;-><init>()V
  
 22 ····sput-object·v0,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
 23 ····return-void
 24 .end·method
  
5 .method·private·constructor·<init>()V25 .method·private·constructor·<init>()V
6 ····.locals·026 ····.locals·0
  
7 ····.line·4127 ····.line·57
8 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V28 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
9 ····return-void29 ····return-void
10 .end·method30 .end·method
  
 31 .method·public·static·drawableToBitmap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;
 32 ····.locals·5
  
 33 ····.line·247
 34 ····instance-of·v0,·p0,·Landroid/graphics/drawable/BitmapDrawable;
  
 35 ····if-eqz·v0,·:cond_0
  
 36 ····.line·248
 37 ····move-object·v0,·p0
  
 38 ····check-cast·v0,·Landroid/graphics/drawable/BitmapDrawable;
  
 39 ····.line·249
 40 ····invoke-virtual·{v0},·Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
  
 41 ····move-result-object·v1
  
 42 ····if-eqz·v1,·:cond_0
  
 43 ····.line·250
 44 ····invoke-virtual·{v0},·Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
  
 45 ····move-result-object·p0
  
 46 ····return-object·p0
  
 47 ····.line·254
 48 ····:cond_0
 49 ····invoke-virtual·{p0},·Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
  
 50 ····move-result·v0
  
 51 ····if-lez·v0,·:cond_2
  
 52 ····invoke-virtual·{p0},·Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
  
 53 ····move-result·v0
  
 54 ····if-gtz·v0,·:cond_1
  
 55 ····goto·:goto_0
  
 56 ····.line·258
 57 ····:cond_1
 58 ····invoke-virtual·{p0},·Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
  
 59 ····move-result·v0
  
 60 ····.line·259
 61 ····invoke-virtual·{p0},·Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
  
 62 ····move-result·v1
  
 63 ····sget-object·v2,·Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
  
 64 ····.line·258
 65 ····invoke-static·{v0,·v1,·v2},·Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
  
 66 ····move-result-object·v0
  
 67 ····goto·:goto_1
  
 68 ····.line·255
 69 ····:cond_2
 70 ····:goto_0
 71 ····sget-object·v0,·Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
  
 72 ····const/4·v1,·0x1
  
 73 ····invoke-static·{v1,·v1,·v0},·Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
  
 74 ····move-result-object·v0
  
 75 ····.line·262
 76 ····:goto_1
 77 ····new-instance·v1,·Landroid/graphics/Canvas;
  
 78 ····invoke-direct·{v1,·v0},·Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
  
 79 ····.line·263
 80 ····invoke-virtual·{v1},·Landroid/graphics/Canvas;->getWidth()I
  
 81 ····move-result·v2
  
 82 ····invoke-virtual·{v1},·Landroid/graphics/Canvas;->getHeight()I
  
 83 ····move-result·v3
  
 84 ····const/4·v4,·0x0
  
 85 ····invoke-virtual·{p0,·v4,·v4,·v2,·v3},·Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
  
 86 ····.line·264
 87 ····invoke-virtual·{p0,·v1},·Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
  
 88 ····return-object·v0
 89 .end·method
  
11 .method·public·static·findViewByRefId(Landroid/view/View;I)Landroid/view/View;90 .method·public·static·findViewByRefId(Landroid/view/View;I)Landroid/view/View;
12 ····.locals·391 ····.locals·3
13 ····.annotation·system·Ldalvik/annotation/Signature;92 ····.annotation·system·Ldalvik/annotation/Signature;
14 ········value·=·{93 ········value·=·{
15 ············"<T:",94 ············"<T:",
16 ············"Landroid/view/View;",95 ············"Landroid/view/View;",
17 ············">(",96 ············">(",
18 ············"Landroid/view/View;",97 ············"Landroid/view/View;",
19 ············"I)TT;"98 ············"I)TT;"
20 ········}99 ········}
21 ····.end·annotation100 ····.end·annotation
  
 101 ····.line·132
 102 ····sget·v0,·Landroid/os/Build$VERSION;->SDK_INT:I
  
 103 ····const/16·v1,·0x1e
  
 104 ····if-lt·v0,·v1,·:cond_0
  
 105 ····.line·133
 106 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->findViewById(I)Landroid/view/View;
  
 107 ····move-result-object·p0
  
 108 ····return-object·p0
  
 109 ····:cond_0
22 ····const/4·v0,·-0x1110 ····const/4·v0,·-0x1
  
23 ····if-ne·p1,·v0,·:cond_0111 ····if-ne·p1,·v0,·:cond_1
  
24 ····const/4·p0,·0x0112 ····const/4·p0,·0x0
  
25 ····return-object·p0113 ····return-object·p0
  
26 ····.line·168114 ····.line·140
27 ····:cond_0115 ····:cond_1
28 ····new-instance·v0,·Landroid/util/TypedValue;116 ····new-instance·v0,·Landroid/util/TypedValue;
  
29 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V117 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V
  
30 ····.line·169118 ····.line·141
31 ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources;119 ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources;
  
32 ····move-result-object·v1120 ····move-result-object·v1
  
33 ····const/4·v2,·0x1121 ····const/4·v2,·0x1
  
34 ····invoke-virtual·{v1,·p1,·v0,·v2},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V122 ····invoke-virtual·{v1,·p1,·v0,·v2},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V
  
35 ····.line·170123 ····.line·142
36 ····iget·p1,·v0,·Landroid/util/TypedValue;->resourceId:I124 ····iget·p1,·v0,·Landroid/util/TypedValue;->resourceId:I
  
37 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->findViewById(I)Landroid/view/View;125 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->findViewById(I)Landroid/view/View;
  
38 ····move-result-object·p0126 ····move-result-object·p0
  
39 ····return-object·p0127 ····return-object·p0
40 .end·method128 .end·method
  
41 .method·public·static·getActivity(Landroid/content/Context;)Landroid/app/Activity;129 .method·public·static·getActivity(Landroid/content/Context;)Landroid/app/Activity;
42 ····.locals·1130 ····.locals·1
  
43 ····.line·81131 ····.line·97
44 ····:goto_0132 ····:goto_0
45 ····instance-of·v0,·p0,·Landroid/content/ContextWrapper;133 ····instance-of·v0,·p0,·Landroid/content/ContextWrapper;
  
46 ····if-eqz·v0,·:cond_1134 ····if-eqz·v0,·:cond_1
  
47 ····.line·82135 ····.line·98
48 ····instance-of·v0,·p0,·Landroid/app/Activity;136 ····instance-of·v0,·p0,·Landroid/app/Activity;
  
49 ····if-eqz·v0,·:cond_0137 ····if-eqz·v0,·:cond_0
  
50 ····.line·83138 ····.line·99
51 ····check-cast·p0,·Landroid/app/Activity;139 ····check-cast·p0,·Landroid/app/Activity;
  
52 ····return-object·p0140 ····return-object·p0
  
53 ····.line·85141 ····.line·101
54 ····:cond_0142 ····:cond_0
55 ····check-cast·p0,·Landroid/content/ContextWrapper;143 ····check-cast·p0,·Landroid/content/ContextWrapper;
  
56 ····invoke-virtual·{p0},·Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;144 ····invoke-virtual·{p0},·Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
  
57 ····move-result-object·p0145 ····move-result-object·p0
  
Offset 94, 15 lines modifiedOffset 237, 15 lines modified
94 .end·method237 .end·method
  
95 .method·public·static·getAttrResourceId(Landroid/content/Context;I)I238 .method·public·static·getAttrResourceId(Landroid/content/Context;I)I
96 ····.locals·1239 ····.locals·1
  
97 ····const/4·v0,·0x0240 ····const/4·v0,·0x0
  
98 ····.line·59241 ····.line·75
99 ····invoke-static·{p0,·v0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getAttrResourceId(Landroid/content/Context;II)I242 ····invoke-static·{p0,·v0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getAttrResourceId(Landroid/content/Context;II)I
  
100 ····move-result·p0243 ····move-result·p0
  
101 ····return·p0244 ····return·p0
102 .end·method245 .end·method
  
Offset 113, 216 lines modifiedOffset 256, 322 lines modified
  
113 ····new-array·v0,·v0,·[I256 ····new-array·v0,·v0,·[I
  
114 ····const/4·v1,·0x0257 ····const/4·v1,·0x0
  
115 ····aput·p2,·v0,·v1258 ····aput·p2,·v0,·v1
  
116 ····.line·67259 ····.line·83
117 ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;260 ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;
  
118 ····move-result-object·p0261 ····move-result-object·p0
  
119 ····.line·68262 ····.line·84
120 ····invoke-virtual·{p0,·v1,·v1},·Landroid/content/res/TypedArray;->getResourceId(II)I263 ····invoke-virtual·{p0,·v1,·v1},·Landroid/content/res/TypedArray;->getResourceId(II)I
  
121 ····move-result·p1264 ····move-result·p1
  
122 ····.line·69265 ····.line·85
123 ····invoke-virtual·{p0},·Landroid/content/res/TypedArray;->recycle()V266 ····invoke-virtual·{p0},·Landroid/content/res/TypedArray;->recycle()V
  
124 ····return·p1267 ····return·p1
125 .end·method268 .end·method
  
 269 .method·public·static·getBooleanSystemProperty(Landroid/content/res/Resources;IZ)Z
 270 ····.locals·0
  
 271 ····.line·173
 272 ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->getSystemProperty(Landroid/content/res/Resources;I)Ljava/lang/String;
  
 273 ····move-result-object·p0
  
 274 ····.line·175
 275 ····invoke-static·{p0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
 276 ····move-result·p1
  
 277 ····if-nez·p1,·:cond_0
  
 278 ····.line·176
 279 ····invoke-static·{p0},·Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z
  
 280 ····move-result·p0
  
 281 ····return·p0
  
 282 ····:cond_0
 283 ····return·p2
 284 .end·method
  
126 .method·public·static·getFloat(Landroid/content/res/Resources;I)F285 .method·public·static·getFloat(Landroid/content/res/Resources;I)F
127 ····.locals·2286 ····.locals·2
  
128 ····.line·52287 ····.line·68
129 ····new-instance·v0,·Landroid/util/TypedValue;288 ····new-instance·v0,·Landroid/util/TypedValue;
  
130 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V289 ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V
  
131 ····const/4·v1,·0x1290 ····const/4·v1,·0x1
  
132 ····.line·53291 ····.line·69
133 ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V292 ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V
  
134 ····.line·54293 ····.line·70
135 ····invoke-virtual·{v0},·Landroid/util/TypedValue;->getFloat()F294 ····invoke-virtual·{v0},·Landroid/util/TypedValue;->getFloat()F
  
136 ····move-result·p0295 ····move-result·p0
  
137 ····return·p0296 ····return·p0
138 .end·method297 .end·method
  
139 .method·public·static·requireViewByRefId(Landroid/view/View;I)Landroid/view/View;298 .method·public·static·getSystemProperty(Landroid/content/res/Resources;I)Ljava/lang/String;
140 ····.locals·3299 ····.locals·2
141 ····.annotation·system·Ldalvik/annotation/Signature; 
142 ········value·=·{ 
143 ············"<T:", 
144 ············"Landroid/view/View;", 
145 ············">(", 
146 ············"Landroid/view/View;", 
147 ············"I)TT;" 
148 ········} 
149 ····.end·annotation 
  
150 ····.line·183300 ····.line·197
151 ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;301 ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
  
152 ····move-result-object·v0302 ····move-result-object·p0
  
153 ····if-eqz·v0,·:cond_0303 ····const-string·v0,·"ro."
  
154 ····return-object·v0304 ····.line·198
 305 ····invoke-virtual·{p0,·v0},·Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
  
 306 ····move-result·v0
  
 307 ····if-nez·v0,·:cond_0
  
155 ····.line·185308 ····.line·200
 309 ····invoke-static·{p0},·Lcom/android/car/ui/utils/CarUiUtils;->readSystemProperty(Ljava/lang/String;)Ljava/lang/String;
  
 310 ····move-result-object·p0
  
 311 ····return-object·p0
  
 312 ····.line·202
156 ····:cond_0313 ····:cond_0
157 ····new-instance·v0,·Ljava/lang/IllegalArgumentException;314 ····sget-object·v0,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
158 ····new-instance·v1,·Ljava/lang/StringBuilder;315 ····monitor-enter·v0
  
159 ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V316 ····.line·204
 317 ····:try_start_0
 318 ····sget-object·v1,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
160 ····const-string·v2,·"ID·"319 ····invoke-virtual·{v1,·p1},·Landroid/util/SparseArray;->indexOfKey(I)I
  
161 ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;320 ····move-result·v1
  
 321 ····if-ltz·v1,·:cond_1
162 ····.line·186 
163 ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources; 
  
164 ····move-result-object·p0322 ····.line·205
 323 ····sget-object·p0,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
165 ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;324 ····invoke-virtual·{p0,·p1},·Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
  
166 ····move-result-object·p0325 ····move-result-object·p0
  
167 ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;326 ····check-cast·p0,·Ljava/lang/String;
  
168 ····const-string·p0,·"·does·not·reference·a·View·inside·this·View"327 ····monitor-exit·v0
  
169 ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;328 ····return-object·p0
  
170 ····invoke-virtual·{v1},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String;329 ····.line·207
 330 ····:cond_1
 331 ····invoke-static·{p0},·Lcom/android/car/ui/utils/CarUiUtils;->readSystemProperty(Ljava/lang/String;)Ljava/lang/String;
  
171 ····move-result-object·p0332 ····move-result-object·p0
  
172 ····invoke-direct·{v0,·p0},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V333 ····.line·208
 334 ····sget-object·v1,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
 335 ····invoke-virtual·{v1,·p1,·p0},·Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
  
 336 ····.line·209
 337 ····monitor-exit·v0
  
 338 ····return-object·p0
  
 339 ····:catchall_0
 340 ····move-exception·p0
  
 341 ····.line·210
 342 ····monitor-exit·v0
 343 ····:try_end_0
 344 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
173 ····throw·v0345 ····throw·p0
174 .end·method346 .end·method
  
175 .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V347 .method·private·static·readSystemProperty(Ljava/lang/String;)Ljava/lang/String;
176 ····.locals·2348 ····.locals·8
  
177 ····if-nez·p2,·:cond_0349 ····const-string·v0,·"CarUiUtils"
  
 350 ····const/4·v1,·0x0
178 ····.line·123 
179 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V 
  
 351 ····:try_start_0
 352 ····const-string·v2,·"android.os.SystemProperties"
180 ····.line·125 
181 ····:cond_0 
182 ····instance-of·p2,·p0,·Landroid/view/ViewGroup; 
  
183 ····if-eqz·p2,·:cond_1353 ····.line·217
 354 ····invoke-static·{v2},·Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
  
184 ····.line·126 
185 ····check-cast·p0,·Landroid/view/ViewGroup;355 ····move-result-object·v2
 356 ····:try_end_0
 357 ····.catch·Ljava/lang/ClassNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_2
  
186 ····const/4·p2,·0x0358 ····:try_start_1
 359 ····const-string·v3,·"get"
  
187 ····move·v0,·p2360 ····const/4·v4,·0x1
  
 361 ····new-array·v5,·v4,·[Ljava/lang/Class;
188 ····.line·127 
189 ····:goto_0 
190 ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I 
  
191 ····move-result·v1362 ····.line·225
 363 ····const-class·v6,·Ljava/lang/String;
  
192 ····if-ge·v0,·v1,·:cond_1364 ····const/4·v7,·0x0
  
 365 ····aput-object·v6,·v5,·v7
193 ····.line·128 
194 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; 
  
195 ····move-result-object·v1366 ····invoke-virtual·{v2,·v3,·v5},·Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
  
196 ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V367 ····move-result-object·v3
 368 ····:try_end_1
 369 ····.catch·Ljava/lang/NoSuchMethodException;·{:try_start_1·..·:try_end_1}·:catch_1
  
197 ····add-int/lit8·v0,·v0,·0x1370 ····:try_start_2
 371 ····new-array·v4,·v4,·[Ljava/lang/Object;
  
198 ····goto·:goto_0372 ····aput-object·p0,·v4,·v7
  
 373 ····.line·233
 374 ····invoke-virtual·{v3,·v2,·v4},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
199 ····:cond_1 
200 ····return-void 
201 .end·method 
  
 375 ····move-result-object·p0
202 .method·public·static·setPreferenceViewEnabled(ZLandroid/view/View;Landroid/graphics/drawable/Drawable;Z)Landroid/graphics/drawable/Drawable; 
203 ····.locals·2 
  
204 ····const/4·v0,·0x0376 ····check-cast·p0,·Ljava/lang/String;
  
205 ····const/4·v1,·0x1377 ····.line·234
 378 ····invoke-static·{p0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
206 ····if-eqz·p0,·:cond_1379 ····move-result·v0
 380 ····:try_end_2
 381 ····.catch·Ljava/lang/Exception;·{:try_start_2·..·:try_end_2}·:catch_0
  
207 ····if-eqz·p2,·:cond_0382 ····if-eqz·v0,·:cond_0
  
 383 ····goto·:goto_0
208 ····.line·101 
209 ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V 
  
210 ····.line·103 
211 ····:cond_0384 ····:cond_0
212 ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V385 ····move-object·v1,·p0
  
213 ····goto·:goto_0386 ····:goto_0
 387 ····return-object·v1
  
 388 ····:catch_0
 389 ····move-exception·p0
214 ····.line·105 
215 ····:cond_1 
216 ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V 
  
217 ····if-nez·p2,·:cond_2390 ····const-string·v2,·"Failed·to·invoke·SystemProperties.get():·"
  
218 ····.line·108391 ····.line·236
219 ····invoke-virtual·{p1},·Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;392 ····invoke-static·{v0,·v2,·p0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
220 ····move-result-object·p2393 ····return-object·v1
  
 394 ····:catch_1
 395 ····move-exception·p0
221 ····.line·110 
222 ····:cond_2 
223 ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V 
  
 396 ····const-string·v2,·"Cannot·find·SystemProperties.get():·"
224 ····.line·112 
225 ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V 
  
226 ····:goto_0397 ····.line·227
 398 ····invoke-static·{v0,·v2,·p0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
227 ····return-object·p2399 ····return-object·v1
  
 400 ····:catch_2
 401 ····move-exception·p0
  
 402 ····const-string·v2,·"Cannot·find·android.os.SystemProperties:·"
  
 403 ····.line·219
 404 ····invoke-static·{v0,·v2,·p0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
 405 ····return-object·v1
228 .end·method406 .end·method
  
229 .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V407 .method·public·static·requireViewByRefId(Landroid/view/View;I)Landroid/view/View;
230 ····.locals·0408 ····.locals·3
 409 ····.annotation·system·Ldalvik/annotation/Signature;
 410 ········value·=·{
 411 ············"<T:",
 412 ············"Landroid/view/View;",
 413 ············">(",
 414 ············"Landroid/view/View;",
 415 ············"I)TT;"
 416 ········}
 417 ····.end·annotation
  
 418 ····.line·158
 419 ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;
  
231 ····if-nez·p0,·:cond_2420 ····move-result-object·v0
  
232 ····if-nez·p3,·:cond_0421 ····if-eqz·v0,·:cond_0
  
233 ····goto·:goto_0422 ····return-object·v0
  
 423 ····.line·160
234 ····:cond_0424 ····:cond_0
235 ····if-eqz·p1,·:cond_1425 ····new-instance·v0,·Ljava/lang/IllegalArgumentException;
  
236 ····if-eqz·p2,·:cond_1426 ····new-instance·v1,·Ljava/lang/StringBuilder;
  
 427 ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V
237 ····.line·148 
238 ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V 
  
239 ····goto·:goto_0428 ····const-string·v2,·"ID·"
  
 429 ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
240 ····:cond_1 
241 ····const/4·p0,·0x0 
  
242 ····.line·150430 ····.line·161
243 ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V431 ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources;
  
 432 ····move-result-object·p0
  
 433 ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;
  
 434 ····move-result-object·p0
  
 435 ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  
 436 ····const-string·p0,·"·does·not·reference·a·View·inside·this·View"
  
 437 ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  
 438 ····invoke-virtual·{v1},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  
 439 ····move-result-object·p0
  
 440 ····invoke-direct·{v0,·p0},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
 441 ····throw·v0
 442 .end·method
  
 443 .method·public·static·setRotaryScrollEnabled(Landroid/view/View;Z)V
 444 ····.locals·0
  
 445 ····if-eqz·p1,·:cond_0
  
 446 ····const-string·p1,·"com.android.car.ui.utils.VERTICALLY_SCROLLABLE"
  
 447 ····goto·:goto_0
  
244 ····:cond_2448 ····:cond_0
 449 ····const-string·p1,·"com.android.car.ui.utils.HORIZONTALLY_SCROLLABLE"
  
 450 ····.line·115
245 ····:goto_0451 ····:goto_0
 452 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
  
246 ····return-void453 ····return-void
247 .end·method454 .end·method