/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...] |
/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/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();
|
/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/tests/widget/src/android/widget/cts/ |
MyGallery.java | 26 import android.view.animation.Transformation; 48 protected boolean getChildStaticTransformation(View child, Transformation t) {
|