Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/widget/
DChartView.java106 final Rect parentRect = new Rect(); in onLayout() local
113 parentRect.set(mContent); in onLayout()
117 Gravity.apply(params.gravity, width, height, parentRect, childRect); in onLayout()
122 layoutSweep((ChartSweepView) child, parentRect, childRect); in onLayout() local
129 final Rect parentRect = new Rect(mContent); in layoutSweep() local
132 layoutSweep(sweep, parentRect, childRect); in layoutSweep()
136 protected void layoutSweep(ChartSweepView sweep, Rect parentRect, Rect childRect) { in layoutSweep() argument
141 parentRect.top += sweepMargins.top + (int) sweep.getPoint(); in layoutSweep()
142 parentRect.bottom = parentRect.top; in layoutSweep()
143 parentRect.left += sweepMargins.left; in layoutSweep()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartView.java107 final Rect parentRect = new Rect(); in onLayout() local
114 parentRect.set(mContent); in onLayout()
118 Gravity.apply(params.gravity, width, height, parentRect, childRect); in onLayout()
123 layoutSweep((ChartSweepView) child, parentRect, childRect); in onLayout() local
130 final Rect parentRect = new Rect(mContent); in layoutSweep() local
133 layoutSweep(sweep, parentRect, childRect); in layoutSweep()
137 protected void layoutSweep(ChartSweepView sweep, Rect parentRect, Rect childRect) { in layoutSweep() argument
142 parentRect.top += sweepMargins.top + (int) sweep.getPoint(); in layoutSweep()
143 parentRect.bottom = parentRect.top; in layoutSweep()
144 parentRect.left += sweepMargins.left; in layoutSweep()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DBottomBar.java228 Rect parentRect = new Rect(); in extendTouchAreaToMatchParent()
229 parent.getHitRect(parentRect); in extendTouchAreaToMatchParent()
233 int widthDiff = parentRect.width() - buttonRect.width(); in extendTouchAreaToMatchParent()
234 int heightDiff = parentRect.height() - buttonRect.height(); in extendTouchAreaToMatchParent()