Home
last modified time | relevance | path

Searched refs:resolveSize (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java495 assertEquals(1.0f, myAnimation.resolveSize(Animation.ABSOLUTE, 1.0f, 0, 0),
497 assertEquals(2.0f, myAnimation.resolveSize(Animation.ABSOLUTE, 2.0f, 0, 0),
500 assertEquals(6.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_SELF, 3.0f, 2, 0),
502 assertEquals(9.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_SELF, 3.0f, 3, 0),
505 assertEquals(18.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_PARENT, 3.0f, 0, 6),
507 assertEquals(12.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_PARENT, 3.0f, 0, 4),
511 assertEquals(8.0f, myAnimation.resolveSize(unknownType, 8.0f, 3, 4), COMPARISON_DELTA);
512 assertEquals(10.0f, myAnimation.resolveSize(unknownType, 10.0f, 3, 4), COMPARISON_DELTA);
729 protected float resolveSize(int type, float value, int size, int parentSize) { in resolveSize() method in MyAnimation
730 return super.resolveSize(type, value, size, parentSize); in resolveSize()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1047 assertEquals(50, View.resolveSize(50, View.MeasureSpec.UNSPECIFIED)); in testResolveSize()
1049 assertEquals(40, View.resolveSize(50, 40 | View.MeasureSpec.EXACTLY)); in testResolveSize()
1051 assertEquals(30, View.resolveSize(50, 30 | View.MeasureSpec.AT_MOST)); in testResolveSize()
1053 assertEquals(20, View.resolveSize(20, 30 | View.MeasureSpec.AT_MOST)); in testResolveSize()