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.java174 final int[] origWidth = new int[count]; in runPreloadDensityTestForDrawableInner() local
179 origWidth[i] = width; in runPreloadDensityTestForDrawableInner()
182 Arrays.fill(origWidth, max); in runPreloadDensityTestForDrawableInner()
191 assertEquals(Math.round(origWidth[i] / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
200 assertEquals(origWidth[i] * 2, doubleDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
209 assertEquals(origWidth[i], origDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
DVectorDrawableTest.java451 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() local
458 assertEquals(Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
464 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
470 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
475 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
477 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
DGradientDrawableTest.java518 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() local
528 assertEquals(Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
537 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
546 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
563 assertEquals(2 * Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
568 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
DNinePatchDrawableTest.java420 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testSetTargetDensityInner() local
434 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in testSetTargetDensityInner()
451 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in testSetTargetDensityInner()
512 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() local
527 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
547 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
DBitmapDrawableTest.java543 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() local
558 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
573 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in testPreloadDensityInner()