| | | |
Offset 31, 14 lines modified | Offset 31, 16 lines modified |
| |
31 | .field·private·final·mIsCheckable:Z | 31 | .field·private·final·mIsCheckable:Z |
| |
32 | .field·private·mIsChecked:Z | 32 | .field·private·mIsChecked:Z |
| |
33 | .field·private·mIsEnabled:Z | 33 | .field·private·mIsEnabled:Z |
| |
| 34 | .field·private·final·mIsPrimary:Z |
| |
34 | .field·private·final·mIsSearch:Z | 35 | .field·private·final·mIsSearch:Z |
| |
35 | .field·private·final·mIsTinted:Z | 36 | .field·private·final·mIsTinted:Z |
| |
36 | .field·private·mIsVisible:Z | 37 | .field·private·mIsVisible:Z |
| |
37 | .field·private·mListener:Ljava/lang/ref/WeakReference; | 38 | .field·private·mListener:Ljava/lang/ref/WeakReference; |
Offset 55, 155 lines modified | Offset 57, 169 lines modified |
| |
55 | .field·private·final·mShowIconAndTitle:Z | 57 | .field·private·final·mShowIconAndTitle:Z |
| |
56 | .field·private·mTitle:Ljava/lang/CharSequence; | 58 | .field·private·mTitle:Ljava/lang/CharSequence; |
| |
57 | .field·private·mUxRestrictions:I | 59 | .field·private·mUxRestrictions:I |
| |
| 60 | .field·private·final·mUxRestrictionsListener:Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener; |
| |
| |
58 | #·direct·methods | 61 | #·direct·methods |
59 | .method·private·constructor·<init>(Lcom/android/car/ui/toolbar/MenuItem$Builder;)V | 62 | .method·private·constructor·<init>(Lcom/android/car/ui/toolbar/MenuItem$Builder;)V |
60 | ····.locals·2 | 63 | ····.locals·2 |
| |
61 | ····.line·75 | 64 | ····.line·87 |
62 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 65 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
63 | ····.line·64 | 66 | ····.line·65 |
64 | ····new-instance·v0,·Ljava/lang/ref/WeakReference; | 67 | ····new-instance·v0,·Ljava/lang/ref/WeakReference; |
| |
65 | ····const/4·v1,·0x0 | 68 | ····const/4·v1,·0x0 |
| |
66 | ····invoke-direct·{v0,·v1},·Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V | 69 | ····invoke-direct·{v0,·v1},·Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V |
| |
67 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mListener:Ljava/lang/ref/WeakReference; | 70 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mListener:Ljava/lang/ref/WeakReference; |
| |
68 | ····.line·76 | 71 | ····.line·76 |
| 72 | ····new-instance·v0,·Lcom/android/car/ui/toolbar/-$$Lambda$MenuItem$L8uyPLsON8uHfaoUZrFMW0-X32Y; |
| |
| 73 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$MenuItem$L8uyPLsON8uHfaoUZrFMW0-X32Y;-><init>(Lcom/android/car/ui/toolbar/MenuItem;)V |
| |
| 74 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictionsListener:Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener; |
| |
| 75 | ····.line·88 |
69 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$000(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Landroid/content/Context; | 76 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$000(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Landroid/content/Context; |
| |
70 | ····move-result-object·v0 | 77 | ····move-result-object·v0 |
| |
71 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; | 78 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; |
| |
72 | ····.line·77 | 79 | ····.line·89 |
73 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$100(Lcom/android/car/ui/toolbar/MenuItem$Builder;)I | 80 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$100(Lcom/android/car/ui/toolbar/MenuItem$Builder;)I |
| |
74 | ····move-result·v0 | 81 | ····move-result·v0 |
| |
75 | ····iput·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mId:I | 82 | ····iput·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mId:I |
| |
76 | ····.line·78 | 83 | ····.line·90 |
77 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$200(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 84 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$200(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
78 | ····move-result·v0 | 85 | ····move-result·v0 |
| |
79 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsCheckable:Z | 86 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsCheckable:Z |
| |
80 | ····.line·79 | 87 | ····.line·91 |
81 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$300(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 88 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$300(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
82 | ····move-result·v0 | 89 | ····move-result·v0 |
| |
83 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivatable:Z | 90 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivatable:Z |
| |
84 | ····.line·80 | 91 | ····.line·92 |
85 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$400(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Ljava/lang/CharSequence; | 92 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$400(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Ljava/lang/CharSequence; |
| |
86 | ····move-result-object·v0 | 93 | ····move-result-object·v0 |
| |
87 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mTitle:Ljava/lang/CharSequence; | 94 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mTitle:Ljava/lang/CharSequence; |
| |
88 | ····.line·81 | 95 | ····.line·93 |
89 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$500(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Landroid/graphics/drawable/Drawable; | 96 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$500(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Landroid/graphics/drawable/Drawable; |
| |
90 | ····move-result-object·v0 | 97 | ····move-result-object·v0 |
| |
91 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIcon:Landroid/graphics/drawable/Drawable; | 98 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIcon:Landroid/graphics/drawable/Drawable; |
| |
92 | ····.line·82 | 99 | ····.line·94 |
93 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$600(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; | 100 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$600(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; |
| |
94 | ····move-result-object·v0 | 101 | ····move-result-object·v0 |
| |
95 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; | 102 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; |
| |
96 | ····.line·83 | 103 | ····.line·95 |
97 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$700(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; | 104 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$700(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; |
| |
98 | ····move-result-object·v0 | 105 | ····move-result-object·v0 |
| |
99 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mDisplayBehavior:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; | 106 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mDisplayBehavior:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; |
| |
100 | ····.line·84 | 107 | ····.line·96 |
101 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$800(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 108 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$800(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
102 | ····move-result·v0 | 109 | ····move-result·v0 |
| |
103 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsEnabled:Z | 110 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsEnabled:Z |
| |
104 | ····.line·85 | 111 | ····.line·97 |
105 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$900(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 112 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$900(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
106 | ····move-result·v0 | 113 | ····move-result·v0 |
| |
107 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsChecked:Z | 114 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsChecked:Z |
| |
108 | ····.line·86 | 115 | ····.line·98 |
109 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1000(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 116 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1000(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
110 | ····move-result·v0 | 117 | ····move-result·v0 |
| |
111 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsVisible:Z | 118 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsVisible:Z |
| |
112 | ····.line·87 | 119 | ····.line·99 |
113 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1100(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 120 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1100(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
114 | ····move-result·v0 | 121 | ····move-result·v0 |
| |
115 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivated:Z | 122 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivated:Z |
| |
116 | ····.line·88 | 123 | ····.line·100 |
117 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1200(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 124 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1200(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
118 | ····move-result·v0 | 125 | ····move-result·v0 |
| |
119 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsSearch:Z | 126 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsSearch:Z |
| |
120 | ····.line·89 | 127 | ····.line·101 |
121 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1300(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 128 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1300(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
122 | ····move-result·v0 | 129 | ····move-result·v0 |
| |
123 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mShowIconAndTitle:Z | 130 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mShowIconAndTitle:Z |
| |
124 | ····.line·90 | 131 | ····.line·102 |
125 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1400(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z | 132 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1400(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
126 | ····move-result·v0 | 133 | ····move-result·v0 |
| |
127 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsTinted:Z | 134 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsTinted:Z |
| |
128 | ····.line·91 | 135 | ····.line·103 |
129 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1500(Lcom/android/car/ui/toolbar/MenuItem$Builder;)I | 136 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1500(Lcom/android/car/ui/toolbar/MenuItem$Builder;)Z |
| |
| 137 | ····move-result·v0 |
| |
| 138 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsPrimary:Z |
| |
| 139 | ····.line·104 |
| 140 | ····invoke-static·{p1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->access$1600(Lcom/android/car/ui/toolbar/MenuItem$Builder;)I |
| |
130 | ····move-result·p1 | 141 | ····move-result·p1 |
| |
131 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I | 142 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I |
| |
132 | ····.line·93 | 143 | ····.line·106 |
133 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; | 144 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; |
| |
134 | ····invoke-static·{p1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getInstance(Landroid/content/Context;)Lcom/android/car/ui/utils/CarUxRestrictionsUtil; | 145 | ····invoke-static·{p1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getInstance(Landroid/content/Context;)Lcom/android/car/ui/utils/CarUxRestrictionsUtil; |
| |
135 | ····move-result-object·p1 | 146 | ····move-result-object·p1 |
| |
136 | ····invoke-virtual·{p1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getCurrentRestrictions()Landroid/car/drivingstate/CarUxRestrictions; | 147 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictionsListener:Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener; |
| |
| 148 | ····invoke-virtual·{p1,·v0},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->register(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V |
137 | ····move-result-object·p1 | |
| |
138 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mCurrentRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | |
| |
139 | ····return-void | 149 | ····return-void |
140 | .end·method | 150 | .end·method |
| |
141 | .method·synthetic·constructor·<init>(Lcom/android/car/ui/toolbar/MenuItem$Builder;Lcom/android/car/ui/toolbar/MenuItem$1;)V | 151 | .method·synthetic·constructor·<init>(Lcom/android/car/ui/toolbar/MenuItem$Builder;Lcom/android/car/ui/toolbar/MenuItem$1;)V |
142 | ····.locals·0 | 152 | ····.locals·0 |
| |
Offset 212, 502 lines modified | Offset 228, 519 lines modified |
| |
212 | ····return-void | 228 | ····return-void |
213 | .end·method | 229 | .end·method |
| |
214 | .method·public·static·builder(Landroid/content/Context;)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 230 | .method·public·static·builder(Landroid/content/Context;)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
215 | ····.locals·1 | 231 | ····.locals·1 |
| |
216 | ····.line·578 | 232 | ····.line·599 |
217 | ····new-instance·v0,·Lcom/android/car/ui/toolbar/MenuItem$Builder; | 233 | ····new-instance·v0,·Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
218 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;-><init>(Landroid/content/Context;)V | 234 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;-><init>(Landroid/content/Context;)V |
| |
219 | ····return-object·v0 | 235 | ····return-object·v0 |
220 | .end·method | 236 | .end·method |
| |
| 237 | .method·private·synthetic·lambda$new$0(Landroid/car/drivingstate/CarUxRestrictions;)V |
| 238 | ····.locals·1 |
| |
| 239 | ····.line·79 |
| 240 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z |
| |
| 241 | ····move-result·v0 |
| |
| 242 | ····.line·80 |
| 243 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mCurrentRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
| 244 | ····.line·82 |
| 245 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z |
| |
| 246 | ····move-result·p1 |
| |
| 247 | ····if-eq·p1,·v0,·:cond_0 |
| |
| 248 | ····.line·83 |
| 249 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
| 250 | ····:cond_0 |
| 251 | ····return-void |
| 252 | .end·method |
| |
221 | .method·private·update()V | 253 | .method·private·update()V |
222 | ····.locals·1 | 254 | ····.locals·1 |
| |
223 | ····.line·97 | 255 | ····.line·110 |
224 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mListener:Ljava/lang/ref/WeakReference; | 256 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mListener:Ljava/lang/ref/WeakReference; |
| |
225 | ····invoke-virtual·{v0},·Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object; | 257 | ····invoke-virtual·{v0},·Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object; |
| |
226 | ····move-result-object·v0 | 258 | ····move-result-object·v0 |
| |
227 | ····check-cast·v0,·Lcom/android/car/ui/toolbar/MenuItem$Listener; | 259 | ····check-cast·v0,·Lcom/android/car/ui/toolbar/MenuItem$Listener; |
| |
228 | ····if-eqz·v0,·:cond_0 | 260 | ····if-eqz·v0,·:cond_0 |
| |
229 | ····.line·99 | 261 | ····.line·112 |
230 | ····invoke-interface·{v0,·p0},·Lcom/android/car/ui/toolbar/MenuItem$Listener;->onMenuItemChanged(Lcom/android/car/ui/toolbar/MenuItem;)V | 262 | ····invoke-interface·{v0,·p0},·Lcom/android/car/ui/toolbar/MenuItem$Listener;->onMenuItemChanged(Lcom/android/car/ui/toolbar/MenuItem;)V |
| |
231 | ····:cond_0 | 263 | ····:cond_0 |
232 | ····return-void | 264 | ····return-void |
233 | .end·method | 265 | .end·method |
| |
| |
234 | #·virtual·methods | 266 | #·virtual·methods |
235 | .method·public·getDisplayBehavior()Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; | 267 | .method·public·getDisplayBehavior()Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; |
236 | ····.locals·1 | 268 | ····.locals·1 |
| |
237 | ····.line·281 | 269 | ····.line·285 |
238 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mDisplayBehavior:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; | 270 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mDisplayBehavior:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; |
| |
239 | ····return-object·v0 | 271 | ····return-object·v0 |
240 | .end·method | 272 | .end·method |
| |
241 | .method·public·getIcon()Landroid/graphics/drawable/Drawable; | 273 | .method·public·getIcon()Landroid/graphics/drawable/Drawable; |
242 | ····.locals·1 | 274 | ····.locals·1 |
| |
243 | ····.line·286 | 275 | ····.line·290 |
244 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIcon:Landroid/graphics/drawable/Drawable; | 276 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIcon:Landroid/graphics/drawable/Drawable; |
| |
245 | ····return-object·v0 | 277 | ····return-object·v0 |
246 | .end·method | 278 | .end·method |
| |
247 | .method·public·getId()I | 279 | .method·public·getId()I |
248 | ····.locals·1 | 280 | ····.locals·1 |
| |
249 | ····.line·111 | 281 | ····.line·124 |
250 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mId:I | 282 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mId:I |
| |
251 | ····return·v0 | 283 | ····return·v0 |
252 | .end·method | 284 | .end·method |
| |
253 | .method·public·getOnClickListener()Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; | 285 | .method·public·getOnClickListener()Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; |
254 | ····.locals·1 | 286 | ····.locals·1 |
| |
255 | ····.line·226 | 287 | ····.line·239 |
256 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; | 288 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; |
| |
257 | ····return-object·v0 | 289 | ····return-object·v0 |
258 | .end·method | 290 | .end·method |
| |
259 | .method·public·getTitle()Ljava/lang/CharSequence; | 291 | .method·public·getTitle()Ljava/lang/CharSequence; |
260 | ····.locals·1 | 292 | ····.locals·1 |
| |
261 | ····.line·196 | 293 | ····.line·209 |
262 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mTitle:Ljava/lang/CharSequence; | 294 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mTitle:Ljava/lang/CharSequence; |
| |
263 | ····return-object·v0 | 295 | ····return-object·v0 |
264 | .end·method | 296 | .end·method |
| |
265 | .method·public·getUxRestrictions()I | 297 | .method·public·getUxRestrictions()I |
266 | ····.locals·1 | 298 | ····.locals·1 |
| |
267 | ····.line·221 | 299 | ····.line·234 |
268 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I | 300 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I |
| |
269 | ····return·v0 | 301 | ····return·v0 |
270 | .end·method | 302 | .end·method |
| |
271 | .method·public·isActivatable()Z | 303 | .method·public·isActivatable()Z |
272 | ····.locals·1 | 304 | ····.locals·1 |
| |
273 | ····.line·174 | 305 | ····.line·187 |
274 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivatable:Z | 306 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivatable:Z |
| |
275 | ····return·v0 | 307 | ····return·v0 |
276 | .end·method | 308 | .end·method |
| |
277 | .method·public·isActivated()Z | 309 | .method·public·isActivated()Z |
278 | ····.locals·1 | 310 | ····.locals·1 |
| |
279 | ····.line·179 | 311 | ····.line·192 |
280 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivated:Z | 312 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivated:Z |
| |
281 | ····return·v0 | 313 | ····return·v0 |
282 | .end·method | 314 | .end·method |
| |
283 | .method·public·isCheckable()Z | 315 | .method·public·isCheckable()Z |
284 | ····.locals·1 | 316 | ····.locals·1 |
| |
285 | ····.line·128 | 317 | ····.line·141 |
286 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsCheckable:Z | 318 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsCheckable:Z |
| |
287 | ····return·v0 | 319 | ····return·v0 |
288 | .end·method | 320 | .end·method |
| |
289 | .method·public·isChecked()Z | 321 | .method·public·isChecked()Z |
290 | ····.locals·1 | 322 | ····.locals·1 |
| |
291 | ····.line·136 | 323 | ····.line·149 |
292 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsChecked:Z | 324 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsChecked:Z |
| |
293 | ····return·v0 | 325 | ····return·v0 |
294 | .end·method | 326 | .end·method |
| |
295 | .method·public·isEnabled()Z | 327 | .method·public·isEnabled()Z |
296 | ····.locals·1 | 328 | ····.locals·1 |
| |
297 | ····.line·116 | 329 | ····.line·129 |
298 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsEnabled:Z | 330 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsEnabled:Z |
| |
299 | ····return·v0 | 331 | ····return·v0 |
300 | .end·method | 332 | .end·method |
| |
| 333 | .method·public·isPrimary()Z |
| 334 | ····.locals·1 |
| |
| 335 | ····.line·312 |
| 336 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsPrimary:Z |
| |
| 337 | ····return·v0 |
| 338 | .end·method |
| |
301 | .method·isRestricted()Z | 339 | .method·isRestricted()Z |
302 | ····.locals·2 | 340 | ····.locals·2 |
| |
303 | ····.line·250 | 341 | ····.line·254 |
304 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I | 342 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I |
| |
305 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mCurrentRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 343 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mCurrentRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
306 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z | 344 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z |
| |
307 | ····move-result·v0 | 345 | ····move-result·v0 |
| |
308 | ····return·v0 | 346 | ····return·v0 |
309 | .end·method | 347 | .end·method |
| |
310 | .method·isSearch()Z | 348 | .method·isSearch()Z |
311 | ····.locals·1 | 349 | ····.locals·1 |
| |
312 | ····.line·305 | 350 | ····.line·317 |
313 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsSearch:Z | 351 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsSearch:Z |
| |
314 | ····return·v0 | 352 | ····return·v0 |
315 | .end·method | 353 | .end·method |
| |
316 | .method·public·isShowingIconAndTitle()Z | 354 | .method·public·isShowingIconAndTitle()Z |
317 | ····.locals·1 | 355 | ····.locals·1 |
| |
318 | ····.line·230 | 356 | ····.line·243 |
319 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mShowIconAndTitle:Z | 357 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mShowIconAndTitle:Z |
| |
320 | ····return·v0 | 358 | ····return·v0 |
321 | .end·method | 359 | .end·method |
| |
322 | .method·public·isTinted()Z | 360 | .method·public·isTinted()Z |
323 | ····.locals·1 | 361 | ····.locals·1 |
| |
324 | ····.line·154 | 362 | ····.line·167 |
325 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsTinted:Z | 363 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsTinted:Z |
| |
326 | ····return·v0 | 364 | ····return·v0 |
327 | .end·method | 365 | .end·method |
| |
328 | .method·public·isVisible()Z | 366 | .method·public·isVisible()Z |
329 | ····.locals·1 | 367 | ····.locals·1 |
| |
330 | ····.line·159 | 368 | ····.line·172 |
331 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsVisible:Z | 369 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsVisible:Z |
| |
332 | ····return·v0 | 370 | ····return·v0 |
333 | .end·method | 371 | .end·method |
| |
| 372 | .method·public·synthetic·lambda$new$0$MenuItem(Landroid/car/drivingstate/CarUxRestrictions;)V |
| 373 | ····.locals·0 |
| |
| 374 | ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/toolbar/MenuItem;->lambda$new$0(Landroid/car/drivingstate/CarUxRestrictions;)V |
| |
| 375 | ····return-void |
| 376 | .end·method |
| |
334 | .method·public·performClick()V | 377 | .method·public·performClick()V |
335 | ····.locals·3 | 378 | ····.locals·3 |
| |
336 | ····.line·256 | 379 | ····.line·260 |
337 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isEnabled()Z | 380 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isEnabled()Z |
| |
338 | ····move-result·v0 | 381 | ····move-result·v0 |
| |
339 | ····if-eqz·v0,·:cond_4 | 382 | ····if-eqz·v0,·:cond_4 |
| |
340 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isVisible()Z | 383 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isVisible()Z |
| |
341 | ····move-result·v0 | 384 | ····move-result·v0 |
| |
342 | ····if-nez·v0,·:cond_0 | 385 | ····if-nez·v0,·:cond_0 |
| |
343 | ····goto·:goto_0 | 386 | ····goto·:goto_0 |
| |
344 | ····.line·260 | 387 | ····.line·264 |
345 | ····:cond_0 | 388 | ····:cond_0 |
346 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z | 389 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z |
| |
347 | ····move-result·v0 | 390 | ····move-result·v0 |
| |
348 | ····const/4·v1,·0x1 | 391 | ····const/4·v1,·0x1 |
| |
349 | ····if-eqz·v0,·:cond_1 | 392 | ····if-eqz·v0,·:cond_1 |
| |
350 | ····.line·261 | 393 | ····.line·265 |
351 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; | 394 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; |
| |
352 | ····sget·v2,·Lcom/android/car/ui/R$string;->car_ui_restricted_while_driving:I | 395 | ····sget·v2,·Lcom/android/car/ui/R$string;->car_ui_restricted_while_driving:I |
| |
353 | ····invoke-static·{v0,·v2,·v1},·Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast; | 396 | ····invoke-static·{v0,·v2,·v1},·Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast; |
| |
354 | ····move-result-object·v0 | 397 | ····move-result-object·v0 |
| |
355 | ····.line·262 | 398 | ····.line·266 |
356 | ····invoke-virtual·{v0},·Landroid/widget/Toast;->show()V | 399 | ····invoke-virtual·{v0},·Landroid/widget/Toast;->show()V |
| |
357 | ····return-void | 400 | ····return-void |
| |
358 | ····.line·266 | 401 | ····.line·270 |
359 | ····:cond_1 | 402 | ····:cond_1 |
360 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isActivatable()Z | 403 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isActivatable()Z |
| |
361 | ····move-result·v0 | 404 | ····move-result·v0 |
| |
362 | ····if-eqz·v0,·:cond_2 | 405 | ····if-eqz·v0,·:cond_2 |
| |
363 | ····.line·267 | 406 | ····.line·271 |
364 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isActivated()Z | 407 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isActivated()Z |
| |
365 | ····move-result·v0 | 408 | ····move-result·v0 |
| |
366 | ····xor-int/2addr·v0,·v1 | 409 | ····xor-int/2addr·v0,·v1 |
| |
367 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/toolbar/MenuItem;->setActivated(Z)V | 410 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/toolbar/MenuItem;->setActivated(Z)V |
| |
368 | ····.line·270 | 411 | ····.line·274 |
369 | ····:cond_2 | 412 | ····:cond_2 |
370 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isCheckable()Z | 413 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isCheckable()Z |
| |
371 | ····move-result·v0 | 414 | ····move-result·v0 |
| |
372 | ····if-eqz·v0,·:cond_3 | 415 | ····if-eqz·v0,·:cond_3 |
| |
373 | ····.line·271 | 416 | ····.line·275 |
374 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isChecked()Z | 417 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isChecked()Z |
| |
375 | ····move-result·v0 | 418 | ····move-result·v0 |
| |
376 | ····xor-int/2addr·v0,·v1 | 419 | ····xor-int/2addr·v0,·v1 |
| |
377 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/toolbar/MenuItem;->setChecked(Z)V | 420 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/toolbar/MenuItem;->setChecked(Z)V |
| |
378 | ····.line·274 | 421 | ····.line·278 |
379 | ····:cond_3 | 422 | ····:cond_3 |
380 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; | 423 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; |
| |
381 | ····if-eqz·v0,·:cond_4 | 424 | ····if-eqz·v0,·:cond_4 |
| |
382 | ····.line·275 | 425 | ····.line·279 |
383 | ····invoke-interface·{v0,·p0},·Lcom/android/car/ui/toolbar/MenuItem$OnClickListener;->onClick(Lcom/android/car/ui/toolbar/MenuItem;)V | 426 | ····invoke-interface·{v0,·p0},·Lcom/android/car/ui/toolbar/MenuItem$OnClickListener;->onClick(Lcom/android/car/ui/toolbar/MenuItem;)V |
| |
384 | ····:cond_4 | 427 | ····:cond_4 |
385 | ····:goto_0 | 428 | ····:goto_0 |
386 | ····return-void | 429 | ····return-void |
387 | .end·method | 430 | .end·method |
| |
388 | .method·public·setActivated(Z)V | 431 | .method·public·setActivated(Z)V |
389 | ····.locals·1 | 432 | ····.locals·1 |
| |
390 | ····.line·184 | 433 | ····.line·197 |
391 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isActivatable()Z | 434 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isActivatable()Z |
| |
392 | ····move-result·v0 | 435 | ····move-result·v0 |
| |
393 | ····if-eqz·v0,·:cond_0 | 436 | ····if-eqz·v0,·:cond_0 |
| |
394 | ····.line·189 | 437 | ····.line·202 |
395 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivated:Z | 438 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsActivated:Z |
| |
396 | ····.line·191 | 439 | ····.line·204 |
397 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 440 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
398 | ····return-void | 441 | ····return-void |
| |
399 | ····.line·185 | 442 | ····.line·198 |
400 | ····:cond_0 | 443 | ····:cond_0 |
401 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 444 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
402 | ····const-string·v0,·"Cannot·call·setActivated()·on·a·non-activatable·MenuItem" | 445 | ····const-string·v0,·"Cannot·call·setActivated()·on·a·non-activatable·MenuItem" |
| |
403 | ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 446 | ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
404 | ····throw·p1 | 447 | ····throw·p1 |
405 | .end·method | 448 | .end·method |
| |
406 | .method·setCarUxRestrictions(Landroid/car/drivingstate/CarUxRestrictions;)V | |
407 | ····.locals·1 | |
| |
408 | ····.line·241 | |
409 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z | |
| |
410 | ····move-result·v0 | |
| |
411 | ····.line·242 | |
412 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mCurrentRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | |
| |
413 | ····.line·244 | |
414 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z | |
| |
415 | ····move-result·p1 | |
| |
416 | ····if-eq·p1,·v0,·:cond_0 | |
| |
417 | ····.line·245 | |
418 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | |
| |
419 | ····:cond_0 | |
420 | ····return-void | |
421 | .end·method | |
| |
422 | .method·public·setChecked(Z)V | 449 | .method·public·setChecked(Z)V |
423 | ····.locals·1 | 450 | ····.locals·1 |
| |
424 | ····.line·144 | 451 | ····.line·157 |
425 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isCheckable()Z | 452 | ····invoke-virtual·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->isCheckable()Z |
| |
426 | ····move-result·v0 | 453 | ····move-result·v0 |
| |
427 | ····if-eqz·v0,·:cond_0 | 454 | ····if-eqz·v0,·:cond_0 |
| |
428 | ····.line·148 | 455 | ····.line·161 |
429 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsChecked:Z | 456 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsChecked:Z |
| |
430 | ····.line·150 | 457 | ····.line·163 |
431 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 458 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
432 | ····return-void | 459 | ····return-void |
| |
433 | ····.line·145 | 460 | ····.line·158 |
434 | ····:cond_0 | 461 | ····:cond_0 |
435 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 462 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
436 | ····const-string·v0,·"Cannot·call·setChecked()·on·a·non-checkable·MenuItem" | 463 | ····const-string·v0,·"Cannot·call·setChecked()·on·a·non-checkable·MenuItem" |
| |
437 | ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 464 | ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
438 | ····throw·p1 | 465 | ····throw·p1 |
439 | .end·method | 466 | .end·method |
| |
440 | .method·public·setEnabled(Z)V | 467 | .method·public·setEnabled(Z)V |
441 | ····.locals·0 | 468 | ····.locals·0 |
| |
442 | ····.line·121 | 469 | ····.line·134 |
443 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsEnabled:Z | 470 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsEnabled:Z |
| |
444 | ····.line·123 | 471 | ····.line·136 |
445 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 472 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
446 | ····return-void | 473 | ····return-void |
447 | .end·method | 474 | .end·method |
| |
448 | .method·public·setIcon(I)V | 475 | .method·public·setIcon(I)V |
449 | ····.locals·1 | 476 | ····.locals·1 |
| |
450 | ····if-nez·p1,·:cond_0 | 477 | ····if-nez·p1,·:cond_0 |
| |
451 | ····const/4·p1,·0x0 | 478 | ····const/4·p1,·0x0 |
| |
452 | ····goto·:goto_0 | 479 | ····goto·:goto_0 |
| |
453 | ····.line·300 | 480 | ····.line·304 |
454 | ····:cond_0 | 481 | ····:cond_0 |
455 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; | 482 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; |
| |
456 | ····invoke-virtual·{v0,·p1},·Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable; | 483 | ····invoke-virtual·{v0,·p1},·Landroid/content/Context;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
| |
457 | ····move-result-object·p1 | 484 | ····move-result-object·p1 |
| |
458 | ····.line·298 | 485 | ····.line·302 |
459 | ····:goto_0 | 486 | ····:goto_0 |
460 | ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/toolbar/MenuItem;->setIcon(Landroid/graphics/drawable/Drawable;)V | 487 | ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/toolbar/MenuItem;->setIcon(Landroid/graphics/drawable/Drawable;)V |
| |
461 | ····return-void | 488 | ····return-void |
462 | .end·method | 489 | .end·method |
| |
463 | .method·public·setIcon(Landroid/graphics/drawable/Drawable;)V | 490 | .method·public·setIcon(Landroid/graphics/drawable/Drawable;)V |
464 | ····.locals·0 | 491 | ····.locals·0 |
| |
465 | ····.line·291 | 492 | ····.line·295 |
466 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIcon:Landroid/graphics/drawable/Drawable; | 493 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIcon:Landroid/graphics/drawable/Drawable; |
| |
467 | ····.line·293 | 494 | ····.line·297 |
468 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 495 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
469 | ····return-void | 496 | ····return-void |
470 | .end·method | 497 | .end·method |
| |
471 | .method·public·setId(I)V | 498 | .method·public·setId(I)V |
472 | ····.locals·0 | 499 | ····.locals·0 |
| |
473 | ····.line·105 | 500 | ····.line·118 |
474 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mId:I | 501 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mId:I |
| |
475 | ····.line·106 | 502 | ····.line·119 |
476 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 503 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
477 | ····return-void | 504 | ····return-void |
478 | .end·method | 505 | .end·method |
| |
479 | .method·setListener(Lcom/android/car/ui/toolbar/MenuItem$Listener;)V | 506 | .method·setListener(Lcom/android/car/ui/toolbar/MenuItem$Listener;)V |
480 | ····.locals·1 | 507 | ····.locals·1 |
| |
481 | ····.line·611 | 508 | ····.line·632 |
482 | ····new-instance·v0,·Ljava/lang/ref/WeakReference; | 509 | ····new-instance·v0,·Ljava/lang/ref/WeakReference; |
| |
483 | ····invoke-direct·{v0,·p1},·Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V | 510 | ····invoke-direct·{v0,·p1},·Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V |
| |
484 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mListener:Ljava/lang/ref/WeakReference; | 511 | ····iput-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mListener:Ljava/lang/ref/WeakReference; |
| |
485 | ····return-void | 512 | ····return-void |
486 | .end·method | 513 | .end·method |
| |
487 | .method·public·setOnClickListener(Lcom/android/car/ui/toolbar/MenuItem$OnClickListener;)V | 514 | .method·public·setOnClickListener(Lcom/android/car/ui/toolbar/MenuItem$OnClickListener;)V |
488 | ····.locals·0 | 515 | ····.locals·0 |
| |
489 | ····.line·235 | 516 | ····.line·248 |
490 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; | 517 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mOnClickListener:Lcom/android/car/ui/toolbar/MenuItem$OnClickListener; |
| |
491 | ····.line·237 | 518 | ····.line·250 |
492 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 519 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
493 | ····return-void | 520 | ····return-void |
494 | .end·method | 521 | .end·method |
| |
495 | .method·public·setTitle(I)V | 522 | .method·public·setTitle(I)V |
496 | ····.locals·1 | 523 | ····.locals·1 |
| |
497 | ····.line·208 | 524 | ····.line·221 |
498 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; | 525 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mContext:Landroid/content/Context; |
| |
499 | ····invoke-virtual·{v0,·p1},·Landroid/content/Context;->getString(I)Ljava/lang/String; | 526 | ····invoke-virtual·{v0,·p1},·Landroid/content/Context;->getString(I)Ljava/lang/String; |
| |
500 | ····move-result-object·p1 | 527 | ····move-result-object·p1 |
| |
501 | ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/toolbar/MenuItem;->setTitle(Ljava/lang/CharSequence;)V | 528 | ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/toolbar/MenuItem;->setTitle(Ljava/lang/CharSequence;)V |
| |
502 | ····return-void | 529 | ····return-void |
503 | .end·method | 530 | .end·method |
| |
504 | .method·public·setTitle(Ljava/lang/CharSequence;)V | 531 | .method·public·setTitle(Ljava/lang/CharSequence;)V |
505 | ····.locals·0 | 532 | ····.locals·0 |
| |
506 | ····.line·201 | 533 | ····.line·214 |
507 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mTitle:Ljava/lang/CharSequence; | 534 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mTitle:Ljava/lang/CharSequence; |
| |
508 | ····.line·203 | 535 | ····.line·216 |
509 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 536 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
510 | ····return-void | 537 | ····return-void |
511 | .end·method | 538 | .end·method |
| |
512 | .method·public·setUxRestrictions(I)V | 539 | .method·public·setUxRestrictions(I)V |
513 | ····.locals·1 | 540 | ····.locals·1 |
| |
514 | ····.line·213 | 541 | ····.line·226 |
515 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I | 542 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I |
| |
516 | ····if-eq·v0,·p1,·:cond_0 | 543 | ····if-eq·v0,·p1,·:cond_0 |
| |
517 | ····.line·214 | 544 | ····.line·227 |
518 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I | 545 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mUxRestrictions:I |
| |
519 | ····.line·215 | 546 | ····.line·228 |
520 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 547 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
521 | ····:cond_0 | 548 | ····:cond_0 |
522 | ····return-void | 549 | ····return-void |
523 | .end·method | 550 | .end·method |
| |
524 | .method·public·setVisible(Z)V | 551 | .method·public·setVisible(Z)V |
525 | ····.locals·0 | 552 | ····.locals·0 |
| |
526 | ····.line·164 | 553 | ····.line·177 |
527 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsVisible:Z | 554 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItem;->mIsVisible:Z |
| |
528 | ····.line·166 | 555 | ····.line·179 |
529 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V | 556 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItem;->update()V |
| |
530 | ····return-void | 557 | ····return-void |
531 | .end·method | 558 | .end·method |