Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/animation/
DTranslateAnimation.java171 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
172 super.initialize(width, height, parentWidth, parentHeight); in initialize()
173 mFromXDelta = resolveSize(mFromXType, mFromXValue, width, parentWidth); in initialize()
174 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.java424 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
425 super.initialize(width, height, parentWidth, parentHeight); in initialize()
482 a.initialize(width, height, parentWidth, parentHeight); in initialize()
DAnimation.java353 public void initialize(int width, int height, int parentWidth, int parentHeight) { in initialize() argument
/frameworks/support/wear/tests/src/android/support/wear/widget/
DBoxInsetLayoutTest.java158 int parentWidth = boxParent.getWidth(); in testCase2() local
212 .check(screenLeft(is(parentWidth - desiredPadding - child4.getWidth()))) in testCase2()
214 .check(screenRight(is(equalTo(parentWidth - desiredPadding)))) in testCase2()
221 onView(withId(R.id.content4)).check(screenRight(equalTo(parentWidth - desiredPadding))); in testCase2()
265 int parentWidth = boxParent.getWidth(); in testCase3() local
284 .check(screenLeft(is(equalTo(parentWidth - desiredPadding - child2.getWidth())))) in testCase3()
286 .check(screenRight(is(equalTo(parentWidth - desiredPadding)))) in testCase3()
293 .check(screenRight(equalTo(parentWidth - desiredPadding))); in testCase3()
298 .check(screenLeft(is(equalTo(parentWidth - desiredPadding - child3.getWidth())))) in testCase3()
301 .check(screenRight(is(equalTo(parentWidth - desiredPadding)))) in testCase3()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java349 final int parentWidth = r - l; in layout() local
352 final int leftTarget = (int) (THRESHOLD * parentWidth) - targetWidth + handleWidth / 2; in layout()
353 final int rightTarget = (int) ((1.0f - THRESHOLD) * parentWidth) - handleWidth / 2; in layout()
354 final int left = (parentWidth - handleWidth) / 2; in layout()
365 text.layout(0 - parentWidth, top, 0, bottom); in layout()
370 tab.layout(parentWidth - handleWidth, top, parentWidth, bottom); in layout()
371 text.layout(parentWidth, top, parentWidth + parentWidth, bottom); in layout()
378 final int targetLeft = (parentWidth - targetWidth) / 2; in layout()
379 final int targetRight = (parentWidth + targetWidth) / 2; in layout()
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
DTestUtilsMatchers.java211 final int parentWidth = parentGroup.getWidth();
214 final int parentMiddle = parentWidth / 2;
221 viewLeft + "-" + viewRight + "], parent width=" + parentWidth;
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DFillContentLayout.java90 private void measureIllustrationChild(View child, int parentWidth, int parentHeight) { in measureIllustrationChild() argument
97 Math.min(mMaxWidth, parentWidth), in measureIllustrationChild()
DIllustration.java138 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
139 int illustrationHeight = (int) (parentWidth / mAspectRatio); in onMeasure()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java247 final int parentWidth = getWidth(); in recycleViewsOutOfBounds() local
255 getDecoratedLeft(v) <= parentWidth && in recycleViewsOutOfBounds()
DAnimatedRecyclerView.java627 final int parentWidth = getWidth(); in recycleViewsOutOfBounds() local
634 if (v.hasFocus() || (v.getRight() >= 0 && v.getLeft() <= parentWidth && in recycleViewsOutOfBounds()
/frameworks/base/services/core/java/com/android/server/wm/
DAppWindowAnimator.java124 public void setAnimation(Animation anim, int width, int height, int parentWidth, in setAnimation() argument
133 anim.initialize(width, height, parentWidth, parentHeight); in setAnimation()