/frameworks/base/core/java/android/widget/ |
D | AutoCompleteTextView.java | 105 private ListPopupWindow mPopup; field in AutoCompleteTextView 139 mPopup = new ListPopupWindow(context, attrs, in AutoCompleteTextView() 141 mPopup.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); in AutoCompleteTextView() 142 mPopup.setPromptPosition(ListPopupWindow.POSITION_PROMPT_BELOW); in AutoCompleteTextView() 151 mPopup.setListSelector(a.getDrawable(R.styleable.AutoCompleteTextView_dropDownSelector)); in AutoCompleteTextView() 152 mPopup.setVerticalOffset((int) in AutoCompleteTextView() 154 mPopup.setHorizontalOffset((int) in AutoCompleteTextView() 166 mPopup.setWidth(a.getLayoutDimension( in AutoCompleteTextView() 169 mPopup.setHeight(a.getLayoutDimension( in AutoCompleteTextView() 176 mPopup.setOnItemClickListener(new DropDownItemClickListener()); in AutoCompleteTextView() [all …]
|
D | ListPopupWindow.java | 60 private PopupWindow mPopup; field in ListPopupWindow 199 mPopup = new PopupWindow(context, attrs, defStyleAttr, defStyleRes); in ListPopupWindow() 200 mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); in ListPopupWindow() 262 mPopup.setFocusable(modal); in setModal() 320 mPopup.setSoftInputMode(mode); in setSoftInputMode() 330 return mPopup.getSoftInputMode(); in getSoftInputMode() 346 return mPopup.getBackground(); in getBackground() 355 mPopup.setBackgroundDrawable(d); in setBackgroundDrawable() 364 mPopup.setAnimationStyle(animationStyle); in setAnimationStyle() 374 return mPopup.getAnimationStyle(); in getAnimationStyle() [all …]
|
D | Spinner.java | 80 private SpinnerPopup mPopup; field in Spinner 171 mPopup = new DialogPopup(); in Spinner() 195 mPopup = popup; in Spinner() 202 mPopup.setPromptText(a.getString(com.android.internal.R.styleable.Spinner_prompt)); in Spinner() 212 mPopup.setAdapter(mTempAdapter); in Spinner() 226 if (!(mPopup instanceof DropdownPopup)) { in setPopupBackgroundDrawable() 230 ((DropdownPopup) mPopup).setBackgroundDrawable(background); in setPopupBackgroundDrawable() 254 return mPopup.getBackground(); in getPopupBackground() 266 mPopup.setVerticalOffset(pixels); in setDropDownVerticalOffset() 278 return mPopup.getVerticalOffset(); in getDropDownVerticalOffset() [all …]
|
D | PopupMenu.java | 40 private MenuPopupHelper mPopup; field in PopupMenu 69 mPopup = new MenuPopupHelper(context, mMenu, anchor); in PopupMenu() 70 mPopup.setCallback(this); in PopupMenu() 108 mPopup.show(); in show() 116 mPopup.dismiss(); in dismiss()
|
D | AbsListView.java | 444 PopupWindow mPopup; field in AbsListView 1796 if (mPopup == null) { in setFilterText() 2030 if (mFiltered && visible && mPopup != null && mPopup.isShowing()) { in setFrame() 2604 if (mTextFilterEnabled && mPopup != null && !mGlobalLayoutListenerAddedFilter) { in onAttachedToWindow() 2632 if (mTextFilterEnabled && mPopup != null) { in onDetachedFromWindow() 5405 if (mPopup != null && mPopup.isShowing()) { in onDisplayHint() 5410 if (mFiltered && mPopup != null && !mPopup.isShowing()) { in onDisplayHint() 5422 if (mPopup != null) { in dismissPopup() 5423 mPopup.dismiss(); in dismissPopup() 5447 if (!mPopup.isShowing()) { in positionPopup() [all …]
|
D | GridView.java | 1586 if (mPopup == null || !mPopup.isShowing()) { in commonKey()
|
D | ListView.java | 2198 if (mPopup == null || !mPopup.isShowing()) { in commonKey()
|
/frameworks/base/core/java/android/webkit/ |
D | AutoCompletePopup.java | 46 private ListPopupWindow mPopup; field in AutoCompletePopup 71 if (mPopup == null) { in onKeyPreIme() 74 if (keyCode == KeyEvent.KEYCODE_BACK && mPopup.isShowing()) { in onKeyPreIme() 89 mPopup.dismiss(); in onKeyPreIme() 94 if (mPopup.isShowing()) { in onKeyPreIme() 95 return mPopup.onKeyPreIme(keyCode, event); in onKeyPreIme() 114 if (mPopup != null) { in clearAdapter() 115 mPopup.dismiss(); in clearAdapter() 116 mPopup.setAdapter(null); in clearAdapter() 122 mPopup.setAdapter(adapter); in setAdapter() [all …]
|
/frameworks/opt/mailcommon/java/com/android/mailcommon/ |
D | MultiAdapterSpinner.java | 59 protected ListPopupWindow mPopup; field in MultiAdapterSpinner 101 mPopup = new ListPopupWindow(context, attrs); in MultiAdapterSpinner() 102 mPopup.setAnchorView(this); in MultiAdapterSpinner() 103 mPopup.setOnItemClickListener(this); in MultiAdapterSpinner() 104 mPopup.setModal(true); in MultiAdapterSpinner() 105 mPopup.setAdapter(mAdapter); in MultiAdapterSpinner() 142 if (!mPopup.isShowing()) { in onClick() 149 final Drawable background = mPopup.getBackground(); in onClick() 155 mPopup.setHorizontalOffset(bgOffset + spinnerPaddingLeft); in onClick() 156 mPopup.show(); in onClick() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ListPopupWindow.java | 67 private PopupWindow mPopup; field in ListPopupWindow 191 mPopup = new PopupWindow(context, attrs, defStyleAttr); in ListPopupWindow() 192 mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); in ListPopupWindow() 251 mPopup.setFocusable(modal); in setModal() 305 mPopup.setSoftInputMode(mode); in setSoftInputMode() 315 return mPopup.getSoftInputMode(); in getSoftInputMode() 331 return mPopup.getBackground(); in getBackground() 340 mPopup.setBackgroundDrawable(d); in setBackgroundDrawable() 349 mPopup.setAnimationStyle(animationStyle); in setAnimationStyle() 358 return mPopup.getAnimationStyle(); in getAnimationStyle() [all …]
|
D | SpinnerICS.java | 69 private SpinnerPopup mPopup; field in SpinnerICS 159 mPopup = new DialogPopup(); in SpinnerICS() 184 mPopup = popup; in SpinnerICS() 191 mPopup.setPromptText(a.getString(R.styleable.Spinner_prompt)); in SpinnerICS() 198 mPopup.setAdapter(mTempAdapter); in SpinnerICS() 225 if (mPopup != null) { in setAdapter() 226 mPopup.setAdapter(new DropDownAdapter(adapter)); in setAdapter() 256 if (mPopup != null && mPopup.isShowing()) { in onDetachedFromWindow() 257 mPopup.dismiss(); in onDetachedFromWindow() 279 if (mPopup != null && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuPopupHelper.java | 52 private ListPopupWindow mPopup; field in MenuPopupHelper 106 mPopup = new ListPopupWindow(mContext, null, com.android.internal.R.attr.popupMenuStyle); in tryShow() 107 mPopup.setOnDismissListener(this); in tryShow() 108 mPopup.setOnItemClickListener(this); in tryShow() 111 mPopup.setAdapter(mAdapter); in tryShow() 112 mPopup.setModal(true); in tryShow() 120 mPopup.setAnchorView(anchor); in tryShow() 125 mPopup.setContentWidth(Math.min(measureContentWidth(mAdapter), mPopupMaxWidth)); in tryShow() 126 mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED); in tryShow() 127 mPopup.show(); in tryShow() [all …]
|
D | ActionMenuPresenter.java | 663 private OverflowPopup mPopup; field in ActionMenuPresenter.OpenOverflowRunnable 666 mPopup = popup; in OpenOverflowRunnable() 672 if (menuView != null && menuView.getWindowToken() != null && mPopup.tryShow()) { in run() 673 mOverflowPopup = mPopup; in run()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | MenuPopupHelper.java | 54 private ListPopupWindow mPopup; field in MenuPopupHelper 108 mPopup = new ListPopupWindow(mContext, null, R.attr.popupMenuStyle); in tryShow() 109 mPopup.setOnDismissListener(this); in tryShow() 110 mPopup.setOnItemClickListener(this); in tryShow() 113 mPopup.setAdapter(mAdapter); in tryShow() 114 mPopup.setModal(true); in tryShow() 123 mPopup.setAnchorView(anchor); in tryShow() 128 mPopup.setContentWidth(Math.min(measureContentWidth(mAdapter), mPopupMaxWidth)); in tryShow() 129 mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED); in tryShow() 130 mPopup.show(); in tryShow() [all …]
|
D | ActionMenuPresenter.java | 656 private OverflowPopup mPopup; field in ActionMenuPresenter.OpenOverflowRunnable 659 mPopup = popup; in OpenOverflowRunnable() 665 if (menuView != null && menuView.getWindowToken() != null && mPopup.tryShow()) { in run() 666 mOverflowPopup = mPopup; in run()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | PopupMenu.java | 41 private MenuPopupHelper mPopup; field in PopupMenu 69 mPopup = new MenuPopupHelper(context, mMenu, anchor); in PopupMenu() 70 mPopup.setCallback(this); in PopupMenu() 108 mPopup.show(); in show() 116 mPopup.dismiss(); in dismiss()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsPanelView.java | 74 private PopupMenu mPopup; field in RecentsPanelView 363 if (mPopup != null) { in showImpl() 364 mPopup.dismiss(); in showImpl() 770 if (mPopup != null) { in onInterceptTouchEvent() 782 mPopup = popup; in handleLongPress() 806 mPopup = null; in handleLongPress()
|