Home
last modified time | relevance | path

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

/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.java622 static String getCipherKeyAlgorithm(String transformation) { in getCipherKeyAlgorithm() argument
623 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getCipherKeyAlgorithm()
629 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in getCipherKeyAlgorithm()
633 static boolean isCipherSymmetric(String transformation) { in isCipherSymmetric() argument
634 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isCipherSymmetric()
640 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in isCipherSymmetric()
644 static String getCipherDigest(String transformation) { in getCipherDigest() argument
645 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getCipherDigest()
666 + transformation); in getCipherDigest()
673 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/tests/tests/view/src/android/view/animation/cts/
DAlphaAnimationTest.java74 Transformation transformation = new Transformation(); in testApplyTransformation() local
75 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
77 animation.applyTransformation(0.0f, transformation); in testApplyTransformation()
78 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
80 animation.applyTransformation(0.5f, transformation); in testApplyTransformation()
81 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
83 animation.applyTransformation(1.0f, transformation); in testApplyTransformation()
84 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
87 transformation = new Transformation(); in testApplyTransformation()
88 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
[all …]
DRotateAnimationTest.java99 Transformation transformation = new Transformation(); in testRotateAgainstOrigin() local
116 rotateAnimation.getTransformation(startTime, transformation); in testRotateAgainstOrigin()
117 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
118 transformation.clear(); in testRotateAgainstOrigin()
119 rotateAnimation.applyTransformation(0.0f, transformation); in testRotateAgainstOrigin()
120 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
124 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstOrigin()
125 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
126 transformation.clear(); in testRotateAgainstOrigin()
127 rotateAnimation.applyTransformation(0.5f, transformation); in testRotateAgainstOrigin()
[all …]
DTransformationTest.java101 final Transformation transformation = new Transformation(); in testAccessTransformationType() local
104 assertEquals(Transformation.TYPE_BOTH, transformation.getTransformationType()); in testAccessTransformationType()
106 transformation.setTransformationType(Transformation.TYPE_IDENTITY); in testAccessTransformationType()
107 assertEquals(Transformation.TYPE_IDENTITY, transformation.getTransformationType()); in testAccessTransformationType()
109 transformation.setTransformationType(Transformation.TYPE_ALPHA); in testAccessTransformationType()
110 assertEquals(Transformation.TYPE_ALPHA, transformation.getTransformationType()); in testAccessTransformationType()
112 transformation.setTransformationType(Transformation.TYPE_MATRIX); in testAccessTransformationType()
113 assertEquals(Transformation.TYPE_MATRIX, transformation.getTransformationType()); in testAccessTransformationType()
115 transformation.setTransformationType(Transformation.TYPE_BOTH); in testAccessTransformationType()
116 assertEquals(Transformation.TYPE_BOTH, transformation.getTransformationType()); in testAccessTransformationType()
[all …]
DDecelerateInterpolatorTest.java103 Transformation transformation = new Transformation(); in testDecelerateInterpolator() local
105 anim.getTransformation(startTime, transformation); in testDecelerateInterpolator()
106 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator()
109 anim.getTransformation(startTime + 500, transformation); in testDecelerateInterpolator()
110 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator()
112 anim.getTransformation(startTime + 1000, transformation); in testDecelerateInterpolator()
113 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator()
115 anim.getTransformation(startTime + 1500, transformation); in testDecelerateInterpolator()
116 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator()
118 anim.getTransformation(startTime + DECELERATE_ALPHA_DURATION, transformation); in testDecelerateInterpolator()
[all …]
DAccelerateInterpolatorTest.java100 Transformation transformation = new Transformation(); in testAccelerateInterpolator() local
102 anim.getTransformation(startTime, transformation); in testAccelerateInterpolator()
103 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator()
106 anim.getTransformation(startTime + 250, transformation); in testAccelerateInterpolator()
107 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator()
109 anim.getTransformation(startTime + 500, transformation); in testAccelerateInterpolator()
110 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator()
112 anim.getTransformation(startTime + 750, transformation); in testAccelerateInterpolator()
113 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator()
115 anim.getTransformation(startTime + ACCELERATE_ALPHA_DURATION, transformation); in testAccelerateInterpolator()
[all …]
DTranslateAnimationTest.java103 final Transformation transformation = new Transformation(); in testApplyTransformation() local
118 translateAnimation.getTransformation(startTime, transformation); in testApplyTransformation()
119 transformation.getMatrix().getValues(values); in testApplyTransformation()
123 transformation.clear(); in testApplyTransformation()
124 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testApplyTransformation()
125 transformation.getMatrix().getValues(values); in testApplyTransformation()
129 transformation.clear(); in testApplyTransformation()
130 translateAnimation.getTransformation(startTime + DURATION, transformation); in testApplyTransformation()
131 transformation.getMatrix().getValues(values); in testApplyTransformation()
137 transformation.clear(); in testApplyTransformation()
[all …]
DCycleInterpolatorTest.java92 Transformation transformation = new Transformation(); in testCycleInterpolator() local
94 anim.getTransformation(startTime, transformation); in testCycleInterpolator()
95 final float alpha1 = transformation.getAlpha(); in testCycleInterpolator()
98 anim.getTransformation(startTime + 500, transformation); in testCycleInterpolator()
99 final float alpha2 = transformation.getAlpha(); in testCycleInterpolator()
102 anim.getTransformation(startTime + 1000, transformation); in testCycleInterpolator()
103 final float alpha3 = transformation.getAlpha(); in testCycleInterpolator()
105 anim.getTransformation(startTime + 1500, transformation); in testCycleInterpolator()
106 final float alpha4 = transformation.getAlpha(); in testCycleInterpolator()
109 anim.getTransformation(startTime + CYCLE_ALPHA_DURATION, transformation); in testCycleInterpolator()
[all …]
DAnimationTest.java159 Transformation transformation = new Transformation(); in testAccessFill() local
161 animation.getTransformation(animation.getStartTime() - 1, transformation); in testAccessFill() local
162 float alpha = transformation.getAlpha(); in testAccessFill()
165 transformation = new Transformation(); in testAccessFill()
168 transformation); in testAccessFill() local
169 alpha = transformation.getAlpha(); in testAccessFill()
180 transformation = new Transformation(); in testAccessFill()
181 animation.getTransformation(animation.getStartTime() - 1, transformation); in testAccessFill() local
182 alpha = transformation.getAlpha(); in testAccessFill()
185 transformation = new Transformation(); in testAccessFill()
[all …]
DLinearInterpolatorTest.java100 Transformation transformation = new Transformation(); in testLinearInterpolator() local
102 anim.getTransformation(startTime, transformation); in testLinearInterpolator()
103 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator()
106 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP, transformation); in testLinearInterpolator()
107 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator()
109 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 2, transformation); in testLinearInterpolator()
110 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator()
112 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 3, transformation); in testLinearInterpolator()
113 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator()
115 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 4, transformation); in testLinearInterpolator()
[all …]
DScaleAnimationTest.java89 final Transformation transformation = new Transformation(); in testApplyTransformation() local
90 transformation.setTransformationType(Transformation.TYPE_MATRIX); in testApplyTransformation()
98 scaleAnimation.applyTransformation(0.0f, transformation); in testApplyTransformation()
99 transformation.getMatrix().getValues(values); in testApplyTransformation()
104 scaleAnimation.applyTransformation(0.5f, transformation); in testApplyTransformation()
105 transformation.getMatrix().getValues(values); in testApplyTransformation()
110 scaleAnimation.applyTransformation(1.0f, transformation); in testApplyTransformation()
111 transformation.getMatrix().getValues(values); in testApplyTransformation()
125 final Transformation transformation = new Transformation();
126 transformation.setTransformationType(Transformation.TYPE_MATRIX);
[all …]
DAccelerateDecelerateInterpolatorTest.java94 Transformation transformation = new Transformation(); in testAccelerateDecelerateInterpolator() local
96 anim.getTransformation(startTime, transformation); in testAccelerateDecelerateInterpolator()
97 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
100 anim.getTransformation(startTime + 500, transformation); in testAccelerateDecelerateInterpolator()
101 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
103 anim.getTransformation(startTime + 1000, transformation); in testAccelerateDecelerateInterpolator()
104 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
106 anim.getTransformation(startTime + 1500, transformation); in testAccelerateDecelerateInterpolator()
107 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
109 anim.getTransformation(startTime + ALPHA_DURATION, transformation); in testAccelerateDecelerateInterpolator()
[all …]
DAnimationSetTest.java329 final Transformation transformation = new Transformation(); in assertGetTransformation() local
333 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); in assertGetTransformation()
340 assertTransformationEquals(expectedTransformation, transformation); in assertGetTransformation()
411 final Transformation transformation = new Transformation(); in testClone() local
414 cloneChildren.get(i).getTransformation(startTime, transformation); in testClone()
415 assertTransformationEquals(expectedTransformation, transformation); in testClone()
420 transformation); in testClone()
421 assertTransformationEquals(expectedTransformation, transformation); in testClone()
426 transformation); in testClone()
427 assertTransformationEquals(expectedTransformation, transformation); in testClone()
DLayoutAnimationControllerTest.java282 Transformation transformation = new Transformation();
284 animation.getTransformation(baseTime, transformation);
286 float alpha1 = transformation.getAlpha();
287 animation.getTransformation(baseTime + step * 1, transformation);
288 float alpha2 = transformation.getAlpha();
289 animation.getTransformation(baseTime + step * 2, transformation);
290 float alpha3 = transformation.getAlpha();
291 animation.getTransformation(baseTime + step * 3, transformation);
292 float alpha4 = transformation.getAlpha();
293 animation.getTransformation(baseTime + step * 4, transformation);
[all …]
/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfRendererTransformTest.java56 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode) { in PdfRendererTransformTest() argument
61 mTransformation = transformation; in PdfRendererTransformTest()
82 Matrix transformation = new Matrix(); in getParameters() local
86 transformation.postRotate(rotation); in getParameters()
90 transformation.postScale(scaleX, scaleY); in getParameters()
94 transformation.postTranslate(translateX, in getParameters()
103 transformation, Page.RENDER_MODE_FOR_DISPLAY in getParameters()
DUtils.java118 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode, in renderWithTransform() argument
125 page.render(bm, clipping, transformation, renderMode); in renderWithTransform()
148 @RawRes int docRes, @Nullable Rect clipping, @Nullable Matrix transformation, in renderAndThenTransform() argument
165 if (transformation == null) { in renderAndThenTransform()
168 transformation = new Matrix(); in renderAndThenTransform()
171 transformation.postScale((float) clipping.width() / renderedBm.getWidth(), in renderAndThenTransform()
173 transformation.postTranslate(clipping.left, clipping.top); in renderAndThenTransform()
175 transformation.postScale((float) bmWidth / renderedBm.getWidth(), in renderAndThenTransform()
182 canvas.drawBitmap(renderedBm, transformation, null); in renderAndThenTransform()
244 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode, in renderAndCompare() argument
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java234 final TransformationMethod transformation = SingleLineTransformationMethod.getInstance(); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local
235 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
DSpannableStringBuilderSpanTest.java606 final TransformationMethod transformation = SingleLineTransformationMethod.getInstance(); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local
607 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex59412 private java.lang.String transformation