HomeSort by relevance Sort by last modified time
    Searched refs:scaledDrawable (Results 1 - 2 of 2) sorted by null

  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
BitmapDrawableTest.java 103 final BitmapDrawable scaledDrawable =
105 scaledDrawable.setLayoutDirection(LayoutDirection.RTL);
108 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth());
109 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight());
112 assertFalse(scaledDrawable.getPadding(tempPadding));
114 runTest(scaledDrawable);
122 scaledDrawable.applyTheme(t);
123 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth());
124 assertEquals(origHeight, scaledDrawable.getIntrinsicHeight());
125 assertFalse(scaledDrawable.getPadding(tempPadding))
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
NinePatchDrawableTest.java 474 final NinePatchDrawable scaledDrawable =
476 densitySetter.setTargetDensity(scaledDrawable, scaledDensityDpi);
479 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth());
480 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight());
483 assertTrue(scaledDrawable.getPadding(tempPadding));
495 scaledDrawable.applyTheme(t);
496 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth());
497 assertEquals(origHeight, scaledDrawable.getIntrinsicHeight());
498 assertTrue(scaledDrawable.getPadding(tempPadding));
562 final NinePatchDrawable scaledDrawable
    [all...]

Completed in 46 milliseconds