/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowMatrixTest.java | 64 matrix.setScale(1, 1); in set_shouldAddOpsToMatrix() 77 matrix.setScale(1, 2, 3, 4); in setScale_shouldAddOpsToMatrix() 86 matrix1.setScale(1, 2); in set_shouldOverrideValues() 89 matrix2.setScale(3, 4); in set_shouldOverrideValues() 99 matrix1.setScale(1, 2); in set_whenNull_shouldReset() 224 matrix2.setScale(2.0f, 2.0f); in testPostTranslate() 239 matrix2.setScale(2.0f, 2.0f); in testPreTranslate() 247 matrix.setScale(2.0f, 2.0f); in testSetScale() 249 matrix.setScale(-2.0f, -3.0f); in testSetScale() 251 matrix.setScale(-2.0f, -3.0f, 1.0f, 1.0f); in testSetScale() [all …]
|
/external/skia/tests/ |
D | MatrixTest.cpp | 104 m.setScale(2, 3); in test_set9() 180 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4); in test_matrix_min_max_scale() 323 mat.setScale(SkIntToScalar(15), SkIntToScalar(15)); in test_matrix_preserve_shape() 329 mat.setScale(SkIntToScalar(-15), SkIntToScalar(15)); in test_matrix_preserve_shape() 335 mat.setScale(SkIntToScalar(15), SkIntToScalar(20)); in test_matrix_preserve_shape() 341 mat.setScale(SkIntToScalar(15), SkIntToScalar(15), in test_matrix_preserve_shape() 348 mat.setScale(SkIntToScalar(15), SkIntToScalar(20), in test_matrix_preserve_shape() 430 mat.setScale(SkIntToScalar(3), SkIntToScalar(2)); in test_matrix_preserve_shape() 528 mat.setScale(kScale0, kScale0); in test_matrix_decomposition() 533 mat.setScale(kScale1, kScale0); in test_matrix_decomposition() [all …]
|
D | Matrix44Test.cpp | 111 scaleMatrix.setScale(3, 4, 5); in test_constructor() 148 mat.setScale(1, 1, 1); in test_scale() 150 mat.setScale(1, 2, 3); in test_scale() 157 b.setScale(10, 11, 12); in test_scale() 172 static void make_s(SkMatrix44* mat) { mat->setScale(1, 2, 3); } in make_s() 174 mat->setScale(1, 2, 3); in make_st() 273 b.setScale(2, 2, 2); in test_concat() 355 scale.setScale(2, 4, 8); in test_invert() 365 scaleTranslation.setScale(32, 128, 1024); in test_invert() 809 mat.setScale(3, 3, 3); in test_toint() [all …]
|
D | DrawBitmapRectTest.cpp | 91 mat.setScale(bigScale, bigScale); in test_treatAsSprite() 97 mat.setScale(smallScale, smallScale); in test_treatAsSprite() 103 mat.setScale(tinyScale, tinyScale); in test_treatAsSprite()
|
/external/skqp/tests/ |
D | MatrixTest.cpp | 104 m.setScale(2, 3); in test_set9() 180 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4); in test_matrix_min_max_scale() 323 mat.setScale(SkIntToScalar(15), SkIntToScalar(15)); in test_matrix_preserve_shape() 329 mat.setScale(SkIntToScalar(-15), SkIntToScalar(15)); in test_matrix_preserve_shape() 335 mat.setScale(SkIntToScalar(15), SkIntToScalar(20)); in test_matrix_preserve_shape() 341 mat.setScale(SkIntToScalar(15), SkIntToScalar(15), in test_matrix_preserve_shape() 348 mat.setScale(SkIntToScalar(15), SkIntToScalar(20), in test_matrix_preserve_shape() 430 mat.setScale(SkIntToScalar(3), SkIntToScalar(2)); in test_matrix_preserve_shape() 528 mat.setScale(kScale0, kScale0); in test_matrix_decomposition() 533 mat.setScale(kScale1, kScale0); in test_matrix_decomposition() [all …]
|
D | Matrix44Test.cpp | 111 scaleMatrix.setScale(3, 4, 5); in test_constructor() 148 mat.setScale(1, 1, 1); in test_scale() 150 mat.setScale(1, 2, 3); in test_scale() 157 b.setScale(10, 11, 12); in test_scale() 172 static void make_s(SkMatrix44* mat) { mat->setScale(1, 2, 3); } in make_s() 174 mat->setScale(1, 2, 3); in make_st() 273 b.setScale(2, 2, 2); in test_concat() 355 scale.setScale(2, 4, 8); in test_invert() 365 scaleTranslation.setScale(32, 128, 1024); in test_invert() 809 mat.setScale(3, 3, 3); in test_toint() [all …]
|
D | DrawBitmapRectTest.cpp | 91 mat.setScale(bigScale, bigScale); in test_treatAsSprite() 97 mat.setScale(smallScale, smallScale); in test_treatAsSprite() 103 mat.setScale(tinyScale, tinyScale); in test_treatAsSprite()
|
/external/skia/src/pdf/ |
D | SkPDFShader.cpp | 98 xMirror.setScale(-1, 1); in make_image_shader() 105 yMirror.setScale(SK_Scalar1, -SK_Scalar1); in make_image_shader() 113 mirror.setScale(-1, -1); in make_image_shader() 177 leftMatrix.setScale(-deviceBounds.left(), 1); in make_image_shader() 195 rightMatrix.setScale(deviceBounds.right() - width, 1); in make_image_shader() 216 topMatrix.setScale(SK_Scalar1, -deviceBounds.top()); in make_image_shader() 234 bottomMatrix.setScale(SK_Scalar1, deviceBounds.bottom() - height); in make_image_shader()
|
/external/skqp/src/pdf/ |
D | SkPDFShader.cpp | 98 xMirror.setScale(-1, 1); in make_image_shader() 105 yMirror.setScale(SK_Scalar1, -SK_Scalar1); in make_image_shader() 113 mirror.setScale(-1, -1); in make_image_shader() 177 leftMatrix.setScale(-deviceBounds.left(), 1); in make_image_shader() 195 rightMatrix.setScale(deviceBounds.right() - width, 1); in make_image_shader() 216 topMatrix.setScale(SK_Scalar1, -deviceBounds.top()); in make_image_shader() 234 bottomMatrix.setScale(SK_Scalar1, deviceBounds.bottom() - height); in make_image_shader()
|
/external/skqp/src/gpu/ |
D | GrTestUtils.cpp | 66 gMatrices[2].setScale(SkIntToScalar(17), SkIntToScalar(17)); in TestMatrixPreservesRightAngles() 68 gMatrices[3].setScale(SkIntToScalar(-17), SkIntToScalar(-17)); in TestMatrixPreservesRightAngles() 72 gMatrices[4].setScale(SkIntToScalar(-1), SkIntToScalar(-1)); in TestMatrixPreservesRightAngles() 92 gMatrices[2].setScale(SkIntToScalar(17), SkIntToScalar(17)); in TestMatrixRectStaysRect() 94 gMatrices[3].setScale(SkIntToScalar(-17), SkIntToScalar(-17)); in TestMatrixRectStaysRect() 97 gMatrices[4].setScale(SkIntToScalar(-1), SkIntToScalar(-1)); in TestMatrixRectStaysRect()
|
/external/skia/src/gpu/ |
D | GrTestUtils.cpp | 68 gMatrices[2].setScale(SkIntToScalar(17), SkIntToScalar(17)); in TestMatrixPreservesRightAngles() 70 gMatrices[3].setScale(SkIntToScalar(-17), SkIntToScalar(-17)); in TestMatrixPreservesRightAngles() 74 gMatrices[4].setScale(SkIntToScalar(-1), SkIntToScalar(-1)); in TestMatrixPreservesRightAngles() 94 gMatrices[2].setScale(SkIntToScalar(17), SkIntToScalar(17)); in TestMatrixRectStaysRect() 96 gMatrices[3].setScale(SkIntToScalar(-17), SkIntToScalar(-17)); in TestMatrixRectStaysRect() 99 gMatrices[4].setScale(SkIntToScalar(-1), SkIntToScalar(-1)); in TestMatrixRectStaysRect()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 86 BigDecimal expected = new BigDecimal(d).setScale(0, mode); in testRoundIntegralDoubleToInt() 104 BigDecimal expected = new BigDecimal(d).setScale(0, mode); in testRoundFractionalDoubleToInt() 121 BigDecimal expected = new BigDecimal(d).setScale(0, UNNECESSARY); in testRoundExactIntegralDoubleToInt() 172 BigDecimal expected = new BigDecimal(d).setScale(0, mode); in testRoundIntegralDoubleToLong() 190 BigDecimal expected = new BigDecimal(d).setScale(0, mode); in testRoundFractionalDoubleToLong() 208 BigDecimal expected = new BigDecimal(d).setScale(0, UNNECESSARY); in testRoundExactIntegralDoubleToLong() 259 BigDecimal expected = new BigDecimal(d).setScale(0, mode); in testRoundIntegralDoubleToBigInteger() 269 BigDecimal expected = new BigDecimal(d).setScale(0, mode); in testRoundFractionalDoubleToBigInteger() 278 BigDecimal expected = new BigDecimal(d).setScale(0, UNNECESSARY); in testRoundExactIntegralDoubleToBigInteger()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 377 fallback = fallback.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 397 temp = temp.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 622 returnValue = temp.setScale(0, RoundingMode.FLOOR).remainder(BigDecimal.TEN).byteValue(); 623 fallback = fallback.setScale(0, RoundingMode.FLOOR).add(temp.remainder(BigDecimal.ONE)); 674 return fallback.setScale(0, RoundingMode.FLOOR).compareTo(BigDecimal.ZERO) > 0; 752 returnValue = fallback.setScale(0, RoundingMode.FLOOR).remainder(BigDecimal.TEN).byteValue(); 753 BigDecimal temp = fallback.divide(BigDecimal.TEN).setScale(0, RoundingMode.FLOOR);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 374 fallback = fallback.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 394 temp = temp.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 619 returnValue = temp.setScale(0, RoundingMode.FLOOR).remainder(BigDecimal.TEN).byteValue(); 620 fallback = fallback.setScale(0, RoundingMode.FLOOR).add(temp.remainder(BigDecimal.ONE)); 671 return fallback.setScale(0, RoundingMode.FLOOR).compareTo(BigDecimal.ZERO) > 0; 749 returnValue = fallback.setScale(0, RoundingMode.FLOOR).remainder(BigDecimal.TEN).byteValue(); 750 BigDecimal temp = fallback.divide(BigDecimal.TEN).setScale(0, RoundingMode.FLOOR);
|
/external/skqp/gm/ |
D | ovals.cpp | 89 m.setScale(SkIntToScalar(3), SkIntToScalar(2)); in makeMatrices() 95 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices() 101 m.setScale(SkIntToScalar(1), SkIntToScalar(2)); in makeMatrices() 107 m.setScale(SkIntToScalar(4), SkIntToScalar(1)); in makeMatrices()
|
D | roundrects.cpp | 99 m.setScale(SkIntToScalar(3), SkIntToScalar(2)); in makeMatrices() 105 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices() 111 m.setScale(SkIntToScalar(1), SkIntToScalar(2)); in makeMatrices() 117 m.setScale(SkIntToScalar(4), SkIntToScalar(1)); in makeMatrices()
|
D | pictureshader.cpp | 69 localMatrix.setScale(2, 2); in onDraw() 73 localMatrix.setScale(-1, -1); in onDraw() 95 localMatrix.setScale(localScale, localScale); in drawSceneColumn()
|
D | circles.cpp | 113 m.setScale(SkIntToScalar(2), SkIntToScalar(3)); in makeMatrices() 119 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices()
|
/external/skia/gm/ |
D | ovals.cpp | 89 m.setScale(SkIntToScalar(3), SkIntToScalar(2)); in makeMatrices() 95 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices() 101 m.setScale(SkIntToScalar(1), SkIntToScalar(2)); in makeMatrices() 107 m.setScale(SkIntToScalar(4), SkIntToScalar(1)); in makeMatrices()
|
D | roundrects.cpp | 99 m.setScale(SkIntToScalar(3), SkIntToScalar(2)); in makeMatrices() 105 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices() 111 m.setScale(SkIntToScalar(1), SkIntToScalar(2)); in makeMatrices() 117 m.setScale(SkIntToScalar(4), SkIntToScalar(1)); in makeMatrices()
|
D | pictureshader.cpp | 69 localMatrix.setScale(2, 2); in onDraw() 73 localMatrix.setScale(-1, -1); in onDraw() 95 localMatrix.setScale(localScale, localScale); in drawSceneColumn()
|
D | circles.cpp | 113 m.setScale(SkIntToScalar(2), SkIntToScalar(3)); in makeMatrices() 119 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices()
|
/external/skqp/docs/ |
D | SkMatrix_Reference.bmh | 17 so it has no effect. setTranslate, setScale, setSkew, setRotate, set9 and setAll 36 #SeeAlso setScale postScale preScale 51 #SeeAlso setScale postScale preScale 242 #SeeAlso setScale isTranslate setTranslate getType 542 matrix.setScale(42, 24); 588 matrix.setScale(42, 24); 595 #SeeAlso get getScaleY setScaleX setScale 608 matrix.setScale(42, 24); 615 #SeeAlso get getScaleX setScaleY setScale 836 #SeeAlso set setScale setScaleY [all …]
|
/external/skia/docs/ |
D | SkMatrix_Reference.bmh | 17 so it has no effect. setTranslate, setScale, setSkew, setRotate, set9 and setAll 36 #SeeAlso setScale postScale preScale 51 #SeeAlso setScale postScale preScale 241 #SeeAlso setScale isTranslate setTranslate getType 539 matrix.setScale(42, 24); 585 matrix.setScale(42, 24); 592 #SeeAlso get getScaleY setScaleX setScale 605 matrix.setScale(42, 24); 612 #SeeAlso get getScaleX setScaleY setScale 830 #SeeAlso set setScale setScaleY [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | TransformationUtils.java | 56 m.setScale(scale, scale); in centerCrop() 127 matrix.setScale(minPercentage, minPercentage); in fitCenter() 289 matrix.setScale(-1, 1); in initializeMatrixForRotation()
|