Home
last modified time | relevance | path

Searched refs:parentWidth (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/view/animation/
DClipRectAnimation.java156 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
157 super.initialize(width, height, parentWidth, parentHeight); in initialize()
158 mFromRect.set((int) resolveSize(mFromLeftType, mFromLeftValue, width, parentWidth), in initialize()
160 (int) resolveSize(mFromRightType, mFromRightValue, width, parentWidth), in initialize()
162 mToRect.set((int) resolveSize(mToLeftType, mToLeftValue, width, parentWidth), in initialize()
164 (int) resolveSize(mToRightType, mToRightValue, width, parentWidth), in initialize()
DTranslateAnimation.java176 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
177 super.initialize(width, height, parentWidth, parentHeight); in initialize()
178 mFromXDelta = resolveSize(mFromXType, mFromXValue, width, parentWidth); in initialize()
179 mToXDelta = resolveSize(mToXType, mToXValue, width, parentWidth); in initialize()
DScaleAnimation.java278 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
279 super.initialize(width, height, parentWidth, parentHeight); in initialize()
281 mFromX = resolveScale(mFromX, mFromXType, mFromXData, width, parentWidth); in initialize()
282 mToX = resolveScale(mToX, mToXType, mToXData, width, parentWidth); in initialize()
286 mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth); in initialize()
DRotateAnimation.java178 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
179 super.initialize(width, height, parentWidth, parentHeight); in initialize()
180 mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth); in initialize()
DAnimationSet.java420 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
421 super.initialize(width, height, parentWidth, parentHeight); in initialize()
478 a.initialize(width, height, parentWidth, parentHeight); in initialize()
DAnimation.java366 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java355 final int parentWidth = r - l; in layout() local
358 final int leftTarget = (int) (THRESHOLD * parentWidth) - targetWidth + handleWidth / 2; in layout()
359 final int rightTarget = (int) ((1.0f - THRESHOLD) * parentWidth) - handleWidth / 2; in layout()
360 final int left = (parentWidth - handleWidth) / 2; in layout()
371 text.layout(0 - parentWidth, top, 0, bottom); in layout()
376 tab.layout(parentWidth - handleWidth, top, parentWidth, bottom); in layout()
377 text.layout(parentWidth, top, parentWidth + parentWidth, bottom); in layout()
384 final int targetLeft = (parentWidth - targetWidth) / 2; in layout()
385 final int targetRight = (parentWidth + targetWidth) / 2; in layout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHeaderInfoLayout.kt121 fun setLocationFromOffset(parentWidth: Int, offset: Int, width: Int, RTL: Boolean) { in setLocationFromOffset()
123 left = parentWidth - offset - width in setLocationFromOffset()
124 right = parentWidth - offset in setLocationFromOffset()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DFillContentLayout.java85 private void measureIllustrationChild(View child, int parentWidth, int parentHeight) { in measureIllustrationChild() argument
93 Math.min(maxWidth, parentWidth), in measureIllustrationChild()
DIllustration.java137 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
138 int illustrationHeight = (int) (parentWidth / aspectRatio); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusIconContainer.java386 float parentWidth = 0; in applyToView() local
388 parentWidth = ((View) view.getParent()).getWidth(); in applyToView()
391 float currentDistanceToEnd = parentWidth - xTranslation; in applyToView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleFlyoutView.java207 CharSequence updateMessage, PointF stackPos, float parentWidth, in setupFlyoutStartingAsDot() argument
221 (int) (parentWidth * FLYOUT_MAX_WIDTH_PERCENT) - mFlyoutPadding * 2); in setupFlyoutStartingAsDot()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskRecord.java2286 final int parentWidth = parentBounds.width(); in computeFullscreenBounds() local
2288 final float aspect = ((float) parentHeight) / parentWidth; in computeFullscreenBounds()
2290 final int height = (int) (parentWidth / aspect); in computeFullscreenBounds()