Home
last modified time | relevance | path

Searched refs:transformation (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/view/src/android/view/animation/cts/
DAlphaAnimationTest.java52 Transformation transformation = new Transformation(); in testApplyTransformation() local
53 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
55 animation.applyTransformation(0.0f, transformation); in testApplyTransformation()
56 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
58 animation.applyTransformation(0.5f, transformation); in testApplyTransformation()
59 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
61 animation.applyTransformation(1.0f, transformation); in testApplyTransformation()
62 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
65 transformation = new Transformation(); in testApplyTransformation()
66 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
[all …]
DRotateAnimationTest.java85 Transformation transformation = new Transformation(); in testRotateAgainstOrigin() local
101 rotateAnimation.getTransformation(startTime, transformation); in testRotateAgainstOrigin()
102 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
103 transformation.clear(); in testRotateAgainstOrigin()
104 rotateAnimation.applyTransformation(0.0f, transformation); in testRotateAgainstOrigin()
105 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
109 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstOrigin()
110 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
111 transformation.clear(); in testRotateAgainstOrigin()
112 rotateAnimation.applyTransformation(0.5f, transformation); in testRotateAgainstOrigin()
[all …]
DDecelerateInterpolatorTest.java88 Transformation transformation = new Transformation(); in testDecelerateInterpolator() local
90 anim.getTransformation(startTime, transformation); in testDecelerateInterpolator()
91 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator()
94 anim.getTransformation(startTime + 500, transformation); in testDecelerateInterpolator()
95 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator()
97 anim.getTransformation(startTime + 1000, transformation); in testDecelerateInterpolator()
98 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator()
100 anim.getTransformation(startTime + 1500, transformation); in testDecelerateInterpolator()
101 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator()
103 anim.getTransformation(startTime + DECELERATE_ALPHA_DURATION, transformation); in testDecelerateInterpolator()
[all …]
DTransformationTest.java85 final Transformation transformation = new Transformation(); in testAccessTransformationType() local
88 assertEquals(Transformation.TYPE_BOTH, transformation.getTransformationType()); in testAccessTransformationType()
90 transformation.setTransformationType(Transformation.TYPE_IDENTITY); in testAccessTransformationType()
91 assertEquals(Transformation.TYPE_IDENTITY, transformation.getTransformationType()); in testAccessTransformationType()
93 transformation.setTransformationType(Transformation.TYPE_ALPHA); in testAccessTransformationType()
94 assertEquals(Transformation.TYPE_ALPHA, transformation.getTransformationType()); in testAccessTransformationType()
96 transformation.setTransformationType(Transformation.TYPE_MATRIX); in testAccessTransformationType()
97 assertEquals(Transformation.TYPE_MATRIX, transformation.getTransformationType()); in testAccessTransformationType()
99 transformation.setTransformationType(Transformation.TYPE_BOTH); in testAccessTransformationType()
100 assertEquals(Transformation.TYPE_BOTH, transformation.getTransformationType()); in testAccessTransformationType()
[all …]
DAccelerateInterpolatorTest.java85 Transformation transformation = new Transformation(); in testAccelerateInterpolator() local
87 anim.getTransformation(startTime, transformation); in testAccelerateInterpolator()
88 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator()
91 anim.getTransformation(startTime + 250, transformation); in testAccelerateInterpolator()
92 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator()
94 anim.getTransformation(startTime + 500, transformation); in testAccelerateInterpolator()
95 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator()
97 anim.getTransformation(startTime + 750, transformation); in testAccelerateInterpolator()
98 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator()
100 anim.getTransformation(startTime + ACCELERATE_ALPHA_DURATION, transformation); in testAccelerateInterpolator()
[all …]
DTranslateAnimationTest.java88 final Transformation transformation = new Transformation(); in testApplyTransformation() local
102 translateAnimation.getTransformation(startTime, transformation); in testApplyTransformation()
103 transformation.getMatrix().getValues(values); in testApplyTransformation()
107 transformation.clear(); in testApplyTransformation()
108 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testApplyTransformation()
109 transformation.getMatrix().getValues(values); in testApplyTransformation()
113 transformation.clear(); in testApplyTransformation()
114 translateAnimation.getTransformation(startTime + DURATION, transformation); in testApplyTransformation()
115 transformation.getMatrix().getValues(values); in testApplyTransformation()
121 transformation.clear(); in testApplyTransformation()
[all …]
DCycleInterpolatorTest.java78 Transformation transformation = new Transformation(); in testCycyleInterpolator() local
80 anim.getTransformation(startTime, transformation); in testCycyleInterpolator()
81 final float alpha1 = transformation.getAlpha(); in testCycyleInterpolator()
84 anim.getTransformation(startTime + 500, transformation); in testCycyleInterpolator()
85 final float alpha2 = transformation.getAlpha(); in testCycyleInterpolator()
88 anim.getTransformation(startTime + 1000, transformation); in testCycyleInterpolator()
89 final float alpha3 = transformation.getAlpha(); in testCycyleInterpolator()
91 anim.getTransformation(startTime + 1500, transformation); in testCycyleInterpolator()
92 final float alpha4 = transformation.getAlpha(); in testCycyleInterpolator()
95 anim.getTransformation(startTime + CYCLE_ALPHA_DURATION, transformation); in testCycyleInterpolator()
[all …]
DAnimationTest.java125 Transformation transformation = new Transformation(); in testAccessFill() local
127 animation.getTransformation(animation.getStartTime() - 1, transformation); in testAccessFill() local
128 float alpha = transformation.getAlpha(); in testAccessFill()
131 transformation = new Transformation(); in testAccessFill()
134 transformation); in testAccessFill() local
135 alpha = transformation.getAlpha(); in testAccessFill()
145 transformation = new Transformation(); in testAccessFill()
146 animation.getTransformation(animation.getStartTime() - 1, transformation); in testAccessFill() local
147 alpha = transformation.getAlpha(); in testAccessFill()
150 transformation = new Transformation(); in testAccessFill()
[all …]
DLinearInterpolatorTest.java83 Transformation transformation = new Transformation(); in testLinearInterpolator() local
85 anim.getTransformation(startTime, transformation); in testLinearInterpolator()
86 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator()
89 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP, transformation); in testLinearInterpolator()
90 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator()
92 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 2, transformation); in testLinearInterpolator()
93 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator()
95 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 3, transformation); in testLinearInterpolator()
96 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator()
98 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 4, transformation); in testLinearInterpolator()
[all …]
DAccelerateDecelerateInterpolatorTest.java79 Transformation transformation = new Transformation(); in testAccelerateDecelerateInterpolator() local
81 anim.getTransformation(startTime, transformation); in testAccelerateDecelerateInterpolator()
82 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
85 anim.getTransformation(startTime + 500, transformation); in testAccelerateDecelerateInterpolator()
86 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
88 anim.getTransformation(startTime + 1000, transformation); in testAccelerateDecelerateInterpolator()
89 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
91 anim.getTransformation(startTime + 1500, transformation); in testAccelerateDecelerateInterpolator()
92 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
94 anim.getTransformation(startTime + ALPHA_DURATION, transformation); in testAccelerateDecelerateInterpolator()
[all …]
DScaleAnimationTest.java72 final Transformation transformation = new Transformation(); in testApplyTransformation() local
73 transformation.setTransformationType(Transformation.TYPE_MATRIX); in testApplyTransformation()
81 scaleAnimation.applyTransformation(0.0f, transformation); in testApplyTransformation()
82 transformation.getMatrix().getValues(values); in testApplyTransformation()
87 scaleAnimation.applyTransformation(0.5f, transformation); in testApplyTransformation()
88 transformation.getMatrix().getValues(values); in testApplyTransformation()
93 scaleAnimation.applyTransformation(1.0f, transformation); in testApplyTransformation()
94 transformation.getMatrix().getValues(values); in testApplyTransformation()
107 final Transformation transformation = new Transformation();
108 transformation.setTransformationType(Transformation.TYPE_MATRIX);
[all …]
DLayoutAnimationControllerTest.java273 Transformation transformation = new Transformation();
275 animation.getTransformation(baseTime, transformation);
277 float alpha1 = transformation.getAlpha();
278 animation.getTransformation(baseTime + step * 1, transformation);
279 float alpha2 = transformation.getAlpha();
280 animation.getTransformation(baseTime + step * 2, transformation);
281 float alpha3 = transformation.getAlpha();
282 animation.getTransformation(baseTime + step * 3, transformation);
283 float alpha4 = transformation.getAlpha();
284 animation.getTransformation(baseTime + step * 4, transformation);
[all …]
DAnimationSetTest.java302 final Transformation transformation = new Transformation(); in assertGetTransformation() local
306 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); in assertGetTransformation()
313 assertTransformationEquals(expectedTransformation, transformation); in assertGetTransformation()
381 final Transformation transformation = new Transformation(); in testClone() local
384 cloneChildren.get(i).getTransformation(startTime, transformation); in testClone()
385 assertTransformationEquals(expectedTransformation, transformation); in testClone()
390 transformation); in testClone()
391 assertTransformationEquals(expectedTransformation, transformation); in testClone()
396 transformation); in testClone()
397 assertTransformationEquals(expectedTransformation, transformation); in testClone()
/cts/tests/tests/keystore/src/android/keystore/cts/
DCipherTest.java801 private static boolean isRandomizedEncryption(String transformation) { in isRandomizedEncryption() argument
802 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isRandomizedEncryption()
808 for (String transformation : EXPECTED_ALGORITHMS) { in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
811 transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
813 assertInitDecryptSucceeds(transformation, good); in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
814 assertInitDecryptThrowsInvalidKeyException(transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
817 throw new RuntimeException("Failed for " + transformation, e); in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
823 for (String transformation : EXPECTED_ALGORITHMS) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
824 if (!isSymmetric(transformation)) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
830 transformation, in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
[all …]
DTestUtils.java621 static String getCipherKeyAlgorithm(String transformation) { in getCipherKeyAlgorithm() argument
622 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getCipherKeyAlgorithm()
628 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in getCipherKeyAlgorithm()
632 static boolean isCipherSymmetric(String transformation) { in isCipherSymmetric() argument
633 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isCipherSymmetric()
639 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in isCipherSymmetric()
643 static String getCipherDigest(String transformation) { in getCipherDigest() argument
644 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getCipherDigest()
665 + transformation); in getCipherDigest()
672 static String getCipherEncryptionPadding(String transformation) { in getCipherEncryptionPadding() argument
[all …]
DBlockCipherTestBase.java1258 String transformation = getTransformation(); in getKeyAlgorithm() local
1259 int delimiterIndex = transformation.indexOf('/'); in getKeyAlgorithm()
1261 fail("Unexpected transformation: " + transformation); in getKeyAlgorithm()
1263 return transformation.substring(0, delimiterIndex); in getKeyAlgorithm()
1267 String transformation = getTransformation(); in getBlockMode() local
1268 int delimiterIndex = transformation.indexOf('/'); in getBlockMode()
1270 fail("Unexpected transformation: " + transformation); in getBlockMode()
1272 int nextDelimiterIndex = transformation.indexOf('/', delimiterIndex + 1); in getBlockMode()
1274 fail("Unexpected transformation: " + transformation); in getBlockMode()
1276 return transformation.substring(delimiterIndex + 1, nextDelimiterIndex); in getBlockMode()
[all …]
/cts/tools/dex-tools/dex/
Dclasses0.out.dex59412 private java.lang.String transformation