/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...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifDataTransformation.java | 6 import com.bumptech.glide.load.Transformation; 8 public class GifDataTransformation implements Transformation<GifData> { 9 private Transformation<Bitmap> wrapped; 11 public GifDataTransformation(Transformation<Bitmap> wrapped) { 18 Transformation<Bitmap> newTransformation =
|
GifData.java | 7 import com.bumptech.glide.load.Transformation; 23 private Transformation<Bitmap> frameTransformation; 37 public Transformation<Bitmap> getFrameTransformation() { 45 public void setFrameTransformation(Transformation<Bitmap> transformation) { 46 this.frameTransformation = transformation;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/ |
MultiTransformation.java | 8 * A transformation that applies an ordered array of one or more transformations to an image. 10 public class MultiTransformation<T> implements Transformation<T> { 11 private Transformation<T>[] transformations; 12 private List<Transformation<T>> transformationList; 15 public MultiTransformation(Transformation<T>... transformations) { 17 throw new IllegalArgumentException("MultiTransformation must contain at least one Transformation"); 22 public MultiTransformation(List<Transformation<T>> transformationList) { 24 throw new IllegalArgumentException("MultiTransformation must contain at least one Transformation"); 34 for (Transformation<T> transformation : transformations) [all...] |
Transformation.java | 6 * A class for performing an arbitrary transformation on a bitmap 9 public interface Transformation<T> { 12 * Transform the given bitmap. It is also acceptable to simply return the given bitmap if no transformation is 23 * A method to get a unique identifier for this particular transformation that can be used as part of a cache key. 27 * @return A string that uniquely identifies this transformation from other transformations
|
UnitTransformation.java | 6 * A noop Transformation that simply returns the given resource. 8 public class UnitTransformation<T> implements Transformation<T> { 9 private static final UnitTransformation TRANSFORMATION = new UnitTransformation(); 13 return TRANSFORMATION;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/ |
GifBitmapWrapperTransformation.java | 5 import com.bumptech.glide.load.Transformation; 9 public class GifBitmapWrapperTransformation implements Transformation<GifBitmapWrapper> { 10 private Transformation<Bitmap> bitmapTransformation; 11 private Transformation<GifData> gifDataTransformation; 13 public GifBitmapWrapperTransformation(Transformation<Bitmap> bitmapTransformation) { 17 GifBitmapWrapperTransformation(Transformation<Bitmap> bitmapTransformation, 18 Transformation<GifData> gifDataTransformation) {
|
/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) {
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
EngineKeyFactory.java | 6 import com.bumptech.glide.load.Transformation; 12 ResourceDecoder sourceDecoder, Transformation transformation, ResourceEncoder encoder, 14 return new EngineKey(id, width, height, cacheDecoder, sourceDecoder, transformation, encoder, transcoder,
|
ResourceRunnerFactory.java | 7 import com.bumptech.glide.load.Transformation; 20 * @param transformation 30 Encoder<T> sourceEncoder, ResourceDecoder<T, Z> decoder, Transformation<Z> transformation,
|
ResourceRunner.java | 8 import com.bumptech.glide.load.Transformation; 25 private final Transformation<Z> transformation; field in class:ResourceRunner 40 ResourceDecoder<InputStream, Z> cacheDecoder, Transformation<Z> transformation, 48 this.transformation = transformation; 85 Resource<Z> transformed = transformation.transform(fromCache, width, height);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
FitCenter.java | 6 import com.bumptech.glide.load.Transformation; 12 public class FitCenter implements Transformation<Bitmap> {
|
CenterCrop.java | 6 import com.bumptech.glide.load.Transformation; 14 public class CenterCrop implements Transformation<Bitmap> {
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
AnimateDrawable.java | 23 import android.view.animation.Transformation; 28 private Transformation mTransformation = new Transformation();
|
/frameworks/base/core/java/android/view/animation/ |
Transformation.java | 25 * Defines the transformation to be applied at 29 public class Transformation { 31 * Indicates a transformation that has no effect (alpha = 1 and identity matrix.) 35 * Indicates a transformation that applies an alpha only (uses an identity matrix.) 39 * Indicates a transformation that applies a matrix only (alpha = 1.) 43 * Indicates a transformation that applies an alpha and a matrix. 55 * Creates a new transformation with alpha = 1 and the identity matrix. 57 public Transformation() { 62 * Reset the transformation to a state that leaves the object 63 * 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...] |
/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/core/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...] |