HomeSort by relevance Sort by last modified time
    Searched refs:Transformation (Results 1 - 25 of 38) sorted by null

1 2

  /cts/tests/tests/view/src/android/view/animation/cts/
TransformationTest.java 21 import android.view.animation.Transformation;
28 @TestTargetClass(Transformation.class)
33 method = "Transformation",
37 new Transformation();
43 args = {Transformation.class}
45 @ToBeFixed(bug = "1695243", explanation = "{@link Transformation#compose(Transformation t)}"
48 final Transformation t1 = new Transformation();
49 final Transformation t2 = new Transformation()
120 final Transformation transformation = new Transformation(); local
164 final Transformation transformation = new Transformation(); local
200 final Transformation transformation = new Transformation(); local
    [all...]
AlphaAnimationTest.java 24 import android.view.animation.Transformation;
87 notes = "Test {@link AlphaAnimation#applyTransformation(float, Transformation)}",
89 args = {float.class, android.view.animation.Transformation.class}
93 Transformation transformation = new Transformation(); local
94 assertEquals(1.0f, transformation.getAlpha(), 0.0001f);
96 animation.applyTransformation(0.0f, transformation);
97 assertEquals(0.0f, transformation.getAlpha(), 0.0001f);
99 animation.applyTransformation(0.5f, transformation);
    [all...]
ScaleAnimationTest.java 34 import android.view.animation.Transformation;
104 args = {float.class, android.view.animation.Transformation.class}
113 final Transformation transformation = new Transformation(); local
114 transformation.setTransformationType(Transformation.TYPE_MATRIX);
122 scaleAnimation.applyTransformation(0.0f, transformation);
123 transformation.getMatrix().getValues(values);
128 scaleAnimation.applyTransformation(0.5f, transformation);
    [all...]
GridLayoutAnimationControllerTest.java 36 import android.view.animation.Transformation;
173 Transformation transformation1 = new Transformation();
174 Transformation transformation2 = new Transformation();
175 Transformation transformation3 = new Transformation();
250 Transformation transformation1 = new Transformation();
251 Transformation transformation2 = new Transformation()
    [all...]
RotateAnimationTest.java 29 import android.view.animation.Transformation;
118 args = {float.class, android.view.animation.Transformation.class}
129 Transformation transformation = new Transformation(); local
145 rotateAnimation.getTransformation(startTime, transformation);
146 assertMatrixEquals(expectedMatrix, transformation.getMatrix());
147 transformation.clear();
148 rotateAnimation.applyTransformation(0.0f, transformation);
149 assertMatrixEquals(expectedMatrix, transformation.getMatrix())
192 Transformation transformation = new Transformation(); local
    [all...]
AnimationSetTest.java 33 import android.view.animation.Transformation;
390 args = {long.class, Transformation.class}
410 final Transformation transformation = new Transformation(); local
411 final Transformation expectedTransformation = new Transformation();
412 final Transformation tempTransformation = new Transformation();
414 assertEquals(result, animationSet.getTransformation(currentTime, transformation));
518 final Transformation transformation = new Transformation(); local
    [all...]
TranslateAnimationTest.java 28 import android.view.animation.Transformation;
118 args = {float.class, android.view.animation.Transformation.class}
129 final Transformation transformation = new Transformation(); local
143 translateAnimation.getTransformation(startTime, transformation);
144 transformation.getMatrix().getValues(values);
148 transformation.clear();
149 translateAnimation.getTransformation(startTime + DURATION / 2, transformation);
150 transformation.getMatrix().getValues(values)
193 final Transformation transformation = new Transformation(); local
    [all...]
AnimationTest.java 39 import android.view.animation.Transformation;
226 Transformation transformation = new Transformation(); local
228 animation.getTransformation(animation.getStartTime() - 1, transformation); local
229 float alpha = transformation.getAlpha();
232 transformation = new Transformation();
235 transformation); local
236 alpha = transformation.getAlpha()
247 animation.getTransformation(animation.getStartTime() - 1, transformation); local
253 transformation); local
265 animation.getTransformation(animation.getStartTime() - 1, transformation); local
271 transformation); local
374 Transformation transformation = new Transformation(); local
510 Transformation transformation = new Transformation(); local
648 Transformation transformation = new Transformation(); local
    [all...]
AccelerateDecelerateInterpolatorTest.java 37 import android.view.animation.Transformation;
104 Transformation transformation = new Transformation(); local
106 anim.getTransformation(startTime, transformation);
107 float alpha1 = transformation.getAlpha();
110 anim.getTransformation(startTime + 500, transformation);
111 float alpha2 = transformation.getAlpha();
113 anim.getTransformation(startTime + 1000, transformation);
114 float alpha3 = transformation.getAlpha()
    [all...]
LinearInterpolatorTest.java 27 import android.view.animation.Transformation;
105 Transformation transformation = new Transformation(); local
107 anim.getTransformation(startTime, transformation);
108 final float alpha1 = transformation.getAlpha();
111 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP, transformation);
112 final float alpha2 = transformation.getAlpha();
114 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 2, transformation);
115 final float alpha3 = transformation.getAlpha()
    [all...]
LayoutAnimationControllerTest.java 42 import android.view.animation.Transformation;
110 Transformation transformation1 = new Transformation();
111 Transformation transformation2 = new Transformation();
112 Transformation transformation3 = new Transformation();
144 transformation1 = new Transformation();
145 transformation2 = new Transformation();
146 transformation3 = new Transformation();
    [all...]
AccelerateInterpolatorTest.java 37 import android.view.animation.Transformation;
114 Transformation transformation = new Transformation(); local
116 anim.getTransformation(startTime, transformation);
117 float alpha1 = transformation.getAlpha();
120 anim.getTransformation(startTime + 250, transformation);
121 float alpha2 = transformation.getAlpha();
123 anim.getTransformation(startTime + 500, transformation);
124 float alpha3 = transformation.getAlpha()
    [all...]
DecelerateInterpolatorTest.java 37 import android.view.animation.Transformation;
120 Transformation transformation = new Transformation(); local
122 anim.getTransformation(startTime, transformation);
123 float alpha1 = transformation.getAlpha();
126 anim.getTransformation(startTime + 500, transformation);
127 float alpha2 = transformation.getAlpha();
129 anim.getTransformation(startTime + 1000, transformation);
130 float alpha3 = transformation.getAlpha()
    [all...]
CycleInterpolatorTest.java 30 import android.view.animation.Transformation;
95 Transformation transformation = new Transformation(); local
97 anim.getTransformation(startTime, transformation);
98 final float alpha1 = transformation.getAlpha();
101 anim.getTransformation(startTime + 500, transformation);
102 final float alpha2 = transformation.getAlpha();
105 anim.getTransformation(startTime + 1000, transformation);
106 final float alpha3 = transformation.getAlpha()
    [all...]
  /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 50 * time when {@link #getTransformation(long, Transformation)} is invoked for the
91 * Set by {@link #getTransformation(long, Transformation)} when the animation ends.
96 * Set by {@link #getTransformation(long, Transformation)} when the animation starts.
101 * Set by {@link #getTransformation(long, Transformation)} when the animation repeats
113 * Indicates whether the animation transformation should be applied before the
119 * Indicates whether the animation transformation should be applied after the
188 Transformation mTransformation = new Transformation();
189 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) {
AnimationSet.java 29 * The transformation of each individual animation are composed
49 private Transformation mTempTransformation = new Transformation();
90 animation.mTempTransformation = new Transformation();
277 final Transformation temp = mTempTransformation;
279 final Transformation previousTransformation = mPreviousTransformation;
294 * The transformation of an animation set is the concatenation of all of its
300 public boolean getTransformation(long currentTime, Transformation t) {
303 final Transformation temp = mTempTransformation;
  /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) {
  /cts/tests/src/android/widget/cts/
MyGallery.java 26 import android.view.animation.Transformation;
48 protected boolean getChildStaticTransformation(View child, Transformation t) {
  /packages/apps/Camera/src/com/android/camera/ui/
AbstractIndicator.java 23 import android.view.animation.Transformation;
54 Transformation trans = root.pushTransform();
GLRootView.java 36 import android.view.animation.Transformation;
71 private final Stack<Transformation> mFreeTransform =
72 new Stack<Transformation>();
74 private final Transformation mTransformation = new Transformation();
75 private final Stack<Transformation> mTransformStack =
76 new Stack<Transformation>();
137 public Transformation obtainTransformation() {
139 Transformation t = mFreeTransform.pop();
143 return new Transformation();
    [all...]
GLOptionItem.java 23 import android.view.animation.Transformation;
117 Transformation trans = root.getTransformation();
GLView.java 24 import android.view.animation.Transformation;
208 Transformation transform = root.getTransformation();
215 Transformation temp = root.obtainTransformation();

Completed in 364 milliseconds

1 2