Home
last modified time | relevance | path

Searched refs:mForeground (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DNonOverlappingLinearLayoutWithForeground.java32 private Drawable mForeground; field in NonOverlappingLinearLayoutWithForeground
70 if (mForeground != d) { in setForegroundCompat()
71 mForeground = d; in setForegroundCompat()
74 mForeground.setCallback(this); in setForegroundCompat()
75 if (mForeground.isStateful()) { in setForegroundCompat()
76 mForeground.setState(getDrawableState()); in setForegroundCompat()
86 return mForeground; in getForegroundCompat()
93 if (mForeground != null) { in draw()
94 final Drawable foreground = mForeground; in draw()
115 return super.verifyDrawable(who) || (who == mForeground); in verifyDrawable()
[all …]
DRowContainerView.java35 private Drawable mForeground; field in RowContainerView
78 mForeground = d; in setForeground()
79 setWillNotDraw(mForeground == null); in setForeground()
84 if (mForeground instanceof ColorDrawable) { in setForegroundColor()
85 ((ColorDrawable) mForeground.mutate()).setColor(color); in setForegroundColor()
94 return mForeground; in getForeground()
106 if (mForeground != null) { in draw()
109 mForeground.setBounds(0, 0, getWidth(), getHeight()); in draw()
111 mForeground.draw(canvas); in draw()
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DLargeTemplateView.java44 private final View mForeground; field in LargeTemplateView
61 mForeground = new View(getContext()); in LargeTemplateView()
62 mForeground.setBackground(SliceViewUtil.getDrawable(getContext(), in LargeTemplateView()
64 addView(mForeground); in LargeTemplateView()
66 FrameLayout.LayoutParams lp = (LayoutParams) mForeground.getLayoutParams(); in LargeTemplateView()
69 mForeground.setLayoutParams(lp); in LargeTemplateView()
96 mForeground.setPressed(false); in onForegroundActivated()
100 mForeground.getLocationOnScreen(mLoc); in onForegroundActivated()
103 mForeground.getBackground().setHotspot(x, y); in onForegroundActivated()
107 mForeground.setPressed(true); in onForegroundActivated()
[all …]