Home
last modified time | relevance | path

Searched refs:mAnchor (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/java/android/media/
DSubtitleController.java173 if (mAnchor != null) { in doSelectTrack()
174 mAnchor.setSubtitleWidget(getRenderingWidget()); in doSelectTrack()
456 private Anchor mAnchor; field in SubtitleController
463 if (mAnchor == anchor) { in setAnchor()
467 if (mAnchor != null) { in setAnchor()
469 mAnchor.setSubtitleWidget(null); in setAnchor()
471 mAnchor = anchor; in setAnchor()
473 if (mAnchor != null) { in setAnchor()
474 mHandler = new Handler(mAnchor.getSubtitleLooper(), mCallback); in setAnchor()
476 mAnchor.setSubtitleWidget(getRenderingWidget()); in setAnchor()
/frameworks/base/core/java/android/widget/
DMediaController.java76 private View mAnchor; field in MediaController
171 mAnchor.getLocationOnScreen(anchorPos); in updateFloatingWindowLayout()
175 mDecor.measure(MeasureSpec.makeMeasureSpec(mAnchor.getWidth(), MeasureSpec.AT_MOST), in updateFloatingWindowLayout()
176 MeasureSpec.makeMeasureSpec(mAnchor.getHeight(), MeasureSpec.AT_MOST)); in updateFloatingWindowLayout()
179 p.width = mAnchor.getWidth(); in updateFloatingWindowLayout()
180 p.x = anchorPos[0] + (mAnchor.getWidth() - p.width) / 2; in updateFloatingWindowLayout()
181 p.y = anchorPos[1] + mAnchor.getHeight() - mDecor.getMeasuredHeight(); in updateFloatingWindowLayout()
221 if (mAnchor != null) { in setAnchorView()
222 mAnchor.removeOnLayoutChangeListener(mLayoutChangeListener); in setAnchorView()
224 mAnchor = view; in setAnchorView()
[all …]
DPopupMenu.java43 private final View mAnchor; field in PopupMenu
111 mAnchor = anchor; in PopupMenu()
135 mDragListener = new ForwardingListener(mAnchor) { in getDragToOpenListener()
253 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()
DPopupWindow.java141 private WeakReference<View> mAnchor; field in PopupWindow
147 final View anchor = mAnchor != null ? mAnchor.get() : null;
1108 if (mAnchor != null) { in setLayoutDirectionFromAnchor()
1109 View anchor = mAnchor.get(); in setLayoutDirectionFromAnchor()
1603 WeakReference<View> oldAnchor = mAnchor;
1654 WeakReference<View> anchorRef = mAnchor;
1663 mAnchor = null;
1669 mAnchor = new WeakReference<View>(anchor);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DPopupMenu.java44 private View mAnchor; field in PopupMenu
110 mAnchor = anchor; in PopupMenu()
134 mDragListener = new ListPopupWindow.ForwardingListener(mAnchor) { in getDragToOpenListener()
252 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()