/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CipherTest.java | 1016 private static boolean isRandomizedEncryption(String transformation) { in isRandomizedEncryption() argument 1017 String transformationUpperCase = transformation.toUpperCase(Locale.US); in isRandomizedEncryption() 1072 for (String transformation : EXPECTED_ALGORITHMS) { in testInitDecryptFailsWhenNotAuthorizedToDecrypt() 1075 transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt() 1077 assertInitDecryptSucceeds(transformation, good); in testInitDecryptFailsWhenNotAuthorizedToDecrypt() 1078 assertInitDecryptThrowsInvalidKeyException(transformation, in testInitDecryptFailsWhenNotAuthorizedToDecrypt() 1081 throw new RuntimeException("Failed for " + transformation, e); in testInitDecryptFailsWhenNotAuthorizedToDecrypt() 1087 for (String transformation : EXPECTED_ALGORITHMS) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt() 1088 if (!isSymmetric(transformation)) { in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt() 1094 transformation, in testInitEncryptSymmetricFailsWhenNotAuthorizedToEncrypt() [all …]
|
D | TestUtils.java | 643 static String getKeyAlgorithm(String transformation) { in getKeyAlgorithm() argument 645 return getCipherKeyAlgorithm(transformation); in getKeyAlgorithm() 650 return getSignatureAlgorithmKeyAlgorithm(transformation); in getKeyAlgorithm() 654 String transformationUpperCase = transformation.toUpperCase(Locale.US); in getKeyAlgorithm() 668 if (transformation.endsWith("SHA1")) { in getKeyAlgorithm() 670 } else if (transformation.endsWith("SHA224")) { in getKeyAlgorithm() 672 } else if (transformation.endsWith("SHA256")) { in getKeyAlgorithm() 674 } else if (transformation.endsWith("SHA384")) { in getKeyAlgorithm() 676 } else if (transformation.endsWith("SHA512")) { in getKeyAlgorithm() 680 throw new IllegalArgumentException("Unsupported transformation: " + transformation); in getKeyAlgorithm() [all …]
|
D | BlockCipherTestBase.java | 1274 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/ |
D | RotateAnimationTest.java | 100 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 …]
|
D | AlphaAnimationTest.java | 75 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 …]
|
D | DecelerateInterpolatorTest.java | 104 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 …]
|
D | TransformationTest.java | 102 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 …]
|
D | TranslateAnimationTest.java | 104 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 …]
|
D | AnimationTest.java | 160 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 …]
|
D | CycleInterpolatorTest.java | 93 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 …]
|
D | AccelerateInterpolatorTest.java | 101 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 …]
|
D | LinearInterpolatorTest.java | 101 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 …]
|
D | ScaleAnimationTest.java | 90 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 …]
|
D | AccelerateDecelerateInterpolatorTest.java | 95 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 …]
|
D | LayoutAnimationControllerTest.java | 283 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 …]
|
D | AnimationSetTest.java | 330 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()
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | Utils.java | 118 @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 …]
|
D | PdfRendererTransformTest.java | 57 @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/ |
D | SpannableStringTest.java | 236 final TransformationMethod transformation = SingleLineTransformationMethod.getInstance(); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local 237 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
|
D | SpannableStringBuilderSpanTest.java | 607 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/ |
D | NotificationTest.java | 843 @Nullable Consumer<Builder> transformation) { in makeNotificationAction() 846 if (transformation != null) { in makeNotificationAction() 847 transformation.accept(actionBuilder); in makeNotificationAction()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | MatrixTest.rscript | 557 // 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.
|