Offset 3, 96 lines modifiedOffset 3, 118 lines modified
3 .source·"DrawableStateButton.java"3 .source·"DrawableStateButton.java"
  
4 #·interfaces4 #·interfaces
5 .implements·Lcom/android/car/ui/uxr/DrawableStateView;5 .implements·Lcom/android/car/ui/uxr/DrawableStateView;
  
  
6 #·instance·fields6 #·instance·fields
7 .field·private·mState:[I7 .field·private·mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
  
8 #·direct·methods8 #·direct·methods
9 .method·public·constructor·<init>(Landroid/content/Context;)V9 .method·public·constructor·<init>(Landroid/content/Context;)V
10 ····.locals·010 ····.locals·0
  
11 ····.line·3311 ····.line·32
12 ····invoke-direct·{p0,·p1},·Landroid/widget/Button;-><init>(Landroid/content/Context;)V12 ····invoke-direct·{p0,·p1},·Landroid/widget/Button;-><init>(Landroid/content/Context;)V
  
13 ····return-void13 ····return-void
14 .end·method14 .end·method
  
15 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V15 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
16 ····.locals·016 ····.locals·0
  
17 ····.line·3717 ····.line·36
18 ····invoke-direct·{p0,·p1,·p2},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V18 ····invoke-direct·{p0,·p1,·p2},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
  
19 ····return-void19 ····return-void
20 .end·method20 .end·method
  
21 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V21 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
22 ····.locals·022 ····.locals·0
  
23 ····.line·4123 ····.line·40
24 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V24 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
  
25 ····return-void25 ····return-void
26 .end·method26 .end·method
  
27 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V27 .method·private·synthetic·lambda$onCreateDrawableState$0(Ljava/lang/Integer;)[I
28 ····.locals·028 ····.locals·0
  
29 ····.line·4629 ····.line·56
30 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V30 ····invoke-virtual·{p1},·Ljava/lang/Integer;->intValue()I
  
31 ····return-void31 ····move-result·p1
  
 32 ····invoke-super·{p0,·p1},·Landroid/widget/Button;->onCreateDrawableState(I)[I
  
 33 ····move-result-object·p1
  
 34 ····return-object·p1
32 .end·method35 .end·method
  
  
33 #·virtual·methods36 #·virtual·methods
 37 .method·public·synthetic·lambda$onCreateDrawableState$0$DrawableStateButton(Ljava/lang/Integer;)[I
 38 ····.locals·0
  
 39 ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/uxr/DrawableStateButton;->lambda$onCreateDrawableState$0(Ljava/lang/Integer;)[I
  
 40 ····move-result-object·p1
  
 41 ····return-object·p1
 42 .end·method
  
34 .method·public·onCreateDrawableState(I)[I43 .method·public·onCreateDrawableState(I)[I
35 ····.locals·144 ····.locals·2
  
36 ····.line·5745 ····.line·53
37 ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mState:[I46 ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
38 ····if-nez·v0,·:cond_047 ····if-nez·v0,·:cond_0
  
39 ····.line·5848 ····.line·54
40 ····invoke-super·{p0,·p1},·Landroid/widget/Button;->onCreateDrawableState(I)[I49 ····new-instance·v0,·Lcom/android/car/ui/uxr/DrawableStateUtil;
  
41 ····move-result-object·p150 ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/uxr/DrawableStateUtil;-><init>(Landroid/view/View;)V
  
42 ····return-object·p151 ····iput-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
43 ····.line·6052 ····.line·56
44 ····:cond_053 ····:cond_0
45 ····array-length·v0,·v054 ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
46 ····add-int/2addr·p1,·v055 ····new-instance·v1,·Lcom/android/car/ui/uxr/-$$Lambda$DrawableStateButton$xY7iOGe_r71UDW9KI5X9Nk90BgU;
  
 56 ····invoke-direct·{v1,·p0},·Lcom/android/car/ui/uxr/-$$Lambda$DrawableStateButton$xY7iOGe_r71UDW9KI5X9Nk90BgU;-><init>(Lcom/android/car/ui/uxr/DrawableStateButton;)V
47 ····.line·61 
48 ····invoke-super·{p0,·p1},·Landroid/widget/Button;->onCreateDrawableState(I)[I 
  
 57 ····invoke-virtual·{v0,·p1,·v1},·Lcom/android/car/ui/uxr/DrawableStateUtil;->onCreateDrawableState(ILjava/util/function/Function;)[I
49 ····move-result-object·p1 
  
50 ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mState:[I 
  
51 ····.line·60 
52 ····invoke-static·{p1,·v0},·Landroid/widget/Button;->mergeDrawableStates([I[I)[I 
  
53 ····move-result-object·p158 ····move-result-object·p1
  
54 ····return-object·p159 ····return-object·p1
55 .end·method60 .end·method
  
56 .method·public·setDrawableState([I)V61 .method·public·setExtraDrawableState([I[I)V
57 ····.locals·062 ····.locals·1
  
58 ····.line·5163 ····.line·45
 64 ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
 65 ····if-nez·v0,·:cond_0
  
 66 ····.line·46
 67 ····new-instance·v0,·Lcom/android/car/ui/uxr/DrawableStateUtil;
  
 68 ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/uxr/DrawableStateUtil;-><init>(Landroid/view/View;)V
  
59 ····iput-object·p1,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mState:[I69 ····iput-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
 70 ····.line·48
 71 ····:cond_0
 72 ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil;
  
 73 ····invoke-virtual·{v0,·p1,·p2},·Lcom/android/car/ui/uxr/DrawableStateUtil;->setExtraDrawableState([I[I)V
60 ····.line·52 
61 ····invoke-virtual·{p0},·Landroid/widget/Button;->refreshDrawableState()V 
  
62 ····return-void74 ····return-void
63 .end·method75 .end·method