Searched refs:resolveSize (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTest.java | 496 assertEquals(1.0f, myAnimation.resolveSize(Animation.ABSOLUTE, 1.0f, 0, 0), 498 assertEquals(2.0f, myAnimation.resolveSize(Animation.ABSOLUTE, 2.0f, 0, 0), 501 assertEquals(6.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_SELF, 3.0f, 2, 0), 503 assertEquals(9.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_SELF, 3.0f, 3, 0), 506 assertEquals(18.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_PARENT, 3.0f, 0, 6), 508 assertEquals(12.0f, myAnimation.resolveSize(Animation.RELATIVE_TO_PARENT, 3.0f, 0, 4), 512 assertEquals(8.0f, myAnimation.resolveSize(unknownType, 8.0f, 3, 4), COMPARISON_DELTA); 513 assertEquals(10.0f, myAnimation.resolveSize(unknownType, 10.0f, 3, 4), COMPARISON_DELTA); 730 protected float resolveSize(int type, float value, int size, int parentSize) { in resolveSize() method in MyAnimation 731 return super.resolveSize(type, value, size, parentSize); in resolveSize()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 1187 assertEquals(50, View.resolveSize(50, View.MeasureSpec.UNSPECIFIED)); in testResolveSize() 1189 assertEquals(40, View.resolveSize(50, 40 | View.MeasureSpec.EXACTLY)); in testResolveSize() 1191 assertEquals(30, View.resolveSize(50, 30 | View.MeasureSpec.AT_MOST)); in testResolveSize() 1193 assertEquals(20, View.resolveSize(20, 30 | View.MeasureSpec.AT_MOST)); in testResolveSize()
|