Home
last modified time | relevance | path

Searched refs:mItemData (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java43 private MenuItemImpl mItemData; field in IconMenuItemView
110 mItemData = itemData; in initialize()
119 mItemData = data; in setItemData()
129 if ((mItemInvoker != null) && (mItemInvoker.invokeItem(mItemData))) { in performClick()
157 if (mItemData == null) { in setCaptionMode()
161 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()
163 CharSequence text = mItemData.getTitleForItemView(this); in setCaptionMode()
168 mShortcutCaption = mItemData.getShortcutLabel(); in setCaptionMode()
211 return mItemData; in getItemData()
232 if (mItemData != null && mIcon != null) { in drawableStateChanged()
[all …]
DListMenuItemView.java39 private MenuItemImpl mItemData; field in ListMenuItemView
106 mItemData = itemData; in initialize()
134 return mItemData; in getItemData()
147 if (mItemData.isExclusiveCheckable()) { in setCheckable()
162 compoundButton.setChecked(mItemData.isChecked()); in setCheckable()
182 if (mItemData.isExclusiveCheckable()) { in setChecked()
204 final int newVisibility = (showShortcut && mItemData.shouldShowShortcut()) in setShortcut()
208 mShortcutView.setText(mItemData.getShortcutLabel()); in setShortcut()
217 final boolean showIcon = mItemData.shouldShowIcon() || mForceShowIcon; in setIcon()
296 if (mItemData != null && mItemData.hasSubMenu()) { in onInitializeAccessibilityNodeInfoInternal()
DActionMenuItemView.java45 private MenuItemImpl mItemData; field in ActionMenuItemView
119 return mItemData; in getItemData()
124 mItemData = itemData; in initialize()
142 if (mItemData.hasSubMenu() && mForwardingListener != null in onTouchEvent()
152 mItemInvoker.invokeItem(mItemData); in onClick()
179 if (mItemData != null) { in setExpandedFormat()
180 mItemData.actionFormatChanged(); in setExpandedFormat()
188 (mItemData.showsTextAsAction() && (mAllowTextWithIcon || mExpandedFormat)); in updateTextButtonVisibility()
256 return hasText() && mItemData.getIcon() == null; in needsDividerBefore()
284 Toast cheatSheet = Toast.makeText(context, mItemData.getTitle(), Toast.LENGTH_SHORT); in onLongClick()
[all …]
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuItemView.java51 private MenuItemImpl mItemData; field in NavigationMenuItemView
75 mItemData = itemData; in initialize()
123 return mItemData; in getItemData()
170 if (mItemData != null && mItemData.isCheckable() && mItemData.isChecked()) { in onCreateDrawableState()
178 if (mItemData != null) { in setIconTintList()
180 setIcon(mItemData.getIcon()); in setIconTintList()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DActionMenuItemView.java52 private MenuItemImpl mItemData; field in ActionMenuItemView
124 return mItemData; in getItemData()
128 mItemData = itemData; in initialize()
145 if (mItemData.hasSubMenu() && mForwardingListener != null in onTouchEvent()
155 mItemInvoker.invokeItem(mItemData); in onClick()
182 if (mItemData != null) { in setExpandedFormat()
183 mItemData.actionFormatChanged(); in setExpandedFormat()
191 (mItemData.showsTextAsAction() && (mAllowTextWithIcon || mExpandedFormat)); in updateTextButtonVisibility()
238 return hasText() && mItemData.getIcon() == null; in needsDividerBefore()
266 Toast cheatSheet = Toast.makeText(context, mItemData.getTitle(), Toast.LENGTH_SHORT); in onLongClick()
[all …]
DListMenuItemView.java41 private MenuItemImpl mItemData; field in ListMenuItemView
103 mItemData = itemData; in initialize()
131 return mItemData; in getItemData()
144 if (mItemData.isExclusiveCheckable()) { in setCheckable()
159 compoundButton.setChecked(mItemData.isChecked()); in setCheckable()
183 if (mItemData.isExclusiveCheckable()) { in setChecked()
205 final int newVisibility = (showShortcut && mItemData.shouldShowShortcut()) in setShortcut()
209 mShortcutView.setText(mItemData.getShortcutLabel()); in setShortcut()
218 final boolean showIcon = mItemData.shouldShowIcon() || mForceShowIcon; in setIcon()