Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DCipherTest.java1117 private static boolean isRandomizedEncryption(String transformation) { in isRandomizedEncryption() argument
1118 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isRandomizedEncryption()
1173 for (String transformation : EXPECTED_ALGORITHMS) { in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1176 transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1178 assertInitDecryptSucceeds(transformation, good); in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1179 assertInitDecryptThrowsInvalidKeyException(transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1182 throw new RuntimeException("Failed for " + transformation, e); in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1188 for (String transformation : EXPECTED_ALGORITHMS) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
1189 if (!isSymmetric(transformation)) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
1195 transformation, in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
[all …]
DTestUtils.java699 static String getKeyAlgorithm(String transformation) { in getKeyAlgorithm() argument
701 return getCipherKeyAlgorithm(transformation); in getKeyAlgorithm()
706 return getSignatureAlgorithmKeyAlgorithm(transformation); in getKeyAlgorithm()
710 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getKeyAlgorithm()
724 if (transformation.endsWith("SHA1")) { in getKeyAlgorithm()
726 } else if (transformation.endsWith("SHA224")) { in getKeyAlgorithm()
728 } else if (transformation.endsWith("SHA256")) { in getKeyAlgorithm()
730 } else if (transformation.endsWith("SHA384")) { in getKeyAlgorithm()
732 } else if (transformation.endsWith("SHA512")) { in getKeyAlgorithm()
736 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in getKeyAlgorithm()
[all …]
DBlockCipherTestBase.java1274 String transformation = getTransformation(); in getKeyAlgorithm() local
1275 int delimiterIndex = transformation.indexOf('/'); in getKeyAlgorithm()
1277 fail("Unexpected transformation: " + transformation); in getKeyAlgorithm()
1279 return transformation.substring(0, delimiterIndex); in getKeyAlgorithm()
1283 String transformation = getTransformation(); in getBlockMode() local
1284 int delimiterIndex = transformation.indexOf('/'); in getBlockMode()
1286 fail("Unexpected transformation: " + transformation); in getBlockMode()
1288 int nextDelimiterIndex = transformation.indexOf('/', delimiterIndex + 1); in getBlockMode()
1290 fail("Unexpected transformation: " + transformation); in getBlockMode()
1292 return transformation.substring(delimiterIndex + 1, nextDelimiterIndex); in getBlockMode()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DAlphaAnimationTest.java75 Transformation transformation = new Transformation(); in testApplyTransformation() local
76 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
78 animation.applyTransformation(0.0f, transformation); in testApplyTransformation()
79 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
81 animation.applyTransformation(0.5f, transformation); in testApplyTransformation()
82 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
84 animation.applyTransformation(1.0f, transformation); in testApplyTransformation()
85 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
88 transformation = new Transformation(); in testApplyTransformation()
89 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
[all …]
DRotateAnimationTest.java100 Transformation transformation = new Transformation(); in testRotateAgainstOrigin() local
117 rotateAnimation.getTransformation(startTime, transformation); in testRotateAgainstOrigin()
118 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
119 transformation.clear(); in testRotateAgainstOrigin()
120 rotateAnimation.applyTransformation(0.0f, transformation); in testRotateAgainstOrigin()
121 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
125 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstOrigin()
126 assertMatrixEquals(expectedMatrix, transformation.getMatrix()); in testRotateAgainstOrigin()
127 transformation.clear(); in testRotateAgainstOrigin()
128 rotateAnimation.applyTransformation(0.5f, transformation); in testRotateAgainstOrigin()
[all …]
DDecelerateInterpolatorTest.java104 Transformation transformation = new Transformation(); in testDecelerateInterpolator() local
106 anim.getTransformation(startTime, transformation); in testDecelerateInterpolator()
107 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator()
110 anim.getTransformation(startTime + 500, transformation); in testDecelerateInterpolator()
111 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator()
113 anim.getTransformation(startTime + 1000, transformation); in testDecelerateInterpolator()
114 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator()
116 anim.getTransformation(startTime + 1500, transformation); in testDecelerateInterpolator()
117 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator()
119 anim.getTransformation(startTime + DECELERATE_ALPHA_DURATION, transformation); in testDecelerateInterpolator()
[all …]
DTransformationTest.java102 final Transformation transformation = new Transformation(); in testAccessTransformationType() local
105 assertEquals(Transformation.TYPE_BOTH, transformation.getTransformationType()); in testAccessTransformationType()
107 transformation.setTransformationType(Transformation.TYPE_IDENTITY); in testAccessTransformationType()
108 assertEquals(Transformation.TYPE_IDENTITY, transformation.getTransformationType()); in testAccessTransformationType()
110 transformation.setTransformationType(Transformation.TYPE_ALPHA); in testAccessTransformationType()
111 assertEquals(Transformation.TYPE_ALPHA, transformation.getTransformationType()); in testAccessTransformationType()
113 transformation.setTransformationType(Transformation.TYPE_MATRIX); in testAccessTransformationType()
114 assertEquals(Transformation.TYPE_MATRIX, transformation.getTransformationType()); in testAccessTransformationType()
116 transformation.setTransformationType(Transformation.TYPE_BOTH); in testAccessTransformationType()
117 assertEquals(Transformation.TYPE_BOTH, transformation.getTransformationType()); in testAccessTransformationType()
[all …]
DAccelerateInterpolatorTest.java101 Transformation transformation = new Transformation(); in testAccelerateInterpolator() local
103 anim.getTransformation(startTime, transformation); in testAccelerateInterpolator()
104 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator()
107 anim.getTransformation(startTime + 250, transformation); in testAccelerateInterpolator()
108 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator()
110 anim.getTransformation(startTime + 500, transformation); in testAccelerateInterpolator()
111 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator()
113 anim.getTransformation(startTime + 750, transformation); in testAccelerateInterpolator()
114 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator()
116 anim.getTransformation(startTime + ACCELERATE_ALPHA_DURATION, transformation); in testAccelerateInterpolator()
[all …]
DTranslateAnimationTest.java104 final Transformation transformation = new Transformation(); in testApplyTransformation() local
119 translateAnimation.getTransformation(startTime, transformation); in testApplyTransformation()
120 transformation.getMatrix().getValues(values); in testApplyTransformation()
124 transformation.clear(); in testApplyTransformation()
125 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testApplyTransformation()
126 transformation.getMatrix().getValues(values); in testApplyTransformation()
130 transformation.clear(); in testApplyTransformation()
131 translateAnimation.getTransformation(startTime + DURATION, transformation); in testApplyTransformation()
132 transformation.getMatrix().getValues(values); in testApplyTransformation()
138 transformation.clear(); in testApplyTransformation()
[all …]
DCycleInterpolatorTest.java93 Transformation transformation = new Transformation(); in testCycleInterpolator() local
95 anim.getTransformation(startTime, transformation); in testCycleInterpolator()
96 final float alpha1 = transformation.getAlpha(); in testCycleInterpolator()
99 anim.getTransformation(startTime + 500, transformation); in testCycleInterpolator()
100 final float alpha2 = transformation.getAlpha(); in testCycleInterpolator()
103 anim.getTransformation(startTime + 1000, transformation); in testCycleInterpolator()
104 final float alpha3 = transformation.getAlpha(); in testCycleInterpolator()
106 anim.getTransformation(startTime + 1500, transformation); in testCycleInterpolator()
107 final float alpha4 = transformation.getAlpha(); in testCycleInterpolator()
110 anim.getTransformation(startTime + CYCLE_ALPHA_DURATION, transformation); in testCycleInterpolator()
[all …]
DAnimationTest.java160 Transformation transformation = new Transformation(); in testAccessFill() local
162 animation.getTransformation(animation.getStartTime() - 1, transformation); in testAccessFill() local
163 float alpha = transformation.getAlpha(); in testAccessFill()
166 transformation = new Transformation(); in testAccessFill()
169 transformation); in testAccessFill() local
170 alpha = transformation.getAlpha(); in testAccessFill()
181 transformation = new Transformation(); in testAccessFill()
182 animation.getTransformation(animation.getStartTime() - 1, transformation); in testAccessFill() local
183 alpha = transformation.getAlpha(); in testAccessFill()
186 transformation = new Transformation(); in testAccessFill()
[all …]
DLinearInterpolatorTest.java101 Transformation transformation = new Transformation(); in testLinearInterpolator() local
103 anim.getTransformation(startTime, transformation); in testLinearInterpolator()
104 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator()
107 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP, transformation); in testLinearInterpolator()
108 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator()
110 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 2, transformation); in testLinearInterpolator()
111 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator()
113 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 3, transformation); in testLinearInterpolator()
114 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator()
116 anim.getTransformation(startTime + LINEAR_ALPHA_TIME_STEP * 4, transformation); in testLinearInterpolator()
[all …]
DScaleAnimationTest.java90 final Transformation transformation = new Transformation(); in testApplyTransformation() local
91 transformation.setTransformationType(Transformation.TYPE_MATRIX); in testApplyTransformation()
99 scaleAnimation.applyTransformation(0.0f, transformation); in testApplyTransformation()
100 transformation.getMatrix().getValues(values); in testApplyTransformation()
105 scaleAnimation.applyTransformation(0.5f, transformation); in testApplyTransformation()
106 transformation.getMatrix().getValues(values); in testApplyTransformation()
111 scaleAnimation.applyTransformation(1.0f, transformation); in testApplyTransformation()
112 transformation.getMatrix().getValues(values); in testApplyTransformation()
126 final Transformation transformation = new Transformation();
127 transformation.setTransformationType(Transformation.TYPE_MATRIX);
[all …]
DAccelerateDecelerateInterpolatorTest.java95 Transformation transformation = new Transformation(); in testAccelerateDecelerateInterpolator() local
97 anim.getTransformation(startTime, transformation); in testAccelerateDecelerateInterpolator()
98 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
101 anim.getTransformation(startTime + 500, transformation); in testAccelerateDecelerateInterpolator()
102 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
104 anim.getTransformation(startTime + 1000, transformation); in testAccelerateDecelerateInterpolator()
105 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
107 anim.getTransformation(startTime + 1500, transformation); in testAccelerateDecelerateInterpolator()
108 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
110 anim.getTransformation(startTime + ALPHA_DURATION, transformation); in testAccelerateDecelerateInterpolator()
[all …]
DAnimationSetTest.java330 final Transformation transformation = new Transformation(); in assertGetTransformation() local
334 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); in assertGetTransformation()
341 assertTransformationEquals(expectedTransformation, transformation); in assertGetTransformation()
412 final Transformation transformation = new Transformation(); in testClone() local
415 cloneChildren.get(i).getTransformation(startTime, transformation); in testClone()
416 assertTransformationEquals(expectedTransformation, transformation); in testClone()
421 transformation); in testClone()
422 assertTransformationEquals(expectedTransformation, transformation); in testClone()
427 transformation); in testClone()
428 assertTransformationEquals(expectedTransformation, transformation); in testClone()
DLayoutAnimationControllerTest.java283 Transformation transformation = new Transformation();
285 animation.getTransformation(baseTime, transformation);
287 float alpha1 = transformation.getAlpha();
288 animation.getTransformation(baseTime + step * 1, transformation);
289 float alpha2 = transformation.getAlpha();
290 animation.getTransformation(baseTime + step * 2, transformation);
291 float alpha3 = transformation.getAlpha();
292 animation.getTransformation(baseTime + step * 3, transformation);
293 float alpha4 = transformation.getAlpha();
294 animation.getTransformation(baseTime + step * 4, transformation);
[all …]
/cts/tests/pdf/src/android/graphics/pdf/cts/
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 …]
DPdfRendererTransformTest.java57 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode) { in PdfRendererTransformTest() argument
62 mTransformation = transformation; in PdfRendererTransformTest()
83 Matrix transformation = new Matrix(); in getParameters() local
87 transformation.postRotate(rotation); in getParameters()
91 transformation.postScale(scaleX, scaleY); in getParameters()
95 transformation.postTranslate(translateX, in getParameters()
104 transformation, Page.RENDER_MODE_FOR_DISPLAY in getParameters()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java236 final TransformationMethod transformation = SingleLineTransformationMethod.getInstance(); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local
237 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
DSpannableStringBuilderSpanTest.java607 final TransformationMethod transformation = SingleLineTransformationMethod.getInstance(); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local
608 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DMatrixTest.rscript557 // Test combining scale with another transformation.
622 // Test combining translate with another transformation.
678 // Check that the transformation does what we expect.
724 // Test combining rotate with another transformation.
/cts/tests/app/src/android/app/cts/
DNotificationTest.java1024 @Nullable Consumer<Builder> transformation) { in makeNotificationAction()
1027 if (transformation != null) { in makeNotificationAction()
1028 transformation.accept(actionBuilder); in makeNotificationAction()
/cts/apps/CtsVerifier/
DNOTICE.txt91 transformation or translation of a Source form, including but
320 transformation or translation of a Source form, including but
2633 transformation or translation of a Source form, including but
2942 transformation or translation of a Source form, including but
3244 transformation or translation of a Source form, including but
3739 transformation or translation of a Source form, including but
3947 transformation or translation of a Source form, including but
4311 transformation or translation of a Source form, including but
4505 transformation or translation of a Source form, including but
4921 transformation or translation of a Source form, including but
[all …]