Home
last modified time | relevance | path

Searched refs:popup (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java226 final MenuPopup popup; in createPopup() local
228 popup = new CascadingMenuPopup(mContext, mAnchorView, mPopupStyleAttr, in createPopup()
231 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, in createPopup()
236 popup.addMenu(mMenu); in createPopup()
237 popup.setOnDismissListener(mInternalOnDismissListener); in createPopup()
240 popup.setAnchorView(mAnchorView); in createPopup()
241 popup.setCallback(mPresenterCallback); in createPopup()
242 popup.setForceShowIcon(mForceShowIcon); in createPopup()
243 popup.setGravity(mDropDownGravity); in createPopup()
245 return popup; in createPopup()
[all …]
DActionMenuItemView.java322 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
323 return popup != null && popup.isShowing(); in onForwardingStarted()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPopupHelper.java238 final MenuPopup popup; in createPopup() local
240 popup = new CascadingMenuPopup(mContext, mAnchorView, mPopupStyleAttr, in createPopup()
243 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, in createPopup()
248 popup.addMenu(mMenu); in createPopup()
249 popup.setOnDismissListener(mInternalOnDismissListener); in createPopup()
252 popup.setAnchorView(mAnchorView); in createPopup()
253 popup.setCallback(mPresenterCallback); in createPopup()
254 popup.setForceShowIcon(mForceShowIcon); in createPopup()
255 popup.setGravity(mDropDownGravity); in createPopup()
257 return popup; in createPopup()
[all …]
DActionMenuItemView.java314 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
315 return popup != null && popup.isShowing(); in onForwardingStarted()
/frameworks/base/core/java/android/widget/
DForwardingListener.java130 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
131 if (popup != null && !popup.isShowing()) { in onForwardingStarted()
132 popup.show(); in onForwardingStarted()
147 final ShowableListMenu popup = getPopup(); in onForwardingStopped() local
148 if (popup != null && popup.isShowing()) { in onForwardingStopped()
149 popup.dismiss(); in onForwardingStopped()
251 final ShowableListMenu popup = getPopup(); in onTouchForwarded() local
252 if (popup == null || !popup.isShowing()) { in onTouchForwarded()
256 final DropDownListView dst = (DropDownListView) popup.getListView(); in onTouchForwarded()
DActionMenuPresenter.java551 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() local
552 mPostedOpenRunnable = new OpenOverflowRunnable(popup); in showOverflowMenu()
577 MenuPopupHelper popup = mOverflowPopup; in hideOverflowMenu() local
578 if (popup != null) { in hideOverflowMenu()
579 popup.dismiss(); in hideOverflowMenu()
1000 public OpenOverflowRunnable(OverflowPopup popup) { in OpenOverflowRunnable() argument
1001 mPopup = popup; in OpenOverflowRunnable()
DSpinner.java270 final DropdownPopup popup = new DropdownPopup( in Spinner() local
277 popup.setListSelector(pa.getDrawable( in Spinner()
280 popup.setBackgroundDrawable(pa.getDrawable(R.styleable.Spinner_popupBackground)); in Spinner()
281 popup.setPromptText(a.getString(R.styleable.Spinner_prompt)); in Spinner()
284 mPopup = popup; in Spinner()
288 return popup; in Spinner()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DForwardingListener.java138 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
139 if (popup != null && !popup.isShowing()) { in onForwardingStarted()
140 popup.show(); in onForwardingStarted()
155 final ShowableListMenu popup = getPopup(); in onForwardingStopped() local
156 if (popup != null && popup.isShowing()) { in onForwardingStopped()
157 popup.dismiss(); in onForwardingStopped()
259 final ShowableListMenu popup = getPopup(); in onTouchForwarded() local
260 if (popup == null || !popup.isShowing()) { in onTouchForwarded()
264 final DropDownListView dst = (DropDownListView) popup.getListView(); in onTouchForwarded()
DActionMenuPresenter.java341 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() local
342 mPostedOpenRunnable = new OpenOverflowRunnable(popup); in showOverflowMenu()
367 MenuPopupHelper popup = mOverflowPopup; in hideOverflowMenu() local
368 if (popup != null) { in hideOverflowMenu()
369 popup.dismiss(); in hideOverflowMenu()
795 public OpenOverflowRunnable(OverflowPopup popup) { in OpenOverflowRunnable() argument
796 mPopup = popup; in OpenOverflowRunnable()
DAppCompatSpinner.java234 final DropdownPopup popup = new DropdownPopup(mPopupContext, attrs, defStyleAttr); in AppCompatSpinner() local
239 popup.setBackgroundDrawable( in AppCompatSpinner()
241 popup.setPromptText(a.getString(R.styleable.Spinner_android_prompt)); in AppCompatSpinner()
244 mPopup = popup; in AppCompatSpinner()
248 return popup; in AppCompatSpinner()
/frameworks/support/compat/java/android/support/v4/widget/
DPopupWindowCompat.java42 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
49 xoff -= (popup.getWidth() - anchor.getWidth()); in showAsDropDown()
51 popup.showAsDropDown(anchor, xoff, yoff); in showAsDropDown()
112 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
114 popup.showAsDropDown(anchor, xoff, yoff, gravity); in showAsDropDown()
216 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
218 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity); in showAsDropDown()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
DVrActivity.java153 PopupMenu popup = new PopupMenu(this, v); in looksClick() local
154 Menu menu = popup.getMenu(); in looksClick()
161 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { in looksClick()
167 popup.show(); in looksClick()
175 PopupMenu popup = new PopupMenu(this, v); in dataClick() local
176 Menu menu = popup.getMenu(); in dataClick()
183 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { in dataClick()
195 popup.show(); in dataClick()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java380 private void setupPopupWindow(ListPopupWindow popup) { in setupPopupWindow() argument
381 popup.setOnDismissListener(new PopupWindow.OnDismissListener() { in setupPopupWindow()
2603 private void showAddress(final DrawableRecipientChip currentChip, final ListPopupWindow popup) { in showAddress() argument
2611 popup.setAnchorView((mAlternatePopupAnchor != null) ? mAlternatePopupAnchor : this); in showAddress()
2612 popup.setVerticalOffset(bottomOffset); in showAddress()
2613 popup.setAdapter(createSingleAddressAdapter(currentChip)); in showAddress()
2614 popup.setOnItemClickListener(new OnItemClickListener() { in showAddress()
2618 popup.dismiss(); in showAddress()
2621 popup.show(); in showAddress()
2622 ListView listView = popup.getListView(); in showAddress()
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java1542 OverflowPanel(FloatingToolbarPopup popup) { in OverflowPanel() argument
1543 super(Preconditions.checkNotNull(popup).mContext); in OverflowPanel()
1544 this.mPopup = popup; in OverflowPanel()