/frameworks/base/core/java/android/view/animation/ |
Interpolator.java | 17 package android.view.animation; 19 import android.animation.TimeInterpolator; 22 * An interpolator defines the rate of change of an animation. This allows 23 * the basic animation effects (alpha, scale, translate, rotate) to be 27 // A new interface, TimeInterpolator, was introduced for the new android.animation
|
/frameworks/base/core/java/android/animation/ |
AnimatorListenerAdapter.java | 17 package android.animation; 20 * This adapter class provides empty implementations of the methods from {@link android.animation.Animator.AnimatorListener}. 31 public void onAnimationCancel(Animator animation) { 38 public void onAnimationEnd(Animator animation) { 45 public void onAnimationRepeat(Animator animation) { 52 public void onAnimationStart(Animator animation) { 59 public void onAnimationPause(Animator animation) { 66 public void onAnimationResume(Animator animation) {
|
TimeInterpolator.java | 17 package android.animation; 20 * A time interpolator defines the rate of change of an animation. This allows animations 26 * Maps a value representing the elapsed fraction of an animation to a value that represents 28 * value of an animation to derive the animated value at the current elapsed animation time. 31 * in the animation where 0 represents the start and 1.0 represents
|
/external/chromium_org/webkit/renderer/compositor_bindings/ |
web_animation_unittest.cc | 19 scoped_ptr<WebAnimation> animation( 23 EXPECT_EQ(1, animation->iterations()); 24 EXPECT_EQ(0, animation->startTime()); 25 EXPECT_EQ(0, animation->timeOffset()); 26 EXPECT_FALSE(animation->alternatesDirection()); 31 scoped_ptr<WebAnimation> animation( 33 animation->setIterations(2); 34 animation->setStartTime(2); 35 animation->setTimeOffset(2); 36 animation->setAlternatesDirection(true) [all...] |
/external/chromium_org/ui/base/animation/ |
slide_animation_unittest.cc | 8 #include "ui/base/animation/slide_animation.h" 9 #include "ui/base/animation/test_animation_delegate.h" 16 explicit TestApi(SlideAnimation* animation) : animation_(animation) {} 39 // Tests animation construction. 41 SlideAnimation animation(NULL); 44 EXPECT_EQ(1000 / 60, animation.timer_interval().InMilliseconds()); 46 EXPECT_EQ(120, animation.GetSlideDuration()); 48 EXPECT_FALSE(animation.IsShowing()); 49 EXPECT_FALSE(animation.IsClosing()) [all...] |
animation_delegate.h | 12 class Animation; 17 // state of an animation. 20 // Called when an animation has completed. 21 virtual void AnimationEnded(const Animation* animation) {} 23 // Called when an animation has progressed. 24 virtual void AnimationProgressed(const Animation* animation) {} 26 // Called when an animation has been canceled. 27 virtual void AnimationCanceled(const Animation* animation) { [all...] |
multi_animation_unittest.cc | 6 #include "ui/base/animation/animation_container_element.h" 7 #include "ui/base/animation/multi_animation.h" 17 MultiAnimation animation(parts, MultiAnimation::GetDefaultTimerInterval()); 19 static_cast<AnimationContainerElement*>(&animation); 24 EXPECT_EQ(.5, animation.GetCurrentValue()); 30 animation.GetCurrentValue()); 36 animation.GetCurrentValue()); 46 MultiAnimation animation(parts, MultiAnimation::GetDefaultTimerInterval()); 48 static_cast<AnimationContainerElement*>(&animation); 52 // animation [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
LoopMode.java | 33 package com.jme3.animation; 41 * The animation will play repeatedly, when it reaches the end 42 * the animation will play again from the beginning, and so on. 47 * The animation will not loop. It will play until the last frame, and then 48 * freeze at that frame. It is possible to decide to play a new animation 54 * The animation will cycle back and forth. When reaching the end, the 55 * animation will play backwards from the last frame until it reaches
|
/packages/apps/Camera/src/com/android/camera/ui/ |
Rotatable.java | 20 // Set parameter 'animation' to true to have animation when rotation. 21 public void setOrientation(int orientation, boolean animation);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
Rotatable.java | 20 // Set parameter 'animation' to true to have animation when rotation. 21 public void setOrientation(int orientation, boolean animation);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherAnimatorUpdateListener.java | 19 import android.animation.ValueAnimator; 20 import android.animation.ValueAnimator.AnimatorUpdateListener; 23 public void onAnimationUpdate(ValueAnimator animation) { 24 final float b = (Float) animation.getAnimatedValue();
|
FirstFrameAnimatorHelper.java | 19 import android.animation.Animator; 20 import android.animation.AnimatorListenerAdapter; 21 import android.animation.ValueAnimator; 28 * This is a helper class that listens to updates from the corresponding animation. 29 * For the first two frames, it adjusts the current play time of the animation to 30 * prevent jank at the beginning of the animation 58 public void onAnimationStart(Animator animation) { 59 final ValueAnimator va = (ValueAnimator) animation; 87 public void onAnimationUpdate(final ValueAnimator animation) { 96 // If the current play time exceeds the duration, the animation [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherAnimatorUpdateListener.java | 19 import android.animation.ValueAnimator; 20 import android.animation.ValueAnimator.AnimatorUpdateListener; 23 public void onAnimationUpdate(ValueAnimator animation) { 24 final float b = (Float) animation.getAnimatedValue();
|
FirstFrameAnimatorHelper.java | 19 import android.animation.Animator; 20 import android.animation.AnimatorListenerAdapter; 21 import android.animation.ValueAnimator; 28 * This is a helper class that listens to updates from the corresponding animation. 29 * For the first two frames, it adjusts the current play time of the animation to 30 * prevent jank at the beginning of the animation 58 public void onAnimationStart(Animator animation) { 59 final ValueAnimator va = (ValueAnimator) animation; 87 public void onAnimationUpdate(final ValueAnimator animation) { 96 // If the current play time exceeds the duration, the animation [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
TestAnimationListener.java | 3 import android.view.animation.Animation; 4 import android.view.animation.Animation.AnimationListener; 13 public void onAnimationStart(Animation animation) { 18 public void onAnimationEnd(Animation animation) { 23 public void onAnimationRepeat(Animation animation) { [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
LayoutAnimationController_AnimationParametersTest.java | 17 package android.view.animation.cts; 21 import android.view.animation.LayoutAnimationController;
|
AnimationTest.java | 17 package android.view.animation.cts; 29 import android.view.animation.AccelerateDecelerateInterpolator; 30 import android.view.animation.AccelerateInterpolator; 31 import android.view.animation.Animation; 32 import android.view.animation.AnimationUtils; 33 import android.view.animation.DecelerateInterpolator; 34 import android.view.animation.Interpolator; 35 import android.view.animation.Transformation; 36 import android.view.animation.Animation.AnimationListener 88 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); local 100 Animation animation = new Animation() { local 114 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.accelerate_alpha); local 119 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, animation); local 140 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, animation); local 158 AnimationTestUtils.assertRunAnimation(getInstrumentation(), animWindow, animation); local 174 Animation animation = AnimationUtils.loadAnimation(mActivity, R.anim.decelerate_alpha); local 188 Animation animation = new Animation() { local 330 Animation animation = new Animation() { local 346 animation, ACCELERATE_ALPHA_DURATION + startOffset); local 372 Animation animation = new Animation() { local [all...] |
GridLayoutAnimationController_AnimationParametersTest.java | 17 package android.view.animation.cts; 21 import android.view.animation.GridLayoutAnimationController; 22 import android.view.animation.GridLayoutAnimationController.AnimationParameters;
|
AlphaAnimationTest.java | 17 package android.view.animation.cts; 23 import android.view.animation.AlphaAnimation; 24 import android.view.animation.Transformation; 41 AlphaAnimation animation = new AlphaAnimation(mContext, null); local 42 assertFalse(animation.willChangeBounds()); 46 AlphaAnimation animation = new AlphaAnimation(0.0f, 0.5f); local 47 assertFalse(animation.willChangeTransformationMatrix()); 51 MyAlphaAnimation animation = new MyAlphaAnimation(0.0f, 1.0f); local 55 animation.applyTransformation(0.0f, transformation); 58 animation.applyTransformation(0.5f, transformation) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
AnimationStack.h | 41 class Animation; 46 void add(Animation* animation) { m_activeAnimations.append(animation); } 47 void remove(Animation* animation) 49 size_t position = m_activeAnimations.find(animation); 55 const Vector<Animation*>& activeAnimations(const Element* element) const { return m_activeAnimations; } 58 Vector<Animation*> m_activeAnimations;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AnimationTest.java | 4 import android.view.animation.Animation; 5 import android.view.animation.LinearInterpolator; 6 import android.view.animation.Transformation; 20 private TestAnimation animation; field in class:AnimationTest 26 animation = new TestAnimation(); 27 shadow = shadowOf(animation); 29 animation.setAnimationListener(listener); 35 animation.start(); 44 animation.cancel() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
LayoutAnimation2.java | 21 import android.view.animation.AlphaAnimation; 22 import android.view.animation.Animation; 23 import android.view.animation.AnimationSet; 24 import android.view.animation.LayoutAnimationController; 25 import android.view.animation.TranslateAnimation; 39 Animation animation = new AlphaAnimation(0.0f, 1.0f); local 40 animation.setDuration(50); 41 set.addAnimation(animation); [all...] |
/external/chromium_org/ui/views/animation/ |
bounds_animator.cc | 5 #include "ui/views/animation/bounds_animator.h" 8 #include "ui/base/animation/animation_container.h" 9 #include "ui/base/animation/slide_animation.h" 10 #include "ui/views/animation/bounds_animator_observer.h" 16 using ui::Animation; 49 // Don't immediatly delete the animation, that might trigger a callback from 64 data.animation = CreateAnimation(); 66 animation_to_view_[data.animation] = view; 68 data.animation->Show(); 89 SlideAnimation* animation) { 161 SlideAnimation* animation = new SlideAnimation(this); local [all...] |
/cts/tests/src/android/view/animation/cts/ |
AnimationTestUtils.java | 17 package android.view.animation.cts; 23 import android.view.animation.Animation; 24 import android.view.animation.LayoutAnimationController; 27 * The utility methods for animation test. 41 * Assert run an animation successfully. Timeout is duration of animation. 43 * @param instrumentation to run animation. 44 * @param view view window to run animation. 45 * @param animation will be run [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
FirstFrameAnimatorHelper.java | 19 import android.animation.Animator; 20 import android.animation.AnimatorListenerAdapter; 21 import android.animation.ValueAnimator; 28 * This is a helper class that listens to updates from the corresponding animation. 29 * For the first two frames, it adjusts the current play time of the animation to 30 * prevent jank at the beginning of the animation 57 public void onAnimationStart(Animator animation) { 58 final ValueAnimator va = (ValueAnimator) animation; 81 public void onAnimationUpdate(final ValueAnimator animation) { 89 // If the current play time exceeds the duration, the animation [all...] |