HomeSort by relevance Sort by last modified time
    Searched defs:transformation (Results 1 - 25 of 46) sorted by null

1 2

  /external/glide/library/src/main/java/com/bumptech/glide/load/
MultiTransformation.java 9 * A transformation that applies one or more transformations in iteration order to a resource.
13 public class MultiTransformation<T> implements Transformation<T> {
14 private final Collection<? extends Transformation<T>> transformations;
18 public MultiTransformation(Transformation<T>... transformations) {
20 throw new IllegalArgumentException("MultiTransformation must contain at least one Transformation");
25 public MultiTransformation(Collection<? extends Transformation<T>> transformationList) {
27 throw new IllegalArgumentException("MultiTransformation must contain at least one Transformation");
36 for (Transformation<T> transformation : transformations) {
37 Resource<T> transformed = transformation.transform(previous, outWidth, outHeight)
    [all...]
  /external/conscrypt/src/main/java/org/conscrypt/
CryptoUpcalls.java 151 String transformation = "RSA/ECB/" + jcaPadding; local
156 c = Cipher.getInstance(transformation);
164 System.err.println("Unsupported cipher algorithm: " + transformation);
175 ArrayList<Provider> providers = getExternalProviders("Cipher." + transformation);
178 c = Cipher.getInstance(transformation, p);
187 System.err.println("Could not find provider for algorithm: " + transformation);
196 + " private key using " + transformation + ":");
  /libcore/support/src/test/java/tests/security/
AlgorithmParameterSymmetricHelper.java 66 String transformation = algorithmName; local
69 transformation += "/" + blockmode;
71 cipher = Cipher.getInstance(transformation);
  /cts/tests/tests/view/src/android/view/animation/cts/
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...]
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...]
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...]
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...]
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...]
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...]
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...]
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...]
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...]
CycleInterpolatorTest.java 30 import android.view.animation.Transformation;
78 Transformation transformation = new Transformation(); local
80 anim.getTransformation(startTime, transformation);
81 final float alpha1 = transformation.getAlpha();
84 anim.getTransformation(startTime + 500, transformation);
85 final float alpha2 = transformation.getAlpha();
88 anim.getTransformation(startTime + 1000, transformation);
89 final float alpha3 = transformation.getAlpha()
    [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...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/
EngineKey.java 7 import com.bumptech.glide.load.Transformation;
21 private final Transformation transformation; field in class:EngineKey
31 ResourceDecoder decoder, Transformation transformation, ResourceEncoder encoder,
39 this.transformation = transformation;
71 } else if (transformation == null ^ engineKey.transformation == null) {
73 } else if (transformation != null && !transformation.getId().equals(engineKey.transformation.getId()))
    [all...]
DecodeJob.java 8 import com.bumptech.glide.load.Transformation;
39 private final Transformation<T> transformation; field in class:DecodeJob
49 DataLoadProvider<A, T> loadProvider, Transformation<T> transformation, ResourceTranscoder<T, Z> transcoder,
51 this(resultKey, width, height, fetcher, loadProvider, transformation, transcoder, diskCache, diskCacheStrategy,
57 DataLoadProvider<A, T> loadProvider, Transformation<T> transformation, ResourceTranscoder<T, Z> transcoder,
64 this.transformation = transformation;
    [all...]
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
Adapters.java 103 * <a href="#xml-cursor-adapter-bind-data-types">transformation</a> classes.
123 * <a href="#xml-cursor-adapter-bind-data-transformation">data transformations</a> can
139 * <a href="#xml-cursor-adapter-bind-data-transformation">data transformations</a> children
165 * <a name="xml-cursor-adapter-bind-transformation"></a>
167 * <p>When defining a data binding you can specify an optional transformation by using one
179 * <a name="xml-cursor-adapter-bind-transformation-map" />
191 * <a name="xml-cursor-adapter-bind-transformation-transform"></a>
196 * <li><code>android:withExpression</code>: The transformation expression. The expression is
198 * transformation each column name is replaced by its value. All columns must have been
268 * <p>A binder is provided with a cursor transformation which may or may not be use
725 CursorTransformation transformation = mIdentity; local
835 CursorTransformation transformation = null; local
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
AppWindowAnimator.java 32 import android.view.animation.Transformation;
48 final Transformation transformation = new Transformation(); field in class:AppWindowAnimator
77 final Transformation thumbnailTransformation = new Transformation();
127 transformation.clear();
128 transformation.setAlpha(mAppToken.isVisible() ? 1 : 0);
143 transformation.clear();
144 transformation.setAlpha(mAppToken.isVisible() ? 1 : 0)
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifFrameManager.java 15 import com.bumptech.glide.load.Transformation;
37 private Transformation<Bitmap> transformation = UnitTransformation.get(); field in class:GifFrameManager
72 public void setFrameTransformation(Transformation<Bitmap> transformation) {
73 if (transformation == null) {
74 throw new NullPointerException("Transformation must not be null");
76 this.transformation = transformation;
96 .transform(transformation)
    [all...]
GifResourceEncoder.java 11 import com.bumptech.glide.load.Transformation;
48 Transformation<Bitmap> transformation = drawable.getFrameTransformation(); local
49 if (transformation instanceof UnitTransformation) {
62 Resource<Bitmap> transformedResource = getTransformedFrame(currentFrame, transformation, drawable);
112 private Resource<Bitmap> getTransformedFrame(Bitmap currentFrame, Transformation<Bitmap> transformation,
116 Resource<Bitmap> transformedResource = transformation.transform(bitmapResource,
  /external/glide/library/src/main/java/com/bumptech/glide/
GenericRequestBuilder.java 13 import com.bumptech.glide.load.Transformation;
77 private Transformation<ResourceType> transformation = UnitTransformation.get(); field in class:GenericRequestBuilder
146 * {@link Transformation}s. However, {@link #placeholder(int)} and {@link #error(int)},
307 * Transform resources with the given {@link Transformation}s. Replaces any existing transformation or
314 Transformation<ResourceType>... transformations) {
317 transformation = transformations[0];
319 transformation = new MultiTransformation<ResourceType>(transformations);
326 * Removes the current {@link com.bumptech.glide.load.Transformation}
332 Transformation<ResourceType> transformation = UnitTransformation.get(); local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/request/
GenericRequest.java 9 import com.bumptech.glide.load.Transformation;
63 private Transformation<Z> transformation; field in class:GenericRequest
103 Transformation<Z> transformation,
129 transformation,
153 transformation = null;
175 Transformation<Z> transformation,
196 this.transformation = transformation
    [all...]
  /libcore/luni/src/main/java/javax/crypto/
Cipher.java 46 * requested transformation, optionally with a provider. A transformation
57 * A valid transformation would be:
191 * The transformation.
193 private final String transformation; field in class:Cipher
196 * The transformation split into parts.
214 * @param transformation
215 * the name of the transformation that this cipher performs.
220 protected Cipher(CipherSpi cipherSpi, Provider provider, String transformation) {
229 this.transformation = transformation
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
BlockCipherTestBase.java 309 // IV not used in this transformation.
375 // IV not needed by this transformation -- shouldn't have been generated by Cipher.init
379 // IV is needed by this transformation -- should've been generated by Cipher.init
398 // This transformation does not use an IV
430 // This transformation does not use an IV
449 // This transformation does not use an IV
466 // This transformation does not use an IV
1255 String transformation = getTransformation(); local
1264 String transformation = getTransformation(); local
1277 String transformation = getTransformation(); local
    [all...]

Completed in 361 milliseconds

1 2