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