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·56
 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·59
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·313
 34 ····instance-of·v0,·p0,·Landroid/graphics/drawable/BitmapDrawable;
  
 35 ····if-eqz·v0,·:cond_0
  
 36 ····.line·314
 37 ····move-object·v0,·p0
  
 38 ····check-cast·v0,·Landroid/graphics/drawable/BitmapDrawable;
  
 39 ····.line·315
 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·316
 44 ····invoke-virtual·{v0},·Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
  
 45 ····move-result-object·p0
  
 46 ····return-object·p0
  
 47 ····.line·320
 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·324
 57 ····:cond_1
 58 ····invoke-virtual·{p0},·Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
  
 59 ····move-result·v0
  
 60 ····.line·325
 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·324
 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·321
 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·328
 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·329
 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·330
 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·198
 102 ····sget·v0,·Landroid/os/Build$VERSION;->SDK_INT:I
  
 103 ····const/16·v1,·0x1e
  
 104 ····if-lt·v0,·v1,·:cond_0
  
 105 ····.line·199
 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·206
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·207
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·208
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·99
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·100
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·101
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·103
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·77
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, 85 lines modifiedOffset 256, 288 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·85
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·86
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·87
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·239
 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·241
 275 ····invoke-static·{p0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
 276 ····move-result·p1
  
 277 ····if-nez·p1,·:cond_0
  
 278 ····.line·242
 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·70
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·71
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·72
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
  
 298 .method·public·static·getSystemProperty(Landroid/content/res/Resources;I)Ljava/lang/String;
 299 ····.locals·2
  
 300 ····.line·263
 301 ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
  
 302 ····move-result-object·p0
  
 303 ····const-string·v0,·"ro."
  
 304 ····.line·264
 305 ····invoke-virtual·{p0,·v0},·Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
  
 306 ····move-result·v0
  
 307 ····if-nez·v0,·:cond_0
  
 308 ····.line·266
 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·268
 313 ····:cond_0
 314 ····sget-object·v0,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
 315 ····monitor-enter·v0
  
 316 ····.line·270
 317 ····:try_start_0
 318 ····sget-object·v1,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
 319 ····invoke-virtual·{v1,·p1},·Landroid/util/SparseArray;->indexOfKey(I)I
  
 320 ····move-result·v1
  
 321 ····if-ltz·v1,·:cond_1
  
 322 ····.line·271
 323 ····sget-object·p0,·Lcom/android/car/ui/utils/CarUiUtils;->READ_ONLY_SYSTEM_PROPERTY_MAP:Landroid/util/SparseArray;
  
 324 ····invoke-virtual·{p0,·p1},·Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
  
 325 ····move-result-object·p0
  
 326 ····check-cast·p0,·Ljava/lang/String;
  
 327 ····monitor-exit·v0
  
 328 ····return-object·p0
  
 329 ····.line·273
 330 ····:cond_1
 331 ····invoke-static·{p0},·Lcom/android/car/ui/utils/CarUiUtils;->readSystemProperty(Ljava/lang/String;)Ljava/lang/String;
  
 332 ····move-result-object·p0
  
 333 ····.line·274
 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·275
 337 ····monitor-exit·v0
  
 338 ····return-object·p0
  
 339 ····:catchall_0
 340 ····move-exception·p0
  
 341 ····.line·276
 342 ····monitor-exit·v0
 343 ····:try_end_0
 344 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
 345 ····throw·p0
 346 .end·method
  
 347 .method·private·static·readSystemProperty(Ljava/lang/String;)Ljava/lang/String;
 348 ····.locals·8
  
 349 ····const-string·v0,·"CarUiUtils"
  
 350 ····const/4·v1,·0x0
  
 351 ····:try_start_0
 352 ····const-string·v2,·"android.os.SystemProperties"
  
 353 ····.line·283
 354 ····invoke-static·{v2},·Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
  
 355 ····move-result-object·v2
 356 ····:try_end_0
 357 ····.catch·Ljava/lang/ClassNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_2
  
 358 ····:try_start_1
 359 ····const-string·v3,·"get"
  
 360 ····const/4·v4,·0x1
  
 361 ····new-array·v5,·v4,·[Ljava/lang/Class;
  
 362 ····.line·291
 363 ····const-class·v6,·Ljava/lang/String;
  
 364 ····const/4·v7,·0x0
  
 365 ····aput-object·v6,·v5,·v7
  
 366 ····invoke-virtual·{v2,·v3,·v5},·Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
  
 367 ····move-result-object·v3
 368 ····:try_end_1
 369 ····.catch·Ljava/lang/NoSuchMethodException;·{:try_start_1·..·:try_end_1}·:catch_1
  
 370 ····:try_start_2
 371 ····new-array·v4,·v4,·[Ljava/lang/Object;
  
 372 ····aput-object·p0,·v4,·v7
  
 373 ····.line·299
 374 ····invoke-virtual·{v3,·v2,·v4},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
  
 375 ····move-result-object·p0
  
 376 ····check-cast·p0,·Ljava/lang/String;
  
 377 ····.line·300
 378 ····invoke-static·{p0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
 379 ····move-result·v0
 380 ····:try_end_2
 381 ····.catch·Ljava/lang/Exception;·{:try_start_2·..·:try_end_2}·:catch_0
  
 382 ····if-eqz·v0,·:cond_0
  
 383 ····goto·:goto_0
  
 384 ····:cond_0
 385 ····move-object·v1,·p0
  
 386 ····:goto_0
 387 ····return-object·v1
  
 388 ····:catch_0
 389 ····move-exception·p0
  
 390 ····const-string·v2,·"Failed·to·invoke·SystemProperties.get():·"
  
 391 ····.line·302
 392 ····invoke-static·{v0,·v2,·p0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
 393 ····return-object·v1
  
 394 ····:catch_1
 395 ····move-exception·p0
  
 396 ····const-string·v2,·"Cannot·find·SystemProperties.get():·"
  
 397 ····.line·293
 398 ····invoke-static·{v0,·v2,·p0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
 399 ····return-object·v1
  
 400 ····:catch_2
 401 ····move-exception·p0
  
 402 ····const-string·v2,·"Cannot·find·android.os.SystemProperties:·"
  
 403 ····.line·285
 404 ····invoke-static·{v0,·v2,·p0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
 405 ····return-object·v1
 406 .end·method
  
139 .method·public·static·requireViewByRefId(Landroid/view/View;I)Landroid/view/View;407 .method·public·static·requireViewByRefId(Landroid/view/View;I)Landroid/view/View;
140 ····.locals·3408 ····.locals·3
141 ····.annotation·system·Ldalvik/annotation/Signature;409 ····.annotation·system·Ldalvik/annotation/Signature;
142 ········value·=·{410 ········value·=·{
143 ············"<T:",411 ············"<T:",
144 ············"Landroid/view/View;",412 ············"Landroid/view/View;",
145 ············">(",413 ············">(",
146 ············"Landroid/view/View;",414 ············"Landroid/view/View;",
147 ············"I)TT;"415 ············"I)TT;"
148 ········}416 ········}
149 ····.end·annotation417 ····.end·annotation
  
150 ····.line·183418 ····.line·224
151 ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;419 ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;
  
152 ····move-result-object·v0420 ····move-result-object·v0
  
153 ····if-eqz·v0,·:cond_0421 ····if-eqz·v0,·:cond_0
  
154 ····return-object·v0422 ····return-object·v0
  
155 ····.line·185423 ····.line·226
156 ····:cond_0424 ····:cond_0
157 ····new-instance·v0,·Ljava/lang/IllegalArgumentException;425 ····new-instance·v0,·Ljava/lang/IllegalArgumentException;
  
158 ····new-instance·v1,·Ljava/lang/StringBuilder;426 ····new-instance·v1,·Ljava/lang/StringBuilder;
  
159 ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V427 ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V
  
160 ····const-string·v2,·"ID·"428 ····const-string·v2,·"ID·"
  
161 ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;429 ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  
162 ····.line·186430 ····.line·227
163 ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources;431 ····invoke-virtual·{p0},·Landroid/view/View;->getResources()Landroid/content/res/Resources;
  
164 ····move-result-object·p0432 ····move-result-object·p0
  
165 ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;433 ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;
  
166 ····move-result-object·p0434 ····move-result-object·p0
Offset 212, 39 lines modifiedOffset 558, 39 lines modified
212 .end·method558 .end·method
  
213 .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V559 .method·private·static·setChildViewsEnabled(Landroid/view/View;ZZ)V
214 ····.locals·2560 ····.locals·2
  
215 ····if-nez·p2,·:cond_0561 ····if-nez·p2,·:cond_0
  
216 ····.line·123562 ····.line·141
217 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V563 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setEnabled(Z)V
  
218 ····.line·125564 ····.line·143
219 ····:cond_0565 ····:cond_0
220 ····instance-of·p2,·p0,·Landroid/view/ViewGroup;566 ····instance-of·p2,·p0,·Landroid/view/ViewGroup;
  
221 ····if-eqz·p2,·:cond_1567 ····if-eqz·p2,·:cond_1
  
222 ····.line·126568 ····.line·144
223 ····check-cast·p0,·Landroid/view/ViewGroup;569 ····check-cast·p0,·Landroid/view/ViewGroup;
  
224 ····const/4·p2,·0x0570 ····const/4·p2,·0x0
  
225 ····move·v0,·p2571 ····move·v0,·p2
  
226 ····.line·127572 ····.line·145
227 ····:goto_0573 ····:goto_0
228 ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I574 ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getChildCount()I
  
229 ····move-result·v1575 ····move-result·v1
  
230 ····if-ge·v0,·v1,·:cond_1576 ····if-ge·v0,·v1,·:cond_1
  
231 ····.line·128577 ····.line·146
232 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;578 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
  
233 ····move-result-object·v1579 ····move-result-object·v1
  
234 ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V580 ····invoke-static·{v1,·p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V
  
235 ····add-int/lit8·v0,·v0,·0x1581 ····add-int/lit8·v0,·v0,·0x1
Offset 262, 67 lines modifiedOffset 608, 86 lines modified
  
262 ····const/4·v1,·0x1608 ····const/4·v1,·0x1
  
263 ····if-eqz·p0,·:cond_1609 ····if-eqz·p0,·:cond_1
  
264 ····if-eqz·p2,·:cond_0610 ····if-eqz·p2,·:cond_0
  
265 ····.line·101611 ····.line·119
266 ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V612 ····invoke-static·{p1,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
  
267 ····.line·103613 ····.line·121
268 ····:cond_0614 ····:cond_0
269 ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V615 ····invoke-static·{p1,·v1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V
  
270 ····goto·:goto_0616 ····goto·:goto_0
  
271 ····.line·105617 ····.line·123
272 ····:cond_1618 ····:cond_1
273 ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V619 ····invoke-virtual·{p1,·v1},·Landroid/view/View;->setEnabled(Z)V
  
274 ····if-nez·p2,·:cond_2620 ····if-nez·p2,·:cond_2
  
275 ····.line·108621 ····.line·126
276 ····invoke-virtual·{p1},·Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;622 ····invoke-virtual·{p1},·Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
  
277 ····move-result-object·p2623 ····move-result-object·p2
  
278 ····.line·110624 ····.line·128
279 ····:cond_2625 ····:cond_2
280 ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V626 ····invoke-static·{v0,·p3,·p2,·p1},·Lcom/android/car/ui/utils/CarUiUtils;->updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V
  
281 ····.line·112627 ····.line·130
282 ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V628 ····invoke-static·{p1,·v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->setChildViewsEnabled(Landroid/view/View;ZZ)V
  
283 ····:goto_0629 ····:goto_0
284 ····return-object·p2630 ····return-object·p2
285 .end·method631 .end·method
  
 632 .method·public·static·setRotaryScrollEnabled(Landroid/view/View;Z)V
 633 ····.locals·0
  
 634 ····if-eqz·p1,·:cond_0
  
 635 ····const-string·p1,·"com.android.car.ui.utils.VERTICALLY_SCROLLABLE"
  
 636 ····goto·:goto_0
  
 637 ····:cond_0
 638 ····const-string·p1,·"com.android.car.ui.utils.HORIZONTALLY_SCROLLABLE"
  
 639 ····.line·181
 640 ····:goto_0
 641 ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
  
 642 ····return-void
 643 .end·method
  
286 .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V644 .method·public·static·updateRippleStateOnDisabledPreference(ZZLandroid/graphics/drawable/Drawable;Landroid/view/View;)V
287 ····.locals·0645 ····.locals·0
  
288 ····if-nez·p0,·:cond_2646 ····if-nez·p0,·:cond_2
  
289 ····if-nez·p3,·:cond_0647 ····if-nez·p3,·:cond_0
  
290 ····goto·:goto_0648 ····goto·:goto_0
  
291 ····:cond_0649 ····:cond_0
292 ····if-eqz·p1,·:cond_1650 ····if-eqz·p1,·:cond_1
  
293 ····if-eqz·p2,·:cond_1651 ····if-eqz·p2,·:cond_1
  
294 ····.line·148652 ····.line·166
295 ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V653 ····invoke-static·{p3,·p2},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
  
296 ····goto·:goto_0654 ····goto·:goto_0
  
297 ····:cond_1655 ····:cond_1
298 ····const/4·p0,·0x0656 ····const/4·p0,·0x0
  
299 ····.line·150657 ····.line·168
300 ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V658 ····invoke-static·{p3,·p0},·Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
  
301 ····:cond_2659 ····:cond_2
302 ····:goto_0660 ····:goto_0
303 ····return-void661 ····return-void
304 .end·method662 .end·method