/cts/tests/tests/view/src/android/view/animation/cts/ |
TransformationTest.java | 21 import android.view.animation.Transformation; 26 new Transformation(); 30 final Transformation t1 = new Transformation(); 31 final Transformation t2 = new Transformation(); 36 t1.setTransformationType(Transformation.TYPE_MATRIX); 37 t2.setTransformationType(Transformation.TYPE_ALPHA); 44 assertEquals(Transformation.TYPE_ALPHA, t2.getTransformationType()); 46 t1.setTransformationType(Transformation.TYPE_IDENTITY) 85 final Transformation transformation = new Transformation(); local 112 final Transformation transformation = new Transformation(); local 131 final Transformation transformation = new Transformation(); local [all...] |
AlphaAnimationTest.java | 24 import android.view.animation.Transformation; 52 Transformation transformation = new Transformation(); local 53 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); 55 animation.applyTransformation(0.0f, transformation); 56 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); 58 animation.applyTransformation(0.5f, transformation); 59 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); 61 animation.applyTransformation(1.0f, transformation); [all...] |
GridLayoutAnimationControllerTest.java | 32 import android.view.animation.Transformation; 129 Transformation transformation1 = new Transformation(); 130 Transformation transformation2 = new Transformation(); 131 Transformation transformation3 = new Transformation(); 194 Transformation transformation1 = new Transformation(); 195 Transformation transformation2 = new Transformation() [all...] |
ScaleAnimationTest.java | 30 import android.view.animation.Transformation; 72 final Transformation transformation = new Transformation(); local 73 transformation.setTransformationType(Transformation.TYPE_MATRIX); 81 scaleAnimation.applyTransformation(0.0f, transformation); 82 transformation.getMatrix().getValues(values); 87 scaleAnimation.applyTransformation(0.5f, transformation); 88 transformation.getMatrix().getValues(values) [all...] |
LayoutAnimationControllerTest.java | 37 import android.view.animation.Transformation; 92 Transformation transformation1 = new Transformation(); 93 Transformation transformation2 = new Transformation(); 94 Transformation transformation3 = new Transformation(); 126 transformation1 = new Transformation(); 127 transformation2 = new Transformation(); 128 transformation3 = new Transformation(); [all...] |
AccelerateDecelerateInterpolatorTest.java | 33 import android.view.animation.Transformation; 79 Transformation transformation = new Transformation(); local 81 anim.getTransformation(startTime, transformation); 82 float alpha1 = transformation.getAlpha(); 85 anim.getTransformation(startTime + 500, transformation); 86 float alpha2 = transformation.getAlpha(); 88 anim.getTransformation(startTime + 1000, transformation); 89 float alpha3 = transformation.getAlpha() [all...] |
LinearInterpolatorTest.java | 27 import android.view.animation.Transformation; 83 Transformation transformation = new Transformation(); local 85 anim.getTransformation(startTime, transformation); 86 final float alpha1 = transformation.getAlpha(); 89 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP, transformation); 90 final float alpha2 = transformation.getAlpha(); 92 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 2, transformation); 93 final float alpha3 = transformation.getAlpha() [all...] |
DecelerateInterpolatorTest.java | 33 import android.view.animation.Transformation; 88 Transformation transformation = new Transformation(); local 90 anim.getTransformation(startTime, transformation); 91 float alpha1 = transformation.getAlpha(); 94 anim.getTransformation(startTime + 500, transformation); 95 float alpha2 = transformation.getAlpha(); 97 anim.getTransformation(startTime + 1000, transformation); 98 float alpha3 = transformation.getAlpha() [all...] |
RotateAnimationTest.java | 29 import android.view.animation.Transformation; 85 Transformation transformation = new Transformation(); local 101 rotateAnimation.getTransformation(startTime, transformation); 102 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); 103 transformation.clear(); 104 rotateAnimation.applyTransformation(0.0f, transformation); 105 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); 109 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); 136 Transformation transformation = new Transformation(); local [all...] |
TranslateAnimationTest.java | 28 import android.view.animation.Transformation; 88 final Transformation transformation = new Transformation(); local 102 translateAnimation.getTransformation(startTime, transformation); 103 transformation.getMatrix().getValues(values); 107 transformation.clear(); 108 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); 109 transformation.getMatrix().getValues(values); 113 transformation.clear() 147 final Transformation transformation = new Transformation(); local [all...] |
AnimationTest.java | 35 import android.view.animation.Transformation; 122 Transformation transformation = new Transformation(); local 124 animation.getTransformation(animation.getStartTime() - 1, transformation); local 125 float alpha = transformation.getAlpha(); 128 transformation = new Transformation(); 131 transformation); local 132 alpha = transformation.getAlpha() 143 animation.getTransformation(animation.getStartTime() - 1, transformation); local 149 transformation); local 161 animation.getTransformation(animation.getStartTime() - 1, transformation); local 167 transformation); local 226 Transformation transformation = new Transformation(); local 348 Transformation transformation = new Transformation(); local 424 Transformation transformation = new Transformation(); local [all...] |
AnimationSetTest.java | 33 import android.view.animation.Transformation; 302 final Transformation transformation = new Transformation(); local 303 final Transformation expectedTransformation = new Transformation(); 304 final Transformation tempTransformation = new Transformation(); 306 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); 313 assertTransformationEquals(expectedTransformation, transformation); 381 final Transformation transformation = new Transformation(); local [all...] |
AccelerateInterpolatorTest.java | 33 import android.view.animation.Transformation; 85 Transformation transformation = new Transformation(); local 87 anim.getTransformation(startTime, transformation); 88 float alpha1 = transformation.getAlpha(); 91 anim.getTransformation(startTime + 250, transformation); 92 float alpha2 = transformation.getAlpha(); 94 anim.getTransformation(startTime + 500, transformation); 95 float alpha3 = transformation.getAlpha() [all...] |
/external/eigen/bench/ |
geometry.cpp | 24 template<typename Transformation, typename Data> 25 EIGEN_DONT_INLINE void transform(const Transformation& t, Data& data) 67 template<typename Transformation, int N> 70 static EIGEN_DONT_INLINE void run(const Transformation& t) 72 Matrix<typename Transformation::Scalar,get_dim<Transformation>::Dim,N> data; 74 bench_impl<Transformation,N-1>::run(t); 83 template<typename Transformation> 84 struct bench_impl<Transformation,0> 86 static EIGEN_DONT_INLINE void run(const Transformation&) { [all...] |
/external/robolectric/src/main/java/android/view/animation/ |
ShadowAnimationBridge.java | 17 public void applyTransformation(float interpolatedTime, Transformation t) {
|
/frameworks/base/core/java/android/view/animation/ |
Transformation.java | 24 * Defines the transformation to be applied at 28 public class Transformation { 30 * Indicates a transformation that has no effect (alpha = 1 and identity matrix.) 34 * Indicates a transformation that applies an alpha only (uses an identity matrix.) 38 * Indicates a transformation that applies a matrix only (alpha = 1.) 42 * Indicates a transformation that applies an alpha and a matrix. 51 * Creates a new transformation with alpha = 1 and the identity matrix. 53 public Transformation() { 58 * Reset the transformation to a state that leaves the object 59 * being animated in an unmodified state. The transformation type i [all...] |
Animation.java | 53 * time when {@link #getTransformation(long, Transformation)} is invoked for the 97 * Set by {@link #getTransformation(long, Transformation)} when the animation ends. 102 * Set by {@link #getTransformation(long, Transformation)} when the animation starts. 107 * Set by {@link #getTransformation(long, Transformation)} when the animation repeats 119 * Indicates whether the animation transformation should be applied before the 126 * Indicates whether the animation transformation should be applied after the 206 Transformation mTransformation = new Transformation(); 207 Transformation mPreviousTransformation = new Transformation(); [all...] |
AlphaAnimation.java | 26 * changing the alpha property of a {@link Transformation} 64 * Changes the alpha property of the supplied {@link Transformation} 67 protected void applyTransformation(float interpolatedTime, Transformation t) {
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
AnimateDrawable.java | 23 import android.view.animation.Transformation; 28 private Transformation mTransformation = new Transformation();
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Rotate3dAnimation.java | 20 import android.view.animation.Transformation; 69 protected void applyTransformation(float interpolatedTime, Transformation t) {
|
/frameworks/base/services/java/com/android/server/wm/ |
ScreenRotationAnimation.java | 36 import android.view.animation.Transformation; 67 // animation applies a transformation while the rotation is in progress. 70 final Transformation mStartExitTransformation = new Transformation(); 72 final Transformation mStartEnterTransformation = new Transformation(); 74 final Transformation mStartFrameTransformation = new Transformation(); 77 // animation needs to undo the transformation of the starting animation. 81 final Transformation mFinishExitTransformation = new Transformation() [all...] |
AppWindowAnimator.java | 12 import android.view.animation.Transformation; 27 final Transformation transformation = new Transformation(); field in class:AppWindowAnimator 53 final Transformation thumbnailTransformation = new Transformation(); 90 transformation.clear(); 91 transformation.setAlpha(mAppToken.isVisible() ? 1 : 0); 100 transformation.clear(); 101 transformation.setAlpha(mAppToken.isVisible() ? 1 : 0) [all...] |
/cts/tests/src/android/widget/cts/ |
MyGallery.java | 26 import android.view.animation.Transformation; 48 protected boolean getChildStaticTransformation(View child, Transformation t) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAnimation.java | 6 import android.view.animation.Transformation; 142 new ShadowAnimationBridge(realAnimation).applyTransformation(1.0f, new Transformation());
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AnimationTest.java | 6 import android.view.animation.Transformation; 133 Transformation t; 135 @Override protected void applyTransformation(float interpolatedTime, Transformation t) {
|