| | | |
Offset 3, 96 lines modified | Offset 3, 118 lines modified |
3 | .source·"DrawableStateButton.java" | 3 | .source·"DrawableStateButton.java" |
| |
4 | #·interfaces | 4 | #·interfaces |
5 | .implements·Lcom/android/car/ui/uxr/DrawableStateView; | 5 | .implements·Lcom/android/car/ui/uxr/DrawableStateView; |
| |
| |
6 | #·instance·fields | 6 | #·instance·fields |
7 | .field·private·mState:[I | 7 | .field·private·mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil; |
| |
| |
8 | #·direct·methods | 8 | #·direct·methods |
9 | .method·public·constructor·<init>(Landroid/content/Context;)V | 9 | .method·public·constructor·<init>(Landroid/content/Context;)V |
10 | ····.locals·0 | 10 | ····.locals·0 |
| |
11 | ····.line·33 | 11 | ····.line·32 |
12 | ····invoke-direct·{p0,·p1},·Landroid/widget/Button;-><init>(Landroid/content/Context;)V | 12 | ····invoke-direct·{p0,·p1},·Landroid/widget/Button;-><init>(Landroid/content/Context;)V |
| |
13 | ····return-void | 13 | ····return-void |
14 | .end·method | 14 | .end·method |
| |
15 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 15 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
16 | ····.locals·0 | 16 | ····.locals·0 |
| |
17 | ····.line·37 | 17 | ····.line·36 |
18 | ····invoke-direct·{p0,·p1,·p2},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 18 | ····invoke-direct·{p0,·p1,·p2},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
19 | ····return-void | 19 | ····return-void |
20 | .end·method | 20 | .end·method |
| |
21 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 21 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
22 | ····.locals·0 | 22 | ····.locals·0 |
| |
23 | ····.line·41 | 23 | ····.line·40 |
24 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 24 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| |
25 | ····return-void | 25 | ····return-void |
26 | .end·method | 26 | .end·method |
| |
27 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 27 | .method·private·synthetic·lambda$onCreateDrawableState$0(Ljava/lang/Integer;)[I |
28 | ····.locals·0 | 28 | ····.locals·0 |
| |
29 | ····.line·46 | 29 | ····.line·56 |
30 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 30 | ····invoke-virtual·{p1},·Ljava/lang/Integer;->intValue()I |
| |
31 | ····return-void | 31 | ····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·method | 35 | .end·method |
| |
| |
33 | #·virtual·methods | 36 | #·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)[I | 43 | .method·public·onCreateDrawableState(I)[I |
35 | ····.locals·1 | 44 | ····.locals·2 |
| |
36 | ····.line·57 | 45 | ····.line·53 |
37 | ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mState:[I | 46 | ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil; |
| |
38 | ····if-nez·v0,·:cond_0 | 47 | ····if-nez·v0,·:cond_0 |
| |
39 | ····.line·58 | 48 | ····.line·54 |
40 | ····invoke-super·{p0,·p1},·Landroid/widget/Button;->onCreateDrawableState(I)[I | 49 | ····new-instance·v0,·Lcom/android/car/ui/uxr/DrawableStateUtil; |
| |
41 | ····move-result-object·p1 | 50 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/uxr/DrawableStateUtil;-><init>(Landroid/view/View;)V |
| |
42 | ····return-object·p1 | 51 | ····iput-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil; |
| |
43 | ····.line·60 | 52 | ····.line·56 |
44 | ····:cond_0 | 53 | ····:cond_0 |
45 | ····array-length·v0,·v0 | 54 | ····iget-object·v0,·p0,·Lcom/android/car/ui/uxr/DrawableStateButton;->mUtil:Lcom/android/car/ui/uxr/DrawableStateUtil; |
| |
46 | ····add-int/2addr·p1,·v0 | 55 | ····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·p1 | 58 | ····move-result-object·p1 |
| |
54 | ····return-object·p1 | 59 | ····return-object·p1 |
55 | .end·method | 60 | .end·method |
| |
56 | .method·public·setDrawableState([I)V | 61 | .method·public·setExtraDrawableState([I[I)V |
57 | ····.locals·0 | 62 | ····.locals·1 |
| |
58 | ····.line·51 | 63 | ····.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:[I | 69 | ····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-void | 74 | ····return-void |
63 | .end·method | 75 | .end·method |