Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DSubtitleController.java174 if (mAnchor != null) { in doSelectTrack()
175 mAnchor.setSubtitleWidget(getRenderingWidget()); in doSelectTrack()
458 private Anchor mAnchor; field in SubtitleController
465 if (mAnchor == anchor) { in setAnchor()
469 if (mAnchor != null) { in setAnchor()
471 mAnchor.setSubtitleWidget(null); in setAnchor()
473 mAnchor = anchor; in setAnchor()
475 if (mAnchor != null) { in setAnchor()
476 mHandler = new Handler(mAnchor.getSubtitleLooper(), mCallback); in setAnchor()
478 mAnchor.setSubtitleWidget(getRenderingWidget()); in setAnchor()
/frameworks/base/core/java/android/widget/
DMediaController.java75 private View mAnchor; field in MediaController
173 mAnchor.getLocationOnScreen(anchorPos); in updateFloatingWindowLayout()
177 mDecor.measure(MeasureSpec.makeMeasureSpec(mAnchor.getWidth(), MeasureSpec.AT_MOST), in updateFloatingWindowLayout()
178 MeasureSpec.makeMeasureSpec(mAnchor.getHeight(), MeasureSpec.AT_MOST)); in updateFloatingWindowLayout()
181 p.width = mAnchor.getWidth(); in updateFloatingWindowLayout()
182 p.x = anchorPos[0] + (mAnchor.getWidth() - p.width) / 2; in updateFloatingWindowLayout()
183 p.y = anchorPos[1] + mAnchor.getHeight() - mDecor.getMeasuredHeight(); in updateFloatingWindowLayout()
225 if (mAnchor != null) { in setAnchorView()
226 mAnchor.removeOnLayoutChangeListener(mLayoutChangeListener); in setAnchorView()
228 mAnchor = view; in setAnchorView()
[all …]
DPopupMenu.java44 private final View mAnchor; field in PopupMenu
112 mAnchor = anchor; in PopupMenu()
159 mDragListener = new ForwardingListener(mAnchor) { in getDragToOpenListener()
277 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()
DPopupWindow.java162 private WeakReference<View> mAnchor; field in PopupWindow
167 final View anchor = mAnchor != null ? mAnchor.get() : null;
1266 if (mAnchor != null) { in setLayoutDirectionFromAnchor()
1267 View anchor = mAnchor.get(); in setLayoutDirectionFromAnchor()
1621 final View anchor = mAnchor != null ? mAnchor.get() : null; in getRelativeAnchorBounds()
1857 final WeakReference<View> oldAnchor = mAnchor;
1905 final WeakReference<View> anchorRef = mAnchor;
1912 mAnchor = null;
1918 mAnchor = new WeakReference<>(anchor);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DPopupMenu.java44 private View mAnchor; field in PopupMenu
110 mAnchor = anchor; in PopupMenu()
157 mDragListener = new ListPopupWindow.ForwardingListener(mAnchor) { in getDragToOpenListener()
275 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAppCompatPopupWindow.java108 WeakReference<View> mAnchor = (WeakReference<View>) fieldAnchor.get(popup);
109 if (mAnchor == null || mAnchor.get() == null) {