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.java957 private static boolean isRandomizedEncryption(String transformation) { in isRandomizedEncryption() argument
958 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isRandomizedEncryption()
1013 for (String transformation : EXPECTED_ALGORITHMS) { in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1016 transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1018 assertInitDecryptSucceeds(transformation, good); in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1019 assertInitDecryptThrowsInvalidKeyException(transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1022 throw new RuntimeException("Failed for " + transformation, e); in testInitDecryptFailsWhenNotAuthorizedToDecrypt()
1028 for (String transformation : EXPECTED_ALGORITHMS) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
1029 if (!isSymmetric(transformation)) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
1035 transformation, in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt()
[all …]
DTestUtils.java641 static String getCipherKeyAlgorithm(String transformation) { in getCipherKeyAlgorithm() argument
642 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getCipherKeyAlgorithm()
650 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in getCipherKeyAlgorithm()
654 static boolean isCipherSymmetric(String transformation) { in isCipherSymmetric() argument
655 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isCipherSymmetric()
662 … throw new IllegalArgumentException("YYZ: Unsupported transformation: " + transformation); in isCipherSymmetric()
666 static String getCipherDigest(String transformation) { in getCipherDigest() argument
667 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getCipherDigest()
688 + transformation); in getCipherDigest()
695 static String getCipherEncryptionPadding(String transformation) { in getCipherEncryptionPadding() argument
[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/
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 …]
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 …]
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/app/src/android/app/cts/
DNotificationTest.java843 @Nullable Consumer<Builder> transformation) { in makeNotificationAction()
846 if (transformation != null) { in makeNotificationAction()
847 transformation.accept(actionBuilder); in makeNotificationAction()