Home
last modified time | relevance | path

Searched refs:origWidth (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedStateListDrawableTest.java192 final int[] origWidth = new int[count]; in runPreloadDensityTestForDrawableInner() local
197 origWidth[i] = width; in runPreloadDensityTestForDrawableInner()
200 Arrays.fill(origWidth, max); in runPreloadDensityTestForDrawableInner()
213 assertEquals(Math.round(origWidth[i] * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in runPreloadDensityTestForDrawableInner()
222 assertEquals(origWidth[i] * 2, doubleDrawable.getIntrinsicWidth(), 1); in runPreloadDensityTestForDrawableInner()
231 assertEquals(origWidth[i], origDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
DVectorDrawableTest.java436 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local
445 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
451 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
457 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
462 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
464 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
DGradientDrawableTest.java570 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local
582 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
591 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
600 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
616 assertEquals(Math.round(approxDouble * Math.round(origWidth * approxHalf)), in verifyPreloadDensityInner()
623 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
DNinePatchDrawableTest.java453 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifySetTargetDensityInner() local
467 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifySetTargetDensityInner()
484 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in verifySetTargetDensityInner()
538 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local
553 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
573 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java104 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner() local
120 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
135 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()