Home
last modified time | relevance | path

Searched refs:Animation (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java48 import android.view.animation.Animation;
49 import android.view.animation.Animation.AnimationListener;
99 new Animation(mActivity, attrs) { in testConstructor() method
102 new Animation() { in testConstructor() method
122 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testAccessInterpolator()
135 Animation animation = new Animation() { in testDefaultFill()
150 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); in testAccessFill()
214 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testComputeDurationHint()
229 Animation animation = new Animation() { in testRepeatAnimation()
231 assertEquals(Animation.RESTART, animation.getRepeatMode()); in testRepeatAnimation()
[all …]
DAnimationSetTest.java37 import android.view.animation.Animation;
94 List<Animation> children = animationSet.getAnimations(); in testInitialize()
112 Animation animation1 = new AlphaAnimation(0.0f, 1.0f); in createAnimationSet()
116 Animation animation2 = new ScaleAnimation(1.0f, 2.0f, 1.0f, 3.0f); in createAnimationSet()
120 Animation animation3 = new TranslateAnimation(0.0f, 50.0f, 0.0f, 5.0f); in createAnimationSet()
132 List<Animation> children = animationSet.getAnimations(); in testSetFillAfter()
150 List<Animation> children = animationSet.getAnimations(); in testSetFillBefore()
172 final List<Animation> children = animationSet.getAnimations(); in testAccessDuration()
181 Animation child = null; in testRestrictDuration()
196 final List<Animation> children = animationSet.getAnimations(); in testRestrictDuration()
[all …]
DTranslateAnimationTest.java35 import android.view.animation.Animation;
93 new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.6f, Animation.RELATIVE_TO_SELF, 0.6f, in testConstructors()
94 Animation.RELATIVE_TO_SELF, 0.6f, Animation.RELATIVE_TO_SELF, 0.6f); in testConstructors()
96 new TranslateAnimation(Animation.RELATIVE_TO_SELF, -0.6f, Animation.RELATIVE_TO_SELF, -0.6f, in testConstructors()
97 Animation.RELATIVE_TO_SELF, -0.6f, Animation.RELATIVE_TO_SELF, -0.6f); in testConstructors()
172 new TranslateAnimation(Animation.RELATIVE_TO_SELF, RELATIVE_FROM_X_DELTA, in testInitialize()
173 Animation.RELATIVE_TO_SELF, RELATIVE_TO_X_DELTA, in testInitialize()
174 Animation.RELATIVE_TO_PARENT, RELATIVE_FROM_Y_DELTA, in testInitialize()
175 Animation.RELATIVE_TO_PARENT, RELATIVE_TO_Y_DELTA); in testInitialize()
DLayoutAnimationControllerTest.java33 import android.view.animation.Animation;
64 private Animation mDefaultAnimation;
89 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessOrder()
90 Animation childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessOrder()
91 Animation childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessOrder()
179 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessDelay()
180 Animation childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessDelay()
181 Animation childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessDelay()
242 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha);
252 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation();
[all …]
DAnimationUtilsTest.java29 import android.view.animation.Animation;
64 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.anim_alpha); in testLoad()
88 Animation inAnimation = AnimationUtils.makeInAnimation(mActivity, true); in testMakeAnimation()
90 Animation outAnimation = AnimationUtils.makeOutAnimation(mActivity, true); in testMakeAnimation()
92 Animation bottomAnimation = AnimationUtils.makeInChildBottomAnimation(mActivity); in testMakeAnimation()
DGridLayoutAnimationControllerTest.java31 import android.view.animation.Animation;
64 private Animation mDefaultAnimation;
106 Animation childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessDelay()
107 Animation childAnimation4 = mGridView.getChildAt(INDEX_OF_CHILD4).getAnimation(); in testAccessDelay()
108 Animation childAnimation7 = mGridView.getChildAt(INDEX_OF_CHILD7).getAnimation(); in testAccessDelay()
117 Animation childAnimation2 = mGridView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessDelay()
118 Animation childAnimation3 = mGridView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessDelay()
130 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay()
195 Animation childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation();
196 Animation childAnimation4 = mGridView.getChildAt(INDEX_OF_CHILD4).getAnimation();
[all …]
DAnimationTestUtils.java24 import android.view.animation.Animation;
53 final ActivityTestRule activityTestRule, final View view, final Animation animation) in assertRunAnimation()
70 final ActivityTestRule activityTestRule, final View view, final Animation animation, in assertRunAnimation()
DRotateAnimationTest.java35 import android.view.animation.Animation;
90 new RotateAnimation(0.6f, 0.6f, Animation.ABSOLUTE, 0.6f, Animation.ABSOLUTE, 0.6f); in testConstructors()
92 new RotateAnimation(-0.6f, -0.6f, Animation.ABSOLUTE, -0.6f, Animation.ABSOLUTE, -0.6f); in testConstructors()
159 Animation.RELATIVE_TO_PARENT, pivotX, Animation.RELATIVE_TO_SELF, pivotY); in testRotateAgainstPoint()
DLinearInterpolatorTest.java31 import android.view.animation.Animation;
90 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.alpha); in testLinearInterpolator()
DAccelerateDecelerateInterpolatorTest.java35 import android.view.animation.Animation;
86 final Animation anim = AnimationUtils.loadAnimation(mActivity, in testAccelerateDecelerateInterpolator()
DScaleAnimationTest.java34 import android.view.animation.Animation;
81 new ScaleAnimation(FROM_X, TO_X, FROM_Y, TO_Y, Animation.RELATIVE_TO_SELF, PIVOT_X, in testConstructors()
82 Animation.RELATIVE_TO_SELF, PIVOT_Y); in testConstructors()
DDecelerateInterpolatorTest.java34 import android.view.animation.Animation;
91 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testDecelerateInterpolator()
DAccelerateInterpolatorTest.java35 import android.view.animation.Animation;
88 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); in testAccelerateInterpolator()
DCycleInterpolatorTest.java34 import android.view.animation.Animation;
81 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.cycle_alpha); in testCycleInterpolator()
/cts/tests/tests/widget/src/android/widget/cts/
DViewAnimatorTest.java34 import android.view.animation.Animation;
84 Animation animation = mViewAnimator.getInAnimation(); in testAccessInAnimation()
324 Animation animation = mViewAnimator.getOutAnimation(); in testAccessOutAnimation()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java70 import android.view.animation.Animation;
71 import android.view.animation.Animation.AnimationListener;
937 public void onAnimationEnd(Animation animation) { in testGetLayoutAnimationListener()
941 public void onAnimationRepeat(Animation animation) { in testGetLayoutAnimationListener()
945 public void onAnimationStart(Animation animation) { in testGetLayoutAnimationListener()
1215 private class MockAnimation extends Animation {
1866 Animation animation = new AlphaAnimation(mContext, null); in testScheduleLayoutAnimation()
DViewTest.java98 import android.view.animation.Animation;
237 Animation animation = new AlphaAnimation(0.0f, 1.0f); in testGetAnimation()
250 Animation animation = new AlphaAnimation(0.0f, 1.0f); in testSetAnimation()
266 Animation animation = new AlphaAnimation(0.0f, 1.0f); in testClearAnimation()
287 Animation animation = new AlphaAnimation(0.0f, 1.0f); in testStartAnimation()
293 assertEquals(Animation.START_ON_FIRST_FRAME, animation.getStartTime()); in testStartAnimation()
298 final Animation animation = new AlphaAnimation(0.0f, 1.0f); in testOnAnimation()