Searched refs:origWidth (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedStateListDrawableTest.java | 193 final int[] origWidth = new int[count]; in runPreloadDensityTestForDrawableInner() local 198 origWidth[i] = width; in runPreloadDensityTestForDrawableInner() 201 Arrays.fill(origWidth, max); in runPreloadDensityTestForDrawableInner() 214 assertEquals(Math.round(origWidth[i] * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in runPreloadDensityTestForDrawableInner() 223 assertEquals(origWidth[i] * 2, doubleDrawable.getIntrinsicWidth(), 1); in runPreloadDensityTestForDrawableInner() 232 assertEquals(origWidth[i], origDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
|
D | VectorDrawableTest.java | 445 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local 454 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 460 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 466 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 471 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 473 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|
D | NinePatchDrawableTest.java | 465 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifySetTargetDensityInner() local 479 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifySetTargetDensityInner() 496 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in verifySetTargetDensityInner() 550 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local 565 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 585 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|
D | GradientDrawableTest.java | 827 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local 839 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 848 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 857 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 873 assertEquals(Math.round(approxDouble * Math.round(origWidth * approxHalf)), in verifyPreloadDensityInner() 880 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapDrawableTest.java | 92 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local 108 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 123 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_AImageDecoderTest.cpp | 631 const int origWidth = AImageDecoderHeaderInfo_getWidth(info); in testDecodeStride() local 633 for (int width : { origWidth, origWidth / 3 }) { in testDecodeStride() 771 const int32_t origWidth = AImageDecoderHeaderInfo_getWidth(info); in testComputeSampledSize() local 789 { decoder, origWidth, &width, &height }, in testComputeSampledSize() 790 { decoder, origWidth + 5, &width, &height }, in testComputeSampledSize() 791 { decoder, origWidth * 2, &width, &height }, in testComputeSampledSize() 800 p.sampleSize, origWidth, origHeight); in testComputeSampledSize() 821 origWidth, origHeight, sampleSize, width, height, jInfo.width, jInfo.height); in testComputeSampledSize() 828 ASSERT_LT(width, origWidth); in testComputeSampledSize() 831 ASSERT_LT(width, origWidth / sampleSize + sampleSize); in testComputeSampledSize()
|