Home
last modified time | relevance | path

Searched refs:anim (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java108 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.alpha); in testConstructor()
133 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testAccessInterpolator()
138 animation = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); in testAccessInterpolator()
161 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); in testAccessFill()
225 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testComputeDurationHint()
252 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testRepeatAnimation() local
254 long duration = anim.getDuration(); in testRepeatAnimation()
257 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, animWindow, anim); in testRepeatAnimation()
260 anim.setRepeatCount(1); in testRepeatAnimation()
261 anim.setRepeatMode(Animation.REVERSE); in testRepeatAnimation()
[all …]
DDecelerateInterpolatorTest.java88 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.decelerate_alpha); in testConstructor()
103 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testDecelerateInterpolator() local
105 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); in testDecelerateInterpolator()
106 assertTrue(anim instanceof AlphaAnimation); in testDecelerateInterpolator()
110 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
111 assertFalse(anim.hasStarted()); in testDecelerateInterpolator()
113 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, animWindow, anim); in testDecelerateInterpolator()
116 long startTime = anim.getStartTime(); in testDecelerateInterpolator()
117 anim.getTransformation(startTime, transformation); in testDecelerateInterpolator()
121 anim.getTransformation(startTime + 500, transformation); in testDecelerateInterpolator()
[all …]
DAccelerateInterpolatorTest.java85 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.accelerate_alpha); in testConstructor()
100 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); in testAccelerateInterpolator() local
102 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); in testAccelerateInterpolator()
103 assertTrue(anim instanceof AlphaAnimation); in testAccelerateInterpolator()
107 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
108 assertFalse(anim.hasStarted()); in testAccelerateInterpolator()
110 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, animWindow, anim); in testAccelerateInterpolator()
113 long startTime = anim.getStartTime(); in testAccelerateInterpolator()
114 anim.getTransformation(startTime, transformation); in testAccelerateInterpolator()
118 anim.getTransformation(startTime + 250, transformation); in testAccelerateInterpolator()
[all …]
DCycleInterpolatorTest.java85 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.cycle_alpha); in testConstructors()
93 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.cycle_alpha); in testCycleInterpolator() local
94 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); in testCycleInterpolator()
95 assertTrue(anim instanceof AlphaAnimation); in testCycleInterpolator()
99 anim.setInterpolator(interpolator); in testCycleInterpolator()
100 assertFalse(anim.hasStarted()); in testCycleInterpolator()
102 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, animWindow, anim); in testCycleInterpolator()
105 long startTime = anim.getStartTime(); in testCycleInterpolator()
106 anim.getTransformation(startTime, transformation); in testCycleInterpolator()
110 anim.getTransformation(startTime + 500, transformation); in testCycleInterpolator()
[all …]
DLinearInterpolatorTest.java102 final Animation anim = AnimationUtils.loadAnimation(mActivity, R.anim.alpha); in testLinearInterpolator() local
103 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); in testLinearInterpolator()
104 assertTrue(anim instanceof AlphaAnimation); in testLinearInterpolator()
107 anim.setInterpolator(interpolator); in testLinearInterpolator()
108 assertFalse(anim.hasStarted()); in testLinearInterpolator()
110 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, animWindow, anim); in testLinearInterpolator()
113 final long startTime = anim.getStartTime(); in testLinearInterpolator()
114 anim.getTransformation(startTime, transformation); in testLinearInterpolator()
118 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP, transformation); in testLinearInterpolator()
121 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 2, transformation); in testLinearInterpolator()
[all …]
DAccelerateDecelerateInterpolatorTest.java83 R.anim.accelerate_decelerate_alpha); in testConstructor()
98 final Animation anim = AnimationUtils.loadAnimation(mActivity, in testAccelerateDecelerateInterpolator() local
99 R.anim.accelerate_decelerate_alpha); in testAccelerateDecelerateInterpolator()
100 assertEquals(ALPHA_DURATION, anim.getDuration()); in testAccelerateDecelerateInterpolator()
101 assertTrue(anim instanceof AlphaAnimation); in testAccelerateDecelerateInterpolator()
102 assertFalse(anim.hasStarted()); in testAccelerateDecelerateInterpolator()
104 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, animWindow, anim); in testAccelerateDecelerateInterpolator()
107 long startTime = anim.getStartTime(); in testAccelerateDecelerateInterpolator()
108 anim.getTransformation(startTime, transformation); in testAccelerateDecelerateInterpolator()
112 anim.getTransformation(startTime + 500, transformation); in testAccelerateDecelerateInterpolator()
[all …]
DAnimatorInflaterTest.java111 Animator anim1 = AnimatorInflater .loadAnimator(mActivity, R.anim.changing_test_animator); in testLoadAnimatorWithDifferentInterpolators()
115 Animator anim2 = AnimatorInflater .loadAnimator(mActivity, R.anim.changing_test_animator); in testLoadAnimatorWithDifferentInterpolators()
127 Animator anim1 = AnimatorInflater.loadAnimator(mActivity, R.anim.test_animator); in testLoadAnimator()
128 Animator anim2 = AnimatorInflater.loadAnimator(mActivity, R.anim.test_animator); in testLoadAnimator()
138 for (Animator anim : new Animator[]{anim1, anim2}) { in testLoadAnimator()
139 assertTrue(anim instanceof AnimatorSet); in testLoadAnimator()
140 assertUnique(anim); in testLoadAnimator()
141 AnimatorSet set = (AnimatorSet) anim; in testLoadAnimator()
166 anim1 = AnimatorInflater.loadAnimator(mActivity, R.anim.test_animator); in testLoadAnimator()
167 anim2 = AnimatorInflater.loadAnimator(mActivity, R.anim.test_animator); in testLoadAnimator()
[all …]
DAnimationUtilsTest.java87 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.anim_alpha); in testLoad()
93 android.R.anim.accelerate_interpolator); in testLoad()
103 R.anim.anim_gridlayout); in testLoad()
DLayoutAnimationControllerTest.java89 R.anim.layout_anim_controller_animation); in setup()
254 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha);
271 mController.setAnimation(mActivity, R.anim.layout_anim_controller_animation);
340 mController.setInterpolator(mActivity, android.R.anim.accelerate_interpolator);
357 R.anim.accelerate_decelerate_alpha);
367 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha);
407 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testGetTransformedIndex()
453 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); in testGetAnimationForView()
DAlphaAnimationTest.java55 XmlResourceParser parser = mContext.getResources().getAnimation(R.anim.alpha); in testConstructor()
DTranslateAnimationTest.java94 R.anim.anim_translate); in testConstructors()
224 (TranslateAnimation) AnimationUtils.loadAnimation(mActivity, R.anim.anim_translate); in testComplexNumbers()
DGridLayoutAnimationControllerTest.java89 R.anim.layout_anim_controller_animation); in setup()
98 R.anim.accelerate_decelerate_alpha); in testConstructor()
294 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha);
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java294 ValueAnimator.AnimatorUpdateListener updateListener = ((anim) -> { in testOfArgb()
295 Integer animatedValue = (Integer) anim.getAnimatedValue(); in testOfArgb()
322 final ObjectAnimator anim = ObjectAnimator.ofFloat(null, "dummyValue", 0f, 1f); in testNullObject() local
323 anim.setDuration(300); in testNullObject()
326 anim.addUpdateListener(updateListener); in testNullObject()
328 anim.addListener(listener); in testNullObject()
330 mActivityRule.runOnUiThread(anim::start); in testNullObject()
331 verify(listener, within(500)).onAnimationEnd(anim, false); in testNullObject()
333 verify(listener, times(0)).onAnimationCancel(anim); in testNullObject()
335 verify(updateListener, atLeast(1)).onAnimationUpdate(anim); in testNullObject()
[all …]
DValueAnimatorTest.java158 final ValueAnimator anim = ValueAnimator.ofFloat(0f, 1f); in testListenerCallbackWithStartDelay() local
159 anim.setStartDelay(300); in testListenerCallbackWithStartDelay()
160 anim.setDuration(300); in testListenerCallbackWithStartDelay()
162 anim.addListener(listener); in testListenerCallbackWithStartDelay()
164 anim.start(); in testListenerCallbackWithStartDelay()
167 verify(listener, timeout(450).times(1)).onAnimationStart(anim, false); in testListenerCallbackWithStartDelay()
168 verify(listener, timeout(450).times(1)).onAnimationEnd(anim, false); in testListenerCallbackWithStartDelay()
181 final ValueAnimator anim = ValueAnimator.ofFloat(0, 100).setDuration(mDuration); in testSetCurrentPlayTime() local
186 anim.setCurrentPlayTime(mDuration / 2); in testSetCurrentPlayTime()
187 long currentPlayTime = anim.getCurrentPlayTime(); in testSetCurrentPlayTime()
[all …]
DPropertyValuesHolderTest.java339 final ValueAnimator anim = ValueAnimator.ofPropertyValuesHolder(pvh); in testOfMultiFloat_Path() local
342 anim.setInterpolator(null); in testOfMultiFloat_Path()
343 anim.setDuration(200); in testOfMultiFloat_Path()
345 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in testOfMultiFloat_Path()
379 anim.addListener(listener); in testOfMultiFloat_Path()
380 mActivityRule.runOnUiThread(anim::start); in testOfMultiFloat_Path()
381 verify(listener, within(400)).onAnimationEnd(anim, false); in testOfMultiFloat_Path()
397 final ValueAnimator anim = ValueAnimator.ofPropertyValuesHolder(pvh); in testOfMultiFloat_Array() local
398 anim.setInterpolator(null); in testOfMultiFloat_Array()
399 anim.setDuration(60); in testOfMultiFloat_Array()
[all …]
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DExitAnimationActivity.java85 return R.anim.alpha_1; in getEnterAnimationRes()
87 return R.anim.long_alpha_1; in getEnterAnimationRes()
99 return R.anim.alpha_0_7; in getAnimationRes()
101 return R.anim.alpha_0_9; in getAnimationRes()
103 return R.anim.long_alpha_0_7; in getAnimationRes()
DTranslucentFloatingActivity.java51 overridePendingTransition(0, R.anim.fade);
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DFadeInActivity.java31 overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in onCreate()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DSimpleVoiceInteractionSession.java54 /* enterResId= */ android.R.anim.fade_in, in onShow()
55 /* exitResId= */ android.R.anim.fade_out); in onShow()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTestActivity.java39 overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DActivityTransitionTests.java175 R.anim.alpha, 0 /* exitResId */, 0 /* backgroundColor */, in testActivityTransitionOverride()
205 R.anim.alpha, 0 /* exitResId */, 0 /* backgroundColor */, in testTaskTransitionOverrideDisabled()
237 R.anim.alpha, 0 /* exitResId */, 0 /* backgroundColor */, in testTaskWindowAnimationOverrideDisabled()
286 R.anim.alpha_0_with_red_backdrop, R.anim.alpha_0_with_red_backdrop); in testAnimationBackgroundColorIsUsedDuringActivityTransition()
308 R.anim.alpha_0_with_backdrop, R.anim.alpha_0_with_backdrop, backgroundColor in testCustomTransitionCanOverrideBackgroundColor()
332 extras.putInt(ENTER_ANIM_KEY, R.anim.alpha_0_with_backdrop); in testPendingTransitionCanOverrideBackgroundColor()
333 extras.putInt(EXIT_ANIM_KEY, R.anim.alpha_0_with_backdrop); in testPendingTransitionCanOverrideBackgroundColor()
353 extras.putInt(ENTER_ANIM_KEY, R.anim.alpha_0_with_backdrop); in testSetTransitionCanOverrideBackgroundColor()
354 extras.putInt(EXIT_ANIM_KEY, R.anim.alpha_0_with_backdrop); in testSetTransitionCanOverrideBackgroundColor()
1023 testAnim = R.anim.edge_extension_left; in processIntent()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DAnimationTestActivity.java26 overridePendingTransition(R.anim.animation_with_background, -1); in onResume()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceViewSyncTest.java221 ValueAnimator anim = ValueAnimator.ofInt(0, 100);
222 anim.addUpdateListener(valueAnimator -> {
237 return makeInfinite(anim);
241 ValueAnimator anim = ValueAnimator.ofInt(0, 100);
242 anim.addUpdateListener(valueAnimator -> {
249 return makeInfinite(anim);
/cts/tests/tests/security/src/android/security/cts/
DCVE_2021_0339.java109 overridePendingTransition(R.anim.translate2,R.anim.translate1); in onEnterAnimationComplete()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowUntrustedTouchTest.java590 addAnimatedActivityOverlay(APP_A, /* touchable */ false, R.anim.long_alpha_0_7, in testLongEnterAnimations_areLimited()
591 R.anim.long_alpha_1); in testLongEnterAnimations_areLimited()
625 addAnimatedActivityOverlay(APP_A, /* touchable */ false, R.anim.alpha_0_9, R.anim.alpha_1); in testWhenEnterAnimationAboveThresholdAndNewActivityNotTouchable_blocksTouch()
636 addAnimatedActivityOverlay(APP_A, /* touchable */ false, R.anim.alpha_0_7, R.anim.alpha_1); in testWhenEnterAnimationBelowThresholdAndNewActivityNotTouchable_allowsTouch()
647 addAnimatedActivityOverlay(APP_A, /* touchable */ true, R.anim.alpha_0_7, R.anim.alpha_1); in testWhenEnterAnimationBelowThresholdAndNewActivityTouchable_blocksTouch()

12